@po-ui/ng-components 21.27.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.
- package/fesm2022/po-ui-ng-components.mjs +157 -214
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +1 -0
- package/lib/components/po-calendar/po-calendar.component.d.ts +2 -0
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +0 -3
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.d.ts +8 -2
- package/lib/components/po-field/po-field.module.d.ts +1 -1
- package/lib/components/po-field/po-input/po-input.component.d.ts +6 -0
- package/lib/components/po-field/po-timepicker/po-timepicker.component.d.ts +1 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.28.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v20/index.js +2 -2
- package/schematics/ng-update/v21/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/types/po-ui-ng-components.d.ts +20 -7
- package/po-ui-ng-components-21.27.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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
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
|
-
"@po-ui/ng-schematics": "21.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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) => {
|
|
@@ -5653,6 +5653,7 @@ declare class PoCalendarComponent extends PoCalendarBaseComponent implements OnI
|
|
|
5653
5653
|
selectedIndexYear: number | null;
|
|
5654
5654
|
selectedMonth: number | null;
|
|
5655
5655
|
selectedYear: number | null;
|
|
5656
|
+
private isTodayPresetSelection;
|
|
5656
5657
|
private readonly _isRange;
|
|
5657
5658
|
private readonly _rangePresetsValue;
|
|
5658
5659
|
private readonly _rangePresetOptionsValue;
|
|
@@ -5678,6 +5679,7 @@ declare class PoCalendarComponent extends PoCalendarBaseComponent implements OnI
|
|
|
5678
5679
|
getValue(partType: any): any;
|
|
5679
5680
|
onSelectDate(selectedDate: any, partType?: any): void;
|
|
5680
5681
|
onHoverDate(date: any): void;
|
|
5682
|
+
onSelectTodayPreset(): void;
|
|
5681
5683
|
onHeaderChange({ month, year }: {
|
|
5682
5684
|
month: any;
|
|
5683
5685
|
year: any;
|
|
@@ -5840,6 +5842,7 @@ declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
|
|
|
5840
5842
|
get locale(): string;
|
|
5841
5843
|
headerChange: EventEmitter<any>;
|
|
5842
5844
|
selectDate: EventEmitter<any>;
|
|
5845
|
+
selectTodayEvent: EventEmitter<void>;
|
|
5843
5846
|
readonly hoverDateSource: Subject<Date>;
|
|
5844
5847
|
hoverDate: rxjs.Observable<Date>;
|
|
5845
5848
|
closeCalendar: EventEmitter<void>;
|
|
@@ -5952,7 +5955,7 @@ declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
|
|
|
5952
5955
|
trackByDay(index: number, day: Date): string;
|
|
5953
5956
|
trackByWeekDay(index: number, weekDay: string): string;
|
|
5954
5957
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoCalendarWrapperComponent, never>;
|
|
5955
|
-
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>;
|
|
5956
5959
|
}
|
|
5957
5960
|
|
|
5958
5961
|
declare class PoCalendarPresetListComponent {
|
|
@@ -17366,6 +17369,7 @@ declare class PoTimepickerComponent extends PoTimepickerBaseComponent implements
|
|
|
17366
17369
|
get minutePlaceholder(): string;
|
|
17367
17370
|
get secondPlaceholder(): string;
|
|
17368
17371
|
get isPlaceholder(): boolean;
|
|
17372
|
+
get showSeparator(): boolean;
|
|
17369
17373
|
private get customPlaceholderSegments();
|
|
17370
17374
|
private getCustomPlaceholderSegment;
|
|
17371
17375
|
onHostFocusOut(event: FocusEvent): void;
|
|
@@ -21951,12 +21955,9 @@ declare abstract class PoDatetimepickerBaseComponent implements ControlValueAcce
|
|
|
21951
21955
|
private _size?;
|
|
21952
21956
|
private _date;
|
|
21953
21957
|
private _timeValue;
|
|
21954
|
-
private previousValue;
|
|
21955
21958
|
private _resolvedMinDate;
|
|
21956
21959
|
private _resolvedMaxDate;
|
|
21957
21960
|
protected hasValidatorRequired: boolean;
|
|
21958
|
-
protected hour: string;
|
|
21959
|
-
protected isExtendedISO: boolean;
|
|
21960
21961
|
protected objMask: any;
|
|
21961
21962
|
protected onChangeModel: any;
|
|
21962
21963
|
protected onTouchedModel: any;
|
|
@@ -22398,13 +22399,11 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
|
|
|
22398
22399
|
iconDatepicker: PoButtonComponent;
|
|
22399
22400
|
calendarComponent: PoCalendarComponent;
|
|
22400
22401
|
inputEl: ElementRef;
|
|
22401
|
-
iconClean: ElementRef<HTMLElement>;
|
|
22402
22402
|
dialogPicker: ElementRef;
|
|
22403
22403
|
helperEl?: PoHelperComponent;
|
|
22404
22404
|
datetimepickerField: ElementRef;
|
|
22405
22405
|
private readonly renderer;
|
|
22406
22406
|
private readonly cd;
|
|
22407
|
-
private readonly poCalendarService;
|
|
22408
22407
|
private readonly controlPosition;
|
|
22409
22408
|
id: string;
|
|
22410
22409
|
displayAdditionalHelp: boolean;
|
|
@@ -22416,6 +22415,8 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
|
|
|
22416
22415
|
private clickListener;
|
|
22417
22416
|
private eventResizeListener;
|
|
22418
22417
|
private valueBeforeChange;
|
|
22418
|
+
private hadValueOnOpen;
|
|
22419
|
+
private isTodayPresetInProgress;
|
|
22419
22420
|
constructor();
|
|
22420
22421
|
ngAfterViewInit(): void;
|
|
22421
22422
|
ngOnDestroy(): void;
|
|
@@ -22427,6 +22428,9 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
|
|
|
22427
22428
|
hasInvalidClass(): boolean;
|
|
22428
22429
|
getErrorPattern(): string;
|
|
22429
22430
|
onKeyup($event: any): void;
|
|
22431
|
+
private processKeyupWithMask;
|
|
22432
|
+
private tryParseCompleteInput;
|
|
22433
|
+
private clearDateTimeState;
|
|
22430
22434
|
onKeydown($event: any): void;
|
|
22431
22435
|
onInputFocus(): void;
|
|
22432
22436
|
onPeriodBlur(): void;
|
|
@@ -22441,6 +22445,7 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
|
|
|
22441
22445
|
event: KeyboardEvent;
|
|
22442
22446
|
column: string;
|
|
22443
22447
|
}): void;
|
|
22448
|
+
onCalendarClose(): void;
|
|
22444
22449
|
writeValue(value: any): void;
|
|
22445
22450
|
refreshValue(value: Date): void;
|
|
22446
22451
|
onTimeChange(time: string): void;
|
|
@@ -22490,6 +22495,8 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
|
|
|
22490
22495
|
private buildFormattedTime;
|
|
22491
22496
|
private isValidSeconds;
|
|
22492
22497
|
private padTime;
|
|
22498
|
+
private normalizeTimeWithSeconds;
|
|
22499
|
+
private syncDateFromInput;
|
|
22493
22500
|
private syncCalendarAndTimer;
|
|
22494
22501
|
private getExpectedInputLength;
|
|
22495
22502
|
private setCalendarPosition;
|
|
@@ -22768,6 +22775,12 @@ declare class PoEmailComponent extends PoInputGeneric implements AfterViewInit,
|
|
|
22768
22775
|
* <file name="sample-po-input-reactive-form/sample-po-input-reactive-form.component.html"> </file>
|
|
22769
22776
|
* <file name="sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts"> </file>
|
|
22770
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>
|
|
22771
22784
|
*/
|
|
22772
22785
|
declare class PoInputComponent extends PoInputGeneric implements OnChanges {
|
|
22773
22786
|
inp: ElementRef;
|
|
@@ -29314,7 +29327,7 @@ declare class PoUploadFileRestrictionsComponent implements OnInit {
|
|
|
29314
29327
|
* @description
|
|
29315
29328
|
*
|
|
29316
29329
|
* Módulo dos componentes: po-checkbox, po-checkbox-group, po-combo, po-datepicker, po-datetimepicker, po-datepicker-range, po-email, po-input,
|
|
29317
|
-
* 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.
|
|
29318
29331
|
*
|
|
29319
29332
|
* > Não esqueça de importar o módulo `FormsModule` para usar os componentes de formulários e caso esteja trabalhando com
|
|
29320
29333
|
* > formulários reativos, importe o módulo `ReactiveFormsModule`, ambos nativos do Angular.
|
|
Binary file
|