Skip to content

Commit 4cf02e3

Browse files
committed
feat: doc e ajustes
1 parent 43c2a01 commit 4cf02e3

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-base.component.ts

+9-6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export class PoPageJobSchedulerBaseComponent implements OnDestroy {
5959
* ```
6060
*
6161
* > Veja mais sobre paginação e filtros no [Guia de implementação de APIs](guides/api).
62+
* Caso seja informada a propriedade `p-parameters` não serão realizadas as requisições de processos e nem de parametros automaticamente.
6263
*
6364
* Também é possível fazer um agendamento de um processo específico, sem que seja necessário um endpoint para busca desses
6465
* processos. Então, caso o endpoint `{service-api}/processes` não seja válido, será apresentado um campo de entrada de
@@ -112,8 +113,9 @@ export class PoPageJobSchedulerBaseComponent implements OnDestroy {
112113
* {
113114
* "firstExecution": "2018-12-07T00:00:01-00:00",
114115
* "recurrent": true,
115-
* "daily": { "hour": 10, "minute": 12 },
116-
* "processID": "ac0405"
116+
* "monthly": { "day": 1, "hour": 10, "minute": 0 },
117+
* "processID": "ac0405",
118+
* "rangeExecutions: { "frequency": { "type": "hour", "value": 2 }, "rangeLimit": { "hour": 18, "minute": 0, "day": 20 } }
117119
* }
118120
* ```
119121
*
@@ -147,9 +149,11 @@ export class PoPageJobSchedulerBaseComponent implements OnDestroy {
147149
* ```
148150
* {
149151
* "firstExecution": "2018-12-07T00:00:01-00:00",
150-
* "recurrent": false,
151-
* "daily": { "hour": 11, "minute": 30 },
152-
* "processID": "ac0405"
152+
* "recurrent": true,
153+
* "processID": "ac0405",
154+
* "monthly": { "day": 1, "hour": 10, "minute": 0 },
155+
* "processID": "ac0405",
156+
* "rangeExecutions: { "frequency": { "type": "hour", "value": 2 }, "rangeLimit": { "hour": 18, "minute": 0, "day": 20 } }
153157
* }
154158
* ```
155159
*/
@@ -166,7 +170,6 @@ export class PoPageJobSchedulerBaseComponent implements OnDestroy {
166170
*/
167171
@Input('p-parameters') parameters: Array<PoDynamicFormField> = [];
168172

169-
/** Título da página. */
170173
@Input('p-value') set value(value: any) {
171174
this.model = this.poPageJobSchedulerService.convertToJobSchedulerInternal(value);
172175
}

projects/templates/src/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ export class PoPageJobSchedulerSummaryComponent implements OnInit {
104104
private getMonthlyLabelExecution(dayOfMonth: number, hour: string, rangeLimitHour?: string, rangeLimitDay?: number) {
105105
const hourLabel = this.getHourLabel(hour, rangeLimitHour);
106106

107-
return `${this.literals.from} ${dayOfMonth} ${this.literals.to} ${rangeLimitDay} ${hourLabel}`;
107+
return `${rangeLimitDay ? this.literals.from : ''} ${dayOfMonth} ${rangeLimitDay ? this.literals.to : ''} ${
108+
rangeLimitDay ? rangeLimitDay : ''
109+
} ${hourLabel}`;
108110
}
109111

110112
private getPeriodicityLabel(periodicity) {

0 commit comments

Comments
 (0)