@po-ui/ng-templates 19.25.0 → 20.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 (137) hide show
  1. package/fesm2022/po-ui-ng-templates.mjs +174 -174
  2. package/index.d.ts +6547 -3
  3. package/package.json +13 -13
  4. package/po-ui-ng-templates-20.0.0.tgz +0 -0
  5. package/schematics/ng-add/index.js +1 -1
  6. package/lib/components/components.module.d.ts +0 -16
  7. package/lib/components/enums/po-page-components-size.enum.d.ts +0 -12
  8. package/lib/components/index.d.ts +0 -11
  9. package/lib/components/po-modal-password-recovery/enums/po-modal-password-recovery-modal-content.enum.d.ts +0 -15
  10. package/lib/components/po-modal-password-recovery/enums/po-modal-password-recovery-type.enum.d.ts +0 -15
  11. package/lib/components/po-modal-password-recovery/index.d.ts +0 -7
  12. package/lib/components/po-modal-password-recovery/interfaces/po-modal-password-recovery.interface.d.ts +0 -25
  13. package/lib/components/po-modal-password-recovery/literals/i18n/po-modal-password-recovery-literals.d.ts +0 -6
  14. package/lib/components/po-modal-password-recovery/po-modal-password-recovery-base.component.d.ts +0 -300
  15. package/lib/components/po-modal-password-recovery/po-modal-password-recovery-error-message/po-modal-password-recovery-error-message.component.d.ts +0 -14
  16. package/lib/components/po-modal-password-recovery/po-modal-password-recovery.component.d.ts +0 -88
  17. package/lib/components/po-modal-password-recovery/po-modal-password-recovery.module.d.ts +0 -16
  18. package/lib/components/po-modal-password-recovery/po-modal-password-recovery.service.d.ts +0 -12
  19. package/lib/components/po-page-background/index.d.ts +0 -2
  20. package/lib/components/po-page-background/po-page-background.component.d.ts +0 -68
  21. package/lib/components/po-page-background/po-page-background.module.d.ts +0 -16
  22. package/lib/components/po-page-blocked-user/enums/po-page-blocked-user-reason.enum.d.ts +0 -15
  23. package/lib/components/po-page-blocked-user/index.d.ts +0 -7
  24. package/lib/components/po-page-blocked-user/interfaces/po-page-blocked-user-reason-params.interface.d.ts +0 -15
  25. package/lib/components/po-page-blocked-user/literals/i18n/po-page-blocked-user-literals.d.ts +0 -72
  26. package/lib/components/po-page-blocked-user/po-page-blocked-user-base.component.d.ts +0 -163
  27. package/lib/components/po-page-blocked-user/po-page-blocked-user-contacts/po-page-blocked-user-contacts.component.d.ts +0 -18
  28. package/lib/components/po-page-blocked-user/po-page-blocked-user-reason/po-page-blocked-user-reason.component.d.ts +0 -25
  29. package/lib/components/po-page-blocked-user/po-page-blocked-user.component.d.ts +0 -41
  30. package/lib/components/po-page-blocked-user/po-page-blocked-user.module.d.ts +0 -18
  31. package/lib/components/po-page-change-password/index.d.ts +0 -6
  32. package/lib/components/po-page-change-password/interfaces/po-page-change-password-recovery.interface.d.ts +0 -30
  33. package/lib/components/po-page-change-password/interfaces/po-page-change-password-requirement.interface.d.ts +0 -17
  34. package/lib/components/po-page-change-password/interfaces/po-page-change-password.interface.d.ts +0 -13
  35. package/lib/components/po-page-change-password/literals/i18n/po-page-change-password-literals.d.ts +0 -6
  36. package/lib/components/po-page-change-password/po-page-change-password-base.component.d.ts +0 -262
  37. package/lib/components/po-page-change-password/po-page-change-password.component.d.ts +0 -91
  38. package/lib/components/po-page-change-password/po-page-change-password.module.d.ts +0 -17
  39. package/lib/components/po-page-change-password/po-page-change-password.service.d.ts +0 -9
  40. package/lib/components/po-page-dynamic-detail/index.d.ts +0 -9
  41. package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-actions.interface.d.ts +0 -95
  42. package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-back.interface.d.ts +0 -18
  43. package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-edit.interface.d.ts +0 -18
  44. package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-before-remove.interface.d.ts +0 -18
  45. package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-field.interface.d.ts +0 -16
  46. package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-metadata.interface.d.ts +0 -31
  47. package/lib/components/po-page-dynamic-detail/interfaces/po-page-dynamic-detail-options.interface.d.ts +0 -36
  48. package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail-actions.service.d.ts +0 -17
  49. package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.component.d.ts +0 -279
  50. package/lib/components/po-page-dynamic-detail/po-page-dynamic-detail.module.d.ts +0 -17
  51. package/lib/components/po-page-dynamic-edit/index.d.ts +0 -10
  52. package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-actions.interface.d.ts +0 -123
  53. package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-cancel.interface.d.ts +0 -18
  54. package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save-new.interface.d.ts +0 -44
  55. package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save.interface.d.ts +0 -43
  56. package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-field.interface.d.ts +0 -14
  57. package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-literals.interface.d.ts +0 -69
  58. package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-metadata.interface.d.ts +0 -25
  59. package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-options.interface.d.ts +0 -28
  60. package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit-actions.service.d.ts +0 -17
  61. package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.d.ts +0 -438
  62. package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.module.d.ts +0 -17
  63. package/lib/components/po-page-dynamic-search/index.d.ts +0 -6
  64. package/lib/components/po-page-dynamic-search/interfaces/po-page-dynamic-search-filters.interface.d.ts +0 -18
  65. package/lib/components/po-page-dynamic-search/interfaces/po-page-dynamic-search-literals.interface.d.ts +0 -21
  66. package/lib/components/po-page-dynamic-search/interfaces/po-page-dynamic-search-options.interface.d.ts +0 -73
  67. package/lib/components/po-page-dynamic-search/interfaces/po-page-dynamic-search.interface.d.ts +0 -29
  68. package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-base.component.d.ts +0 -66
  69. package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter-literals.interface.d.ts +0 -15
  70. package/lib/components/po-page-dynamic-search/po-advanced-filter/po-advanced-filter.component.d.ts +0 -29
  71. package/lib/components/po-page-dynamic-search/po-page-dynamic-search-base.component.d.ts +0 -262
  72. package/lib/components/po-page-dynamic-search/po-page-dynamic-search.component.d.ts +0 -68
  73. package/lib/components/po-page-dynamic-search/po-page-dynamic-search.module.d.ts +0 -18
  74. package/lib/components/po-page-dynamic-table/index.d.ts +0 -15
  75. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-actions.interface.d.ts +0 -196
  76. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-detail.interface.d.ts +0 -21
  77. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-duplicate.interface.d.ts +0 -29
  78. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-edit.interface.d.ts +0 -22
  79. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-new.interface.d.ts +0 -18
  80. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove-all.interface.d.ts +0 -39
  81. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove.interface.d.ts +0 -18
  82. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-custom-action.interface.d.ts +0 -97
  83. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-custom-table-action.interface.d.ts +0 -106
  84. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-field.interface.d.ts +0 -49
  85. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-filters.interface.d.ts +0 -30
  86. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-metadata.interface.d.ts +0 -31
  87. package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-options.interface.d.ts +0 -105
  88. package/lib/components/po-page-dynamic-table/po-page-dynamic-list-base.component.d.ts +0 -188
  89. package/lib/components/po-page-dynamic-table/po-page-dynamic-table-actions.service.d.ts +0 -25
  90. package/lib/components/po-page-dynamic-table/po-page-dynamic-table-literals.d.ts +0 -62
  91. package/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.d.ts +0 -602
  92. package/lib/components/po-page-dynamic-table/po-page-dynamic-table.module.d.ts +0 -19
  93. package/lib/components/po-page-job-scheduler/index.d.ts +0 -5
  94. package/lib/components/po-page-job-scheduler/interfaces/po-job-scheduler-internal.interface.d.ts +0 -15
  95. package/lib/components/po-page-job-scheduler/interfaces/po-job-scheduler.interface.d.ts +0 -48
  96. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-base.component.d.ts +0 -258
  97. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-execution/po-page-job-scheduler-execution.component.d.ts +0 -52
  98. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-internal.d.ts +0 -9
  99. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-literals.d.ts +0 -194
  100. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-lookup.service.d.ts +0 -14
  101. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/index.d.ts +0 -1
  102. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-job-scheduler-parameters-template/index.d.ts +0 -1
  103. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-job-scheduler-parameters-template/po-job-scheduler-parameters-template.directive.d.ts +0 -73
  104. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-parameters/po-page-job-scheduler-parameters.component.d.ts +0 -15
  105. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/index.d.ts +0 -1
  106. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-job-scheduler-summary-template/index.d.ts +0 -1
  107. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-job-scheduler-summary-template/po-job-scheduler-summary-template.directive.d.ts +0 -34
  108. package/lib/components/po-page-job-scheduler/po-page-job-scheduler-summary/po-page-job-scheduler-summary.component.d.ts +0 -36
  109. package/lib/components/po-page-job-scheduler/po-page-job-scheduler.component.d.ts +0 -136
  110. package/lib/components/po-page-job-scheduler/po-page-job-scheduler.module.d.ts +0 -15
  111. package/lib/components/po-page-job-scheduler/po-page-job-scheduler.service.d.ts +0 -31
  112. package/lib/components/po-page-login/enums/po-page-login-authentication-type.enum.d.ts +0 -13
  113. package/lib/components/po-page-login/index.d.ts +0 -7
  114. package/lib/components/po-page-login/interfaces/po-page-login-custom-field.interface.d.ts +0 -72
  115. package/lib/components/po-page-login/interfaces/po-page-login-literals.interface.d.ts +0 -59
  116. package/lib/components/po-page-login/interfaces/po-page-login-recovery.interface.d.ts +0 -30
  117. package/lib/components/po-page-login/interfaces/po-page-login.interface.d.ts +0 -15
  118. package/lib/components/po-page-login/po-page-login-base.component.d.ts +0 -724
  119. package/lib/components/po-page-login/po-page-login-popover/po-page-login-popover.component.d.ts +0 -19
  120. package/lib/components/po-page-login/po-page-login.component.d.ts +0 -68
  121. package/lib/components/po-page-login/po-page-login.module.d.ts +0 -18
  122. package/lib/components/po-page-login/po-page-login.service.d.ts +0 -12
  123. package/lib/index.d.ts +0 -3
  124. package/lib/po-templates.module.d.ts +0 -8
  125. package/lib/services/index.d.ts +0 -3
  126. package/lib/services/po-page-customization/index.d.ts +0 -3
  127. package/lib/services/po-page-customization/po-page-customization.module.d.ts +0 -12
  128. package/lib/services/po-page-customization/po-page-customization.service.d.ts +0 -17
  129. package/lib/services/po-page-customization/po-page-dynamic-options.interface.d.ts +0 -8
  130. package/lib/services/po-page-dynamic/index.d.ts +0 -2
  131. package/lib/services/po-page-dynamic/po-page-dynamic-literals.interface.d.ts +0 -4
  132. package/lib/services/po-page-dynamic/po-page-dynamic.module.d.ts +0 -12
  133. package/lib/services/po-page-dynamic/po-page-dynamic.service.d.ts +0 -30
  134. package/lib/services/services.module.d.ts +0 -8
  135. package/lib/utils/util.d.ts +0 -242
  136. package/po-ui-ng-templates-19.25.0.tgz +0 -0
  137. package/public-api.d.ts +0 -1
