vueless 1.2.15-beta.3 → 1.2.15-beta.5
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/locales/en.json +1 -1
- package/package.json +1 -1
- package/ui.container-accordion-item/UAccordionItem.vue +1 -5
- package/ui.container-accordion-item/tests/UAccordionItem.test.ts +5 -5
- package/ui.data-list/config.ts +1 -1
- package/ui.data-list/storybook/stories.ts +24 -24
- package/ui.data-list/tests/UDataList.test.ts +7 -7
- package/ui.data-table/config.ts +2 -0
- package/ui.data-table/storybook/stories.ts +3 -1
- package/ui.dropdown-badge/config.ts +1 -1
- package/ui.dropdown-badge/storybook/stories.ts +3 -3
- package/ui.dropdown-badge/tests/UDropdownBadge.test.ts +5 -5
- package/ui.dropdown-button/config.ts +1 -1
- package/ui.dropdown-button/storybook/stories.ts +7 -7
- package/ui.dropdown-button/tests/UDropdownButton.test.ts +5 -5
- package/ui.dropdown-link/config.ts +1 -1
- package/ui.dropdown-link/storybook/stories.ts +3 -3
- package/ui.dropdown-link/tests/UDropdownLink.test.ts +5 -5
- package/ui.form-calendar/UCalendar.vue +4 -0
- package/ui.form-calendar/config.ts +5 -0
- package/ui.form-checkbox/UCheckbox.vue +23 -4
- package/ui.form-checkbox/config.ts +4 -0
- package/ui.form-checkbox/tests/UCheckbox.test.ts +1 -1
- package/ui.form-checkbox-group/UCheckboxGroup.vue +2 -2
- package/ui.form-checkbox-group/config.ts +2 -0
- package/ui.form-checkbox-group/storybook/stories.ts +46 -9
- package/ui.form-checkbox-group/tests/UCheckboxGroup.test.ts +65 -0
- package/ui.form-checkbox-group/types.ts +10 -0
- package/ui.form-date-picker/config.ts +5 -0
- package/ui.form-input/UInput.vue +9 -3
- package/ui.form-input-counter/UInputCounter.vue +9 -0
- package/ui.form-input-counter/config.ts +5 -0
- package/ui.form-input-password/UInputPassword.vue +11 -12
- package/ui.form-input-password/tests/UInputPassword.test.ts +2 -2
- package/ui.form-label/ULabel.vue +5 -1
- package/ui.form-label/types.ts +5 -0
- package/ui.form-listbox/UListbox.vue +37 -11
- package/ui.form-listbox/config.ts +1 -1
- package/ui.form-listbox/storybook/stories.ts +25 -25
- package/ui.form-listbox/tests/UListbox.test.ts +6 -6
- package/ui.form-radio-group/URadioGroup.vue +2 -2
- package/ui.form-radio-group/config.ts +2 -0
- package/ui.form-radio-group/storybook/stories.ts +48 -8
- package/ui.form-radio-group/tests/URadioGroup.test.ts +68 -0
- package/ui.form-radio-group/types.ts +18 -4
- package/ui.form-select/USelect.vue +37 -2
- package/ui.form-select/config.ts +1 -1
- package/ui.form-select/tests/USelect.test.ts +6 -4
- package/ui.form-switch/USwitch.vue +20 -7
- package/ui.form-switch/config.ts +2 -0
- package/ui.form-switch/tests/USwitch.test.ts +6 -4
- package/ui.form-textarea/UTextarea.vue +15 -5
- package/ui.form-textarea/tests/UTextarea.test.ts +1 -1
- package/ui.navigation-pagination/UPagination.vue +14 -0
- package/ui.navigation-pagination/config.ts +9 -0
- package/ui.text-alert/UAlert.vue +8 -0
- package/ui.text-alert/config.ts +4 -0
- package/icons/storybook/notifications.svg +0 -1
package/ui.text-alert/UAlert.vue
CHANGED
|
@@ -4,6 +4,7 @@ import { onMounted, ref, computed, useTemplateRef } from "vue";
|
|
|
4
4
|
import { useUI } from "../composables/useUI";
|
|
5
5
|
import { getDefaults } from "../utils/ui";
|
|
6
6
|
import { hasSlotContent } from "../utils/helper";
|
|
7
|
+
import { useComponentLocaleMessages } from "../composables/useComponentLocaleMassages";
|
|
7
8
|
|
|
8
9
|
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
9
10
|
import UButton from "../ui.button/UButton.vue";
|
|
@@ -27,6 +28,12 @@ const emit = defineEmits([
|
|
|
27
28
|
"hide",
|
|
28
29
|
]);
|
|
29
30
|
|
|
31
|
+
const { localeMessages } = useComponentLocaleMessages<typeof defaultConfig.i18n>(
|
|
32
|
+
COMPONENT_NAME,
|
|
33
|
+
defaultConfig.i18n,
|
|
34
|
+
props?.config?.i18n,
|
|
35
|
+
);
|
|
36
|
+
|
|
30
37
|
const wrapperRef = useTemplateRef<HTMLDivElement>("wrapper");
|
|
31
38
|
|
|
32
39
|
const isShownAlert = ref(true);
|
|
@@ -126,6 +133,7 @@ const {
|
|
|
126
133
|
size="xs"
|
|
127
134
|
:color="closeButtonColor"
|
|
128
135
|
variant="ghost"
|
|
136
|
+
:aria-label="localeMessages.closeAlert"
|
|
129
137
|
v-bind="closeButtonAttrs"
|
|
130
138
|
:data-test="getDataTest('button')"
|
|
131
139
|
@click="onClickClose"
|
package/ui.text-alert/config.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M154.02-194.02v-68.13h77.85v-298.02q0-86.08 50.34-154.77 50.33-68.69 133.72-86.41v-20.56q0-26.8 18.69-45.55 18.69-18.76 45.38-18.76t45.38 18.76q18.69 18.75 18.69 45.55v20.56q83.39 17.48 133.84 86.25 50.46 68.77 50.46 154.93v298.02h77.85v68.13h-652.2ZM480-501.04Zm.12 429.17q-33.83 0-57.93-24.13t-24.1-58.02h164.06q0 33.95-24.15 58.05-24.15 24.1-57.88 24.1ZM300-262.15h360v-298.02q0-74.76-52.5-127.38Q555-740.17 480-740.17t-127.5 52.62Q300-634.93 300-560.17v298.02Z"/></svg>
|