From c74d0c98828f78c219ef69cbc488821c14376c4e Mon Sep 17 00:00:00 2001 From: Kael Date: Sun, 21 Apr 2024 14:39:30 +1000 Subject: [PATCH] feat(VSnackbarQueue): create new component (#19629) closes #2384 Co-authored-by: John Leider --- packages/docs/components.d.ts | 1 - .../docs/src/components/app/SnackbarQueue.vue | 47 ----- packages/docs/src/data/nav.json | 4 + .../src/examples/v-snackbar-queue/usage.vue | 74 ++++++++ packages/docs/src/layouts/default.vue | 2 - packages/docs/src/layouts/home.vue | 2 - packages/docs/src/layouts/user.vue | 2 - .../src/pages/en/components/snackbar-queue.md | 38 ++++ packages/docs/src/stores/app.ts | 13 -- .../labs/VSnackbarQueue/VSnackbarQueue.tsx | 165 ++++++++++++++++++ .../vuetify/src/labs/VSnackbarQueue/index.ts | 1 + packages/vuetify/src/labs/components.ts | 1 + packages/vuetify/src/locale/af.ts | 1 + packages/vuetify/src/locale/ar.ts | 1 + packages/vuetify/src/locale/az.ts | 1 + packages/vuetify/src/locale/bg.ts | 1 + packages/vuetify/src/locale/ca.ts | 1 + packages/vuetify/src/locale/ckb.ts | 1 + packages/vuetify/src/locale/cs.ts | 1 + packages/vuetify/src/locale/da.ts | 1 + packages/vuetify/src/locale/de.ts | 1 + packages/vuetify/src/locale/el.ts | 1 + packages/vuetify/src/locale/en.ts | 1 + packages/vuetify/src/locale/es.ts | 1 + packages/vuetify/src/locale/et.ts | 1 + packages/vuetify/src/locale/fa.ts | 1 + packages/vuetify/src/locale/fi.ts | 1 + packages/vuetify/src/locale/fr.ts | 1 + packages/vuetify/src/locale/he.ts | 1 + packages/vuetify/src/locale/hr.ts | 1 + packages/vuetify/src/locale/hu.ts | 1 + packages/vuetify/src/locale/id.ts | 1 + packages/vuetify/src/locale/it.ts | 1 + packages/vuetify/src/locale/ja.ts | 1 + packages/vuetify/src/locale/km.ts | 1 + packages/vuetify/src/locale/ko.ts | 1 + packages/vuetify/src/locale/lt.ts | 1 + packages/vuetify/src/locale/lv.ts | 1 + packages/vuetify/src/locale/nl.ts | 1 + packages/vuetify/src/locale/no.ts | 1 + packages/vuetify/src/locale/pl.ts | 1 + packages/vuetify/src/locale/pt.ts | 1 + packages/vuetify/src/locale/ro.ts | 1 + packages/vuetify/src/locale/ru.ts | 1 + packages/vuetify/src/locale/sk.ts | 1 + packages/vuetify/src/locale/sl.ts | 1 + packages/vuetify/src/locale/sr-Cyrl.ts | 1 + packages/vuetify/src/locale/sr-Latn.ts | 1 + packages/vuetify/src/locale/sv.ts | 1 + packages/vuetify/src/locale/th.ts | 1 + packages/vuetify/src/locale/tr.ts | 1 + packages/vuetify/src/locale/uk.ts | 1 + packages/vuetify/src/locale/vi.ts | 1 + packages/vuetify/src/locale/zh-Hans.ts | 1 + packages/vuetify/src/locale/zh-Hant.ts | 1 + 55 files changed, 326 insertions(+), 67 deletions(-) delete mode 100644 packages/docs/src/components/app/SnackbarQueue.vue create mode 100644 packages/docs/src/examples/v-snackbar-queue/usage.vue create mode 100644 packages/docs/src/pages/en/components/snackbar-queue.md create mode 100644 packages/vuetify/src/labs/VSnackbarQueue/VSnackbarQueue.tsx create mode 100644 packages/vuetify/src/labs/VSnackbarQueue/index.ts diff --git a/packages/docs/components.d.ts b/packages/docs/components.d.ts index c53f1629ae3..abf04edb7ee 100644 --- a/packages/docs/components.d.ts +++ b/packages/docs/components.d.ts @@ -80,7 +80,6 @@ declare module 'vue' { AppSettingsPerksOptions: typeof import('./src/components/app/settings/PerksOptions.vue')['default'] AppSettingsSettingsHeader: typeof import('./src/components/app/settings/SettingsHeader.vue')['default'] AppSheet: typeof import('./src/components/app/Sheet.vue')['default'] - AppSnackbarQueue: typeof import('./src/components/app/SnackbarQueue.vue')['default'] AppTable: typeof import('./src/components/app/Table.vue')['default'] AppTextField: typeof import('./src/components/app/TextField.vue')['default'] AppTitle: typeof import('./src/components/app/Title.vue')['default'] diff --git a/packages/docs/src/components/app/SnackbarQueue.vue b/packages/docs/src/components/app/SnackbarQueue.vue deleted file mode 100644 index 94558df38d0..00000000000 --- a/packages/docs/src/components/app/SnackbarQueue.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/packages/docs/src/data/nav.json b/packages/docs/src/data/nav.json index 0a0a3e0a0c0..b48491f25fc 100644 --- a/packages/docs/src/data/nav.json +++ b/packages/docs/src/data/nav.json @@ -240,6 +240,10 @@ "title": "number-inputs", "subfolder": "components" }, + { + "title": "snackbar-queue", + "subfolder": "components" + }, { "title": "sparklines", "subfolder": "components" diff --git a/packages/docs/src/examples/v-snackbar-queue/usage.vue b/packages/docs/src/examples/v-snackbar-queue/usage.vue new file mode 100644 index 00000000000..0f911b1479e --- /dev/null +++ b/packages/docs/src/examples/v-snackbar-queue/usage.vue @@ -0,0 +1,74 @@ + + + diff --git a/packages/docs/src/layouts/default.vue b/packages/docs/src/layouts/default.vue index 14175b6f4f0..50f5540a07c 100644 --- a/packages/docs/src/layouts/default.vue +++ b/packages/docs/src/layouts/default.vue @@ -12,8 +12,6 @@ - - - - diff --git a/packages/docs/src/layouts/user.vue b/packages/docs/src/layouts/user.vue index b95a41e725f..d4034c8e830 100644 --- a/packages/docs/src/layouts/user.vue +++ b/packages/docs/src/layouts/user.vue @@ -8,8 +8,6 @@ - - diff --git a/packages/docs/src/pages/en/components/snackbar-queue.md b/packages/docs/src/pages/en/components/snackbar-queue.md new file mode 100644 index 00000000000..bdbd6c8af12 --- /dev/null +++ b/packages/docs/src/pages/en/components/snackbar-queue.md @@ -0,0 +1,38 @@ +--- +emphasized: true +meta: + nav: Snackbar Queue + title: Snackbar Queue component + description: test + keywords: test +related: + - /components/buttons/ + - /components/snackbars/ + - /components/defaults-providers/ +features: + github: /labs/VSnackbarQueue/ + label: 'C: VSnackbarQueue' + report: true + spec: https://m2.material.io/components/snackbars +--- + +# Snackbar Queue + +The `v-snackbar-queue` component is used to queue up multiple snackbar messages to be displayed to the user. Snackbars support positioning, removal delay, and callbacks. + + + +## Usage + + + + + +## API + +| Component | Description | +| - | - | +| [v-snackbar-queue](/api/v-snackbar-queue/) | Primary Component | +| [v-snackbar](/api/v-snackbar/) | The actual Snackbar Component | + + diff --git a/packages/docs/src/stores/app.ts b/packages/docs/src/stores/app.ts index 881f527b8b0..4b431132aae 100644 --- a/packages/docs/src/stores/app.ts +++ b/packages/docs/src/stores/app.ts @@ -7,12 +7,6 @@ export type Category = { color: string } -export type Notification = { - message: string - timeout?: number - color?: string -} - export type RootState = { apiSearch: string drawer: boolean | null @@ -21,7 +15,6 @@ export type RootState = { items: NavItem[] pages: string[] settings: boolean - notifications: Notification[] categories: Record } @@ -44,7 +37,6 @@ export const useAppStore = defineStore({ items: Array.from(data), pages: getPages(data as NavItem[]), settings: false, - notifications: [], categories: { api: { icon: 'mdi-flask-outline', @@ -92,11 +84,6 @@ export const useAppStore = defineStore({ }, }, } as RootState), - actions: { - snackbar (message: string, options: Partial = {}) { - this.notifications.push({ message, ...options }) - }, - }, }) function getPage (item: NavItem, parent = ''): string[] { diff --git a/packages/vuetify/src/labs/VSnackbarQueue/VSnackbarQueue.tsx b/packages/vuetify/src/labs/VSnackbarQueue/VSnackbarQueue.tsx new file mode 100644 index 00000000000..f6c3c39d4be --- /dev/null +++ b/packages/vuetify/src/labs/VSnackbarQueue/VSnackbarQueue.tsx @@ -0,0 +1,165 @@ +// Components +import { VBtn } from '@/components/VBtn' +import { VDefaultsProvider } from '@/components/VDefaultsProvider' +import { makeVSnackbarProps, VSnackbar } from '@/components/VSnackbar/VSnackbar' + +// Composables +import { useLocale } from '@/composables/locale' + +// Utilities +import { computed, nextTick, shallowRef, watch } from 'vue' +import { genericComponent, omit, propsFactory, useRender } from '@/util' + +// Types +import type { PropType } from 'vue' +import type { GenericProps } from '@/util' + +export type VSnackbarQueueSlots = { + default: { item: T } + text: { item: T } + actions: { + item: T + props: { + onClick: () => void + } + } +} + +export type SnackbarMessage = Omit< + VSnackbar['$props'], + | '$children' + | 'modelValue' + | 'onUpdate:modelValue' + | 'activator' + | 'activatorProps' + | 'closeDelay' + | 'openDelay' + | 'openOnClick' + | 'openOnFocus' + | 'openOnHover' +> + +export const makeVSnackbarQueueProps = propsFactory({ + // TODO: Port this to Snackbar on dev + closable: [Boolean, String], + closeText: { + type: String, + default: '$vuetify.dismiss', + }, + modelValue: { + type: Array as PropType, + default: () => [], + }, + + ...omit(makeVSnackbarProps(), ['modelValue']), +}, 'VSnackbarQueue') + +export const VSnackbarQueue = genericComponent ( + props: { + modelValue?: T + 'onUpdate:modelValue'?: (val: T) => void + }, + slots: VSnackbarQueueSlots, +) => GenericProps>()({ + name: 'VSnackbarQueue', + + props: makeVSnackbarQueueProps(), + + emits: { + 'update:modelValue': (val: (string | SnackbarMessage)[]) => true, + }, + + setup (props, { emit, slots }) { + const { t } = useLocale() + + const isActive = shallowRef(false) + const isVisible = shallowRef(false) + const current = shallowRef() + + watch(() => props.modelValue.length, (val, oldVal) => { + if (!isVisible.value && val > oldVal) { + showNext() + } + }) + watch(isActive, val => { + if (val) isVisible.value = true + }) + + function onAfterLeave () { + if (props.modelValue.length) { + showNext() + } else { + current.value = undefined + isVisible.value = false + } + } + function showNext () { + const [next, ...rest] = props.modelValue + emit('update:modelValue', rest) + current.value = typeof next === 'string' ? { text: next } : next + nextTick(() => { + isActive.value = true + }) + } + function onClickClose () { + isActive.value = false + } + + const btnProps = computed(() => ({ + color: typeof props.closable === 'string' ? props.closable : undefined, + text: t(props.closeText), + })) + + useRender(() => { + const hasActions = !!(props.closable || slots.actions) + const { modelValue: _, ...snackbarProps } = VSnackbar.filterProps(props as any) + + return ( + <> + { isVisible.value && !!current.value && ( + slots.default + ? ( + + { slots.default({ item: current.value }) } + + ) : ( + + {{ + text: slots.text ? () => slots.text?.({ item: current.value! }) : undefined, + actions: hasActions ? () => ( + <> + { !slots.actions ? ( + + ) : ( + + { slots.actions({ + item: current.value!, + props: { onClick: onClickClose }, + })} + + )} + + ) : undefined, + }} + + ) + )} + + ) + }) + }, +}) + +export type VSnackbarQueue = InstanceType diff --git a/packages/vuetify/src/labs/VSnackbarQueue/index.ts b/packages/vuetify/src/labs/VSnackbarQueue/index.ts new file mode 100644 index 00000000000..8fe3df988b5 --- /dev/null +++ b/packages/vuetify/src/labs/VSnackbarQueue/index.ts @@ -0,0 +1 @@ +export { VSnackbarQueue } from './VSnackbarQueue' diff --git a/packages/vuetify/src/labs/components.ts b/packages/vuetify/src/labs/components.ts index 98850084f8e..037336bc275 100644 --- a/packages/vuetify/src/labs/components.ts +++ b/packages/vuetify/src/labs/components.ts @@ -4,6 +4,7 @@ export * from './VEmptyState' export * from './VFab' export * from './VNumberInput' export * from './VPicker' +export * from './VSnackbarQueue' export * from './VSparkline' export * from './VSpeedDial' export * from './VTimePicker' diff --git a/packages/vuetify/src/locale/af.ts b/packages/vuetify/src/locale/af.ts index 16b8461da6e..34fc7bd4c76 100644 --- a/packages/vuetify/src/locale/af.ts +++ b/packages/vuetify/src/locale/af.ts @@ -2,6 +2,7 @@ export default { badge: 'badge', open: 'Open', close: 'Close', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/ar.ts b/packages/vuetify/src/locale/ar.ts index b265d61335a..b5ec2b2ea6f 100644 --- a/packages/vuetify/src/locale/ar.ts +++ b/packages/vuetify/src/locale/ar.ts @@ -2,6 +2,7 @@ export default { badge: 'شارة', open: 'Open', close: 'إغلاق', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/az.ts b/packages/vuetify/src/locale/az.ts index 1bfeb3ccd86..b452d1ccd95 100644 --- a/packages/vuetify/src/locale/az.ts +++ b/packages/vuetify/src/locale/az.ts @@ -2,6 +2,7 @@ export default { badge: 'nişan', open: 'Open', close: 'Bağla', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/bg.ts b/packages/vuetify/src/locale/bg.ts index 97556f97b8a..f795df46016 100644 --- a/packages/vuetify/src/locale/bg.ts +++ b/packages/vuetify/src/locale/bg.ts @@ -2,6 +2,7 @@ export default { badge: 'Значка', open: 'Отвори', close: 'Затвори', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Отмяна', diff --git a/packages/vuetify/src/locale/ca.ts b/packages/vuetify/src/locale/ca.ts index 95e0c4cd1f5..09b06b0b9e9 100644 --- a/packages/vuetify/src/locale/ca.ts +++ b/packages/vuetify/src/locale/ca.ts @@ -2,6 +2,7 @@ export default { badge: 'Insígnia', open: 'Open', close: 'Tancar', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/ckb.ts b/packages/vuetify/src/locale/ckb.ts index 7a85013a3a0..64ffde6ea1a 100644 --- a/packages/vuetify/src/locale/ckb.ts +++ b/packages/vuetify/src/locale/ckb.ts @@ -2,6 +2,7 @@ export default { badge: 'باج', open: 'Open', close: 'داخستن', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/cs.ts b/packages/vuetify/src/locale/cs.ts index 4ebe6d78d77..85a8b6b613a 100644 --- a/packages/vuetify/src/locale/cs.ts +++ b/packages/vuetify/src/locale/cs.ts @@ -2,6 +2,7 @@ export default { badge: 'Odznak', open: 'Otevřiť', close: 'Zavřít', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Zrušit', diff --git a/packages/vuetify/src/locale/da.ts b/packages/vuetify/src/locale/da.ts index c80f32a89d4..8a80af26500 100644 --- a/packages/vuetify/src/locale/da.ts +++ b/packages/vuetify/src/locale/da.ts @@ -2,6 +2,7 @@ export default { badge: 'Emblem', open: 'Open', close: 'Luk', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/de.ts b/packages/vuetify/src/locale/de.ts index aa8d614e8aa..7d1dacd2701 100644 --- a/packages/vuetify/src/locale/de.ts +++ b/packages/vuetify/src/locale/de.ts @@ -2,6 +2,7 @@ export default { badge: 'Abzeichen', open: 'Öffnen', close: 'Schließen', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Abbrechen', diff --git a/packages/vuetify/src/locale/el.ts b/packages/vuetify/src/locale/el.ts index 9a2c757b2fa..be1701683f9 100755 --- a/packages/vuetify/src/locale/el.ts +++ b/packages/vuetify/src/locale/el.ts @@ -2,6 +2,7 @@ export default { badge: 'Σήμα', open: 'Open', close: 'Close', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/en.ts b/packages/vuetify/src/locale/en.ts index c03b6d6395b..cf94f5e9786 100644 --- a/packages/vuetify/src/locale/en.ts +++ b/packages/vuetify/src/locale/en.ts @@ -2,6 +2,7 @@ export default { badge: 'Badge', open: 'Open', close: 'Close', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/es.ts b/packages/vuetify/src/locale/es.ts index 81dd808d8db..849ddececaa 100644 --- a/packages/vuetify/src/locale/es.ts +++ b/packages/vuetify/src/locale/es.ts @@ -2,6 +2,7 @@ export default { badge: 'Placa', open: 'Open', close: 'Cerrar', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/et.ts b/packages/vuetify/src/locale/et.ts index f6ac5a40204..b420079173d 100644 --- a/packages/vuetify/src/locale/et.ts +++ b/packages/vuetify/src/locale/et.ts @@ -2,6 +2,7 @@ export default { badge: 'Märk', open: 'Open', close: 'Sulge', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/fa.ts b/packages/vuetify/src/locale/fa.ts index 87841876b98..e1efd668b60 100644 --- a/packages/vuetify/src/locale/fa.ts +++ b/packages/vuetify/src/locale/fa.ts @@ -2,6 +2,7 @@ export default { badge: 'نشان', open: 'Open', close: 'بستن', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'لغو', diff --git a/packages/vuetify/src/locale/fi.ts b/packages/vuetify/src/locale/fi.ts index 53b916003e9..d03c0703928 100644 --- a/packages/vuetify/src/locale/fi.ts +++ b/packages/vuetify/src/locale/fi.ts @@ -2,6 +2,7 @@ export default { badge: 'Infopiste', open: 'Open', close: 'Sulje', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/fr.ts b/packages/vuetify/src/locale/fr.ts index dfd33b512c6..717e2902829 100644 --- a/packages/vuetify/src/locale/fr.ts +++ b/packages/vuetify/src/locale/fr.ts @@ -2,6 +2,7 @@ export default { badge: 'Badge', open: 'Ouvrir', close: 'Fermer', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Annuler', diff --git a/packages/vuetify/src/locale/he.ts b/packages/vuetify/src/locale/he.ts index 253b5c1708c..ebc04e428e6 100644 --- a/packages/vuetify/src/locale/he.ts +++ b/packages/vuetify/src/locale/he.ts @@ -2,6 +2,7 @@ export default { badge: 'תג', open: 'Open', close: 'סגור', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/hr.ts b/packages/vuetify/src/locale/hr.ts index 7e82c3be8d2..d24be21324b 100644 --- a/packages/vuetify/src/locale/hr.ts +++ b/packages/vuetify/src/locale/hr.ts @@ -2,6 +2,7 @@ export default { badge: 'Bedž', open: 'Open', close: 'Zatvori', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/hu.ts b/packages/vuetify/src/locale/hu.ts index ae4efb4bded..707e2faa4e2 100644 --- a/packages/vuetify/src/locale/hu.ts +++ b/packages/vuetify/src/locale/hu.ts @@ -2,6 +2,7 @@ export default { badge: 'Jelvény', open: 'Open', close: 'Bezárás', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/id.ts b/packages/vuetify/src/locale/id.ts index 734fa04c40f..ad689c5f478 100644 --- a/packages/vuetify/src/locale/id.ts +++ b/packages/vuetify/src/locale/id.ts @@ -2,6 +2,7 @@ export default { badge: 'Lencana', open: 'Open', close: 'Tutup', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/it.ts b/packages/vuetify/src/locale/it.ts index 0614b098ce1..cc2d11e9f53 100644 --- a/packages/vuetify/src/locale/it.ts +++ b/packages/vuetify/src/locale/it.ts @@ -2,6 +2,7 @@ export default { badge: 'Distintivo', open: 'Apri', close: 'Chiudi', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Annulla', diff --git a/packages/vuetify/src/locale/ja.ts b/packages/vuetify/src/locale/ja.ts index 00211bf9280..1156492f552 100644 --- a/packages/vuetify/src/locale/ja.ts +++ b/packages/vuetify/src/locale/ja.ts @@ -2,6 +2,7 @@ export default { badge: 'バッジ', open: 'Open', close: '閉じる', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/km.ts b/packages/vuetify/src/locale/km.ts index f3f4b238701..10c1cd735ac 100644 --- a/packages/vuetify/src/locale/km.ts +++ b/packages/vuetify/src/locale/km.ts @@ -2,6 +2,7 @@ export default { badge: 'ផ្លាក', open: 'បើក', close: 'បិទ', + dismiss: 'Dismiss', confirmEdit: { ok: 'យល់ព្រម', cancel: 'បោះបង់', diff --git a/packages/vuetify/src/locale/ko.ts b/packages/vuetify/src/locale/ko.ts index f0c212dd701..f038b7c3679 100644 --- a/packages/vuetify/src/locale/ko.ts +++ b/packages/vuetify/src/locale/ko.ts @@ -2,6 +2,7 @@ export default { badge: '배지', open: 'Open', close: '닫기', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/lt.ts b/packages/vuetify/src/locale/lt.ts index 82174e1330c..307340e31a3 100644 --- a/packages/vuetify/src/locale/lt.ts +++ b/packages/vuetify/src/locale/lt.ts @@ -2,6 +2,7 @@ export default { badge: 'Ženklelis', open: 'Atidaryti', close: 'Uždaryti', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Atšaukti', diff --git a/packages/vuetify/src/locale/lv.ts b/packages/vuetify/src/locale/lv.ts index 911cca0f464..eb493589646 100644 --- a/packages/vuetify/src/locale/lv.ts +++ b/packages/vuetify/src/locale/lv.ts @@ -2,6 +2,7 @@ export default { badge: 'Žetons', open: 'Open', close: 'Aizvērt', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/nl.ts b/packages/vuetify/src/locale/nl.ts index de2fe1fb9e9..b8c6032fe32 100644 --- a/packages/vuetify/src/locale/nl.ts +++ b/packages/vuetify/src/locale/nl.ts @@ -2,6 +2,7 @@ export default { badge: 'Insigne', open: 'Openen', close: 'Sluiten', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Annuleren', diff --git a/packages/vuetify/src/locale/no.ts b/packages/vuetify/src/locale/no.ts index 3fb78ac86b0..c9fc72ddfc6 100644 --- a/packages/vuetify/src/locale/no.ts +++ b/packages/vuetify/src/locale/no.ts @@ -2,6 +2,7 @@ export default { badge: 'Skilt', open: 'Åpne', close: 'Lukk', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Avbryt', diff --git a/packages/vuetify/src/locale/pl.ts b/packages/vuetify/src/locale/pl.ts index bdb1000c1ff..0e45ad375df 100644 --- a/packages/vuetify/src/locale/pl.ts +++ b/packages/vuetify/src/locale/pl.ts @@ -2,6 +2,7 @@ export default { badge: 'Odznaka', open: 'Otwórz', close: 'Zamknij', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Anuluj', diff --git a/packages/vuetify/src/locale/pt.ts b/packages/vuetify/src/locale/pt.ts index 52ec4131ddd..d6094cb7edd 100644 --- a/packages/vuetify/src/locale/pt.ts +++ b/packages/vuetify/src/locale/pt.ts @@ -2,6 +2,7 @@ export default { badge: 'Distintivo', open: 'Abrir', close: 'Fechar', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/ro.ts b/packages/vuetify/src/locale/ro.ts index e0016f9088f..615b2861637 100644 --- a/packages/vuetify/src/locale/ro.ts +++ b/packages/vuetify/src/locale/ro.ts @@ -2,6 +2,7 @@ export default { badge: 'Insignă', open: 'Open', close: 'Închideți', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Anulează', diff --git a/packages/vuetify/src/locale/ru.ts b/packages/vuetify/src/locale/ru.ts index 7af99bc3779..3c6eb2cde0e 100644 --- a/packages/vuetify/src/locale/ru.ts +++ b/packages/vuetify/src/locale/ru.ts @@ -2,6 +2,7 @@ export default { badge: 'Знак', open: 'Открыть', close: 'Закрыть', + dismiss: 'Dismiss', confirmEdit: { ok: 'ОК', cancel: 'Отмена', diff --git a/packages/vuetify/src/locale/sk.ts b/packages/vuetify/src/locale/sk.ts index eef18e9739b..9b1ffe2481e 100644 --- a/packages/vuetify/src/locale/sk.ts +++ b/packages/vuetify/src/locale/sk.ts @@ -2,6 +2,7 @@ export default { badge: 'Odznak', open: 'Otvoriť', close: 'Zavrieť', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Zrušiť', diff --git a/packages/vuetify/src/locale/sl.ts b/packages/vuetify/src/locale/sl.ts index f31c327c6b5..c36e668c611 100644 --- a/packages/vuetify/src/locale/sl.ts +++ b/packages/vuetify/src/locale/sl.ts @@ -2,6 +2,7 @@ export default { badge: 'Značka', open: 'Odpri', close: 'Zapri', + dismiss: 'Dismiss', confirmEdit: { ok: 'V redu', cancel: 'Prekliči', diff --git a/packages/vuetify/src/locale/sr-Cyrl.ts b/packages/vuetify/src/locale/sr-Cyrl.ts index f923df03f01..6e9c1f9cc16 100644 --- a/packages/vuetify/src/locale/sr-Cyrl.ts +++ b/packages/vuetify/src/locale/sr-Cyrl.ts @@ -2,6 +2,7 @@ export default { badge: 'Значка', open: 'Open', close: 'Затвори', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/sr-Latn.ts b/packages/vuetify/src/locale/sr-Latn.ts index 98dc97ab4ce..485d81bd2d0 100644 --- a/packages/vuetify/src/locale/sr-Latn.ts +++ b/packages/vuetify/src/locale/sr-Latn.ts @@ -2,6 +2,7 @@ export default { badge: 'Značka', open: 'Open', close: 'Zatvori', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/sv.ts b/packages/vuetify/src/locale/sv.ts index 5818b705339..2a0b576b7aa 100644 --- a/packages/vuetify/src/locale/sv.ts +++ b/packages/vuetify/src/locale/sv.ts @@ -2,6 +2,7 @@ export default { badge: 'Bricka', open: 'Open', close: 'Stäng', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Avbryt', diff --git a/packages/vuetify/src/locale/th.ts b/packages/vuetify/src/locale/th.ts index cd22cdcdd58..672643cd6c0 100644 --- a/packages/vuetify/src/locale/th.ts +++ b/packages/vuetify/src/locale/th.ts @@ -2,6 +2,7 @@ export default { badge: 'สัญลักษณ์', open: 'Open', close: 'ปิด', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/tr.ts b/packages/vuetify/src/locale/tr.ts index 7f0242c6b81..2463d23ba1e 100644 --- a/packages/vuetify/src/locale/tr.ts +++ b/packages/vuetify/src/locale/tr.ts @@ -2,6 +2,7 @@ export default { badge: 'rozet', open: 'Open', close: 'Kapat', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/uk.ts b/packages/vuetify/src/locale/uk.ts index ab6af48c040..4d1d28540ac 100644 --- a/packages/vuetify/src/locale/uk.ts +++ b/packages/vuetify/src/locale/uk.ts @@ -2,6 +2,7 @@ export default { badge: 'Знак', open: 'Open', close: 'Закрити', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/vi.ts b/packages/vuetify/src/locale/vi.ts index 4d0a1b7b27e..67915a2dc1e 100644 --- a/packages/vuetify/src/locale/vi.ts +++ b/packages/vuetify/src/locale/vi.ts @@ -2,6 +2,7 @@ export default { badge: 'Huy hiệu', open: 'Open', close: 'Đóng', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/zh-Hans.ts b/packages/vuetify/src/locale/zh-Hans.ts index 6dddccf4a68..dec1c61f811 100644 --- a/packages/vuetify/src/locale/zh-Hans.ts +++ b/packages/vuetify/src/locale/zh-Hans.ts @@ -2,6 +2,7 @@ export default { badge: '徽章', open: 'Open', close: '关闭', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel', diff --git a/packages/vuetify/src/locale/zh-Hant.ts b/packages/vuetify/src/locale/zh-Hant.ts index 013282d2f85..dbae45b6526 100644 --- a/packages/vuetify/src/locale/zh-Hant.ts +++ b/packages/vuetify/src/locale/zh-Hant.ts @@ -2,6 +2,7 @@ export default { badge: '徽章', open: 'Open', close: '關閉', + dismiss: 'Dismiss', confirmEdit: { ok: 'OK', cancel: 'Cancel',