@cnamts/synapse 1.0.3 → 1.0.4
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/dist/DateFilter-yrwJv_2R.js +95 -0
- package/dist/NumberFilter-BQXtywZI.js +117 -0
- package/dist/PeriodFilter-BYXVSzr5.js +108 -0
- package/dist/SelectFilter-CJV_mlN3.js +133 -0
- package/dist/TextFilter-DN0ejYIs.js +110 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +5 -5
- package/dist/components/Amelipro/AmeliproIcon/AmeliproIcon.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.d.ts +7 -7
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +5 -5
- package/dist/components/Amelipro/AmeliproStateTile/AmeliproStateTile.d.ts +9 -0
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +10 -10
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +1 -1
- package/dist/components/CookieBanner/CookieBanner.d.ts +302 -1
- package/dist/components/CookieBanner/config.d.ts +1 -0
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +1188 -1
- package/dist/components/CookiesSelection/CookiesSelection.d.ts +217 -0
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +1 -1
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +1 -1
- package/dist/components/DataList/DataList.d.ts +1 -1
- package/dist/components/DataListItem/DataListItem.d.ts +1 -1
- package/dist/components/DatePicker/{DatePicker → CalendarMode}/DatePicker.d.ts +15 -15
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +13 -13
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +4 -4
- package/dist/components/DatePicker/composables/useDatePickerViewMode.d.ts +2 -2
- package/dist/components/DatePicker/composables/useDatePickerVisibility.d.ts +2 -2
- package/dist/components/DatePicker/composables/useDateSelection.d.ts +1 -1
- package/dist/components/DatePicker/composables/useMonthButtonCustomization.d.ts +2 -2
- package/dist/components/DatePicker/composables/useTodayButton.d.ts +1 -1
- package/dist/components/DatePicker/composables/useWeekendDays.d.ts +1 -1
- package/dist/components/DatePicker/constants/messages.d.ts +1 -1
- package/dist/components/DatePicker/types.d.ts +2 -2
- package/dist/components/ExternalLinks/ExternalLinks.d.ts +3 -3
- package/dist/components/ExternalLinks/config.d.ts +4 -3
- package/dist/components/ExternalLinks/locales.d.ts +1 -0
- package/dist/components/NirField/NirField.d.ts +11 -11
- package/dist/components/PasswordField/PasswordField.d.ts +1 -1
- package/dist/components/PeriodField/PeriodField.d.ts +24 -24
- package/dist/components/Tables/common/locales.d.ts +5 -0
- package/dist/components/Tables/common/useTableAria.d.ts +21 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/composables/date/useDatePickerAccessibility.d.ts +2 -2
- package/dist/{style.css → design-system-v3.css} +1 -1
- package/dist/design-system-v3.js +1 -1
- package/dist/design-system-v3.umd.cjs +273 -252
- package/dist/directives/Toolbar.d.ts +15 -0
- package/dist/directives/letterSpacing.d.ts +27 -0
- package/dist/{main-DoYCrS2Q.js → main-BzyNNvHX.js} +10482 -10252
- package/package.json +12 -12
- package/src/assets/_typography.scss +22 -23
- package/src/components/Accordion/Accordion.vue +2 -2
- package/src/components/Accordion/tests/__snapshots__/accordion.spec.ts.snap +5 -1
- package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/__snapshots__/AmeliproAutoCompleteField.spec.ts.snap +26 -14
- package/src/components/Amelipro/AmeliproBreadcrumb/__tests__/__snapshots__/AmeliproBreadcrumb.spec.ts.snap +15 -3
- package/src/components/Amelipro/AmeliproBtn/tests/__snapshots__/AmeliproBtn.spec.ts.snap +5 -1
- package/src/components/Amelipro/AmeliproCallback/tests/__snapshots__/AmeliproCallback.spec.ts.snap +14 -3
- package/src/components/Amelipro/AmeliproCard/tests/__snapshots__/AmeliproCard.spec.ts.snap +9 -2
- package/src/components/Amelipro/AmeliproChips/tests/__snapshots__/AmeliproChips.spec.ts.snap +4 -1
- package/src/components/Amelipro/AmeliproDialog/tests/__snapshots__/AmeliproDialog.spec.ts.snap +9 -2
- package/src/components/Amelipro/AmeliproDisclosure/tests/__snapshots__/AmeliproDisclosure.spec.ts.snap +19 -3
- package/src/components/Amelipro/AmeliproFooter/tests/__snapshots__/AmeliproFooter.spec.ts.snap +35 -7
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/tests/__snapshots__/AmeliproHeaderBrandSection.spec.ts.snap +1 -1
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/tests/__snapshots__/AmeliproHeaderBar.spec.ts.snap +5 -2
- package/src/components/Amelipro/AmeliproHeader/tests/__snapshots__/AmeliproHeader.spec.ts.snap +130 -30
- package/src/components/Amelipro/AmeliproIconBtn/tests/__snapshots__/AmeliproIconBtn.spec.ts.snap +4 -1
- package/src/components/Amelipro/AmeliproIllustratedDataTile/tests/__snapshots__/AmeliproIllustratedDataTile.spec.ts.snap +4 -1
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/tests/__snapshots__/AmeliproIllustratedRadioGroup.spec.ts.snap +25 -5
- package/src/components/Amelipro/AmeliproMailTile/tests/__snapshots__/AmeliproMailTile.spec.ts.snap +5 -1
- package/src/components/Amelipro/AmeliproMenu/tests/__snapshots__/AmeliproMenu.spec.ts.snap +77 -15
- package/src/components/Amelipro/AmeliproMessage/tests/__snapshots__/AmeliproMessage.spec.ts.snap +11 -2
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/AmeliproDropdownMenuBtn/tests/__snapshots__/AmeliproDropdownMenuBtn.spec.ts.snap +5 -1
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/tests/__snapshots__/AmeliproDropdownMenu.spec.ts.snap +25 -5
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproMessagingMenuBtn/tests/__snapshots__/AmeliproMessagingMenuBtn.spec.ts.snap +10 -2
- package/src/components/Amelipro/AmeliproMessagingLayout/tests/__snapshots__/AmeliproMessagingLayout.spec.ts.snap +42 -8
- package/src/components/Amelipro/AmeliproMultipleFoldingCard/tests/__snapshots__/AmeliproMultipleFoldingCard.spec.ts.snap +13 -3
- package/src/components/Amelipro/AmeliproNumberedCard/tests/__snapshots__/AmeliproNumberedCard.spec.ts.snap +12 -3
- package/src/components/Amelipro/AmeliproPageLayout/tests/__snapshots__/AmeliproPageLayout.spec.ts.snap +195 -42
- package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/tests/__snapshots__/AmeliproPaginationBtn.spec.ts.snap +5 -1
- package/src/components/Amelipro/AmeliproPagination/tests/__snapshots__/AmeliproPagination.spec.ts.snap +10 -2
- package/src/components/Amelipro/AmeliproPatientBanner/tests/__snapshots__/AmeliproPatientBanner.spec.ts.snap +26 -4
- package/src/components/Amelipro/AmeliproSelect/tests/__snapshots__/AmeliproSelect.spec.ts.snap +10 -11
- package/src/components/Amelipro/AmeliproStateTile/AmeliproStateTile.stories.ts +2 -0
- package/src/components/Amelipro/AmeliproStateTile/AmeliproStateTile.vue +11 -4
- package/src/components/Amelipro/AmeliproStateTile/AmeliproStateTileTypes.ts +5 -0
- package/src/components/Amelipro/AmeliproStateTile/tests/__snapshots__/AmeliproStateTile.spec.ts.snap +13 -2
- package/src/components/Amelipro/AmeliproStatus/tests/__snapshots__/AmeliproStatus.spec.ts.snap +5 -1
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/tests/__snapshots__/AmeliproStepBtn.spec.ts.snap +7 -1
- package/src/components/Amelipro/AmeliproStepper/tests/__snapshots__/AmeliproStepper.spec.ts.snap +49 -7
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/tests/__snapshots__/AmeliproTabBtn.spec.ts.snap +5 -1
- package/src/components/Amelipro/AmeliproTabs/tests/__snapshots__/AmeliproTabs.spec.ts.snap +21 -4
- package/src/components/Amelipro/AmeliproTextArea/__tests__/__snapshots__/AmeliproTextArea.spec.ts.snap +10 -11
- package/src/components/Amelipro/AmeliproTextField/tests/__snapshots__/AmeliproTextField.spec.ts.snap +10 -11
- package/src/components/Amelipro/AmeliproTileBtn/tests/__snapshots__/AmeliproTileBtn.spec.ts.snap +8 -1
- package/src/components/Amelipro/AmeliproTooltips/tests/__snapshots__/AmeliproTooltips.spec.ts.snap +11 -2
- package/src/components/Amelipro/AmeliproTransmission/tests/__snapshots__/AmeliproTransmission.spec.ts.snap +26 -5
- package/src/components/Amelipro/ServiceMenu/ServiceBtn/tests/__snapshots__/ServiceBtn.spec.ts.snap +9 -2
- package/src/components/Amelipro/ServiceMenu/ServiceList/tests/__snapshots__/ServiceList.spec.ts.snap +18 -4
- package/src/components/Amelipro/ServiceMenu/ServiceMenuContent/tests/__snapshots__/ServiceMenuContent.spec.ts.snap +69 -15
- package/src/components/Amelipro/ServiceMenu/tests/__snapshots__/ServiceMenu.spec.ts.snap +84 -19
- package/src/components/Amelipro/StructureMenu/StructureItem/tests/__snapshots__/StructureItem.spec.ts.snap +5 -1
- package/src/components/Amelipro/StructureMenu/StructureList/tests/__snapshots__/StructureList.spec.ts.snap +15 -4
- package/src/components/Amelipro/StructureMenu/StructureTabs/tests/__snapshots__/StructureTabs.spec.ts.snap +30 -8
- package/src/components/Amelipro/StructureMenu/tests/__snapshots__/StructureMenu.spec.ts.snap +72 -16
- package/src/components/Amelipro/UserMenu/tests/__snapshots__/UserMenu.spec.ts.snap +9 -2
- package/src/components/BackToTopBtn/tests/BackToTopBtn.spec.ts +53 -15
- package/src/components/BackToTopBtn/tests/__snapshots__/BackToTopBtn.spec.ts.snap +10 -2
- package/src/components/CollapsibleList/CollapsibleList.vue +5 -1
- package/src/components/CookieBanner/Accessibilite.stories.ts +4 -0
- package/src/components/CookieBanner/CookieBanner.vue +137 -10
- package/src/components/CookieBanner/config.ts +3 -0
- package/src/components/CookieBanner/tests/__snapshots__/CookieBanner.spec.ts.snap +49 -38
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +80 -2
- package/src/components/CookiesSelection/CookiesSelection.vue +15 -2
- package/src/components/CookiesSelection/tests/__snapshots__/CookiesSelection.spec.ts.snap +49 -34
- package/src/components/CopyBtn/tests/__snapshots__/CopyBtn.spec.ts.snap +1 -1
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/SelectBtnField.spec.ts.snap +58 -13
- package/src/components/Customs/Selects/SySelect/SySelect.vue +144 -147
- package/src/components/DatePicker/{DatePicker → CalendarMode}/DatePicker.stories.ts +3 -3
- package/src/components/DatePicker/{DatePicker → CalendarMode}/DatePicker.vue +4 -4
- package/src/components/DatePicker/{DatePicker → CalendarMode}/tests/DatePicker.events.spec.ts +1 -1
- package/src/components/DatePicker/{DatePicker → CalendarMode}/tests/DatePicker.spec.ts +4 -4
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.mdx +1 -1
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +3 -3
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +6 -6
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +3 -3
- package/src/components/DatePicker/DatePickerOverview.mdx +1 -1
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.stories.ts +1 -1
- package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +76 -3
- package/src/components/DatePicker/DateTextInput/NoCalendar.mdx +1 -1
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +1 -1
- package/src/components/DatePicker/composables/index.ts +2 -2
- package/src/components/DatePicker/composables/tests/useDatePickerVisibility.spec.ts +14 -14
- package/src/components/DatePicker/composables/useDatePickerViewMode.ts +4 -4
- package/src/components/DatePicker/composables/useDatePickerVisibility.ts +12 -12
- package/src/components/DatePicker/composables/useDateSelection.ts +1 -1
- package/src/components/DatePicker/composables/useMonthButtonCustomization.ts +3 -3
- package/src/components/DatePicker/composables/useTodayButton.ts +1 -1
- package/src/components/DatePicker/composables/useWeekendDays.ts +1 -1
- package/src/components/DatePicker/constants/messages.ts +1 -1
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +2 -2
- package/src/components/DatePicker/docExamples/DatePickerValidationExamples.vue +1 -1
- package/src/components/DatePicker/types.ts +2 -2
- package/src/components/DialogBox/tests/DialogBox.spec.ts +26 -4
- package/src/components/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap +13 -3
- package/src/components/DownloadBtn/tests/__snapshots__/DownloadBtn.spec.ts.snap +8 -2
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +18 -4
- package/src/components/ExternalLinks/Accessibilite.mdx +4 -1
- package/src/components/ExternalLinks/Accessibilite.stories.ts +34 -0
- package/src/components/ExternalLinks/ExternalLinks.stories.ts +1 -3
- package/src/components/ExternalLinks/ExternalLinks.vue +96 -41
- package/src/components/ExternalLinks/config.ts +5 -4
- package/src/components/ExternalLinks/locales.ts +1 -0
- package/src/components/ExternalLinks/tests/ExternalLinks.spec.ts +3 -3
- package/src/components/ExternalLinks/tests/__snapshots__/ExternalLinks.spec.ts.snap +510 -400
- package/src/components/FilterInline/tests/__snapshots__/FilterInline.spec.ts.snap +3 -3
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +15 -6
- package/src/components/FooterBar/Accessibilite.stories.ts +4 -0
- package/src/components/FooterBar/FooterBar.vue +9 -5
- package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +0 -5
- package/src/components/FranceConnectBtn/tests/__snapshots__/FranceConnectBtn.spec.ts.snap +15 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/HeaderBurgerMenu.spec.ts.snap +5 -1
- package/src/components/HeaderBar/HeaderLogo/tests/HeaderLogo.spec.ts +31 -6
- package/src/components/HeaderBar/tests/__snapshots__/HeaderBar.spec.ts.snap +7 -1
- package/src/components/HeaderBar/tests/useHeaderResponsiveMode.spec.ts +63 -5
- package/src/components/NirField/NirField.vue +41 -1
- package/src/components/NirField/tests/NirField.spec.ts +2 -2
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +18 -4
- package/src/components/PeriodField/PeriodField.vue +3 -3
- package/src/components/RangeField/RangeSlider/tests/__snapshots__/rangeSlider.spec.ts.snap +12 -3
- package/src/components/RangeField/tests/__snapshots__/RangeField.spec.ts.snap +132 -111
- package/src/components/RatingPicker/EmotionPicker/tests/__snapshots__/EmotionPicker.spec.ts.snap +66 -31
- package/src/components/RatingPicker/NumberPicker/tests/__snapshots__/NumberPicker.spec.ts.snap +33 -33
- package/src/components/RatingPicker/StarsPicker/tests/__snapshots__/StarsPicker.spec.ts.snap +43 -23
- package/src/components/RatingPicker/tests/__snapshots__/RatingPicker.spec.ts.snap +33 -33
- package/src/components/SyAlert/tests/__snapshots__/SyAlert.spec.ts.snap +5 -1
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +107 -95
- package/src/components/Tables/SyServerTable/SyServerTable.vue +43 -2
- package/src/components/Tables/SyTable/SyTable.vue +45 -7
- package/src/components/Tables/common/SyTablePagination.vue +10 -6
- package/src/components/Tables/common/filters/DateFilter.vue +1 -1
- package/src/components/Tables/common/filters/SelectFilter.vue +1 -2
- package/src/components/Tables/common/filters/tests/DateFilter.spec.ts +2 -2
- package/src/components/Tables/common/locales.ts +7 -0
- package/src/components/Tables/common/useTableAria.ts +279 -0
- package/src/components/ToolbarContainer/ToolbarContainer.vue +4 -4
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +17 -5
- package/src/components/index.ts +1 -1
- package/src/composables/date/tests/useDatePickerAccessibility.spec.ts +1 -1
- package/src/composables/date/useDateInitialization.ts +1 -1
- package/src/composables/date/useDateInitializationDayjs.ts +1 -1
- package/src/composables/date/useDatePickerAccessibility.ts +5 -5
- package/src/composables/useFilterable/useFilterable.spec.ts +10 -2
- package/src/designTokens/utils/createFontVariables.ts +6 -6
- package/src/directives/Toolbar.ts +172 -0
- package/src/directives/letterSpacing.ts +233 -0
- package/src/stories/Accessibilite/Avancement/Avancement.mdx +6 -6
- package/src/stories/Accessibilite/Avancement/Avancement.stories.ts +10 -9
- package/src/utils/functions/throttleDisplayFn/tests/throttleDisplayFn.spec.ts +27 -2
- package/src/utils/rules/isHolidayDay/IsHolidayDay.stories.ts +2 -2
- package/dist/DateFilter-DFKfon7L.js +0 -98
- package/dist/NumberFilter-DmhIL2Pr.js +0 -121
- package/dist/PeriodFilter-C46V6bYN.js +0 -112
- package/dist/SelectFilter-B8dtHtHo.js +0 -136
- package/dist/TextFilter-COKGday2.js +0 -114
- package/src/components/FilterSideBar/tests/__snapshots__/FilterSideBar.spec.ts.snap +0 -173
- package/src/components/SocialMediaLinks/tests/__snapshots__/SocialMediaLinks.spec.ts.snap +0 -186
- /package/src/components/DatePicker/{DatePicker → CalendarMode}/DatePicker.mdx +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defineComponent as m, computed as h, createBlock as b, openBlock as D } from "vue";
|
|
2
|
+
import { u as k, D as p, _ as C } from "./main-BzyNNvHX.js";
|
|
3
|
+
const F = /* @__PURE__ */ m({
|
|
4
|
+
__name: "DateFilter",
|
|
5
|
+
props: {
|
|
6
|
+
header: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
filters: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
filterValue: {
|
|
15
|
+
type: [String, Date, Object, null],
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
18
|
+
inputConfig: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({})
|
|
21
|
+
},
|
|
22
|
+
disableErrorHandling: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
variant: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "outlined"
|
|
29
|
+
},
|
|
30
|
+
hideDetails: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !0
|
|
33
|
+
},
|
|
34
|
+
density: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "compact"
|
|
37
|
+
},
|
|
38
|
+
backgroundColor: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "white"
|
|
41
|
+
},
|
|
42
|
+
clearable: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:filters"],
|
|
48
|
+
setup(e, { emit: f }) {
|
|
49
|
+
const { parseDate: c } = k(), t = e, n = f;
|
|
50
|
+
function u() {
|
|
51
|
+
return String(t.header.key || t.header.value || (t.header.title ? `filter_${t.header.title}` : `filter_${Date.now()}`));
|
|
52
|
+
}
|
|
53
|
+
const s = h({
|
|
54
|
+
get: () => t.filterValue,
|
|
55
|
+
set: (a) => {
|
|
56
|
+
const i = u();
|
|
57
|
+
if (!i) return;
|
|
58
|
+
if (a === null) {
|
|
59
|
+
const r = t.filters.filter((y) => y.key !== i);
|
|
60
|
+
n("update:filters", r);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const l = t.filters.findIndex((r) => r.key === i), d = [...t.filters];
|
|
64
|
+
let o = a;
|
|
65
|
+
typeof a == "string" && a.trim() !== "" && c(a, t.header.dateFormat || "DD/MM/YYYY") && (o = a), l >= 0 ? d[l].value = o : d.push({
|
|
66
|
+
key: i,
|
|
67
|
+
value: o,
|
|
68
|
+
type: "date"
|
|
69
|
+
}), n("update:filters", d);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
function g() {
|
|
73
|
+
const a = u(), i = t.filters.filter((l) => l.key !== a);
|
|
74
|
+
n("update:filters", i);
|
|
75
|
+
}
|
|
76
|
+
return (a, i) => (D(), b(p, {
|
|
77
|
+
modelValue: s.value,
|
|
78
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => s.value = l),
|
|
79
|
+
label: e.header.title,
|
|
80
|
+
clearable: e.inputConfig?.clearable ?? e.clearable,
|
|
81
|
+
density: e.inputConfig?.density ?? e.density,
|
|
82
|
+
"hide-details": e.inputConfig?.hideDetails ?? e.hideDetails,
|
|
83
|
+
"hide-messages": e.header.hideMessages,
|
|
84
|
+
variant: e.inputConfig?.variant ?? e.variant,
|
|
85
|
+
"disable-error-handling": e.inputConfig?.disableErrorHandling ?? e.disableErrorHandling,
|
|
86
|
+
"bg-color": e.inputConfig?.backgroundColor ?? e.backgroundColor,
|
|
87
|
+
format: e.header.dateFormat,
|
|
88
|
+
class: "filter-input",
|
|
89
|
+
"onClick:clear": g
|
|
90
|
+
}, null, 8, ["modelValue", "label", "clearable", "density", "hide-details", "hide-messages", "variant", "disable-error-handling", "bg-color", "format"]));
|
|
91
|
+
}
|
|
92
|
+
}), x = /* @__PURE__ */ C(F, [["__scopeId", "data-v-8226471a"]]);
|
|
93
|
+
export {
|
|
94
|
+
x as default
|
|
95
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { defineComponent as p, ref as m, watch as v, computed as C, createElementBlock as k, openBlock as x, createVNode as T } from "vue";
|
|
2
|
+
import { a as V, _ as F } from "./main-BzyNNvHX.js";
|
|
3
|
+
const w = { class: "number-filter-container" }, S = /* @__PURE__ */ p({
|
|
4
|
+
__name: "NumberFilter",
|
|
5
|
+
props: {
|
|
6
|
+
header: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
filters: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
filterValue: {
|
|
15
|
+
type: [Number, String],
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
inputConfig: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({})
|
|
21
|
+
},
|
|
22
|
+
disableErrorHandling: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
variant: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "outlined"
|
|
29
|
+
},
|
|
30
|
+
hideDetails: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !0
|
|
33
|
+
},
|
|
34
|
+
density: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "compact"
|
|
37
|
+
},
|
|
38
|
+
backgroundColor: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "white"
|
|
41
|
+
},
|
|
42
|
+
clearable: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
debounceTime: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: 300
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:filters"],
|
|
52
|
+
setup(l, { emit: b }) {
|
|
53
|
+
const e = l, d = b, u = m(e.filterValue || ""), o = m(null);
|
|
54
|
+
v(() => e.filters, (t) => {
|
|
55
|
+
t.length === 0 && (o.value !== null && (clearTimeout(o.value), o.value = null), u.value = "");
|
|
56
|
+
});
|
|
57
|
+
function c() {
|
|
58
|
+
return !e.header || !e.header.key && !e.header.value && !e.header.title ? `filter_${Date.now()}` : String(e.header.key || e.header.value || (e.header.title ? `filter_${e.header.title}` : `filter_${Date.now()}`));
|
|
59
|
+
}
|
|
60
|
+
function h(t) {
|
|
61
|
+
const a = /^([=<>]{1,2})?(.*)$/.exec(t);
|
|
62
|
+
if (!a) return "";
|
|
63
|
+
const i = a[1] || "";
|
|
64
|
+
let r = a[2] || "";
|
|
65
|
+
return r = r.replace(/[^0-9.,]/g, ""), i + r;
|
|
66
|
+
}
|
|
67
|
+
const f = C({
|
|
68
|
+
get: () => u.value,
|
|
69
|
+
set: (t) => {
|
|
70
|
+
const n = t != null ? String(t) : "", a = h(n);
|
|
71
|
+
u.value = a, o.value !== null && clearTimeout(o.value);
|
|
72
|
+
const i = e.inputConfig?.debounceTime ?? e.debounceTime;
|
|
73
|
+
i === 0 || void 0 ? g(a) : o.value = window.setTimeout(() => {
|
|
74
|
+
g(a);
|
|
75
|
+
}, i);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
function g(t) {
|
|
79
|
+
const n = c();
|
|
80
|
+
if (!e.header || Object.keys(e.header).length, t === "" || t === "0") {
|
|
81
|
+
d("update:filters", e.filters.filter((s) => s.key !== n));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const a = e.filters.findIndex((s) => s.key === n), i = [...e.filters], r = /^[=<>]{1,2}/.test(t);
|
|
85
|
+
a >= 0 ? i[a].value = r ? t : parseFloat(t.replace(",", ".")) : i.push({
|
|
86
|
+
key: n,
|
|
87
|
+
value: r ? t : parseFloat(t.replace(",", ".")),
|
|
88
|
+
type: "number"
|
|
89
|
+
}), d("update:filters", i);
|
|
90
|
+
}
|
|
91
|
+
function y() {
|
|
92
|
+
u.value = "";
|
|
93
|
+
const t = c();
|
|
94
|
+
d("update:filters", e.filters.filter((n) => n.key !== t));
|
|
95
|
+
}
|
|
96
|
+
return (t, n) => (x(), k("div", w, [
|
|
97
|
+
T(V, {
|
|
98
|
+
modelValue: f.value,
|
|
99
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => f.value = a),
|
|
100
|
+
label: l.header.title,
|
|
101
|
+
type: "text",
|
|
102
|
+
clearable: l.inputConfig?.clearable ?? l.clearable,
|
|
103
|
+
density: l.inputConfig?.density ?? l.density,
|
|
104
|
+
"hide-details": l.inputConfig?.hideDetails ?? l.hideDetails,
|
|
105
|
+
"hide-messages": l.header.hideMessages,
|
|
106
|
+
"disable-error-handling": l.inputConfig?.disableErrorHandling ?? l.disableErrorHandling,
|
|
107
|
+
variant: l.inputConfig?.variant ?? l.variant,
|
|
108
|
+
"bg-color": l.inputConfig?.backgroundColor ?? l.backgroundColor,
|
|
109
|
+
class: "filter-input",
|
|
110
|
+
"onClick:clear": y
|
|
111
|
+
}, null, 8, ["modelValue", "label", "clearable", "density", "hide-details", "hide-messages", "disable-error-handling", "variant", "bg-color"])
|
|
112
|
+
]));
|
|
113
|
+
}
|
|
114
|
+
}), B = /* @__PURE__ */ F(S, [["__scopeId", "data-v-7a98936f"]]);
|
|
115
|
+
export {
|
|
116
|
+
B as default
|
|
117
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent as y, computed as g, createBlock as m, openBlock as b } from "vue";
|
|
2
|
+
import { P as h, _ as p } from "./main-BzyNNvHX.js";
|
|
3
|
+
const k = /* @__PURE__ */ y({
|
|
4
|
+
__name: "PeriodFilter",
|
|
5
|
+
props: {
|
|
6
|
+
header: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
filters: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
filterValue: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: () => ({ from: null, to: null })
|
|
17
|
+
},
|
|
18
|
+
inputConfig: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({})
|
|
21
|
+
},
|
|
22
|
+
disableErrorHandling: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
variant: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "outlined"
|
|
29
|
+
},
|
|
30
|
+
hideDetails: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !0
|
|
33
|
+
},
|
|
34
|
+
density: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "compact"
|
|
37
|
+
},
|
|
38
|
+
backgroundColor: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "white"
|
|
41
|
+
},
|
|
42
|
+
clearable: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:filters"],
|
|
48
|
+
setup(e, { emit: f }) {
|
|
49
|
+
const i = e, n = f;
|
|
50
|
+
function d() {
|
|
51
|
+
return String(i.header?.key || i.header?.value || (i.header?.title ? `filter_${i.header.title}` : `filter_${Date.now()}`));
|
|
52
|
+
}
|
|
53
|
+
const u = g({
|
|
54
|
+
get: () => i.filterValue,
|
|
55
|
+
set: (r) => {
|
|
56
|
+
try {
|
|
57
|
+
const t = d();
|
|
58
|
+
if (!t) return;
|
|
59
|
+
if (!r) {
|
|
60
|
+
const l = i.filters.filter((a) => a.key !== t);
|
|
61
|
+
n("update:filters", l);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (typeof r == "object" && r.from === null && r.to === null) {
|
|
65
|
+
const l = i.filters.filter((a) => a.key !== t);
|
|
66
|
+
n("update:filters", l);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (typeof r == "object") {
|
|
70
|
+
const l = {
|
|
71
|
+
from: r.from,
|
|
72
|
+
to: r.to
|
|
73
|
+
}, a = i.filters.findIndex((c) => c.key === t), o = [...i.filters];
|
|
74
|
+
a >= 0 ? o[a].value = l : o.push({
|
|
75
|
+
key: t,
|
|
76
|
+
value: l,
|
|
77
|
+
type: "period"
|
|
78
|
+
}), n("update:filters", o);
|
|
79
|
+
}
|
|
80
|
+
} catch (t) {
|
|
81
|
+
console.error("Erreur dans la mise à jour du filtre de période:", t);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
function s() {
|
|
86
|
+
const r = d(), t = i.filters.filter((l) => l.key !== r);
|
|
87
|
+
n("update:filters", t);
|
|
88
|
+
}
|
|
89
|
+
return (r, t) => (b(), m(h, {
|
|
90
|
+
modelValue: u.value,
|
|
91
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => u.value = l),
|
|
92
|
+
label: e.header.title,
|
|
93
|
+
clearable: e.inputConfig?.clearable ?? e.clearable,
|
|
94
|
+
density: e.inputConfig?.density ?? e.density,
|
|
95
|
+
"hide-details": e.inputConfig?.hideDetails ?? e.hideDetails,
|
|
96
|
+
"hide-messages": e.header.hideMessages,
|
|
97
|
+
variant: e.inputConfig?.variant ?? e.variant,
|
|
98
|
+
"disable-error-handling": e.inputConfig?.disableErrorHandling ?? e.disableErrorHandling,
|
|
99
|
+
"bg-color": e.inputConfig?.backgroundColor ?? e.backgroundColor,
|
|
100
|
+
format: e.header.dateFormat,
|
|
101
|
+
class: "filter-input",
|
|
102
|
+
"onClick:clear": s
|
|
103
|
+
}, null, 8, ["modelValue", "label", "clearable", "density", "hide-details", "hide-messages", "variant", "disable-error-handling", "bg-color", "format"]));
|
|
104
|
+
}
|
|
105
|
+
}), V = /* @__PURE__ */ p(k, [["__scopeId", "data-v-63126e87"]]);
|
|
106
|
+
export {
|
|
107
|
+
V as default
|
|
108
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { defineComponent as k, computed as c, ref as C, createElementBlock as F, openBlock as S, createVNode as A } from "vue";
|
|
2
|
+
import { S as B, _ as E } from "./main-BzyNNvHX.js";
|
|
3
|
+
const r = {
|
|
4
|
+
defaultOption: "- choisir -",
|
|
5
|
+
emptyValue: "(vide)"
|
|
6
|
+
}, D = {}, I = { class: "select-filter-wrapper" }, N = /* @__PURE__ */ k({
|
|
7
|
+
__name: "SelectFilter",
|
|
8
|
+
props: {
|
|
9
|
+
header: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: !0
|
|
12
|
+
},
|
|
13
|
+
filters: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
},
|
|
17
|
+
filterValue: {
|
|
18
|
+
type: [String, Number, Object, Array, void 0, null],
|
|
19
|
+
default: null
|
|
20
|
+
},
|
|
21
|
+
inputConfig: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
},
|
|
25
|
+
disableErrorHandling: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
variant: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "outlined"
|
|
32
|
+
},
|
|
33
|
+
hideDetails: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !0
|
|
36
|
+
},
|
|
37
|
+
density: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "compact"
|
|
40
|
+
},
|
|
41
|
+
backgroundColor: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "white"
|
|
44
|
+
},
|
|
45
|
+
clearable: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !0
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
emits: ["update:filters"],
|
|
51
|
+
setup(i, { emit: y }) {
|
|
52
|
+
const e = i, u = y;
|
|
53
|
+
function p() {
|
|
54
|
+
return String(e.header.key || e.header.value || (e.header.title ? `filter_${e.header.title}` : `filter_${Date.now()}`));
|
|
55
|
+
}
|
|
56
|
+
const m = c(() => {
|
|
57
|
+
if (!e.header.filterOptions || !Array.isArray(e.header.filterOptions))
|
|
58
|
+
return [{ text: r.defaultOption, value: r.defaultOption }];
|
|
59
|
+
const l = [{ text: r.defaultOption, value: r.defaultOption }];
|
|
60
|
+
return e.header.filterOptions.forEach((t) => {
|
|
61
|
+
t.text === void 0 || t.text === null || t.text === "" ? l.push({ text: r.emptyValue, value: t.value }) : l.push(t);
|
|
62
|
+
}), l;
|
|
63
|
+
}), s = c({
|
|
64
|
+
get: () => e.filterValue === null ? e.header.multiple ? [] : r.defaultOption : e.filterValue,
|
|
65
|
+
set: (l) => {
|
|
66
|
+
const t = p();
|
|
67
|
+
if (!t) return;
|
|
68
|
+
if (e.header.multiple) {
|
|
69
|
+
if (!l || Array.isArray(l) && l.length === 0) {
|
|
70
|
+
const f = e.filters.filter((x) => x.key !== t);
|
|
71
|
+
u("update:filters", f);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const n = e.filters.findIndex((f) => f.key === t), d = [...e.filters];
|
|
75
|
+
n >= 0 ? d[n].value = l : d.push({
|
|
76
|
+
key: t,
|
|
77
|
+
value: l,
|
|
78
|
+
type: "select"
|
|
79
|
+
}), u("update:filters", d);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (l == null || l === r.defaultOption) {
|
|
83
|
+
const n = e.filters.filter((d) => d.key !== t);
|
|
84
|
+
u("update:filters", n);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const a = e.filters.findIndex((n) => n.key === t), o = [...e.filters];
|
|
88
|
+
a >= 0 ? o[a].value = l : o.push({
|
|
89
|
+
key: t,
|
|
90
|
+
value: l,
|
|
91
|
+
type: "select"
|
|
92
|
+
}), u("update:filters", o);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
function v() {
|
|
96
|
+
const l = p(), t = e.filters.filter((a) => a.key !== l);
|
|
97
|
+
u("update:filters", t);
|
|
98
|
+
}
|
|
99
|
+
const h = C(!1);
|
|
100
|
+
function g() {
|
|
101
|
+
h.value = !0;
|
|
102
|
+
}
|
|
103
|
+
function b() {
|
|
104
|
+
h.value = !1;
|
|
105
|
+
}
|
|
106
|
+
const O = c(() => D?.NODE_ENV === "test" ? !0 : e.header.multiple ? Array.isArray(s.value) && s.value.length > 0 : s.value !== r.defaultOption);
|
|
107
|
+
return (l, t) => (S(), F("div", I, [
|
|
108
|
+
A(B, {
|
|
109
|
+
modelValue: s.value,
|
|
110
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
|
|
111
|
+
label: e.header.title || "",
|
|
112
|
+
items: m.value,
|
|
113
|
+
clearable: O.value,
|
|
114
|
+
density: i.inputConfig?.density ?? i.density,
|
|
115
|
+
"hide-details": i.inputConfig?.hideDetails ?? i.hideDetails,
|
|
116
|
+
"hide-messages": !0,
|
|
117
|
+
variant: i.inputConfig?.variant ?? i.variant,
|
|
118
|
+
"bg-color": i.inputConfig?.backgroundColor ?? i.backgroundColor,
|
|
119
|
+
"disable-error-handling": i.inputConfig?.disableErrorHandling ?? i.disableErrorHandling,
|
|
120
|
+
multiple: e.header.multiple,
|
|
121
|
+
chips: e.header.chips,
|
|
122
|
+
class: "filter-input",
|
|
123
|
+
"aria-label": e.header.title || "Filtre",
|
|
124
|
+
"onClick:clear": v,
|
|
125
|
+
onFocus: g,
|
|
126
|
+
onBlur: b
|
|
127
|
+
}, null, 8, ["modelValue", "label", "items", "clearable", "density", "hide-details", "variant", "bg-color", "disable-error-handling", "multiple", "chips", "aria-label"])
|
|
128
|
+
]));
|
|
129
|
+
}
|
|
130
|
+
}), q = /* @__PURE__ */ E(N, [["__scopeId", "data-v-5d317118"]]);
|
|
131
|
+
export {
|
|
132
|
+
q as default
|
|
133
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineComponent as h, ref as g, watch as v, computed as p, createElementBlock as C, openBlock as k, createVNode as T } from "vue";
|
|
2
|
+
import { a as x, _ as w } from "./main-BzyNNvHX.js";
|
|
3
|
+
const F = { class: "text-filter-container" }, V = /* @__PURE__ */ h({
|
|
4
|
+
__name: "TextFilter",
|
|
5
|
+
props: {
|
|
6
|
+
header: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
filters: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
filterValue: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: void 0
|
|
17
|
+
},
|
|
18
|
+
inputConfig: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({})
|
|
21
|
+
},
|
|
22
|
+
disableErrorHandling: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
variant: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "outlined"
|
|
29
|
+
},
|
|
30
|
+
hideDetails: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !0
|
|
33
|
+
},
|
|
34
|
+
density: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "compact"
|
|
37
|
+
},
|
|
38
|
+
backgroundColor: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "white"
|
|
41
|
+
},
|
|
42
|
+
clearable: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
debounceTime: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: 300
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:filters"],
|
|
52
|
+
setup(e, { emit: m }) {
|
|
53
|
+
const t = e, d = m, r = g(t.filterValue || ""), a = g(null);
|
|
54
|
+
v(() => t.filters, (i) => {
|
|
55
|
+
i.length === 0 && (a.value !== null && (clearTimeout(a.value), a.value = null), r.value = "");
|
|
56
|
+
});
|
|
57
|
+
function s() {
|
|
58
|
+
return String(t.header.key || t.header.value || (t.header.title ? `filter_${t.header.title}` : `filter_${Date.now()}`));
|
|
59
|
+
}
|
|
60
|
+
const f = p({
|
|
61
|
+
get: () => r.value,
|
|
62
|
+
set: (i) => {
|
|
63
|
+
r.value = i, a.value !== null && clearTimeout(a.value);
|
|
64
|
+
const l = t.inputConfig?.debounceTime ?? t.debounceTime;
|
|
65
|
+
l === 0 || void 0 ? c(i) : a.value = window.setTimeout(() => {
|
|
66
|
+
c(i);
|
|
67
|
+
}, l);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
function c(i) {
|
|
71
|
+
const l = s();
|
|
72
|
+
if (!l) return;
|
|
73
|
+
if (i === "") {
|
|
74
|
+
const o = t.filters.filter((b) => b.key !== l);
|
|
75
|
+
d("update:filters", o);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const n = t.filters.findIndex((o) => o.key === l), u = [...t.filters];
|
|
79
|
+
n >= 0 ? u[n].value = i : u.push({
|
|
80
|
+
key: l,
|
|
81
|
+
value: i,
|
|
82
|
+
type: "text"
|
|
83
|
+
}), d("update:filters", u);
|
|
84
|
+
}
|
|
85
|
+
function y() {
|
|
86
|
+
r.value = "";
|
|
87
|
+
const i = s(), l = t.filters.filter((n) => n.key !== i);
|
|
88
|
+
d("update:filters", l);
|
|
89
|
+
}
|
|
90
|
+
return (i, l) => (k(), C("div", F, [
|
|
91
|
+
T(x, {
|
|
92
|
+
modelValue: f.value,
|
|
93
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => f.value = n),
|
|
94
|
+
label: e.header.title,
|
|
95
|
+
clearable: e.inputConfig?.clearable ?? e.clearable,
|
|
96
|
+
density: e.inputConfig?.density ?? e.density,
|
|
97
|
+
"hide-details": e.inputConfig?.hideDetails ?? e.hideDetails,
|
|
98
|
+
"hide-messages": e.header.hideMessages,
|
|
99
|
+
"disable-error-handling": e.inputConfig?.disableErrorHandling ?? e.disableErrorHandling,
|
|
100
|
+
variant: e.inputConfig?.variant ?? e.variant,
|
|
101
|
+
"bg-color": e.inputConfig?.backgroundColor ?? e.backgroundColor,
|
|
102
|
+
class: "filter-input",
|
|
103
|
+
"onClick:clear": y
|
|
104
|
+
}, null, 8, ["modelValue", "label", "clearable", "density", "hide-details", "hide-messages", "disable-error-handling", "variant", "bg-color"])
|
|
105
|
+
]));
|
|
106
|
+
}
|
|
107
|
+
}), B = /* @__PURE__ */ w(V, [["__scopeId", "data-v-6f62b12e"]]);
|
|
108
|
+
export {
|
|
109
|
+
B as default
|
|
110
|
+
};
|
|
@@ -10,7 +10,7 @@ interface AccordionItem {
|
|
|
10
10
|
headingLevel?: number;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
13
|
+
export interface AccordionProps extends CustomizableOptions {
|
|
14
14
|
items: AccordionItem[];
|
|
15
15
|
headingLevel?: number;
|
|
16
16
|
groupId?: string;
|
|
@@ -24,7 +24,7 @@ interface Props extends CustomizableOptions {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
declare const _default: import('vue').DefineComponent<
|
|
27
|
+
declare const _default: import('vue').DefineComponent<AccordionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionProps> & Readonly<{}>, {
|
|
28
28
|
headingLevel: number;
|
|
29
29
|
vuetifyOptions: {
|
|
30
30
|
accordion?: {
|