@sapudex/web-components 2.43.0 → 2.45.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/FilterMenu.cy.tsx +96 -0
- package/cypress/specs/MastheadItem.cy.tsx +88 -0
- package/cypress/specs/MastheadShell.cy.tsx +3 -1
- package/cypress/specs/SelectBox.cy.tsx +82 -0
- package/cypress/specs/TagGroup.cy.tsx +115 -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/FilterMenu.d.ts +4 -0
- package/dist/FilterMenu.js +19 -0
- package/dist/FilterMenu.js.map +1 -1
- package/dist/ListItemBase.js +2 -2
- package/dist/ListItemBase.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/SearchableListBase.d.ts +6 -1
- package/dist/SearchableListBase.js +43 -3
- package/dist/SearchableListBase.js.map +1 -1
- package/dist/SelectBase.d.ts +3 -1
- package/dist/SelectBase.js +20 -15
- package/dist/SelectBase.js.map +1 -1
- package/dist/SelectBoxTemplate.js +2 -2
- package/dist/SelectBoxTemplate.js.map +1 -1
- package/dist/TagGroup.d.ts +13 -1
- package/dist/TagGroup.js +54 -7
- package/dist/TagGroup.js.map +1 -1
- package/dist/TagGroupTemplate.js +2 -2
- 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-DorMeMJC.js → InputSuggestions-_syMxKYw.js} +1 -1
- package/dist/assets/{ListItemStandardExpandableTextTemplate-BoavHZKO.js → ListItemStandardExpandableTextTemplate-CKRbK6UW.js} +1 -1
- package/dist/assets/{bundle.esm-Bji3bkxT.js → bundle.esm-DMmyJHkn.js} +197 -197
- package/dist/assets/messagebundle_pt-D9rap3lj.js +1 -0
- package/dist/assets/messagebundle_ro-BTNJ9YdP.js +1 -0
- package/dist/assets/messagebundle_ru-BTDmH8CB.js +1 -0
- package/dist/assets/messagebundle_sk-Lb4jvtpc.js +1 -0
- package/dist/assets/messagebundle_sl-BZi2bKSy.js +1 -0
- package/dist/css/themes/CountrySelector.css +1 -1
- package/dist/css/themes/ListItem.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/RadioButton.css +1 -1
- package/dist/css/themes/TagGroup.css +1 -1
- package/dist/css/themes/TextField.css +1 -1
- package/dist/custom-elements-internal.json +87 -17
- package/dist/custom-elements.json +94 -17
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sl.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/ListItem.css.d.ts +1 -1
- package/dist/generated/themes/ListItem.css.js +1 -1
- package/dist/generated/themes/ListItem.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/RadioButton.css.d.ts +1 -1
- package/dist/generated/themes/RadioButton.css.js +1 -1
- package/dist/generated/themes/RadioButton.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/generated/themes/TextField.css.d.ts +1 -1
- package/dist/generated/themes/TextField.css.js +1 -1
- package/dist/generated/themes/TextField.css.js.map +1 -1
- package/dist/messagebundle_pt.properties +126 -0
- package/dist/messagebundle_ro.properties +126 -0
- package/dist/messagebundle_ru.properties +128 -0
- package/dist/messagebundle_sk.properties +125 -0
- package/dist/messagebundle_sl.properties +126 -1
- package/dist/vscode.html-custom-data.json +16 -6
- package/dist/web-types.json +47 -14
- package/package.json +1 -1
- 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/FilterMenu.ts +23 -0
- package/src/ListItemBase.ts +2 -2
- 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/SearchableListBase.ts +45 -4
- package/src/SelectBase.ts +23 -16
- package/src/SelectBoxTemplate.tsx +2 -2
- package/src/TagGroup.ts +69 -6
- package/src/TagGroupTemplate.tsx +2 -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/ListItem.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/RadioButton.css.ts +1 -1
- package/src/generated/themes/TagGroup.css.ts +1 -1
- package/src/generated/themes/TextField.css.ts +1 -1
- package/src/i18n/messagebundle_pt.properties +126 -0
- package/src/i18n/messagebundle_ro.properties +126 -0
- package/src/i18n/messagebundle_ru.properties +128 -0
- package/src/i18n/messagebundle_sk.properties +125 -0
- package/src/i18n/messagebundle_sl.properties +126 -1
- package/src/themes/CountrySelector.css +5 -1
- package/src/themes/ListItem.css +4 -0
- 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/RadioButton.css +9 -6
- package/src/themes/TagGroup.css +1 -2
- package/src/themes/TextField.css +2 -1
- package/dist/assets/messagebundle_pt-DPeE7NbC.js +0 -1
- package/dist/assets/messagebundle_ro-CN4kAAYE.js +0 -1
- package/dist/assets/messagebundle_ru-BT7zyn7i.js +0 -1
- package/dist/assets/messagebundle_sk-gmWb_4Wo.js +0 -1
- package/dist/assets/messagebundle_sl-B4p3OqyZ.js +0 -1
|
@@ -3,3 +3,128 @@ OVERVIEW=Prehľad
|
|
|
3
3
|
LOGOUT=Odhlásiť
|
|
4
4
|
MAIN_LINKS=Hlavné odkazy
|
|
5
5
|
BACK_TO_TOP=Na začiatok
|
|
6
|
+
COUNT=Počet
|
|
7
|
+
OF=z
|
|
8
|
+
PAGINATION_PAGE=Strana
|
|
9
|
+
SELECTED=Vybraté
|
|
10
|
+
UNSELECTED=Nevybrané
|
|
11
|
+
INDETERMINATE=Neurčené
|
|
12
|
+
EDIT_BUTTON=Upraviť
|
|
13
|
+
DELETE_BUTTON=Odstrániť
|
|
14
|
+
BACK_TO_REGION_LIST=Späť na zoznam oblastí
|
|
15
|
+
BUTTON_ARIA_TYPE_PRIMARY=Primárne
|
|
16
|
+
BUTTON_ARIA_TYPE_SECONDARY=Sekundárne
|
|
17
|
+
BUTTON_ARIA_TYPE_TERTIARY=Terciárne
|
|
18
|
+
BUTTON_ARIA_TYPE_WARNING=Upozornenie
|
|
19
|
+
BUTTON_ARIA_TYPE_POSITIVE=Kladné
|
|
20
|
+
BUTTON_ARIA_TYPE_NEGATIVE=Záporné
|
|
21
|
+
BUTTON_ARIA_EMPHASIZED=Zvýraznené
|
|
22
|
+
BUTTON_ARIA_DEFAULT=Predvolené
|
|
23
|
+
BUTTON_ARIA_TRANSPARENT=Transparentné
|
|
24
|
+
BUTTON_ARIA_ATTENTION=Pozornosť
|
|
25
|
+
DATEPICKER_DATE_DESCRIPTION=Vstup pre dátum
|
|
26
|
+
TOGGLED=Prepnuté
|
|
27
|
+
FIRST_PAGE=Prvá strana
|
|
28
|
+
LAST_PAGE=Posledná strana
|
|
29
|
+
PREVIOUS_PAGE=Predchádzajúca strana
|
|
30
|
+
NEXT_PAGE=Ďalšia strana
|
|
31
|
+
CURRENT_PAGE=Aktuálna strana
|
|
32
|
+
ACTIVATE_PAGE=Aktivovať číslo strany
|
|
33
|
+
SUGGESTED_TEXT=navrhované vyhľadávania
|
|
34
|
+
ACCESSIBLE_NAME_SEARCH_ICON=Vyhľadať
|
|
35
|
+
TOOLTIP_VOICE_BUTTON=Hlas
|
|
36
|
+
TOOLTIP_SUBMIT_BUTTON=Odoslať
|
|
37
|
+
LISTENING=Počúvanie
|
|
38
|
+
AVAILABLE_VALUES=Dostupné hodnoty
|
|
39
|
+
RECOMMENDED_TEXT=Odporúčané stránky
|
|
40
|
+
EXPAND_ALL=Rozbaliť všetko
|
|
41
|
+
COLLAPSE_ALL=Zbaliť všetko
|
|
42
|
+
MORE=Viac
|
|
43
|
+
ATTENTION_BADGE=Odznak pozornosti
|
|
44
|
+
READ_MORE=Viac informácií
|
|
45
|
+
READ_LESS=Menej informácií
|
|
46
|
+
SHOW_MORE=Ukázať viac
|
|
47
|
+
SHOW_LESS=Zobraziť menej
|
|
48
|
+
RATING_INDICATOR_TEXT=Indikátor hodnotenia
|
|
49
|
+
RATING_INDICATOR_TOOLTIP_TEXT=Hodnotenie
|
|
50
|
+
RATING_INDICATOR_ARIA_DESCRIPTION=Požadované
|
|
51
|
+
TOTAL=Súčet
|
|
52
|
+
RATING_COUNT_TITLE=Hodnotenie
|
|
53
|
+
ARIA_LABEL_LIST_MULTISELECTABLE=Obsahuje položky s možnosťou viacnásobného výberu
|
|
54
|
+
ARIA_LABEL_LIST_SELECTABLE=Obsahuje voliteľné položky
|
|
55
|
+
SHOW_RESULTS=Zobraziť výsledky
|
|
56
|
+
MESSAGE_STRIP_CLOSE_BUTTON=Tlačidlo zatvorenia riadka správy
|
|
57
|
+
MESSAGE_STRIP_INFORMATION=Informačný panel
|
|
58
|
+
MESSAGE_STRIP_SUCCESS=Panel pre kladné položky
|
|
59
|
+
MESSAGE_STRIP_WARNING=Panel upozornení
|
|
60
|
+
MESSAGE_STRIP_ERROR=Panel pre záporné položky
|
|
61
|
+
MESSAGE_STRIP_ACTION=Panel akcií
|
|
62
|
+
REVIEWS=hodnotenia
|
|
63
|
+
STARS=hviezdičky
|
|
64
|
+
SELECT_OPTIONS=Vybrať možnosti
|
|
65
|
+
SELECT_ALL=Vybrať všetky
|
|
66
|
+
TEXTAREA_CHARACTERS_LEFT=Počet zostávajúcich znakov: {0}
|
|
67
|
+
VALUE_STATE_TYPE_ERROR=Stav poľa Chyba
|
|
68
|
+
VALUE_STATE_TYPE_WARNING=Stav poľa Upozornenie
|
|
69
|
+
VALUE_STATE_TYPE_SUCCESS=Stav poľa Úspech
|
|
70
|
+
VALUE_STATE_TYPE_STANDARD=Stav poľa Štandardné
|
|
71
|
+
CAROUSEL_PREVIOUS_ARROW_TEXT=Predchádzajúca strana
|
|
72
|
+
CAROUSEL_NEXT_ARROW_TEXT=Ďalšia strana
|
|
73
|
+
NO_MATCHES_FOUND=Nenašli sa žiadne zhody.
|
|
74
|
+
BREADCRUMBS_ARIA_LABEL=Grafická navigačná cesta
|
|
75
|
+
BREADCRUMBS_OVERFLOW_ARIA_LABEL=Viac
|
|
76
|
+
STEPINPUT_INC_ICON_TITLE=Zvýšiť množstvo o
|
|
77
|
+
STEPINPUT_DEC_ICON_TITLE=Znížiť množstvo o
|
|
78
|
+
TABLE_NO_DATA_FOUND=Nenašli sa žiadne údaje
|
|
79
|
+
VALUE_STATE_ERROR=Neplatné zadanie
|
|
80
|
+
VALUE_STATE_WARNING=Upozornenie bolo vydané
|
|
81
|
+
VALUE_STATE_INFORMATION=Informatívne zadanie
|
|
82
|
+
VALUE_STATE_SUCCESS=Položka bola úspešne overená
|
|
83
|
+
READ_ONLY=Len na čítanie
|
|
84
|
+
SWITCH_ACCOUNT=Prepnúť účet
|
|
85
|
+
BACK=Späť
|
|
86
|
+
OTHER_IDENTITIES=Iné identity
|
|
87
|
+
ADD_OR_REMOVE_ACCOUNT=Pridať alebo odstrániť účet
|
|
88
|
+
COUNTRY_SELECT=Vyberte krajinu
|
|
89
|
+
CART=Košík
|
|
90
|
+
COUNTRY_SELECTOR=Selektor krajiny
|
|
91
|
+
PHONE_NUMBER=Telefónne číslo
|
|
92
|
+
CONTACT_US=Kontaktujte nás
|
|
93
|
+
EMAIL=E‑mail
|
|
94
|
+
CHAT_WITH_US=Chat s nami
|
|
95
|
+
QUICK_LINKS=Rýchle odkazy
|
|
96
|
+
TRENDING=Populárne
|
|
97
|
+
ABOUT_SAP=O spoločnosti SAP
|
|
98
|
+
SITE_INFORMATION=Informácie o lokalite
|
|
99
|
+
AVATAR_TEXT=Avatar
|
|
100
|
+
CALENDAR_ICON=Ikona Otvoriť kalendár
|
|
101
|
+
LIST_ITEM_EDIT_ICON=Upraviť zadanie položky zoznamu
|
|
102
|
+
LIST_ITEM_DELETE_ICON=Odstrániť zadanie položky zoznamu
|
|
103
|
+
BACK_BUTTON_LABEL=tlačidlo späť
|
|
104
|
+
STATUS_BADGE_TEXT=Odznak stavu
|
|
105
|
+
STATUS_BADGE_EDIT_TITLE=Na túto položku kliknite, ak chcete upraviť profil
|
|
106
|
+
STATUS_BADGE_INFORMATION_TITLE=Kliknutím na túto položku otvoríte informácie o profile
|
|
107
|
+
STATUS_BADGE_WARNING_TITLE=Upozornenie, potenciálne riziko s profilom
|
|
108
|
+
STATUS_BADGE_ERROR_TITLE=Vyskytla sa chyba profilu
|
|
109
|
+
STATUS_BADGE_SUCCESS_TITLE=Profil bol úspešne overený
|
|
110
|
+
PROFILE=Profil
|
|
111
|
+
OPENS_IN_A_NEW_WINDOW=otvorí sa v novom okne
|
|
112
|
+
TEXT_FIELD=Textové pole
|
|
113
|
+
UPLOADING_FILE_STATUS_TEXT=Nahráva sa
|
|
114
|
+
TERMINATED_FILE_STATUS_TEXT=Ukončené
|
|
115
|
+
REMOVE_FILE_TEXT=Odstrániť súbor
|
|
116
|
+
UPLOAD_BUTTON_LABEL=Nahrať súbor
|
|
117
|
+
COMPLETE_LIST_OF=Úplný zoznam
|
|
118
|
+
CALL_US_TODAY=Zavolajte nám ešte dnes!
|
|
119
|
+
SEARCH=Hľadať
|
|
120
|
+
RESULT_RETURNED=vrátených výsledkov.
|
|
121
|
+
SOCIAL_MEDIA_BUTTON=Tlačidlo sociálneho média
|
|
122
|
+
PROMO_TILE=Dlaždica propagačnej akcie
|
|
123
|
+
PROMO_TILE_ICON=Ikona dlaždice propagačnej akcie
|
|
124
|
+
PLAY_BUTTON_ACCESSIBLE_NAME=Tlačidlo spustenia na spustenie rotácie loga zákazníka
|
|
125
|
+
PAUSE_BUTTON_ACCESSIBLE_NAME=Tlačidlo pozastavenia na zastavenie rotácie loga zákazníka
|
|
126
|
+
LOCATION=Miesto konania
|
|
127
|
+
TOAST_CLOSE_ACCESSIBLE_NAME=Zatvoriť
|
|
128
|
+
DISABLED=Deaktivované
|
|
129
|
+
EXPAND=Rozbaliť
|
|
130
|
+
COLLAPSE=Zbaliť
|
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
COPYRIGHT=© {0} SAP SE ali SAP-jevo povezano podjetje. Vse pravice pridržane.
|
|
2
2
|
OVERVIEW=Pregled
|
|
3
|
-
|
|
3
|
+
LOGOUT=Izpiši me
|
|
4
4
|
MAIN_LINKS=Glavne povezave
|
|
5
5
|
BACK_TO_TOP=Nazaj na vrh
|
|
6
|
+
COUNT=Število
|
|
7
|
+
OF=od
|
|
8
|
+
PAGINATION_PAGE=Stran
|
|
9
|
+
SELECTED=Izbrano
|
|
10
|
+
UNSELECTED=Neizbrano
|
|
11
|
+
INDETERMINATE=Nedoločeno
|
|
12
|
+
EDIT_BUTTON=Urejanje
|
|
13
|
+
DELETE_BUTTON=Brisanje
|
|
14
|
+
BACK_TO_REGION_LIST=Nazaj na seznam regij
|
|
15
|
+
BUTTON_ARIA_TYPE_PRIMARY=Primarno
|
|
16
|
+
BUTTON_ARIA_TYPE_SECONDARY=Sekundarno
|
|
17
|
+
BUTTON_ARIA_TYPE_TERTIARY=Terciarno
|
|
18
|
+
BUTTON_ARIA_TYPE_WARNING=Opozorilo
|
|
19
|
+
BUTTON_ARIA_TYPE_POSITIVE=Pozitivno
|
|
20
|
+
BUTTON_ARIA_TYPE_NEGATIVE=Negativno
|
|
21
|
+
BUTTON_ARIA_EMPHASIZED=Poudarjeno
|
|
22
|
+
BUTTON_ARIA_DEFAULT=Privzeto
|
|
23
|
+
BUTTON_ARIA_TRANSPARENT=Transparentno
|
|
24
|
+
BUTTON_ARIA_ATTENTION=Pozor
|
|
25
|
+
DATEPICKER_DATE_DESCRIPTION=Vnos datuma
|
|
26
|
+
TOGGLED=Preklopljeno
|
|
27
|
+
FIRST_PAGE=Prva stran
|
|
28
|
+
LAST_PAGE=Zadnja stran
|
|
29
|
+
PREVIOUS_PAGE=Prejšnja stran
|
|
30
|
+
NEXT_PAGE=Naslednja stran
|
|
31
|
+
CURRENT_PAGE=Trenutna stran
|
|
32
|
+
ACTIVATE_PAGE=Aktiviranje številke strani
|
|
33
|
+
SUGGESTED_TEXT=predlagana iskanja
|
|
34
|
+
ACCESSIBLE_NAME_SEARCH_ICON=Iskanje
|
|
35
|
+
TOOLTIP_VOICE_BUTTON=Glas
|
|
36
|
+
TOOLTIP_SUBMIT_BUTTON=Pošlji
|
|
37
|
+
LISTENING=Poslušanje
|
|
38
|
+
AVAILABLE_VALUES=Razpoložljive vrednosti
|
|
39
|
+
RECOMMENDED_TEXT=Priporočene strani
|
|
40
|
+
EXPAND_ALL=Razširi vse
|
|
41
|
+
COLLAPSE_ALL=Strni vse
|
|
42
|
+
MORE=Več
|
|
43
|
+
ATTENTION_BADGE=Značka za pozornost
|
|
44
|
+
READ_MORE=Preberite več
|
|
45
|
+
READ_LESS=Preberite manj
|
|
46
|
+
SHOW_MORE=Pokaži več
|
|
47
|
+
SHOW_LESS=Prikaži manj
|
|
48
|
+
RATING_INDICATOR_TEXT=Oznaka ocene
|
|
49
|
+
RATING_INDICATOR_TOOLTIP_TEXT=Ocena
|
|
50
|
+
RATING_INDICATOR_ARIA_DESCRIPTION=Obvezno
|
|
51
|
+
TOTAL=Skupaj
|
|
52
|
+
RATING_COUNT_TITLE=Ocena
|
|
53
|
+
ARIA_LABEL_LIST_MULTISELECTABLE=Vsebuje postavke z možnostjo večkratne izbire
|
|
54
|
+
ARIA_LABEL_LIST_SELECTABLE=Vsebuje postavke z možnostjo izbire
|
|
55
|
+
SHOW_RESULTS=Prikaz rezultatov
|
|
56
|
+
RESET=Ponastavi
|
|
57
|
+
MESSAGE_STRIP_CLOSE_BUTTON=Gumb za zapiranje vrstice sporočila
|
|
58
|
+
MESSAGE_STRIP_INFORMATION=Vrstica z informacijami
|
|
59
|
+
MESSAGE_STRIP_SUCCESS=Vrstica uspešnosti
|
|
60
|
+
MESSAGE_STRIP_WARNING=Opozorilna vrstica
|
|
61
|
+
MESSAGE_STRIP_ERROR=Vrstica napake
|
|
62
|
+
MESSAGE_STRIP_ACTION=Vrstica dejanja
|
|
63
|
+
REVIEWS=ocen
|
|
64
|
+
STARS=zvezdic
|
|
65
|
+
SELECT_OPTIONS=Izbira možnosti
|
|
66
|
+
SELECT_ALL=Izbira vsega
|
|
67
|
+
TEXTAREA_CHARACTERS_LEFT=Preostalih znakov: {0}
|
|
68
|
+
VALUE_STATE_TYPE_ERROR=Status polja – napaka
|
|
69
|
+
VALUE_STATE_TYPE_WARNING=Status polja – opozorilo
|
|
70
|
+
VALUE_STATE_TYPE_SUCCESS=Status polja – uspešno
|
|
71
|
+
VALUE_STATE_TYPE_STANDARD=Status polja – standard
|
|
72
|
+
CAROUSEL_PREVIOUS_ARROW_TEXT=Prejšnja stran
|
|
73
|
+
CAROUSEL_NEXT_ARROW_TEXT=Naslednja stran
|
|
74
|
+
NO_MATCHES_FOUND=Ni ujemanj.
|
|
75
|
+
BREADCRUMBS_ARIA_LABEL=Natančna pot
|
|
76
|
+
BREADCRUMBS_OVERFLOW_ARIA_LABEL=Več
|
|
77
|
+
STEPINPUT_INC_ICON_TITLE=Povečanje količine za
|
|
78
|
+
STEPINPUT_DEC_ICON_TITLE=Zmanjšanje količine za
|
|
79
|
+
TABLE_NO_DATA_FOUND=Ni najdenih podatkov
|
|
80
|
+
VALUE_STATE_ERROR=Neveljaven vnos
|
|
81
|
+
VALUE_STATE_WARNING=Opozorilo izdano
|
|
82
|
+
VALUE_STATE_INFORMATION=Informativni vnos
|
|
83
|
+
VALUE_STATE_SUCCESS=Vnos uspešno preverjen
|
|
84
|
+
READ_ONLY=Samo za branje
|
|
85
|
+
SWITCH_ACCOUNT=Preklop med računi
|
|
86
|
+
BACK=Nazaj
|
|
87
|
+
OTHER_IDENTITIES=Druge identitete
|
|
88
|
+
ADD_OR_REMOVE_ACCOUNT=Dodajanje ali odstranjevanje računa
|
|
89
|
+
COUNTRY_SELECT=Izbira države
|
|
90
|
+
CART=Košarica
|
|
91
|
+
COUNTRY_SELECTOR=Izbirnik držav
|
|
92
|
+
PHONE_NUMBER=Telefonska številka
|
|
93
|
+
CONTACT_US=Stopite v stik z nami
|
|
94
|
+
EMAIL=E-pošta
|
|
95
|
+
CHAT_WITH_US=Klepet z nami
|
|
96
|
+
QUICK_LINKS=Hitre povezave
|
|
97
|
+
TRENDING=V trendu
|
|
98
|
+
ABOUT_SAP=O družbi SAP
|
|
99
|
+
SITE_INFORMATION=Informacije o spletnem mestu
|
|
100
|
+
AVATAR_TEXT=Avatar
|
|
101
|
+
CALENDAR_ICON=Ikona za odpiranje koledarja
|
|
102
|
+
LIST_ITEM_EDIT_ICON=Urejanje vnosa postavke seznama
|
|
103
|
+
BACK_BUTTON_LABEL=Gumb za nazaj
|
|
104
|
+
STATUS_BADGE_TEXT=Značka statusa
|
|
105
|
+
STATUS_BADGE_EDIT_TITLE=Kliknite za urejanje profila
|
|
106
|
+
STATUS_BADGE_INFORMATION_TITLE=Kliknite za informacije o profilu
|
|
107
|
+
STATUS_BADGE_WARNING_TITLE=Opozorilo, morebitno tveganje s profilom
|
|
108
|
+
STATUS_BADGE_ERROR_TITLE=Napaka v profilu
|
|
109
|
+
STATUS_BADGE_SUCCESS_TITLE=Uspešno preverjen profil
|
|
110
|
+
PROFILE=Profil
|
|
111
|
+
OPENS_IN_A_NEW_WINDOW=odpre se v novem oknu
|
|
112
|
+
TEXT_FIELD=Besedilno polje
|
|
113
|
+
UPLOADING_FILE_STATUS_TEXT=Prenašanje v strežnik
|
|
114
|
+
TERMINATED_FILE_STATUS_TEXT=Prekinjeno
|
|
115
|
+
REMOVE_FILE_TEXT=Odstranitev datoteke
|
|
116
|
+
UPLOAD_BUTTON_LABEL=Prenos v strežnik
|
|
117
|
+
COMPLETE_LIST_OF=Popoln seznam
|
|
118
|
+
CALL_US_TODAY=Pokličite nas še danes!
|
|
119
|
+
SEARCH=Išči
|
|
120
|
+
RESULT_RETURNED=vrnjenih rezultatov.
|
|
121
|
+
SOCIAL_MEDIA_BUTTON=Gumb za družbena omrežja
|
|
122
|
+
PROMO_TILE=Promocijska ploščica
|
|
123
|
+
PROMO_TILE_ICON=Ikona promocijske ploščice
|
|
124
|
+
PLAY_BUTTON_ACCESSIBLE_NAME=Gumb za začetek za začetek kroženja logotipov strank
|
|
125
|
+
PAUSE_BUTTON_ACCESSIBLE_NAME=Gumb za začasno prekinitev za zaustavitev kroženja logotipov strank
|
|
126
|
+
LOCATION=Lokacija
|
|
127
|
+
TOAST_CLOSE_ACCESSIBLE_NAME=Zapri
|
|
128
|
+
DISABLED=Onemogočeno
|
|
129
|
+
EXPAND=Razširi
|
|
130
|
+
COLLAPSE=Strni
|
|
@@ -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
|
{
|
|
@@ -4810,6 +4810,11 @@
|
|
|
4810
4810
|
"description": "Defines whether the UI5Tokenizer is expanded.",
|
|
4811
4811
|
"values": []
|
|
4812
4812
|
},
|
|
4813
|
+
{
|
|
4814
|
+
"name": "tooltip-accessible-name",
|
|
4815
|
+
"description": "Defines the accessible name for the \"Show More\" tooltip, announced by screen readers\nwhen the tooltip containing hidden tags is opened.",
|
|
4816
|
+
"values": []
|
|
4817
|
+
},
|
|
4813
4818
|
{
|
|
4814
4819
|
"name": "tooltip-placement",
|
|
4815
4820
|
"description": "Determines on which side of the component the Tooltip is displayed.",
|
|
@@ -4984,6 +4989,11 @@
|
|
|
4984
4989
|
"description": "Defines the name of the input element.",
|
|
4985
4990
|
"values": []
|
|
4986
4991
|
},
|
|
4992
|
+
{
|
|
4993
|
+
"name": "placeholder",
|
|
4994
|
+
"description": "Defines the placeholder text of the input field.",
|
|
4995
|
+
"values": []
|
|
4996
|
+
},
|
|
4987
4997
|
{
|
|
4988
4998
|
"name": "readonly",
|
|
4989
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.45.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.",
|
|
@@ -10170,6 +10183,11 @@
|
|
|
10170
10183
|
"description": "Defines whether the UI5Tokenizer is expanded.",
|
|
10171
10184
|
"value": { "type": "boolean", "default": "false" }
|
|
10172
10185
|
},
|
|
10186
|
+
{
|
|
10187
|
+
"name": "tooltip-accessible-name",
|
|
10188
|
+
"description": "Defines the accessible name for the \"Show More\" tooltip, announced by screen readers\nwhen the tooltip containing hidden tags is opened.",
|
|
10189
|
+
"value": { "type": "string | undefined", "default": "undefined" }
|
|
10190
|
+
},
|
|
10173
10191
|
{
|
|
10174
10192
|
"name": "tooltip-placement",
|
|
10175
10193
|
"description": "Determines on which side of the component the Tooltip is displayed.",
|
|
@@ -10220,6 +10238,11 @@
|
|
|
10220
10238
|
"description": "Defines whether the UI5Tokenizer is expanded.",
|
|
10221
10239
|
"value": { "type": "boolean" }
|
|
10222
10240
|
},
|
|
10241
|
+
{
|
|
10242
|
+
"name": "tooltip-accessible-name",
|
|
10243
|
+
"description": "Defines the accessible name for the \"Show More\" tooltip, announced by screen readers\nwhen the tooltip containing hidden tags is opened.",
|
|
10244
|
+
"value": { "type": "string | undefined" }
|
|
10245
|
+
},
|
|
10223
10246
|
{
|
|
10224
10247
|
"name": "tooltip-placement",
|
|
10225
10248
|
"description": "Determines on which side of the component the Tooltip is displayed.",
|
|
@@ -10494,6 +10517,11 @@
|
|
|
10494
10517
|
"description": "Defines the name of the input element.",
|
|
10495
10518
|
"value": { "type": "string", "default": "\"\"" }
|
|
10496
10519
|
},
|
|
10520
|
+
{
|
|
10521
|
+
"name": "placeholder",
|
|
10522
|
+
"description": "Defines the placeholder text of the input field.",
|
|
10523
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
10524
|
+
},
|
|
10497
10525
|
{
|
|
10498
10526
|
"name": "readonly",
|
|
10499
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.",
|
|
@@ -10621,6 +10649,11 @@
|
|
|
10621
10649
|
"description": "Defines the name of the input element.",
|
|
10622
10650
|
"value": { "type": "string" }
|
|
10623
10651
|
},
|
|
10652
|
+
{
|
|
10653
|
+
"name": "placeholder",
|
|
10654
|
+
"description": "Defines the placeholder text of the input field.",
|
|
10655
|
+
"value": { "type": "string" }
|
|
10656
|
+
},
|
|
10624
10657
|
{
|
|
10625
10658
|
"name": "readonly",
|
|
10626
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
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}
|