@ouestfrance/sipa-bms-ui 8.29.3 → 8.30.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/dist/components/table/BmsTable.vue.d.ts +2 -0
- package/dist/composables/search.helper.d.ts +1 -0
- package/dist/sipa-bms-ui.css +27 -27
- package/dist/sipa-bms-ui.es.js +5303 -4983
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +5303 -4983
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +11 -11
- package/src/components/layout/BmsModal.vue +2 -2
- package/src/components/table/BmsTable.spec.ts +42 -0
- package/src/components/table/BmsTable.vue +12 -7
- package/src/components/utils/BmsRelativeTime.vue +1 -1
- package/src/composables/search.helper.spec.ts +23 -0
- package/src/composables/search.helper.ts +8 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defaultSearchFunction } from '../../composables/search.helper';
|
|
1
2
|
import { Filter, SavedFilter, SelectMode, Sort, TableHeader, TableMode } from '../../models';
|
|
2
3
|
interface UiTableProps {
|
|
3
4
|
disableSearch?: boolean;
|
|
@@ -16,6 +17,7 @@ interface UiTableProps {
|
|
|
16
17
|
selectable?: boolean;
|
|
17
18
|
selectableDisabled?: boolean;
|
|
18
19
|
selectMode?: SelectMode.DEFAULT | SelectMode.SINGLE;
|
|
20
|
+
customSearch?: (item: unknown, searchValue: string, defaultSearch: typeof defaultSearchFunction) => boolean;
|
|
19
21
|
}
|
|
20
22
|
type __VLS_Props = UiTableProps;
|
|
21
23
|
declare const __VLS_defaults: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Filter } from '../models';
|
|
2
|
+
export declare const defaultSearchFunction: (item: unknown, searchValue: string) => boolean;
|
|
2
3
|
export declare const isBetweenFilter: (filter: Filter) => boolean;
|
|
3
4
|
export declare const defaultNumberFilterFunction: (itemNumber: number, search: number, isAfterSearch: boolean) => boolean;
|
|
4
5
|
export declare const defaultIsAfterDateFilterFunction: (dateItem: Date, search: Date, isGreaterThan: boolean) => boolean;
|
package/dist/sipa-bms-ui.css
CHANGED
|
@@ -1730,7 +1730,7 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
.priority[data-v-383b958c] {
|
|
1732
1732
|
z-index: calc(var(--bms-z-index-modal) + 10);
|
|
1733
|
-
}.ui-modal[data-v-
|
|
1733
|
+
}.ui-modal[data-v-7d6b5522] {
|
|
1734
1734
|
--modal-header-border-size: 1px;
|
|
1735
1735
|
--modal-header-color: var(--bms-grey-10);
|
|
1736
1736
|
position: fixed;
|
|
@@ -1743,23 +1743,23 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
|
|
|
1743
1743
|
justify-content: center;
|
|
1744
1744
|
z-index: var(--bms-z-index-fixed);
|
|
1745
1745
|
}
|
|
1746
|
-
.ui-modal.Default[data-v-
|
|
1746
|
+
.ui-modal.Default[data-v-7d6b5522] {
|
|
1747
1747
|
--modal-header-border-size: 1px;
|
|
1748
1748
|
--modal-header-color: var(--bms-grey-10);
|
|
1749
1749
|
}
|
|
1750
|
-
.ui-modal.success[data-v-
|
|
1750
|
+
.ui-modal.success[data-v-7d6b5522] {
|
|
1751
1751
|
--modal-header-border-size: 4px;
|
|
1752
1752
|
--modal-header-color: var(--bms-success-color);
|
|
1753
1753
|
}
|
|
1754
|
-
.ui-modal.warning[data-v-
|
|
1754
|
+
.ui-modal.warning[data-v-7d6b5522] {
|
|
1755
1755
|
--modal-header-border-size: 4px;
|
|
1756
1756
|
--modal-header-color: var(--bms-warning-color);
|
|
1757
1757
|
}
|
|
1758
|
-
.ui-modal.danger[data-v-
|
|
1758
|
+
.ui-modal.danger[data-v-7d6b5522] {
|
|
1759
1759
|
--modal-header-border-size: 4px;
|
|
1760
1760
|
--modal-header-color: var(--bms-danger-color);
|
|
1761
1761
|
}
|
|
1762
|
-
.ui-modal__loader[data-v-
|
|
1762
|
+
.ui-modal__loader[data-v-7d6b5522] {
|
|
1763
1763
|
position: absolute;
|
|
1764
1764
|
top: 0;
|
|
1765
1765
|
left: 0;
|
|
@@ -1773,11 +1773,11 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
|
|
|
1773
1773
|
background: var(--bms-white);
|
|
1774
1774
|
z-index: calc(var(--bms-z-index-fixed) + 5);
|
|
1775
1775
|
}
|
|
1776
|
-
.ui-modal__loader p[data-v-
|
|
1776
|
+
.ui-modal__loader p[data-v-7d6b5522] {
|
|
1777
1777
|
margin: 0;
|
|
1778
1778
|
font-size: 0.88em;
|
|
1779
1779
|
}
|
|
1780
|
-
.ui-modal__title[data-v-
|
|
1780
|
+
.ui-modal__title[data-v-7d6b5522] {
|
|
1781
1781
|
display: flex;
|
|
1782
1782
|
align-items: center;
|
|
1783
1783
|
gap: 1rem;
|
|
@@ -1785,64 +1785,64 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
|
|
|
1785
1785
|
font-size: 1.5em;
|
|
1786
1786
|
font-weight: bold;
|
|
1787
1787
|
}
|
|
1788
|
-
.ui-modal__title .title-indicator[data-v-
|
|
1788
|
+
.ui-modal__title .title-indicator[data-v-7d6b5522] {
|
|
1789
1789
|
color: var(--modal-header-color);
|
|
1790
1790
|
}
|
|
1791
|
-
.ui-modal__inner[data-v-
|
|
1791
|
+
.ui-modal__inner[data-v-7d6b5522] {
|
|
1792
1792
|
position: relative;
|
|
1793
1793
|
pointer-events: all;
|
|
1794
1794
|
background: var(--bms-white);
|
|
1795
1795
|
min-width: 32em;
|
|
1796
|
-
max-height: 80vh;
|
|
1797
1796
|
max-width: 80vw;
|
|
1798
|
-
overflow: auto;
|
|
1799
1797
|
padding: 1em;
|
|
1800
1798
|
border-radius: var(--bms-border-radius-large);
|
|
1801
1799
|
}
|
|
1802
|
-
.ui-modal__content[data-v-
|
|
1800
|
+
.ui-modal__content[data-v-7d6b5522] {
|
|
1803
1801
|
margin-top: 1rem;
|
|
1802
|
+
max-height: 60vh;
|
|
1803
|
+
overflow: auto;
|
|
1804
1804
|
}
|
|
1805
|
-
.ui-modal__header[data-v-
|
|
1805
|
+
.ui-modal__header[data-v-7d6b5522], .ui-modal__footer[data-v-7d6b5522] {
|
|
1806
1806
|
margin: -1em;
|
|
1807
1807
|
position: sticky;
|
|
1808
1808
|
background: var(--bms-white);
|
|
1809
1809
|
z-index: var(--bms-z-index-fixed);
|
|
1810
1810
|
}
|
|
1811
|
-
.ui-modal__header[data-v-
|
|
1811
|
+
.ui-modal__header[data-v-7d6b5522] {
|
|
1812
1812
|
padding: 1em 1em 0.5em 1em;
|
|
1813
1813
|
border-bottom: var(--modal-header-border-size) solid var(--modal-header-color);
|
|
1814
1814
|
margin-bottom: 0;
|
|
1815
1815
|
top: -1em;
|
|
1816
1816
|
display: flex;
|
|
1817
1817
|
}
|
|
1818
|
-
.ui-modal__header-inner[data-v-
|
|
1818
|
+
.ui-modal__header-inner[data-v-7d6b5522] {
|
|
1819
1819
|
flex: 1 1 auto;
|
|
1820
1820
|
}
|
|
1821
|
-
.ui-modal__footer[data-v-
|
|
1821
|
+
.ui-modal__footer[data-v-7d6b5522] {
|
|
1822
1822
|
padding: 1em;
|
|
1823
1823
|
margin-top: 0;
|
|
1824
1824
|
bottom: -1em;
|
|
1825
1825
|
}
|
|
1826
|
-
.ui-modal__buttons[data-v-
|
|
1826
|
+
.ui-modal__buttons[data-v-7d6b5522] {
|
|
1827
1827
|
display: flex;
|
|
1828
1828
|
align-items: center;
|
|
1829
1829
|
justify-content: flex-end;
|
|
1830
1830
|
gap: 1em;
|
|
1831
1831
|
}
|
|
1832
|
-
.content-fade-enter-active[data-v-
|
|
1833
|
-
.content-fade-leave-active[data-v-
|
|
1832
|
+
.content-fade-enter-active[data-v-7d6b5522],
|
|
1833
|
+
.content-fade-leave-active[data-v-7d6b5522] {
|
|
1834
1834
|
transition: opacity 0.3s ease;
|
|
1835
1835
|
}
|
|
1836
|
-
.content-fade-enter-from[data-v-
|
|
1837
|
-
.content-fade-leave-to[data-v-
|
|
1836
|
+
.content-fade-enter-from[data-v-7d6b5522],
|
|
1837
|
+
.content-fade-leave-to[data-v-7d6b5522] {
|
|
1838
1838
|
opacity: 0;
|
|
1839
1839
|
}
|
|
1840
|
-
.content-fade-enter-active .ui-modal[data-v-
|
|
1841
|
-
.content-fade-leave-active .ui-modal[data-v-
|
|
1840
|
+
.content-fade-enter-active .ui-modal[data-v-7d6b5522],
|
|
1841
|
+
.content-fade-leave-active .ui-modal[data-v-7d6b5522] {
|
|
1842
1842
|
transition: transform 0.3s ease;
|
|
1843
1843
|
}
|
|
1844
|
-
.content-fade-enter-from .ui-modal[data-v-
|
|
1845
|
-
.content-fade-leave-to .ui-modal[data-v-
|
|
1844
|
+
.content-fade-enter-from .ui-modal[data-v-7d6b5522],
|
|
1845
|
+
.content-fade-leave-to .ui-modal[data-v-7d6b5522] {
|
|
1846
1846
|
transform: scale(0.8);
|
|
1847
1847
|
}.header[data-v-2e9192be] h1,
|
|
1848
1848
|
.header[data-v-2e9192be] h2,
|
|
@@ -2737,7 +2737,7 @@ nav .additional[data-v-8b4752b4] {
|
|
|
2737
2737
|
padding-right: 32px;
|
|
2738
2738
|
}.table-search[data-v-c674a0d1] {
|
|
2739
2739
|
width: 260px;
|
|
2740
|
-
}.table-search[data-v-
|
|
2740
|
+
}.table-search[data-v-10d05366] {
|
|
2741
2741
|
width: 260px;
|
|
2742
2742
|
}.cocarde[data-v-d1c7b421] {
|
|
2743
2743
|
display: flex;
|