@sapudex/web-components 2.44.0 → 2.46.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/cypress/specs/DatePicker.cy.tsx +259 -0
- package/cypress/specs/MastheadItem.cy.tsx +88 -0
- package/cypress/specs/MastheadShell.cy.tsx +3 -1
- package/cypress/specs/TagGroup.cy.tsx +104 -0
- package/cypress/specs/TextField.cy.tsx +64 -1
- package/cypress/support/component-imports.instrumented.ts +2 -0
- package/cypress/support/component-imports.src.ts +2 -0
- package/dist/Carousel.d.ts +5 -1
- package/dist/Carousel.js +10 -1
- package/dist/Carousel.js.map +1 -1
- package/dist/DatePicker.d.ts +4 -0
- package/dist/DatePicker.js +19 -13
- package/dist/DatePicker.js.map +1 -1
- package/dist/DatePickerPopoverTemplate.js +1 -1
- package/dist/DatePickerPopoverTemplate.js.map +1 -1
- package/dist/DatePickerTemplate.js +1 -1
- package/dist/DatePickerTemplate.js.map +1 -1
- package/dist/MastheadItem.d.ts +6 -3
- package/dist/MastheadItem.js +18 -0
- package/dist/MastheadItem.js.map +1 -1
- package/dist/MastheadMobileMenu.d.ts +1 -0
- package/dist/MastheadMobileMenu.js +5 -0
- package/dist/MastheadMobileMenu.js.map +1 -1
- package/dist/MastheadProfileMenu.d.ts +5 -4
- package/dist/MastheadProfileMenu.js +15 -12
- package/dist/MastheadProfileMenu.js.map +1 -1
- package/dist/MastheadShell.d.ts +2 -0
- package/dist/MastheadShell.js +9 -2
- package/dist/MastheadShell.js.map +1 -1
- package/dist/SelectBoxTemplate.js +1 -1
- package/dist/SelectBoxTemplate.js.map +1 -1
- package/dist/TagGroup.d.ts +5 -1
- package/dist/TagGroup.js +51 -7
- package/dist/TagGroup.js.map +1 -1
- package/dist/TagGroupTemplate.js +1 -1
- package/dist/TagGroupTemplate.js.map +1 -1
- package/dist/TextField.d.ts +7 -0
- package/dist/TextField.js +10 -0
- package/dist/TextField.js.map +1 -1
- package/dist/TextFieldTemplate.js +1 -1
- package/dist/TextFieldTemplate.js.map +1 -1
- package/dist/Tooltip.js +2 -1
- package/dist/Tooltip.js.map +1 -1
- package/dist/assets/{InputSuggestions-B3D8lxAS.js → InputSuggestions-BwpJ8Exf.js} +1 -1
- package/dist/assets/{ListItemStandardExpandableTextTemplate-Is8_hDTt.js → ListItemStandardExpandableTextTemplate-7iRPZq6L.js} +1 -1
- package/dist/assets/{bundle.esm-6rH7NAG7.js → bundle.esm-BbkM4Bz9.js} +247 -245
- package/dist/assets/messagebundle_pt-D9rap3lj.js +1 -0
- package/dist/assets/messagebundle_ro-BTNJ9YdP.js +1 -0
- package/dist/css/themes/CountrySelector.css +1 -1
- package/dist/css/themes/MastheadCountrySelector.css +1 -1
- package/dist/css/themes/MastheadItem.css +1 -1
- package/dist/css/themes/MastheadMenu.css +1 -1
- package/dist/css/themes/MastheadMobileMenu.css +1 -1
- package/dist/css/themes/MastheadProfileMenu.css +1 -1
- package/dist/css/themes/TagGroup.css +1 -1
- package/dist/custom-elements-internal.json +68 -17
- package/dist/custom-elements.json +75 -17
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
- package/dist/generated/templates/MastheadProfileMenuTemplate.lit.js +2 -2
- package/dist/generated/templates/MastheadProfileMenuTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MastheadShellTemplate.lit.js +2 -2
- package/dist/generated/templates/MastheadShellTemplate.lit.js.map +1 -1
- package/dist/generated/themes/CountrySelector.css.d.ts +1 -1
- package/dist/generated/themes/CountrySelector.css.js +1 -1
- package/dist/generated/themes/CountrySelector.css.js.map +1 -1
- package/dist/generated/themes/MastheadCountrySelector.css.d.ts +1 -1
- package/dist/generated/themes/MastheadCountrySelector.css.js +1 -1
- package/dist/generated/themes/MastheadCountrySelector.css.js.map +1 -1
- package/dist/generated/themes/MastheadItem.css.d.ts +1 -1
- package/dist/generated/themes/MastheadItem.css.js +1 -1
- package/dist/generated/themes/MastheadItem.css.js.map +1 -1
- package/dist/generated/themes/MastheadMenu.css.d.ts +1 -1
- package/dist/generated/themes/MastheadMenu.css.js +1 -1
- package/dist/generated/themes/MastheadMenu.css.js.map +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.d.ts +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.js +1 -1
- package/dist/generated/themes/MastheadMobileMenu.css.js.map +1 -1
- package/dist/generated/themes/MastheadProfileMenu.css.d.ts +1 -1
- package/dist/generated/themes/MastheadProfileMenu.css.js +1 -1
- package/dist/generated/themes/MastheadProfileMenu.css.js.map +1 -1
- package/dist/generated/themes/TagGroup.css.d.ts +1 -1
- package/dist/generated/themes/TagGroup.css.js +1 -1
- package/dist/generated/themes/TagGroup.css.js.map +1 -1
- package/dist/messagebundle_pt.properties +126 -0
- package/dist/messagebundle_ro.properties +126 -0
- package/dist/vscode.html-custom-data.json +11 -6
- package/dist/web-types.json +37 -14
- package/package.json +8 -8
- package/src/Carousel.ts +14 -1
- package/src/DatePicker.ts +29 -11
- package/src/DatePickerPopoverTemplate.tsx +2 -1
- package/src/DatePickerTemplate.tsx +1 -0
- package/src/MastheadItem.ts +24 -3
- package/src/MastheadMobileMenu.ts +6 -0
- package/src/MastheadProfileMenu.hbs +25 -25
- package/src/MastheadProfileMenu.ts +20 -16
- package/src/MastheadShell.hbs +3 -2
- package/src/MastheadShell.ts +11 -2
- package/src/SelectBoxTemplate.tsx +1 -1
- package/src/TagGroup.ts +59 -6
- package/src/TagGroupTemplate.tsx +1 -0
- package/src/TextField.ts +9 -0
- package/src/TextFieldTemplate.tsx +1 -0
- package/src/Tooltip.ts +2 -1
- package/src/generated/templates/MastheadProfileMenuTemplate.lit.ts +2 -2
- package/src/generated/templates/MastheadShellTemplate.lit.ts +2 -2
- package/src/generated/themes/CountrySelector.css.ts +1 -1
- package/src/generated/themes/MastheadCountrySelector.css.ts +1 -1
- package/src/generated/themes/MastheadItem.css.ts +1 -1
- package/src/generated/themes/MastheadMenu.css.ts +1 -1
- package/src/generated/themes/MastheadMobileMenu.css.ts +1 -1
- package/src/generated/themes/MastheadProfileMenu.css.ts +1 -1
- package/src/generated/themes/TagGroup.css.ts +1 -1
- package/src/i18n/messagebundle_pt.properties +126 -0
- package/src/i18n/messagebundle_ro.properties +126 -0
- package/src/themes/CountrySelector.css +5 -1
- package/src/themes/MastheadCountrySelector.css +29 -33
- package/src/themes/MastheadItem.css +53 -13
- package/src/themes/MastheadMenu.css +1 -11
- package/src/themes/MastheadMobileMenu.css +0 -12
- package/src/themes/MastheadProfileMenu.css +22 -16
- package/src/themes/TagGroup.css +1 -2
- package/dist/assets/messagebundle_pt-DPeE7NbC.js +0 -1
- package/dist/assets/messagebundle_ro-CN4kAAYE.js +0 -1
|
@@ -4,3 +4,129 @@ OVERVIEW=Síntese
|
|
|
4
4
|
LOGOUT=Sair
|
|
5
5
|
MAIN_LINKS=Principais links
|
|
6
6
|
BACK_TO_TOP=Voltar ao início
|
|
7
|
+
COUNT=Número
|
|
8
|
+
OF=de
|
|
9
|
+
PAGINATION_PAGE=Página
|
|
10
|
+
SELECTED=Selecionado
|
|
11
|
+
UNSELECTED=Não selecionado
|
|
12
|
+
INDETERMINATE=Indeterminado
|
|
13
|
+
EDIT_BUTTON=Editar
|
|
14
|
+
DELETE_BUTTON=Excluir
|
|
15
|
+
BACK_TO_REGION_LIST=Voltar para lista de regiões
|
|
16
|
+
BUTTON_ARIA_TYPE_PRIMARY=Primário
|
|
17
|
+
BUTTON_ARIA_TYPE_SECONDARY=Secundário
|
|
18
|
+
BUTTON_ARIA_TYPE_TERTIARY=Terciário
|
|
19
|
+
BUTTON_ARIA_TYPE_WARNING=Advertência
|
|
20
|
+
BUTTON_ARIA_TYPE_POSITIVE=Positivo
|
|
21
|
+
BUTTON_ARIA_TYPE_NEGATIVE=Negativo
|
|
22
|
+
BUTTON_ARIA_EMPHASIZED=Enfatizado
|
|
23
|
+
BUTTON_ARIA_DEFAULT=Padrão
|
|
24
|
+
BUTTON_ARIA_TRANSPARENT=Transparente
|
|
25
|
+
BUTTON_ARIA_ATTENTION=Atenção
|
|
26
|
+
DATEPICKER_DATE_DESCRIPTION=Entrada de data
|
|
27
|
+
TOGGLED=Alternado
|
|
28
|
+
FIRST_PAGE=Primeira página
|
|
29
|
+
LAST_PAGE=Última página
|
|
30
|
+
PREVIOUS_PAGE=Página anterior
|
|
31
|
+
NEXT_PAGE=Próxima página
|
|
32
|
+
CURRENT_PAGE=Página atual
|
|
33
|
+
ACTIVATE_PAGE=Ativar número da página
|
|
34
|
+
SUGGESTED_TEXT=pesquisas sugeridas
|
|
35
|
+
ACCESSIBLE_NAME_SEARCH_ICON=Pesquisa
|
|
36
|
+
TOOLTIP_VOICE_BUTTON=Voz
|
|
37
|
+
TOOLTIP_SUBMIT_BUTTON=Enviar
|
|
38
|
+
LISTENING=Escuta
|
|
39
|
+
AVAILABLE_VALUES=Valores disponíveis
|
|
40
|
+
RECOMMENDED_TEXT=Páginas recomendadas
|
|
41
|
+
EXPAND_ALL=Expandir tudo
|
|
42
|
+
COLLAPSE_ALL=Recolher tudo
|
|
43
|
+
MORE=Mais
|
|
44
|
+
ATTENTION_BADGE=Indicador de atenção
|
|
45
|
+
READ_MORE=Leia mais
|
|
46
|
+
READ_LESS=Ler menos
|
|
47
|
+
SHOW_MORE=Mostrar mais
|
|
48
|
+
SHOW_LESS=Mostrar menos
|
|
49
|
+
RATING_INDICATOR_TEXT=Indicador de avaliação
|
|
50
|
+
RATING_INDICATOR_TOOLTIP_TEXT=Classificação
|
|
51
|
+
RATING_INDICATOR_ARIA_DESCRIPTION=Obrigatório
|
|
52
|
+
TOTAL=Total
|
|
53
|
+
RATING_COUNT_TITLE=Classificação
|
|
54
|
+
ARIA_LABEL_LIST_MULTISELECTABLE=Contém itens com seleção múltipla
|
|
55
|
+
ARIA_LABEL_LIST_SELECTABLE=Contém itens selecionáveis
|
|
56
|
+
SHOW_RESULTS=Mostrar resultados
|
|
57
|
+
RESET=Redefinir
|
|
58
|
+
MESSAGE_STRIP_CLOSE_BUTTON=Botão Fechar faixa de mensagens
|
|
59
|
+
MESSAGE_STRIP_INFORMATION=Barra de informações
|
|
60
|
+
MESSAGE_STRIP_SUCCESS=Barra positiva
|
|
61
|
+
MESSAGE_STRIP_WARNING=Barra de advertência
|
|
62
|
+
MESSAGE_STRIP_ERROR=Barra negativa
|
|
63
|
+
MESSAGE_STRIP_ACTION=Barra de ação
|
|
64
|
+
REVIEWS=avaliações
|
|
65
|
+
STARS=estrelas
|
|
66
|
+
SELECT_OPTIONS=Selecionar opções
|
|
67
|
+
SELECT_ALL=Selecionar tudo
|
|
68
|
+
TEXTAREA_CHARACTERS_LEFT={0} caracteres restantes
|
|
69
|
+
VALUE_STATE_TYPE_ERROR=Erro de status do campo
|
|
70
|
+
VALUE_STATE_TYPE_WARNING=Advertência de status do campo
|
|
71
|
+
VALUE_STATE_TYPE_SUCCESS=Sucesso no status do campo
|
|
72
|
+
VALUE_STATE_TYPE_STANDARD=Padrão de status do campo
|
|
73
|
+
CAROUSEL_PREVIOUS_ARROW_TEXT=Página anterior
|
|
74
|
+
CAROUSEL_NEXT_ARROW_TEXT=Próxima página
|
|
75
|
+
NO_MATCHES_FOUND=Nenhuma correspondência encontrada.
|
|
76
|
+
BREADCRUMBS_ARIA_LABEL=Trilha de navegação
|
|
77
|
+
BREADCRUMBS_OVERFLOW_ARIA_LABEL=Mais
|
|
78
|
+
STEPINPUT_INC_ICON_TITLE=Aumentar quantidade em
|
|
79
|
+
STEPINPUT_DEC_ICON_TITLE=Reduzir quantidade em
|
|
80
|
+
TABLE_NO_DATA_FOUND=Nenhum dado encontrado
|
|
81
|
+
VALUE_STATE_ERROR=Entrada inválida
|
|
82
|
+
VALUE_STATE_WARNING=Advertência emitida
|
|
83
|
+
VALUE_STATE_INFORMATION=Entrada informativa
|
|
84
|
+
VALUE_STATE_SUCCESS=Entrada validada com sucesso
|
|
85
|
+
READ_ONLY=Somente leitura
|
|
86
|
+
SWITCH_ACCOUNT=Trocar a conta
|
|
87
|
+
BACK=Voltar
|
|
88
|
+
OTHER_IDENTITIES=Outras identidades
|
|
89
|
+
ADD_OR_REMOVE_ACCOUNT=Adicionar ou remover conta
|
|
90
|
+
COUNTRY_SELECT=Selecionar país
|
|
91
|
+
CART=Carrinho
|
|
92
|
+
COUNTRY_SELECTOR=Seletor de países
|
|
93
|
+
PHONE_NUMBER=Nº de telefone
|
|
94
|
+
CONTACT_US=Fale conosco
|
|
95
|
+
EMAIL=E-mail
|
|
96
|
+
CHAT_WITH_US=Fale conosco pelo chat
|
|
97
|
+
QUICK_LINKS=Links úteis
|
|
98
|
+
TRENDING=Tendências
|
|
99
|
+
ABOUT_SAP=Sobre a SAP
|
|
100
|
+
SITE_INFORMATION=Informações sobre o site
|
|
101
|
+
AVATAR_TEXT=Avatar
|
|
102
|
+
CALENDAR_ICON=Ícone Abrir calendário
|
|
103
|
+
LIST_ITEM_EDIT_ICON=Editar entrada de item da lista
|
|
104
|
+
LIST_ITEM_DELETE_ICON=Excluir entrada de item da lista
|
|
105
|
+
BACK_BUTTON_LABEL=botão Voltar
|
|
106
|
+
STATUS_BADGE_TEXT=Indicador de status
|
|
107
|
+
STATUS_BADGE_EDIT_TITLE=Clique para editar o perfil
|
|
108
|
+
STATUS_BADGE_INFORMATION_TITLE=Clique para abrir as informações do perfil
|
|
109
|
+
STATUS_BADGE_WARNING_TITLE=Advertência, risco potencial com o perfil
|
|
110
|
+
STATUS_BADGE_ERROR_TITLE=Há um erro no perfil
|
|
111
|
+
STATUS_BADGE_SUCCESS_TITLE=Perfil verificado com sucesso
|
|
112
|
+
PROFILE=Perfil
|
|
113
|
+
OPENS_IN_A_NEW_WINDOW=abre em uma nova janela
|
|
114
|
+
TEXT_FIELD=Campo de texto
|
|
115
|
+
UPLOADING_FILE_STATUS_TEXT=Upload em andamento
|
|
116
|
+
TERMINATED_FILE_STATUS_TEXT=Encerrado
|
|
117
|
+
REMOVE_FILE_TEXT=Remover arquivo
|
|
118
|
+
UPLOAD_BUTTON_LABEL=Carregar arquivo
|
|
119
|
+
COMPLETE_LIST_OF=Lista completa de
|
|
120
|
+
CALL_US_TODAY=Ligue para nós ainda hoje!
|
|
121
|
+
SEARCH=Pesquisar
|
|
122
|
+
RESULT_RETURNED=resultados encontrados.
|
|
123
|
+
SOCIAL_MEDIA_BUTTON=Botão de Mídias sociais
|
|
124
|
+
PROMO_TILE=Bloco promocional
|
|
125
|
+
PROMO_TILE_ICON=Ícone de bloco promocional
|
|
126
|
+
PLAY_BUTTON_ACCESSIBLE_NAME=Botão Iniciar para iniciar a rotação dos logotipos de cliente
|
|
127
|
+
PAUSE_BUTTON_ACCESSIBLE_NAME=Botão Pausar para interromper a rotação dos logotipos de cliente
|
|
128
|
+
LOCATION=Localização
|
|
129
|
+
TOAST_CLOSE_ACCESSIBLE_NAME=Fechar
|
|
130
|
+
DISABLED=Desativado
|
|
131
|
+
EXPAND=Expandir
|
|
132
|
+
COLLAPSE=Recolher
|
|
@@ -3,3 +3,129 @@ OVERVIEW=Imagine generală
|
|
|
3
3
|
LOGOUT=Ieșire
|
|
4
4
|
MAIN_LINKS=Linkuri principale
|
|
5
5
|
BACK_TO_TOP=Înapoi sus
|
|
6
|
+
COUNT=Numărul
|
|
7
|
+
OF=din
|
|
8
|
+
PAGINATION_PAGE=Pagina
|
|
9
|
+
SELECTED=Selectate
|
|
10
|
+
UNSELECTED=Neselectat
|
|
11
|
+
INDETERMINATE=Nedeterminat
|
|
12
|
+
EDIT_BUTTON=Editare
|
|
13
|
+
DELETE_BUTTON=Ștergere
|
|
14
|
+
BACK_TO_REGION_LIST=Înapoi la lista de regiuni
|
|
15
|
+
BUTTON_ARIA_TYPE_PRIMARY=Primar
|
|
16
|
+
BUTTON_ARIA_TYPE_SECONDARY=Secundar
|
|
17
|
+
BUTTON_ARIA_TYPE_TERTIARY=Terțiar
|
|
18
|
+
BUTTON_ARIA_TYPE_WARNING=Avertisment
|
|
19
|
+
BUTTON_ARIA_TYPE_POSITIVE=Pozitiv
|
|
20
|
+
BUTTON_ARIA_TYPE_NEGATIVE=Negativ
|
|
21
|
+
BUTTON_ARIA_EMPHASIZED=Evidențiat
|
|
22
|
+
BUTTON_ARIA_DEFAULT=Implicit
|
|
23
|
+
BUTTON_ARIA_TRANSPARENT=Transparent
|
|
24
|
+
BUTTON_ARIA_ATTENTION=Atenție
|
|
25
|
+
DATEPICKER_DATE_DESCRIPTION=Intrare de dată
|
|
26
|
+
TOGGLED=Comutat
|
|
27
|
+
FIRST_PAGE=Prima pagină
|
|
28
|
+
LAST_PAGE=Ultima pagină
|
|
29
|
+
PREVIOUS_PAGE=Pagina anterioară
|
|
30
|
+
NEXT_PAGE=Pagina următoare
|
|
31
|
+
CURRENT_PAGE=Pagina curentă
|
|
32
|
+
ACTIVATE_PAGE=Activare număr de pagină
|
|
33
|
+
SUGGESTED_TEXT=căutări sugerate
|
|
34
|
+
ACCESSIBLE_NAME_SEARCH_ICON=Căutare
|
|
35
|
+
TOOLTIP_VOICE_BUTTON=Voce
|
|
36
|
+
TOOLTIP_SUBMIT_BUTTON=Trimitere
|
|
37
|
+
LISTENING=Ascultare
|
|
38
|
+
AVAILABLE_VALUES=Valori disponibile
|
|
39
|
+
RECOMMENDED_TEXT=Pagini recomandate
|
|
40
|
+
EXPAND_ALL=Expandare tot
|
|
41
|
+
COLLAPSE_ALL=Comprimare tot
|
|
42
|
+
MORE=Mai mult
|
|
43
|
+
ATTENTION_BADGE=Ecuson de atenție
|
|
44
|
+
READ_MORE=Citiți mai mult
|
|
45
|
+
READ_LESS=Citește mai puțin
|
|
46
|
+
SHOW_MORE=Arătați mai multe
|
|
47
|
+
SHOW_LESS=Afișare mai puțin
|
|
48
|
+
RATING_INDICATOR_TEXT=Indicator de evaluare
|
|
49
|
+
RATING_INDICATOR_TOOLTIP_TEXT=Evaluare
|
|
50
|
+
RATING_INDICATOR_ARIA_DESCRIPTION=Obligatoriu
|
|
51
|
+
TOTAL=Total
|
|
52
|
+
RATING_COUNT_TITLE=Evaluare
|
|
53
|
+
ARIA_LABEL_LIST_MULTISELECTABLE=Conține articole cu selecție multiplă
|
|
54
|
+
ARIA_LABEL_LIST_SELECTABLE=Conține articole selectabile
|
|
55
|
+
SHOW_RESULTS=Afișare rezultate
|
|
56
|
+
RESET=Resetare
|
|
57
|
+
MESSAGE_STRIP_CLOSE_BUTTON=Buton de închidere a liniei de mesaj
|
|
58
|
+
MESSAGE_STRIP_INFORMATION=Bară de informații
|
|
59
|
+
MESSAGE_STRIP_SUCCESS=Bară pozitivă
|
|
60
|
+
MESSAGE_STRIP_WARNING=Bară de avertizare
|
|
61
|
+
MESSAGE_STRIP_ERROR=Bară negativă
|
|
62
|
+
MESSAGE_STRIP_ACTION=Bară de acțiuni
|
|
63
|
+
REVIEWS=recenzii
|
|
64
|
+
STARS=stele
|
|
65
|
+
SELECT_OPTIONS=Selectare opțiuni
|
|
66
|
+
SELECT_ALL=Selectare toate
|
|
67
|
+
TEXTAREA_CHARACTERS_LEFT={0} caractere rămase
|
|
68
|
+
VALUE_STATE_TYPE_ERROR=Stare câmp Eroare
|
|
69
|
+
VALUE_STATE_TYPE_WARNING=Stare câmp Avertizare
|
|
70
|
+
VALUE_STATE_TYPE_SUCCESS=Stare câmp Succes
|
|
71
|
+
VALUE_STATE_TYPE_STANDARD=Stare câmp Standard
|
|
72
|
+
CAROUSEL_PREVIOUS_ARROW_TEXT=Pagina anterioară
|
|
73
|
+
CAROUSEL_NEXT_ARROW_TEXT=Pagina următoare
|
|
74
|
+
NO_MATCHES_FOUND=Nicio concordanță găsită.
|
|
75
|
+
BREADCRUMBS_ARIA_LABEL=Cale de navigare
|
|
76
|
+
BREADCRUMBS_OVERFLOW_ARIA_LABEL=Mai mult
|
|
77
|
+
STEPINPUT_INC_ICON_TITLE=Mărire cantitate cu
|
|
78
|
+
STEPINPUT_DEC_ICON_TITLE=Micșorare cantitate cu
|
|
79
|
+
TABLE_NO_DATA_FOUND=Nu s-au găsit date
|
|
80
|
+
VALUE_STATE_ERROR=Intrare nevalabilă
|
|
81
|
+
VALUE_STATE_WARNING=Avertizare emisă
|
|
82
|
+
VALUE_STATE_INFORMATION=Intrare informativă
|
|
83
|
+
VALUE_STATE_SUCCESS=Intrare validată cu succes
|
|
84
|
+
READ_ONLY=Numai în citire
|
|
85
|
+
SWITCH_ACCOUNT=Schimbare cont
|
|
86
|
+
BACK=Înapoi
|
|
87
|
+
OTHER_IDENTITIES=Alte identități
|
|
88
|
+
ADD_OR_REMOVE_ACCOUNT=Adăugare sau eliminare cont
|
|
89
|
+
COUNTRY_SELECT=Selectare țară
|
|
90
|
+
CART=Coș
|
|
91
|
+
COUNTRY_SELECTOR=Selector de țară
|
|
92
|
+
PHONE_NUMBER=Număr de telefon
|
|
93
|
+
CONTACT_US=Contactați-ne
|
|
94
|
+
EMAIL=E-mail
|
|
95
|
+
CHAT_WITH_US=Discută cu noi
|
|
96
|
+
QUICK_LINKS=Linkuri rapide
|
|
97
|
+
TRENDING=În tendințe
|
|
98
|
+
ABOUT_SAP=Despre SAP
|
|
99
|
+
SITE_INFORMATION=Informații site
|
|
100
|
+
AVATAR_TEXT=Avatar
|
|
101
|
+
CALENDAR_ICON=Pictogramă de deschidere calendar
|
|
102
|
+
LIST_ITEM_EDIT_ICON=Editare intrare articol de listă
|
|
103
|
+
LIST_ITEM_DELETE_ICON=Ștergere intrare articol de listă
|
|
104
|
+
BACK_BUTTON_LABEL=butonul înapoi
|
|
105
|
+
STATUS_BADGE_TEXT=Ecuson de stare
|
|
106
|
+
STATUS_BADGE_EDIT_TITLE=Dă click pentru a edita profilul
|
|
107
|
+
STATUS_BADGE_INFORMATION_TITLE=Dă click pentru a deschide informațiile de profil
|
|
108
|
+
STATUS_BADGE_WARNING_TITLE=Avertizare, risc potențial cu profilul
|
|
109
|
+
STATUS_BADGE_ERROR_TITLE=Există o eroare cu profilul
|
|
110
|
+
STATUS_BADGE_SUCCESS_TITLE=Profil verificat cu succes
|
|
111
|
+
PROFILE=Profil
|
|
112
|
+
OPENS_IN_A_NEW_WINDOW=se deschide într-o fereastră nouă
|
|
113
|
+
TEXT_FIELD=Câmp de text
|
|
114
|
+
UPLOADING_FILE_STATUS_TEXT=Se încarcă
|
|
115
|
+
TERMINATED_FILE_STATUS_TEXT=Întrerupt
|
|
116
|
+
REMOVE_FILE_TEXT=Eliminare fișier
|
|
117
|
+
UPLOAD_BUTTON_LABEL=Încărcare fișier
|
|
118
|
+
COMPLETE_LIST_OF=Listă completă de
|
|
119
|
+
CALL_US_TODAY=Sună-ne astăzi!
|
|
120
|
+
SEARCH=Căutare
|
|
121
|
+
RESULT_RETURNED=rezultate returnate.
|
|
122
|
+
SOCIAL_MEDIA_BUTTON=Buton de social media
|
|
123
|
+
PROMO_TILE=Mozaicul promoției
|
|
124
|
+
PROMO_TILE_ICON=Pictogramă cu mozaicul promoției
|
|
125
|
+
PLAY_BUTTON_ACCESSIBLE_NAME=Butonul de pornire pentru a începe rotația logourilor de client
|
|
126
|
+
PAUSE_BUTTON_ACCESSIBLE_NAME=Butonul de întrerupere pentru a opri rotația logourilor de client
|
|
127
|
+
LOCATION=Locație
|
|
128
|
+
TOAST_CLOSE_ACCESSIBLE_NAME=Închidere
|
|
129
|
+
DISABLED=Dezactivat
|
|
130
|
+
EXPAND=Expandare
|
|
131
|
+
COLLAPSE=Comprimare
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
"name": "udex-carousel",
|
|
286
|
-
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-carousel</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/Carousel.js\";</code>\n\n\n---\n\n\n\n\n### **Slots:**\n - **default** - Defines the content of the component.",
|
|
286
|
+
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-carousel</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/Carousel.js\";</code>\n\n\n---\n\n\n\n\n### **Events:**\n - **navigate** - Triggered when carousel navigates to a new slide\n\n### **Slots:**\n - **default** - Defines the content of the component.",
|
|
287
287
|
"attributes": [
|
|
288
288
|
{
|
|
289
289
|
"name": "accessible-name",
|
|
@@ -550,13 +550,13 @@
|
|
|
550
550
|
"values": []
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
|
-
"name": "
|
|
554
|
-
"description": "Defines
|
|
555
|
-
"values": []
|
|
553
|
+
"name": "default_-format_-pattern",
|
|
554
|
+
"description": "Defines the date format pattern (e.g., \\\"MMM dd, yyyy\\\" or \\\"MM/dd/yyyy\\\").",
|
|
555
|
+
"values": [{ "name": "\"MMM dd" }, { "name": "yyyy\"" }]
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
|
-
"name": "
|
|
559
|
-
"description": "Defines the
|
|
558
|
+
"name": "disabled",
|
|
559
|
+
"description": "Defines whether the component is in disabled state.\n<br><br>\n<b>Note:</b> A disabled component is completely noninteractive.",
|
|
560
560
|
"values": []
|
|
561
561
|
},
|
|
562
562
|
{
|
|
@@ -4989,6 +4989,11 @@
|
|
|
4989
4989
|
"description": "Defines the name of the input element.",
|
|
4990
4990
|
"values": []
|
|
4991
4991
|
},
|
|
4992
|
+
{
|
|
4993
|
+
"name": "placeholder",
|
|
4994
|
+
"description": "Defines the placeholder text of the input field.",
|
|
4995
|
+
"values": []
|
|
4996
|
+
},
|
|
4992
4997
|
{
|
|
4993
4998
|
"name": "readonly",
|
|
4994
4999
|
"description": "Defines whether the component is read-only.\n<br><br>\n<b>Note:</b> A read-only component is not editable,\nbut still provides visual feedback upon user interaction.",
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@sapudex/web-components",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.46.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
},
|
|
585
585
|
{
|
|
586
586
|
"name": "udex-carousel",
|
|
587
|
-
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-carousel</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/Carousel.js\";</code>\n---\n\n\n### **Slots:**\n - **default** - Defines the content of the component.",
|
|
587
|
+
"description": "<h3 class=\"comment-api-title\">Overview</h3>\n\n\n<h3>Usage</h3>\n\nFor the <code>udex-carousel</code>\n<h3>ES6 Module Import</h3>\n\n<code>import \"@sapudex/web-components/dist/Carousel.js\";</code>\n---\n\n\n### **Events:**\n - **navigate** - Triggered when carousel navigates to a new slide\n\n### **Slots:**\n - **default** - Defines the content of the component.",
|
|
588
588
|
"doc-url": "",
|
|
589
589
|
"attributes": [
|
|
590
590
|
{
|
|
@@ -617,7 +617,12 @@
|
|
|
617
617
|
"description": "Defines the content of the component."
|
|
618
618
|
}
|
|
619
619
|
],
|
|
620
|
-
"events": [
|
|
620
|
+
"events": [
|
|
621
|
+
{
|
|
622
|
+
"name": "navigate",
|
|
623
|
+
"description": "Triggered when carousel navigates to a new slide"
|
|
624
|
+
}
|
|
625
|
+
],
|
|
621
626
|
"js": {
|
|
622
627
|
"properties": [
|
|
623
628
|
{
|
|
@@ -641,7 +646,12 @@
|
|
|
641
646
|
"value": { "type": "\"Default\" | \"Numeric\"" }
|
|
642
647
|
}
|
|
643
648
|
],
|
|
644
|
-
"events": [
|
|
649
|
+
"events": [
|
|
650
|
+
{
|
|
651
|
+
"name": "navigate",
|
|
652
|
+
"description": "Triggered when carousel navigates to a new slide"
|
|
653
|
+
}
|
|
654
|
+
]
|
|
645
655
|
}
|
|
646
656
|
},
|
|
647
657
|
{
|
|
@@ -1151,16 +1161,19 @@
|
|
|
1151
1161
|
"description": "Receives id (or many ids) of the elements that label the component.",
|
|
1152
1162
|
"value": { "type": "string", "default": "\"\"" }
|
|
1153
1163
|
},
|
|
1164
|
+
{
|
|
1165
|
+
"name": "default_-format_-pattern",
|
|
1166
|
+
"description": "Defines the date format pattern (e.g., \\\"MMM dd, yyyy\\\" or \\\"MM/dd/yyyy\\\").",
|
|
1167
|
+
"value": {
|
|
1168
|
+
"type": "\"MMM dd, yyyy\"",
|
|
1169
|
+
"default": "\"MMM dd, yyyy\""
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1154
1172
|
{
|
|
1155
1173
|
"name": "disabled",
|
|
1156
1174
|
"description": "Defines whether the component is in disabled state.\n<br><br>\n<b>Note:</b> A disabled component is completely noninteractive.",
|
|
1157
1175
|
"value": { "type": "boolean", "default": "false" }
|
|
1158
1176
|
},
|
|
1159
|
-
{
|
|
1160
|
-
"name": "format-pattern",
|
|
1161
|
-
"description": "Defines the date format pattern (e.g., \\\"MMM dd, yyyy\\\" or \\\"MM/dd/yyyy\\\").",
|
|
1162
|
-
"value": { "type": "string", "default": "\"MMM dd, yyyy\"" }
|
|
1163
|
-
},
|
|
1164
1177
|
{
|
|
1165
1178
|
"name": "label",
|
|
1166
1179
|
"description": "Defines label text for the input field.",
|
|
@@ -1225,16 +1238,16 @@
|
|
|
1225
1238
|
"description": "Receives id (or many ids) of the elements that label the component.",
|
|
1226
1239
|
"value": { "type": "string" }
|
|
1227
1240
|
},
|
|
1241
|
+
{
|
|
1242
|
+
"name": "default_-format_-pattern",
|
|
1243
|
+
"description": "Defines the date format pattern (e.g., \\\"MMM dd, yyyy\\\" or \\\"MM/dd/yyyy\\\").",
|
|
1244
|
+
"value": { "type": "\"MMM dd, yyyy\"" }
|
|
1245
|
+
},
|
|
1228
1246
|
{
|
|
1229
1247
|
"name": "disabled",
|
|
1230
1248
|
"description": "Defines whether the component is in disabled state.\n<br><br>\n<b>Note:</b> A disabled component is completely noninteractive.",
|
|
1231
1249
|
"value": { "type": "boolean" }
|
|
1232
1250
|
},
|
|
1233
|
-
{
|
|
1234
|
-
"name": "format-pattern",
|
|
1235
|
-
"description": "Defines the date format pattern (e.g., \\\"MMM dd, yyyy\\\" or \\\"MM/dd/yyyy\\\").",
|
|
1236
|
-
"value": { "type": "string" }
|
|
1237
|
-
},
|
|
1238
1251
|
{
|
|
1239
1252
|
"name": "label",
|
|
1240
1253
|
"description": "Defines label text for the input field.",
|
|
@@ -10504,6 +10517,11 @@
|
|
|
10504
10517
|
"description": "Defines the name of the input element.",
|
|
10505
10518
|
"value": { "type": "string", "default": "\"\"" }
|
|
10506
10519
|
},
|
|
10520
|
+
{
|
|
10521
|
+
"name": "placeholder",
|
|
10522
|
+
"description": "Defines the placeholder text of the input field.",
|
|
10523
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
10524
|
+
},
|
|
10507
10525
|
{
|
|
10508
10526
|
"name": "readonly",
|
|
10509
10527
|
"description": "Defines whether the component is read-only.\n<br><br>\n<b>Note:</b> A read-only component is not editable,\nbut still provides visual feedback upon user interaction.",
|
|
@@ -10631,6 +10649,11 @@
|
|
|
10631
10649
|
"description": "Defines the name of the input element.",
|
|
10632
10650
|
"value": { "type": "string" }
|
|
10633
10651
|
},
|
|
10652
|
+
{
|
|
10653
|
+
"name": "placeholder",
|
|
10654
|
+
"description": "Defines the placeholder text of the input field.",
|
|
10655
|
+
"value": { "type": "string" }
|
|
10656
|
+
},
|
|
10634
10657
|
{
|
|
10635
10658
|
"name": "readonly",
|
|
10636
10659
|
"description": "Defines whether the component is read-only.\n<br><br>\n<b>Note:</b> A read-only component is not editable,\nbut still provides visual feedback upon user interaction.",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@sapudex/web-components",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.46.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@types/vimeo__player": "^2.18.3",
|
|
39
39
|
"@types/youtube": "^0.1.2",
|
|
40
|
-
"@ui5/webcomponents": "2.23.
|
|
41
|
-
"@ui5/webcomponents-base": "2.23.
|
|
42
|
-
"@ui5/webcomponents-fiori": "2.23.
|
|
43
|
-
"@ui5/webcomponents-icons": "2.23.
|
|
44
|
-
"@ui5/webcomponents-localization": "2.23.
|
|
45
|
-
"@ui5/webcomponents-theming": "2.23.
|
|
40
|
+
"@ui5/webcomponents": "2.23.3",
|
|
41
|
+
"@ui5/webcomponents-base": "2.23.3",
|
|
42
|
+
"@ui5/webcomponents-fiori": "2.23.3",
|
|
43
|
+
"@ui5/webcomponents-icons": "2.23.3",
|
|
44
|
+
"@ui5/webcomponents-localization": "2.23.3",
|
|
45
|
+
"@ui5/webcomponents-theming": "2.23.2",
|
|
46
46
|
"@vimeo/player": "^2.24.0",
|
|
47
47
|
"video.js": "^8.23.6"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@cypress/code-coverage": "^3.14.5",
|
|
51
51
|
"@ui5/cypress-ct-ui5-webc": "^0.0.4",
|
|
52
|
-
"@ui5/webcomponents-tools": "2.23.
|
|
52
|
+
"@ui5/webcomponents-tools": "2.23.3",
|
|
53
53
|
"chromedriver": "149.0.2",
|
|
54
54
|
"cross-env": "^7.0.3",
|
|
55
55
|
"cypress": "^14.3.3",
|
package/src/Carousel.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { DefaultSlot } from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
|
3
3
|
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
|
|
4
4
|
import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
5
5
|
import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
|
|
6
|
+
import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
|
|
6
7
|
import jsxRenderer from "@ui5/webcomponents-base/renderer/JsxRenderer.js";
|
|
7
8
|
import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
|
|
8
9
|
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
|
@@ -12,6 +13,7 @@ import {
|
|
|
12
13
|
import { CAROUSEL_NEXT_ARROW_TEXT, CAROUSEL_PREVIOUS_ARROW_TEXT } from "./generated/i18n/i18n-defaults.js";
|
|
13
14
|
import redirectAttributes from "./utils/redirectAttributes.js";
|
|
14
15
|
import type UI5Carousel from "@ui5/webcomponents/dist/Carousel.js";
|
|
16
|
+
import type { CarouselNavigateEventDetail } from "@ui5/webcomponents/dist/Carousel.js";
|
|
15
17
|
import type { UI5CustomEvent } from "@ui5/webcomponents-base";
|
|
16
18
|
import type Icon from "@ui5/webcomponents/dist/Icon.js";
|
|
17
19
|
import translate from "./utils/translate.js";
|
|
@@ -57,8 +59,17 @@ export enum UDExCarouselButtonDesign {
|
|
|
57
59
|
styles: CarouselCss,
|
|
58
60
|
template: CarouselTemplate,
|
|
59
61
|
})
|
|
62
|
+
/**
|
|
63
|
+
* Triggered when carousel navigates to a new slide
|
|
64
|
+
* @public
|
|
65
|
+
* @param { CustomEvent }
|
|
66
|
+
*/
|
|
67
|
+
@event("navigate")
|
|
60
68
|
|
|
61
69
|
class UDExCarousel extends UI5Element {
|
|
70
|
+
eventDetails!: {
|
|
71
|
+
"navigate": CarouselNavigateEventDetail,
|
|
72
|
+
};
|
|
62
73
|
/**
|
|
63
74
|
* Defines the position of the navigation.
|
|
64
75
|
* <br><br>
|
|
@@ -206,8 +217,10 @@ class UDExCarousel extends UI5Element {
|
|
|
206
217
|
}
|
|
207
218
|
}
|
|
208
219
|
|
|
209
|
-
_handleNavigate(): void {
|
|
220
|
+
_handleNavigate(e: UI5CustomEvent<UI5Carousel, "navigate">): void {
|
|
210
221
|
this._calculateDisabledButtonsState();
|
|
222
|
+
|
|
223
|
+
this.fireDecoratorEvent("navigate", e.detail);
|
|
211
224
|
}
|
|
212
225
|
|
|
213
226
|
onAfterRendering() {
|
package/src/DatePicker.ts
CHANGED
|
@@ -8,19 +8,25 @@ import "@ui5/webcomponents/dist/Icon.js";
|
|
|
8
8
|
import "@ui5/webcomponents-icons/dist/appointment-2.js";
|
|
9
9
|
import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
|
|
10
10
|
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
|
11
|
+
import type DateFormat from "@ui5/webcomponents-localization/dist/DateFormat.js";
|
|
11
12
|
import { CALENDAR_ICON, DATEPICKER_DATE_DESCRIPTION } from "./generated/i18n/i18n-defaults.js";
|
|
12
13
|
import type UDExTextField from "./TextField.js";
|
|
13
14
|
import type UDExDropdown from "./Dropdown.js";
|
|
14
15
|
import UDExValueState from "./types/common.js";
|
|
15
16
|
import translate from "./utils/translate.js";
|
|
16
|
-
|
|
17
|
-
// Template
|
|
18
17
|
import DatePickerTemplate from "./DatePickerTemplate.js";
|
|
19
|
-
|
|
20
|
-
// Styles
|
|
21
18
|
import DatePickerCss from "./generated/themes/DatePicker.css.js";
|
|
22
19
|
import DatePickerPopoverCss from "./generated/themes/DatePickerPopover.css.js";
|
|
23
20
|
|
|
21
|
+
// DateFormat's published type declaration omits the runtime parse/format methods
|
|
22
|
+
// and the oFormatOptions property (they come from the underlying SAP core type).
|
|
23
|
+
// This intersection adds the missing members without widening to `any`.
|
|
24
|
+
type DateFormatFull = DateFormat & {
|
|
25
|
+
parse(value: string, utc?: boolean): Date | null;
|
|
26
|
+
format(date: Date, utc?: boolean): string;
|
|
27
|
+
oFormatOptions: { pattern?: string };
|
|
28
|
+
};
|
|
29
|
+
|
|
24
30
|
export enum UDExDatePickerSelectionMode {
|
|
25
31
|
Single = "Single",
|
|
26
32
|
Range = "Range",
|
|
@@ -197,8 +203,10 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
197
203
|
* @default "MMM dd, yyyy"
|
|
198
204
|
* @public
|
|
199
205
|
*/
|
|
206
|
+
static readonly DEFAULT_FORMAT_PATTERN = "MMM dd, yyyy";
|
|
207
|
+
|
|
200
208
|
@property({ type: String })
|
|
201
|
-
formatPattern: string =
|
|
209
|
+
formatPattern: string = UDExDatePicker.DEFAULT_FORMAT_PATTERN;
|
|
202
210
|
|
|
203
211
|
/**
|
|
204
212
|
* The first date in the range during selection (this is a temporary value, not the first date in the value range)
|
|
@@ -212,6 +220,8 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
212
220
|
|
|
213
221
|
responsivePopover?: UDExDropdown;
|
|
214
222
|
|
|
223
|
+
private _getCurrentFormat(): DateFormatFull { return this.getFormat() as DateFormatFull; }
|
|
224
|
+
|
|
215
225
|
private _prevDelimiter!: string | null;
|
|
216
226
|
|
|
217
227
|
_getResponsePopover(): UDExDropdown {
|
|
@@ -297,7 +307,7 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
297
307
|
const partsArray = value.split(this._prevDelimiter || this._effectiveDelimiter);
|
|
298
308
|
|
|
299
309
|
// if format successfully parse the value, the value contains only single date
|
|
300
|
-
if (this.
|
|
310
|
+
if (this._getCurrentFormat().parse(value)) {
|
|
301
311
|
valuesArray[0] = partsArray.join(this._effectiveDelimiter);
|
|
302
312
|
valuesArray[1] = "";
|
|
303
313
|
|
|
@@ -321,7 +331,7 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
321
331
|
|
|
322
332
|
const dateStrings = this._splitValueByDelimiter(value);
|
|
323
333
|
if (dateStrings[1]) {
|
|
324
|
-
const parsedDate = this.
|
|
334
|
+
const parsedDate = this._getCurrentFormat().parse(dateStrings[1], true) as Date;
|
|
325
335
|
return parsedDate.getTime() / 1000;
|
|
326
336
|
}
|
|
327
337
|
|
|
@@ -339,7 +349,7 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
339
349
|
|
|
340
350
|
const dateStrings = this._splitValueByDelimiter(value); // at least one item guaranteed due to the checks above (non-empty and valid)
|
|
341
351
|
|
|
342
|
-
const parsedDate = this.
|
|
352
|
+
const parsedDate = this._getCurrentFormat().parse(dateStrings[0], true) as Date;
|
|
343
353
|
return parsedDate.getTime() / 1000;
|
|
344
354
|
}
|
|
345
355
|
|
|
@@ -353,7 +363,7 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
353
363
|
return true;
|
|
354
364
|
}
|
|
355
365
|
|
|
356
|
-
return !!this.
|
|
366
|
+
return !!this._getCurrentFormat().parse(value);
|
|
357
367
|
}
|
|
358
368
|
|
|
359
369
|
isValidRange(value: string): boolean {
|
|
@@ -428,7 +438,7 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
428
438
|
if (value === "") {
|
|
429
439
|
return value;
|
|
430
440
|
}
|
|
431
|
-
result = this.
|
|
441
|
+
result = this._getCurrentFormat().format(this._getCurrentFormat().parse(value, true) as Date, true); // it is important to both parse and format the date as UTC
|
|
432
442
|
}
|
|
433
443
|
if (this.selectionMode === UDExDatePickerSelectionMode.Range) {
|
|
434
444
|
const firstDateTimestamp = this._extractFirstTimestamp(value);
|
|
@@ -501,7 +511,7 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
501
511
|
}
|
|
502
512
|
|
|
503
513
|
_onInputChange(e: Event) {
|
|
504
|
-
this._updateValueAndFireDecoratorEvents((e.target as
|
|
514
|
+
this._updateValueAndFireDecoratorEvents((e.target as UDExTextField).value, true);
|
|
505
515
|
}
|
|
506
516
|
|
|
507
517
|
handleInputClick(e: CustomEvent<void>): void {
|
|
@@ -554,6 +564,14 @@ class UDExDatePicker extends DateComponentBase {
|
|
|
554
564
|
get isRangeMode(): boolean {
|
|
555
565
|
return this.selectionMode === UDExDatePickerSelectionMode.Range;
|
|
556
566
|
}
|
|
567
|
+
|
|
568
|
+
get _calendarTimestamp(): number | undefined {
|
|
569
|
+
return this._extractFirstTimestamp(this.value);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
get _effectivePlaceholder(): string {
|
|
573
|
+
return this.formatPattern || UDExDatePicker.DEFAULT_FORMAT_PATTERN;
|
|
574
|
+
}
|
|
557
575
|
}
|
|
558
576
|
|
|
559
577
|
UDExDatePicker.define();
|
|
@@ -21,7 +21,8 @@ export default function DatePickerPopoverTemplate(this: DatePicker) {
|
|
|
21
21
|
selection-mode={this.selectionMode}
|
|
22
22
|
min-date={this.minDate}
|
|
23
23
|
max-date={this.maxDate}
|
|
24
|
-
format-pattern={this.formatPattern}
|
|
24
|
+
format-pattern={this.formatPattern}
|
|
25
|
+
{...(this._calendarTimestamp ? { timestamp: this._calendarTimestamp } : {})}>
|
|
25
26
|
{ this.isRangeMode ?
|
|
26
27
|
<CalendarDateRange start-value={this.startValue} end-value={this.endValue}></CalendarDateRange>
|
|
27
28
|
:
|
|
@@ -10,6 +10,7 @@ export default function DatePickerTemplate(this: DatePicker) {
|
|
|
10
10
|
_aria-has-popup="grid"
|
|
11
11
|
icon="appointment-2"
|
|
12
12
|
value={this.value}
|
|
13
|
+
placeholder={this._effectivePlaceholder}
|
|
13
14
|
label={this.label}
|
|
14
15
|
accessible-name={this.dateAccessibleName}
|
|
15
16
|
accessible-name-ref={this.accessibleNameRef}
|