@po-ui/ng-components 21.8.0 → 21.10.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 +4883 -363
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-avatar/po-avatar.component.d.ts +1 -0
- package/lib/components/po-badge/po-badge-base.component.d.ts +15 -0
- package/lib/components/po-button/po-button-base.component.d.ts +10 -0
- package/lib/components/po-calendar/constants/po-calendar-range-presets.constant.d.ts +2 -0
- package/lib/components/po-calendar/index.d.ts +2 -0
- package/lib/components/po-calendar/interfaces/po-calendar-range-preset.interface.d.ts +16 -0
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +54 -0
- package/lib/components/po-calendar/po-calendar-footer/po-calendar-footer.component.d.ts +16 -0
- package/lib/components/po-calendar/po-calendar-preset-list/po-calendar-preset-list.component.d.ts +28 -0
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +9 -3
- package/lib/components/po-calendar/po-calendar.component.d.ts +28 -3
- package/lib/components/po-calendar/services/po-calendar.lang.service.d.ts +2 -0
- package/lib/components/po-container/po-container.component.d.ts +1 -0
- package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +58 -7
- package/lib/components/po-field/index.d.ts +3 -0
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +1 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +54 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +18 -0
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +1 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +1 -0
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +2 -1
- package/lib/components/po-field/po-timepicker/enums/po-timepicker-iso-format.enum.d.ts +13 -0
- package/lib/components/po-field/po-timepicker/index.d.ts +3 -0
- package/lib/components/po-field/po-timepicker/po-timepicker-base.component.d.ts +374 -0
- package/lib/components/po-field/po-timepicker/po-timepicker.component.d.ts +206 -0
- package/lib/components/po-field/po-timepicker/po-timepicker.literals.d.ts +46 -0
- package/lib/components/po-field/po-timepicker/po-timepicker.module.d.ts +7 -0
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.d.ts +2 -0
- package/lib/components/po-menu/po-menu.component.d.ts +2 -0
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +1 -0
- package/lib/components/po-popup/po-popup.component.d.ts +2 -0
- package/lib/components/po-progress/po-progress.component.d.ts +1 -0
- package/lib/components/po-search/po-search.component.d.ts +3 -1
- package/lib/components/po-stepper/po-stepper.component.d.ts +1 -0
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +14 -4
- package/lib/components/po-table/po-table-base.component.d.ts +22 -0
- package/lib/components/po-table/po-table-column-icon/po-table-column-icon.interface.d.ts +10 -0
- package/lib/components/po-table/po-table-column-label/po-table-column-label.interface.d.ts +21 -0
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +1 -0
- package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-column.interface.d.ts +10 -0
- package/lib/components/po-table/po-table.component.d.ts +1 -0
- package/lib/components/po-tag/po-tag-base.component.d.ts +20 -1
- package/lib/components/po-tag/po-tag.component.d.ts +7 -0
- package/lib/components/po-timer/enums/po-timer-format.enum.d.ts +13 -0
- package/lib/components/po-timer/index.d.ts +4 -0
- package/lib/components/po-timer/po-timer-base.component.d.ts +255 -0
- package/lib/components/po-timer/po-timer-scroll.helper.d.ts +40 -0
- package/lib/components/po-timer/po-timer.component.d.ts +208 -0
- package/lib/components/po-timer/po-timer.literals.d.ts +22 -0
- package/lib/components/po-timer/po-timer.module.d.ts +6 -0
- package/lib/components/po-widget/po-widget.component.d.ts +2 -0
- package/lib/enums/po-caption-tag-color.enum.d.ts +43 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.10.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 +1533 -29
- package/po-ui-ng-components-21.8.0.tgz +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { AfterViewInit, AfterViewChecked, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { PoTimerBaseComponent } from './po-timer-base.component';
|
|
3
|
+
/** Tipo dos eixos das colunas. */
|
|
4
|
+
type PoTimerColumnType = 'hour' | 'minute' | 'second' | 'period';
|
|
5
|
+
/**
|
|
6
|
+
* @docsPrivate
|
|
7
|
+
*
|
|
8
|
+
* @docsExtends PoTimerBaseComponent
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* <example name="po-timer-basic" title="PO Timer Basic">
|
|
13
|
+
* <file name="sample-po-timer-basic/sample-po-timer-basic.component.html"> </file>
|
|
14
|
+
* <file name="sample-po-timer-basic/sample-po-timer-basic.component.ts"> </file>
|
|
15
|
+
* </example>
|
|
16
|
+
*
|
|
17
|
+
* <example name="po-timer-labs" title="PO Timer Labs">
|
|
18
|
+
* <file name="sample-po-timer-labs/sample-po-timer-labs.component.html"> </file>
|
|
19
|
+
* <file name="sample-po-timer-labs/sample-po-timer-labs.component.ts"> </file>
|
|
20
|
+
* </example>
|
|
21
|
+
*
|
|
22
|
+
* <example name="po-timer-alarm" title="PO Timer - Alarm">
|
|
23
|
+
* <file name="sample-po-timer-alarm/sample-po-timer-alarm.component.html"> </file>
|
|
24
|
+
* <file name="sample-po-timer-alarm/sample-po-timer-alarm.component.ts"> </file>
|
|
25
|
+
* </example>
|
|
26
|
+
*
|
|
27
|
+
* <example name="po-timer-shift" title="PO Timer - Shift">
|
|
28
|
+
* <file name="sample-po-timer-shift/sample-po-timer-shift.component.html"> </file>
|
|
29
|
+
* <file name="sample-po-timer-shift/sample-po-timer-shift.component.ts"> </file>
|
|
30
|
+
* </example>
|
|
31
|
+
*/
|
|
32
|
+
export declare class PoTimerComponent extends PoTimerBaseComponent implements OnInit, OnChanges, AfterViewInit, AfterViewChecked, OnDestroy {
|
|
33
|
+
hourCells: QueryList<ElementRef>;
|
|
34
|
+
minuteCells: QueryList<ElementRef>;
|
|
35
|
+
secondCells: QueryList<ElementRef>;
|
|
36
|
+
periodCells: QueryList<ElementRef>;
|
|
37
|
+
hourItemsRefs: QueryList<ElementRef<HTMLElement>>;
|
|
38
|
+
minuteItemsRefs: QueryList<ElementRef<HTMLElement>>;
|
|
39
|
+
secondItemsRefs: QueryList<ElementRef<HTMLElement>>;
|
|
40
|
+
displayHours: Array<number>;
|
|
41
|
+
displayMinutes: Array<number>;
|
|
42
|
+
displaySeconds: Array<number>;
|
|
43
|
+
boundaryTab: EventEmitter<{
|
|
44
|
+
direction: "forward" | "backward";
|
|
45
|
+
event: KeyboardEvent;
|
|
46
|
+
column: PoTimerColumnType;
|
|
47
|
+
}>;
|
|
48
|
+
private readonly changeDetector;
|
|
49
|
+
private readonly ngZone;
|
|
50
|
+
private readonly domDocument;
|
|
51
|
+
private hasViewInitialized;
|
|
52
|
+
private currentRenderedSize;
|
|
53
|
+
/** ID do requestAnimationFrame pendente para throttle do wheel. */
|
|
54
|
+
private wheelRafId;
|
|
55
|
+
/**
|
|
56
|
+
* Offset atual (em px) de cada coluna, mantido em JS.
|
|
57
|
+
* O container de itens e posicionado via translateY(-offset).
|
|
58
|
+
* O offset e mantido sempre no intervalo [sectionHeight, 2*sectionHeight)
|
|
59
|
+
* para que o salto de reposicionamento seja sempre invisivel (as secoes
|
|
60
|
+
* sao identicas por serem copias do mesmo array fonte).
|
|
61
|
+
*/
|
|
62
|
+
private columnOffsets;
|
|
63
|
+
/**
|
|
64
|
+
* Indice no displayArray do item focado em cada coluna.
|
|
65
|
+
* Usado para redirecionar o foco ao botao correto ao entrar na coluna via Tab.
|
|
66
|
+
*/
|
|
67
|
+
private focusedDisplayIndex;
|
|
68
|
+
activeDescendantIds: Record<PoTimerColumnType, string>;
|
|
69
|
+
disabledMinuteCache: Set<number>;
|
|
70
|
+
disabledSecondCache: Set<number>;
|
|
71
|
+
constructor();
|
|
72
|
+
ngOnInit(): void;
|
|
73
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
74
|
+
ngAfterViewInit(): void;
|
|
75
|
+
ngAfterViewChecked(): void;
|
|
76
|
+
ngOnDestroy(): void;
|
|
77
|
+
onSelectHour(hour: number): void;
|
|
78
|
+
onSelectMinute(minute: number): void;
|
|
79
|
+
onSelectSecond(second: number): void;
|
|
80
|
+
onSelectPeriod(newPeriod: string): void;
|
|
81
|
+
onCellFocus(type: PoTimerColumnType, displayIndex: number): void;
|
|
82
|
+
getCellTabIndex(type: PoTimerColumnType, displayIndex: number): number;
|
|
83
|
+
onCellKeydown(event: KeyboardEvent, type: PoTimerColumnType): void;
|
|
84
|
+
onPeriodKeydown(event: KeyboardEvent): void;
|
|
85
|
+
onColumnWheel(event: WheelEvent, type: PoTimerColumnType): void;
|
|
86
|
+
writeValue(time: string): void;
|
|
87
|
+
trackByIndex(index: number, _item: number): number;
|
|
88
|
+
focusFirstVisibleCell(): void;
|
|
89
|
+
focusLastVisibleCell(): void;
|
|
90
|
+
initAllColumnOffsets(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Posiciona o container de itens na secao do meio do array repetido,
|
|
93
|
+
* alinhando o item selecionado ao topo da janela visivel.
|
|
94
|
+
*
|
|
95
|
+
* Estrutura do array repetido (exemplo sourceLength = 24, repeats = 3):
|
|
96
|
+
* [secao 0: itens 0-23] [secao 1: itens 0-23] [secao 2: itens 0-23]
|
|
97
|
+
* ^--- usuario fica aqui (offset em [sH, 2*sH))
|
|
98
|
+
*
|
|
99
|
+
* Usar a secao do meio garante que qualquer deslize para cima ou para baixo
|
|
100
|
+
* tem espaco antes de precisar fazer o wrap.
|
|
101
|
+
*/
|
|
102
|
+
private initColumnOffset;
|
|
103
|
+
private getFirstAvailableIndexByType;
|
|
104
|
+
private getReferenceHourForConstraints;
|
|
105
|
+
private getReferenceMinuteForConstraints;
|
|
106
|
+
private isValueDisabledByType;
|
|
107
|
+
/**
|
|
108
|
+
* Desloca a coluna pelo numero de passos indicado e aplica o wrap modular.
|
|
109
|
+
*
|
|
110
|
+
* O wrap mantem o offset em [sectionHeight, 2*sectionHeight), aproveitando
|
|
111
|
+
* o fato de que as secoes sao identicas — o salto e impercetivel visualmente.
|
|
112
|
+
*/
|
|
113
|
+
private scrollColumnByStep;
|
|
114
|
+
private wrapOffset;
|
|
115
|
+
private getCellStep;
|
|
116
|
+
/**
|
|
117
|
+
* Foca o botao nativo (<button> interno ao po-button) no indice indicado
|
|
118
|
+
* do displayArray da coluna. O po-button tem tabindex=-1 para nao aparecer
|
|
119
|
+
* no fluxo natural do Tab, mas pode receber foco programatico.
|
|
120
|
+
*/
|
|
121
|
+
private focusButtonAt;
|
|
122
|
+
private focusActiveButton;
|
|
123
|
+
private computeTopDisplayIndex;
|
|
124
|
+
/**
|
|
125
|
+
* Foca a proxima coluna visivel do componente.
|
|
126
|
+
* Se a coluna atual for a ultima, nao cancela o evento e deixa o browser
|
|
127
|
+
* mover o foco para o proximo elemento focavel apos o componente.
|
|
128
|
+
*/
|
|
129
|
+
private focusNextColumn;
|
|
130
|
+
/**
|
|
131
|
+
* Foca a coluna anterior visivel do componente.
|
|
132
|
+
* Se a coluna atual for a primeira, nao cancela o evento e deixa o browser
|
|
133
|
+
* mover o foco para o elemento focavel antes do componente.
|
|
134
|
+
*/
|
|
135
|
+
private focusPreviousColumn;
|
|
136
|
+
/**
|
|
137
|
+
* Retorna, em ordem DOM, os elementos focaveis de todas as colunas visiveis.
|
|
138
|
+
* Inclui o div da coluna AM/PM (se visivel), cujos botoes internos recebem
|
|
139
|
+
* o foco diretamente pois nao usam o padrao de roving focus.
|
|
140
|
+
*/
|
|
141
|
+
private getVisibleColumnTypes;
|
|
142
|
+
private getCellsForType;
|
|
143
|
+
/** Atualiza aria-activedescendant para o indice focado no displayArray. */
|
|
144
|
+
private updateActiveDescendant;
|
|
145
|
+
/**
|
|
146
|
+
* Move o foco para o proximo item habilitado na direcao indicada.
|
|
147
|
+
* So aplica translate quando o item focado fica parcial ou totalmente fora da viewport.
|
|
148
|
+
*/
|
|
149
|
+
private moveFocusByStep;
|
|
150
|
+
private movePeriodFocusByStep;
|
|
151
|
+
private selectFocusedPeriod;
|
|
152
|
+
private getFocusableDisplayIndex;
|
|
153
|
+
/** Seleciona o item atualmente focado na coluna. */
|
|
154
|
+
private selectFocusedItem;
|
|
155
|
+
private shouldTranslateToRevealFocusedItem;
|
|
156
|
+
private getStepsToRevealFocusedItem;
|
|
157
|
+
private getColumnViewportHeight;
|
|
158
|
+
private getNextEnabledDisplayIndex;
|
|
159
|
+
private getForwardDistance;
|
|
160
|
+
private getNormalizedDisplayIndex;
|
|
161
|
+
private getDisplayIndexForSourceNearViewport;
|
|
162
|
+
private getItemsElement;
|
|
163
|
+
private normalizeFocusedIndex;
|
|
164
|
+
private getNormalizedFocusedIndex;
|
|
165
|
+
private getCurrentFocusedDisplayIndex;
|
|
166
|
+
private getDomFocusedDisplayIndex;
|
|
167
|
+
private isDisplayIndexDisabled;
|
|
168
|
+
private getSelectedValue;
|
|
169
|
+
private buildDisplayArrays;
|
|
170
|
+
/** Reconstroi os caches de minutos e segundos desabilitados. */
|
|
171
|
+
private rebuildDisabledCaches;
|
|
172
|
+
private getFirstAvailableMinuteForCurrentHour;
|
|
173
|
+
private getFirstAvailableSecondForCurrentHourAndMinute;
|
|
174
|
+
private realignColumnsToSelection;
|
|
175
|
+
private refreshRovingTabIndex;
|
|
176
|
+
private repeatArray;
|
|
177
|
+
private getSourceArray;
|
|
178
|
+
private getDisplayArray;
|
|
179
|
+
/**
|
|
180
|
+
* Propaga atributos ARIA (role, aria-selected, aria-setsize, aria-posinset)
|
|
181
|
+
* dos elementos host <po-button> para os elementos nativos <button> internos,
|
|
182
|
+
* garantindo que leitores de tela como NVDA recebam a semantica correta.
|
|
183
|
+
*
|
|
184
|
+
* Usa a secao fixa do meio [sourceLength, 2*sourceLength) como canonica.
|
|
185
|
+
* Quando o item focado esta fora dessa secao (na fronteira do infinity scroll),
|
|
186
|
+
* ele substitui o item equivalente na secao fixa para manter exatamente
|
|
187
|
+
* sourceLength itens com role="option".
|
|
188
|
+
*
|
|
189
|
+
* Duplicatas recebem aria-hidden="true" e role="none" no <button> nativo
|
|
190
|
+
* (nao apenas no host <po-button>), pois NVDA ignora aria-hidden em
|
|
191
|
+
* elementos customizados e conta <button> filhos de role="listbox".
|
|
192
|
+
*/
|
|
193
|
+
private syncAriaToNativeButtons;
|
|
194
|
+
/**
|
|
195
|
+
* Determina se um item do displayArray e canonico para fins de ARIA.
|
|
196
|
+
*
|
|
197
|
+
* - Sem infinity scroll: todos sao canonicos.
|
|
198
|
+
* - Com infinity scroll: a secao que contem o item focado e canonica.
|
|
199
|
+
*/
|
|
200
|
+
private isCanonicalDisplayItem;
|
|
201
|
+
/**
|
|
202
|
+
* Sincroniza os atributos ARIA de um unico par host/nativeButton.
|
|
203
|
+
* Chamado tanto por syncAriaToNativeButtons (batch) quanto por
|
|
204
|
+
* focusButtonAt (antes do .focus()) para evitar leitura duplicada.
|
|
205
|
+
*/
|
|
206
|
+
private syncSingleButtonAria;
|
|
207
|
+
}
|
|
208
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const poTimerLiterals: {
|
|
2
|
+
en: {
|
|
3
|
+
hours: string;
|
|
4
|
+
minutes: string;
|
|
5
|
+
seconds: string;
|
|
6
|
+
};
|
|
7
|
+
es: {
|
|
8
|
+
hours: string;
|
|
9
|
+
minutes: string;
|
|
10
|
+
seconds: string;
|
|
11
|
+
};
|
|
12
|
+
pt: {
|
|
13
|
+
hours: string;
|
|
14
|
+
minutes: string;
|
|
15
|
+
seconds: string;
|
|
16
|
+
};
|
|
17
|
+
ru: {
|
|
18
|
+
hours: string;
|
|
19
|
+
minutes: string;
|
|
20
|
+
seconds: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -16,11 +16,13 @@ import { PoWidgetBaseComponent } from './po-widget-base.component';
|
|
|
16
16
|
* <example name="po-widget-labs" title="PO Widget Labs">
|
|
17
17
|
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.html"> </file>
|
|
18
18
|
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.ts"> </file>
|
|
19
|
+
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.css"> </file>
|
|
19
20
|
* </example>
|
|
20
21
|
*
|
|
21
22
|
* <example name="po-widget-finance-dashboard" title="PO Widget - Finance dashboard">
|
|
22
23
|
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.html"> </file>
|
|
23
24
|
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts"> </file>
|
|
25
|
+
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.css"> </file>
|
|
24
26
|
* </example>
|
|
25
27
|
*
|
|
26
28
|
* <example name="po-widget-card" title="PO Widget - Card">
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum que define as 35 Caption Tag Colors disponíveis para uso nos componentes.
|
|
3
|
+
*
|
|
4
|
+
* Estas cores são organizadas em 7 famílias (tag-01 a tag-07), cada uma com 5 variantes
|
|
5
|
+
* (lighter, light, base, dark, darker), totalizando 35 cores.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum PoCaptionTagColorEnum {
|
|
8
|
+
CaptionTag01 = "caption-tag-01",
|
|
9
|
+
CaptionTag02 = "caption-tag-02",
|
|
10
|
+
CaptionTag03 = "caption-tag-03",
|
|
11
|
+
CaptionTag04 = "caption-tag-04",
|
|
12
|
+
CaptionTag05 = "caption-tag-05",
|
|
13
|
+
CaptionTag06 = "caption-tag-06",
|
|
14
|
+
CaptionTag07 = "caption-tag-07",
|
|
15
|
+
CaptionTag08 = "caption-tag-08",
|
|
16
|
+
CaptionTag09 = "caption-tag-09",
|
|
17
|
+
CaptionTag10 = "caption-tag-10",
|
|
18
|
+
CaptionTag11 = "caption-tag-11",
|
|
19
|
+
CaptionTag12 = "caption-tag-12",
|
|
20
|
+
CaptionTag13 = "caption-tag-13",
|
|
21
|
+
CaptionTag14 = "caption-tag-14",
|
|
22
|
+
CaptionTag15 = "caption-tag-15",
|
|
23
|
+
CaptionTag16 = "caption-tag-16",
|
|
24
|
+
CaptionTag17 = "caption-tag-17",
|
|
25
|
+
CaptionTag18 = "caption-tag-18",
|
|
26
|
+
CaptionTag19 = "caption-tag-19",
|
|
27
|
+
CaptionTag20 = "caption-tag-20",
|
|
28
|
+
CaptionTag21 = "caption-tag-21",
|
|
29
|
+
CaptionTag22 = "caption-tag-22",
|
|
30
|
+
CaptionTag23 = "caption-tag-23",
|
|
31
|
+
CaptionTag24 = "caption-tag-24",
|
|
32
|
+
CaptionTag25 = "caption-tag-25",
|
|
33
|
+
CaptionTag26 = "caption-tag-26",
|
|
34
|
+
CaptionTag27 = "caption-tag-27",
|
|
35
|
+
CaptionTag28 = "caption-tag-28",
|
|
36
|
+
CaptionTag29 = "caption-tag-29",
|
|
37
|
+
CaptionTag30 = "caption-tag-30",
|
|
38
|
+
CaptionTag31 = "caption-tag-31",
|
|
39
|
+
CaptionTag32 = "caption-tag-32",
|
|
40
|
+
CaptionTag33 = "caption-tag-33",
|
|
41
|
+
CaptionTag34 = "caption-tag-34",
|
|
42
|
+
CaptionTag35 = "caption-tag-35"
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.10.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.0.3",
|
|
25
|
-
"@po-ui/style": "21.
|
|
26
|
-
"@po-ui/ng-schematics": "21.
|
|
25
|
+
"@po-ui/style": "21.10.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.10.0",
|
|
27
27
|
"echarts": "^5.6.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/platform-browser-dynamic": "^21",
|
|
39
39
|
"@angular/router": "^21",
|
|
40
40
|
"@angular-devkit/schematics": "^21",
|
|
41
|
-
"@po-ui/style": "21.
|
|
41
|
+
"@po-ui/style": "21.10.0",
|
|
42
42
|
"rxjs": "~7.8.1",
|
|
43
43
|
"zone.js": "~0.15.0"
|
|
44
44
|
},
|
|
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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.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.10.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|