@@ -1,602 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { PoPageAction, PoTableAction, PoTableColumnSort } from '@po-ui/ng-components';
3
- import { PoPageDynamicSearchLiterals } from '../po-page-dynamic-search/interfaces/po-page-dynamic-search-literals.interface';
4
- import { PoPageDynamicTableActions } from './interfaces/po-page-dynamic-table-actions.interface';
5
- import { PoPageDynamicTableCustomAction } from './interfaces/po-page-dynamic-table-custom-action.interface';
6
- import { PoPageDynamicTableCustomTableAction } from './interfaces/po-page-dynamic-table-custom-table-action.interface';
7
- import { PoPageDynamicTableOptions } from './interfaces/po-page-dynamic-table-options.interface';
8
- import { PoPageDynamicListBaseComponent } from './po-page-dynamic-list-base.component';
9
- import * as i0 from "@angular/core";
10
- /**
11
- * @docsExtends PoPageDynamicListBaseComponent
12
- *
13
- * @description
14
- *
15
- * O `po-page-dynamic-table` é uma página que exibe uma lista de registros em uma tabela baseado em uma lista de fields,
16
- * o mesmo também suporta metadados conforme especificado na documentação.
17
- *
18
- * ### Utilização via rota
19
- *
20
- * Ao utilizar as rotas para inicializar o template, o `page-dynamic-table` disponibiliza propriedades que devem ser fornecidas no arquivo de configuração de rotas da aplicação, para
21
- * poder especificar o endpoint dos dados e dos metadados que serão carregados na inicialização.
22
- *
23
- * Exemplo de utilização:
24
- *
25
- * Arquivo de configuração de rotas da aplicação: `app-routing.module.ts`
26
- * ```
27
- * const routes: Routes = [
28
- * {
29
- * path: 'people',
30
- * component: PoPageDynamicTableComponent,
31
- * data: {
32
- * serviceApi: 'http://localhost:3000/v1/people', // endpoint dos dados
33
- * serviceMetadataApi: 'http://localhost:3000/v1/metadata', // endpoint dos metadados utilizando o método HTTP Get
34
- * serviceLoadApi: 'http://localhost:3000/load-metadata' // endpoint de customizações dos metadados utilizando o método HTTP Post
35
- * }
36
- * },
37
- * {
38
- * path: 'home',
39
- * component: HomeExampleComponent
40
- * }
41
- * ];
42
- *
43
- * ```
44
- * O componente primeiro irá carregar o metadado da rota definida na propriedade serviceMetadataApi
45
- * e depois irá buscar da rota definida na propriedade serviceLoadApi.
46
- *
47
- * A requisição dos metadados é feita na inicialização do template para buscar os metadados da página passando o
48
- * tipo do metadado esperado e a versão cacheada pelo browser.
49
- *
50
- * > Caso o servidor retornar um erro ao recuperar os metadados, serão repassados os metadados salvos em cache,
51
- * se o cache não existir será disparada uma notificação.
52
- *
53
- * O formato esperado na resposta da requisição está especificado na interface
54
- * [PoPageDynamicTableMetadata](/documentation/po-page-dynamic-table#po-page-dynamic-table-metadata). Por exemplo:
55
- *
56
- * ```
57
- * {
58
- * version: 1,
59
- * title: 'Person Table',
60
- * fields: [
61
- * { property: 'id', key: true, disabled: true },
62
- * { property: 'status' },
63
- * { property: 'name' },
64
- * { property: 'nickname' },
65
- * { property: 'birthdate', label: 'Birth date' },
66
- * { property: 'genre' },
67
- * { property: 'city' },
68
- * { property: 'country' }
69
- * ],
70
- * keepFilters: true
71
- * }
72
- * ```
73
- *
74
- * > Caso o endpoint dos metadados não seja especificado, será feito uma requisição utilizando o `serviceApi` da seguinte forma:
75
- * ```
76
- * GET {end-point}/metadata?type=list&version={version}
77
- * ```
78
- *
79
- * @example
80
- *
81
- * <example name="po-page-dynamic-table-basic" title="PO Page Dynamic Table Basic">
82
- * <file name="sample-po-page-dynamic-table-basic/sample-po-page-dynamic-table-basic.component.html"> </file>
83
- * <file name="sample-po-page-dynamic-table-basic/sample-po-page-dynamic-table-basic.component.ts"> </file>
84
- * </example>
85
- *
86
- * <example name="po-page-dynamic-table-people" title="PO Page Dynamic Table - People">
87
- * <file name="sample-po-page-dynamic-table-people/sample-po-page-dynamic-table-people.component.html"> </file>
88
- * <file name="sample-po-page-dynamic-table-people/sample-po-page-dynamic-table-people.component.ts"> </file>
89
- * </example>
90
- *
91
- * <example name="po-page-dynamic-table-users" title="PO Page Dynamic Table - Users">
92
- * <file name="sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.component.html"> </file>
93
- * <file name="sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.component.ts"> </file>
94
- * <file name="sample-po-page-dynamic-table-users/sample-po-page-dynamic-table-users.service.ts"> </file>
95
- * </example>
96
- *
97
- * <example name="po-page-dynamic-table-hotels" title="PO Page Dynamic Table - Hotels">
98
- * <file name="sample-po-page-dynamic-table-hotels/sample-po-page-dynamic-table-hotels.component.html"> </file>
99
- * <file name="sample-po-page-dynamic-table-hotels/sample-po-page-dynamic-table-hotels.component.ts"> </file>
100
- * </example>
101
- *
102
- * <example name="po-page-dynamic-table-drag-and-drop" title="PO Page Dynamic Table - Drag and Drop">
103
- * <file name="sample-po-page-dynamic-table-drag-and-drop/sample-po-page-dynamic-table-drag-and-drop.component.html"> </file>
104
- * <file name="sample-po-page-dynamic-table-drag-and-drop/sample-po-page-dynamic-table-drag-and-drop.component.ts"> </file>
105
- * </example>
106
- */
107
- export declare class PoPageDynamicTableComponent extends PoPageDynamicListBaseComponent implements OnInit, OnDestroy {
108
- private router;
109
- private activatedRoute;
110
- private poDialogService;
111
- private poNotification;
112
- private poPageDynamicService;
113
- private poPageCustomizationService;
114
- private poPageDynamicTableActionsService;
115
- /**
116
- * Função ou serviço que será executado na inicialização do componente.
117
- *
118
- * A propriedade aceita os seguintes tipos:
119
- * - `string`: *Endpoint* usado pelo componente para requisição via `POST`.
120
- * - `function`: Método que será executado.
121
- *
122
- * O retorno desta função deve ser do tipo `PoPageDynamicTableOptions`,
123
- * onde o usuário poderá customizar novos campos, breadcrumb, title e actions
124
- *
125
- * Por exemplo:
126
- *
127
- * ```
128
- * getPageOptions(): PoPageDynamicTableOptions {
129
- * return {
130
- * actions:
131
- * { new: 'new', edit: 'edit/:id', remove: true },
132
- * fields: [
133
- * { property: 'idCard', gridColumns: 6 }
134
- * ]
135
- * };
136
- * }
137
- *
138
- * ```
139
- * Para referenciar a sua função utilize a propriedade `bind`, por exemplo:
140
- * ```
141
- * [p-load]="onLoadOptions.bind(this)"
142
- * ```
143
- */
144
- onLoad: string | (() => PoPageDynamicTableOptions);
145
- /**
146
- * @optional
147
- *
148
- * @description
149
- *
150
- * Mantém na modal de `Busca Avançada` os valores preenchidos do último filtro realizado pelo usuário.
151
- *
152
- * @default `false`
153
- */
154
- keepFilters: boolean;
155
- /**
156
- * @optional
157
- *
158
- * @description
159
- *
160
- * Define que a coluna de ações ficará no lado direito da tabela.
161
- *
162
- * @default `false`
163
- */
164
- actionRight: boolean;
165
- /**
166
- * @optional
167
- *
168
- * @description
169
- *
170
- * Permite a utilização da pesquisa rápida junto com a pesquisa avançada.
171
- *
172
- * Desta forma, ao ter uma pesquisa avançada estabelecida e ser
173
- * preenchido a pesquisa rápida, o filtro será concatenado adicionando a pesquisa
174
- * rápida também na lista de `disclaimers` a aplicando uma nova busca com a concatenação.
175
- *
176
- * Por exemplo, com os seguintes filtros aplicados:
177
- * - filtro avançado: `{ name: 'Mike', age: '12' }`
178
- * - filtro rápido: `{ search: 'paper' }`
179
- *
180
- * A requisição dos dados na API ficará com os parâmetros:
181
- * ```
182
- * page=1&pageSize=10&name=Mike&age=12&search=paper
183
- * ```
184
- *
185
- * @default `false`
186
- */
187
- concatFilters: boolean;
188
- /**
189
- * @optional
190
- *
191
- * @description
192
- *
193
- * Permite que o gerenciador de colunas, responsável pela definição de quais colunas serão exibidas, seja escondido.
194
- *
195
- * @default `false`
196
- */
197
- hideColumnsManager: boolean;
198
- /**
199
- * @optional
200
- *
201
- * @description
202
- *
203
- * Oculta o botão para remover todos os *disclaimers* do grupo.
204
- *
205
- * > Por padrão, o mesmo é exibido à partir de dois ou mais *disclaimers* com a opção `hideClose` habilitada.
206
- *
207
- * @default `false`
208
- */
209
- hideRemoveAllDisclaimer: boolean;
210
- /**
211
- * @optional
212
- *
213
- * @description
214
- *
215
- * Se verdadeiro, ativa a funcionalidade de scroll infinito para a tabela e o botão "Carregar Mais" deixará de ser exibido. Ao chegar no fim da tabela
216
- * executará a função `p-show-more`.
217
- *
218
- * **Regras de utilização:**
219
- * - O scroll infinito só funciona para tabelas que utilizam a propriedade `p-height` e que possuem o scroll já na carga inicial dos dados.
220
- *
221
- * @default `false`
222
- */
223
- infiniteScroll: boolean;
224
- hasNext: boolean;
225
- items: any[];
226
- literals: any;
227
- pageActions: Array<PoPageAction>;
228
- tableActions: Array<PoTableAction>;
229
- private _actions;
230
- private _pageCustomActions;
231
- private _height;
232
- private _oldQuickSearchParam;
233
- private _quickSearchParam;
234
- private _quickSearchValue;
235
- private _quickSearchWidth;
236
- private _tableCustomActions;
237
- private page;
238
- private currentPage;
239
- private itemSelectedAction;
240
- private params;
241
- private sortedColumn;
242
- private subscriptions;
243
- private hasCustomActionWithSelectable;
244
- private _componentsSize?;
245
- private _customPageListActions;
246
- private _customTableActions;
247
- private _defaultPageActions;
248
- private _defaultTableActions;
249
- private _hideCloseDisclaimers;
250
- private _draggable;
251
- private _virtualScroll?;
252
- private set defaultPageActions(value);
253
- private set defaultTableActions(value);
254
- private set customPageListActions(value);
255
- private set customTableActions(value);
256
- /**
257
- * @optional
258
- *
259
- * @description
260
- *
261
- * Ações da página e da tabela.
262
- * > Caso utilizar a ação padrão de excluir, a mesma será exibida por último na tabela.
263
- */
264
- set actions(value: PoPageDynamicTableActions);
265
- get actions(): PoPageDynamicTableActions;
266
- /**
267
- * @optional
268
- *
269
- * @description
270
- *
271
- * Define o tamanho dos componentes de formulário no template:
272
- * - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
273
- * - `medium`: aplica a medida medium de cada componente.
274
- *
275
- * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
276
- * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
277
- *
278
- * @default `medium`
279
- */
280
- set componentsSize(value: string);
281
- get componentsSize(): string;
282
- /**
283
- * @optional
284
- *
285
- * @description
286
- *
287
- * Lista de ações customizadas da página que serão incorporadas às ações
288
- * informadas através da propriedade `p-actions`.
289
- *
290
- * Essas ações ficam localizadas na parte superior da página em botões com ações.
291
- *
292
- * Exemplo de utilização:
293
- * ```
294
- * [
295
- * { label: 'Export', action: this.export.bind(this) },
296
- * { label: 'Print', action: this.print.bind(this) }
297
- * ];
298
- * ```
299
- */
300
- set pageCustomActions(value: Array<PoPageDynamicTableCustomAction>);
301
- get pageCustomActions(): Array<PoPageDynamicTableCustomAction>;
302
- /**
303
- * @optional
304
- *
305
- * @description
306
- *
307
- * Lista de ações customizadas na tabela da página que serão incorporadas às ações
308
- * informadas através da propriedade `p-actions`.
309
- *
310
- * Exemplo de utilização:
311
- * ```
312
- * [
313
- * { label: 'Apply discount', action: this.applyDiscount.bind(this) },
314
- * { label: 'Details', action: this.details.bind(this) }
315
- * ];
316
- * ```
317
- * > Caso utilizar a ação padrão de excluir, a mesma será exibida por último na tabela.
318
- */
319
- set tableCustomActions(value: Array<PoPageDynamicTableCustomTableAction>);
320
- get tableCustomActions(): Array<PoPageDynamicTableCustomTableAction>;
321
- /**
322
- * @optional
323
- *
324
- * @description
325
- *
326
- * Largura do campo de busca, utilizando o *Grid System*,
327
- * e limitado ao máximo de 6 colunas. O tamanho mínimo é controlado
328
- * conforme resolução de tela para manter a consistência do layout.
329
- */
330
- set quickSearchWidth(value: number);
331
- get quickSearchWidth(): number;
332
- /**
333
- * @optional
334
- *
335
- * @description
336
- *
337
- * Define a altura da tabela em *pixels* e fixa o cabeçalho.
338
- */
339
- set height(value: number);
340
- get height(): number;
341
- /**
342
- * @optional
343
- *
344
- * @description
345
- *
346
- * Lista de filtros que terão a opção de fechar ocultada
347
- * em seu respectivo disclaimer. Utilizar o atributo `property` do campo.
348
- *
349
- * Exemplo de utilização:
350
- * ```
351
- * ['city','name'];
352
- * ```
353
- */
354
- set hideCloseDisclaimers(value: Array<string>);
355
- get hideCloseDisclaimers(): Array<string>;
356
- /**
357
- * @optional
358
- *
359
- * @description
360
- *
361
- * Identificador do parâmetro enviado ao serviço ao realizar uma busca rápida.
362
- *
363
- * @default 'search'
364
- */
365
- set quickSearchParam(value: string);
366
- get quickSearchParam(): string;
367
- /**
368
- * @optional
369
- *
370
- * @description
371
- *
372
- * Valor padrão na busca rápida ao inicializar o componente
373
- *
374
- */
375
- set quickSearchValue(value: string);
376
- get quickSearchValue(): string;
377
- /**
378
- * @optional
379
- *
380
- * @description
381
- *
382
- * Objeto com as literais usadas no `po-page-dynamic-table`.
383
- *
384
- * Existem duas maneiras de customizar o componente, passando um objeto com todas as literais disponíveis:
385
- *
386
- * ```
387
- * const customLiterals: PoPageDynamicSearchLiterals = {
388
- * disclaimerGroupTitle: 'Filtros aplicados:',
389
- * filterTitle: 'Filtro avançado',
390
- * filterCancelLabel: 'Fechar',
391
- * filterConfirmLabel: 'Aplicar',
392
- * quickSearchLabel: 'Valor pesquisado:',
393
- * searchPlaceholder: 'Pesquise aqui'
394
- * };
395
- * ```
396
- *
397
- * Ou passando apenas as literais que deseja customizar:
398
- *
399
- * ```
400
- * const customLiterals: PoPageDynamicSearchLiterals = {
401
- * filterTitle: 'Filtro avançado'
402
- * };
403
- * ```
404
- *
405
- * E para carregar as literais customizadas, basta apenas passar o objeto para o componente.
406
- *
407
- * ```
408
- * <po-page-dynamic-table
409
- * [p-literals]="customLiterals">
410
- * </po-page-dynamic-table>
411
- * ```
412
- *
413
- * > O valor padrão será traduzido de acordo com o idioma configurado no [`PoI18nService`](/documentation/po-i18n) ou *browser*.
414
- */
415
- searchLiterals: PoPageDynamicSearchLiterals;
416
- /**
417
- * @optional
418
- *
419
- * @description
420
- *
421
- * Define o espaçamento interno das células, impactando diretamente na altura das linhas do table. Os valores
422
- * permitidos são definidos pelo enum **PoTableColumnSpacing**.
423
- *
424
- * > Em nível de acessibilidade **AA**, caso o valor de `p-spacing` não seja definido, o valor padrão será
425
- * > `extraSmall` nos seguintes cenários:
426
- * > - Quando o valor de `p-components-size` for `small`;
427
- * > - Quando o valor padrão dos componentes for configurado como `small` no
428
- * > [serviço de tema](https://po-ui.io/documentation/po-theme).
429
- *
430
- * @default `medium`
431
- */
432
- spacing: string;
433
- /**
434
- * @optional
435
- *
436
- * @description
437
- *
438
- * Habilita ou desabilita a quebra automática de texto. Quando ativada, o texto que excede
439
- * o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
440
- * leitura clara.
441
- *
442
- * > Incompatível com `virtual-scroll`, que requer altura fixa nas linhas.
443
- *
444
- * @default `false`
445
- */
446
- textWrap?: boolean;
447
- /**
448
- * @optional
449
- *
450
- * @description
451
- *
452
- * Habilita o modo drag and drop para as colunas da tabela.
453
- *
454
- */
455
- set draggable(value: boolean);
456
- get draggable(): boolean;
457
- /**
458
- * @optional
459
- *
460
- * @description
461
- *
462
- * Habilita o `virtual-scroll` na tabela para melhorar a performance com grandes volumes de dados.
463
- * Requer altura (`p-height`) para funcionar corretamente.
464
- *
465
- * > Incompatível com `p-text-wrap` e `master-detail`, pois o `virtual-scroll` exige altura fixa nas linhas.
466
- *
467
- * @default `true`
468
- */
469
- set virtualScroll(value: boolean);
470
- get virtualScroll(): boolean;
471
- /**
472
- * @optional
473
- *
474
- * @description
475
- *
476
- * Controla a visibilidade dos filtros fixos na página.
477
- *
478
- * - Quando `true` (default), todos os filtros, incluindo os fixos, são exibidos, permitindo que o usuário visualize os filtros aplicados.
479
- * - Quando `false`, os filtros fixos são ocultados, não sendo exibidos na interface, mas ainda sendo aplicados como filtros nas requisições.
480
- *
481
- * Esta propriedade trabalha em conjunto com a propriedade `fixed` dos filtros individuais. Filtros marcados como `fixed: true` não serão exibidos na interface do filtro avançado quando `visibleFixedFilters` for `false`, mas continuarão a ser aplicados de forma transparente ao usuário. Dessa forma, permite-se maior flexibilidade no controle de quais filtros devem ser visíveis ao usuário ou devem ser aplicados permanentemente sem interferência.
482
- *
483
- * **Exemplo de uso:**
484
- * ```html
485
- * <!-- Para ocultar os filtros fixos -->
486
- * <po-page-dynamic-table [p-visible-fixed-filters]="false"></po-page-dynamic-table>
487
- * ```
488
- */
489
- visibleFixedFilters: boolean;
490
- constructor();
491
- ngOnInit(): void;
492
- ngOnDestroy(): void;
493
- onAdvancedSearch(filter: any): void;
494
- onChangeDisclaimers(disclaimers: any): void;
495
- onQuickSearch(termTypedInQuickSearch: any): void;
496
- onSort(sortedColumn: PoTableColumnSort): void;
497
- onChangeVisibleColumns(value: any): void;
498
- onColumnRestoreManager(value: Array<string>): void;
499
- onSortBy(sortedColumn: PoTableColumnSort): void;
500
- showMore(): void;
501
- get enableSelectionTable(): boolean;
502
- get hasActionRemoveAll(): boolean;
503
- /**
504
- * Função que realiza a atualização dos dados da tabela.
505
- *
506
- * Para utilizá-la é necessário capturar a instância do `page dynamic table`, como por exemplo:
507
- *
508
- * ``` html
509
- * <po-page-dynamic-table #dynamicTable [p-service-api]="serviceApi"></po-page-dynamic-table>
510
- * ```
511
- *
512
- * ``` javascript
513
- * import { PoPageDynamicTableComponent, PoDynamicFormField } from '@po-ui/ng-components';
514
- *
515
- * ...
516
- *
517
- * @ViewChild('dynamicTable', { static: true }) dynamicTable: PoPageDynamicTableComponent;
518
- *
519
- * pageCustomActions: Array<PoPageDynamicTableCustomAction> = [
520
- * {
521
- * label: 'Update',
522
- * action: this.updateTable.bind(this),
523
- * icon: 'an-arrows-clockwise'
524
- * }]
525
- *
526
- * updateTable() {
527
- * this.dynamicTable.updateDataTable();
528
- * }
529
- * ```
530
- *
531
- *
532
- * @param {{page: number, key: value }} filter Propriedade para envio de um filtro customizado.
533
- * Exemplo de envio:
534
- *
535
- *```
536
- * this.dynamicTable.updateDataTable({page: 3, search: 'Brasil'});
537
- * ```
538
- * Caso não seja passado um filtro customizado para o método `updateDataTable` a tabela será atualizada conforme a página do ultimo item modificado.
539
- */
540
- updateDataTable(filter?: any): void;
541
- private confirmRemove;
542
- private confirmRemoveAll;
543
- private formatUniqueKey;
544
- private getOrderParam;
545
- private loadData;
546
- private getMetadata;
547
- private navigateTo;
548
- private createConcatenatedUrl;
549
- private openDetail;
550
- private executeDetail;
551
- private getPathFromNewUrl;
552
- private openDuplicate;
553
- private executeDuplicate;
554
- private openEdit;
555
- private executeEditAction;
556
- private openEditUrl;
557
- private modifyUITableItem;
558
- private openNew;
559
- private executeNew;
560
- /**
561
- * Caso exista mais de um identificador, será concatenado com '|'.
562
- *
563
- * Ex: { id: 1, company: 'po' }
564
- *
565
- * Para o endpoint /resources/:id será executada a url /resources/1|po
566
- */
567
- private remove;
568
- private deleteAction;
569
- private removeFromUI;
570
- private removeAll;
571
- private getSelectedItemsKeys;
572
- private returnResourcesKeys;
573
- private deleteAllAction;
574
- private removeLocalItems;
575
- private resolveUrl;
576
- private setPageActions;
577
- private transformCustomActionsToPageListAction;
578
- private transformTableCustomActionsToTableActions;
579
- private isDisablePageCustomAction;
580
- private callPageCustomAction;
581
- private callTableCustomAction;
582
- private setRemoveAllAction;
583
- private disableRemoveAll;
584
- private setTableActions;
585
- private loadDataFromAPI;
586
- private getInitialValuesFromFilter;
587
- private loadOptionsOnInitialize;
588
- private getPoDynamicPageOptions;
589
- private showRemove;
590
- private updateFilterValue;
591
- private updatePageActions;
592
- private updateTableActions;
593
- static ɵfac: i0.ɵɵFactoryDeclaration<PoPageDynamicTableComponent, never>;
594
- static ɵcmp: i0.ɵɵComponentDeclaration<PoPageDynamicTableComponent, "po-page-dynamic-table", never, { "onLoad": { "alias": "p-load"; "required": false; }; "keepFilters": { "alias": "p-keep-filters"; "required": false; }; "actionRight": { "alias": "p-actions-right"; "required": false; }; "concatFilters": { "alias": "p-concat-filters"; "required": false; }; "hideColumnsManager": { "alias": "p-hide-columns-manager"; "required": false; }; "hideRemoveAllDisclaimer": { "alias": "p-hide-remove-all-disclaimer"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "pageCustomActions": { "alias": "p-page-custom-actions"; "required": false; }; "tableCustomActions": { "alias": "p-table-custom-actions"; "required": false; }; "quickSearchWidth": { "alias": "p-quick-search-width"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "hideCloseDisclaimers": { "alias": "p-hide-close-disclaimers"; "required": false; }; "quickSearchParam": { "alias": "p-quick-search-param"; "required": false; }; "quickSearchValue": { "alias": "p-quick-search-value"; "required": false; }; "searchLiterals": { "alias": "p-literals"; "required": false; }; "spacing": { "alias": "p-spacing"; "required": false; }; "textWrap": { "alias": "p-text-wrap"; "required": false; }; "draggable": { "alias": "p-draggable"; "required": false; }; "virtualScroll": { "alias": "p-virtual-scroll"; "required": false; }; "visibleFixedFilters": { "alias": "p-visible-fixed-filters"; "required": false; }; }, {}, never, never, false, never>;
595
- static ngAcceptInputType_keepFilters: any;
596
- static ngAcceptInputType_actionRight: any;
597
- static ngAcceptInputType_concatFilters: any;
598
- static ngAcceptInputType_hideColumnsManager: any;
599
- static ngAcceptInputType_hideRemoveAllDisclaimer: any;
600
- static ngAcceptInputType_infiniteScroll: any;
601
- static ngAcceptInputType_textWrap: any;
602
- }
@@ -1,19 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./po-page-dynamic-table.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@angular/router";
6
- import * as i5 from "@po-ui/ng-components";
7
- import * as i6 from "../po-page-dynamic-search/po-page-dynamic-search.module";
8
- import * as i7 from "../../services/po-page-customization/po-page-customization.module";
9
- import * as i8 from "../../services/po-page-dynamic/po-page-dynamic.module";
10
- /**
11
- * @description
12
- *
13
- * Módulo do template do po-page-dynamic-table.
14
- */
15
- export declare class PoPageDynamicTableModule {
16
- static ɵfac: i0.ɵɵFactoryDeclaration<PoPageDynamicTableModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<PoPageDynamicTableModule, [typeof i1.PoPageDynamicTableComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof i5.PoTableModule, typeof i6.PoPageDynamicSearchModule, typeof i7.PoPageCustomizationModule, typeof i8.PoPageDynamicModule], [typeof i1.PoPageDynamicTableComponent]>;
18
- static ɵinj: i0.ɵɵInjectorDeclaration<PoPageDynamicTableModule>;
19
- }
@@ -1,5 +0,0 @@
1
- export * from './po-page-job-scheduler.component';
2
- export * from './po-page-job-scheduler.module';
3
- export * from './interfaces/po-job-scheduler.interface';
4
- export * from './po-page-job-scheduler-parameters';
5
- export * from './po-page-job-scheduler-summary';
@@ -1,15 +0,0 @@
1
- export interface PoJobSchedulerInternal {
2
- [property: string | number]: any;
3
- dayOfMonth?: number;
4
- frequency?: object;
5
- rangeLimitHour?: string;
6
- rangeLimitDay?: number;
7
- daysOfWeek?: Array<string>;
8
- executionParameter?: object;
9
- firstExecution: Date;
10
- firstExecutionHour: string;
11
- hour?: string;
12
- periodicity: string;
13
- processID?: string;
14
- recurrent: boolean;
15
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * @usedBy PoPageJobSchedulerComponent
3
- *
4
- * @description
5
- *
6
- * Estrutura do *payload* enviado nas requisições para salvar e/ou atualizar as tarefas do *Job Scheduler*.
7
- */
8
- export interface PoJobScheduler {
9
- /**
10
- * Define uma repetição diária.
11
- */
12
- daily?: {
13
- hour: number;
14
- minute: number;
15
- };
16
- /**
17
- * Objeto contendo os nomes das propriedades dos parâmetros e os valores preenchidos pelo usuário.
18
- */
19
- executionParameter?: object;
20
- /**
21
- * Data da primeira execução.
22
- */
23
- firstExecution?: string;
24
- /**
25
- * Define uma repetição mensal.
26
- */
27
- monthly?: {
28
- day: number;
29
- hour: number;
30
- minute: number;
31
- };
32
- /**
33
- * Identificador do processo.
34
- */
35
- processID: string;
36
- /**
37
- * Permite uma execução recorrente.
38
- */
39
- recurrent?: boolean;
40
- /**
41
- * Define uma repetição semanal.
42
- */
43
- weekly?: {
44
- daysOfWeek: Array<string>;
45
- hour: number;
46
- minute: number;
47
- };
48
- }