@ouestfrance/sipa-bms-ui 8.18.0 → 8.20.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/form/BmsInputText.vue.d.ts +1 -0
- package/dist/components/form/BmsSearch.vue.d.ts +3 -1
- package/dist/components/layout/BmsSplitWindow.vue.d.ts +1 -0
- package/dist/components/navigation/UiTenantSwitcher.vue.d.ts +3 -1
- package/dist/components/table/BmsTableFilters.vue.d.ts +3 -1
- package/dist/sipa-bms-ui.css +23 -9
- package/dist/sipa-bms-ui.es.js +19 -11
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +19 -11
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +2 -1
- package/src/components/button/BmsButton.stories.js +14 -22
- package/src/components/button/BmsIconButton.stories.js +14 -8
- package/src/components/button/UiButton.stories.js +31 -0
- package/src/components/feedback/BmsCircularProgress.stories.js +0 -7
- package/src/components/feedback/BmsLoader.stories.js +0 -6
- package/src/components/feedback/BmsTooltip.stories.js +1 -0
- package/src/components/feedback/UiTooltip.stories.js +1 -0
- package/src/components/form/BmsAutocomplete.stories.js +11 -1
- package/src/components/form/BmsBetweenInput.stories.js +17 -1
- package/src/components/form/BmsFilePicker.stories.js +3 -1
- package/src/components/form/BmsInputBooleanCheckbox.stories.js +9 -0
- package/src/components/form/BmsInputCheckboxCaption.stories.js +16 -0
- package/src/components/form/BmsInputCheckboxCaptionGroup.stories.js +21 -1
- package/src/components/form/BmsInputText.vue +1 -0
- package/src/components/form/UiBmsInputCheckbox.stories.js +1 -0
- package/src/components/form/UiBmsSwitch.stories.js +1 -5
- package/src/components/layout/BmsForm_retrocompat.stories.js +1 -0
- package/src/components/layout/BmsSplitWindow.vue +38 -10
- package/src/components/navigation/BmsBreadcrumb.stories.js +0 -18
- package/src/components/navigation/BmsMenu.stories.js +4 -4
- package/src/components/navigation/BmsMenuNav.stories.js +4 -3
- package/src/components/navigation/UiMenuItem.stories.js +53 -2
- package/src/components/navigation/UiTab.stories.js +1 -0
- package/src/components/navigation/UiTenantSwitcher.stories.js +1 -0
- package/src/components/table/BmsEmptyScreen.stories.js +0 -7
- package/src/components/table/UiBmsTable.stories.js +1 -0
- package/src/components/table/UiFilterButton.stories.js +3 -8
- package/src/components/utils/BmsRelativeTime.stories.js +0 -6
- package/src/components/feedback/Notification.stories.js +0 -37
- package/src/components/navigation/UiMenuItemStatus.stories.js +0 -64
|
@@ -165,6 +165,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
165
165
|
"update:modelValue": (value: string) => any;
|
|
166
166
|
}, string, {
|
|
167
167
|
label: string;
|
|
168
|
+
small: boolean;
|
|
168
169
|
required: boolean;
|
|
169
170
|
disabled: boolean;
|
|
170
171
|
inputType: import('../..').InputType;
|
|
@@ -190,6 +191,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
190
191
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
191
192
|
} & Readonly<{
|
|
192
193
|
label: string;
|
|
194
|
+
small: boolean;
|
|
193
195
|
required: boolean;
|
|
194
196
|
disabled: boolean;
|
|
195
197
|
inputType: import('../..').InputType;
|
|
@@ -197,7 +199,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
197
199
|
onBlur?: (() => any) | undefined;
|
|
198
200
|
onFocus?: (() => any) | undefined;
|
|
199
201
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
200
|
-
}>, "setFocus" | ("label" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
|
|
202
|
+
}>, "setFocus" | ("label" | "small" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
|
|
201
203
|
setFocus: () => void;
|
|
202
204
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
203
205
|
$slots: {
|
|
@@ -166,6 +166,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
166
166
|
"update:modelValue": (value: string) => any;
|
|
167
167
|
}, string, {
|
|
168
168
|
label: string;
|
|
169
|
+
small: boolean;
|
|
169
170
|
required: boolean;
|
|
170
171
|
disabled: boolean;
|
|
171
172
|
inputType: import('../../models').InputType;
|
|
@@ -191,6 +192,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
191
192
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
192
193
|
} & Readonly<{
|
|
193
194
|
label: string;
|
|
195
|
+
small: boolean;
|
|
194
196
|
required: boolean;
|
|
195
197
|
disabled: boolean;
|
|
196
198
|
inputType: import('../../models').InputType;
|
|
@@ -198,7 +200,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
198
200
|
onBlur?: (() => any) | undefined;
|
|
199
201
|
onFocus?: (() => any) | undefined;
|
|
200
202
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
201
|
-
}>, "setFocus" | ("label" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
|
|
203
|
+
}>, "setFocus" | ("label" | "small" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
|
|
202
204
|
setFocus: () => void;
|
|
203
205
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
204
206
|
$slots: {
|
|
@@ -184,6 +184,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
184
184
|
"update:modelValue": (value: string) => any;
|
|
185
185
|
}, string, {
|
|
186
186
|
label: string;
|
|
187
|
+
small: boolean;
|
|
187
188
|
required: boolean;
|
|
188
189
|
disabled: boolean;
|
|
189
190
|
inputType: import('../../models').InputType;
|
|
@@ -209,6 +210,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
209
210
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
210
211
|
} & Readonly<{
|
|
211
212
|
label: string;
|
|
213
|
+
small: boolean;
|
|
212
214
|
required: boolean;
|
|
213
215
|
disabled: boolean;
|
|
214
216
|
inputType: import('../../models').InputType;
|
|
@@ -216,7 +218,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
216
218
|
onBlur?: (() => any) | undefined;
|
|
217
219
|
onFocus?: (() => any) | undefined;
|
|
218
220
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
219
|
-
}>, "setFocus" | ("label" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
|
|
221
|
+
}>, "setFocus" | ("label" | "small" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
|
|
220
222
|
setFocus: () => void;
|
|
221
223
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
222
224
|
$slots: {
|
package/dist/sipa-bms-ui.css
CHANGED
|
@@ -1655,45 +1655,59 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
|
|
|
1655
1655
|
background-color: var(--bms-white);
|
|
1656
1656
|
border-radius: var(--bms-border-radius-large);
|
|
1657
1657
|
padding: 1em 2em 1em 2em;
|
|
1658
|
-
}.split-window[data-v-
|
|
1658
|
+
}.split-window[data-v-0aa0f55f] {
|
|
1659
1659
|
display: grid;
|
|
1660
1660
|
width: 100%;
|
|
1661
1661
|
height: 100%;
|
|
1662
|
+
overflow: hidden;
|
|
1662
1663
|
}
|
|
1663
|
-
.split-
|
|
1664
|
+
.split-window__pane[data-v-0aa0f55f] {
|
|
1665
|
+
display: flex;
|
|
1666
|
+
max-height: 100%;
|
|
1667
|
+
overflow: hidden;
|
|
1668
|
+
}
|
|
1669
|
+
.split-window__separator[data-v-0aa0f55f] {
|
|
1664
1670
|
position: relative;
|
|
1665
|
-
z-index:
|
|
1671
|
+
z-index: var(--bms-z-index-fixed);
|
|
1666
1672
|
}
|
|
1667
|
-
.split-window__separator[data-v-
|
|
1673
|
+
.split-window__separator[data-v-0aa0f55f]:before {
|
|
1668
1674
|
content: "";
|
|
1669
1675
|
position: absolute;
|
|
1670
1676
|
top: 0;
|
|
1671
1677
|
left: 0;
|
|
1672
1678
|
}
|
|
1673
|
-
.split-window__separator[data-v-
|
|
1679
|
+
.split-window__separator[data-v-0aa0f55f]:focus-within:before {
|
|
1674
1680
|
outline: 2px solid black;
|
|
1675
1681
|
}
|
|
1676
|
-
.split-window--vertical .split-window__separator[data-v-
|
|
1682
|
+
.split-window--vertical .split-window__separator[data-v-0aa0f55f] {
|
|
1677
1683
|
height: 100%;
|
|
1678
1684
|
width: 0;
|
|
1679
1685
|
}
|
|
1680
|
-
.split-window--vertical .split-window__separator[data-v-
|
|
1686
|
+
.split-window--vertical .split-window__separator[data-v-0aa0f55f]:before {
|
|
1681
1687
|
content: "";
|
|
1682
1688
|
width: 8px;
|
|
1683
1689
|
height: 100%;
|
|
1684
1690
|
transform: translate(-50%, 0);
|
|
1685
1691
|
cursor: col-resize;
|
|
1686
1692
|
}
|
|
1687
|
-
.split-window--horizontal .split-window__separator[data-v-
|
|
1693
|
+
.split-window--horizontal .split-window__separator[data-v-0aa0f55f] {
|
|
1688
1694
|
height: 0;
|
|
1689
1695
|
width: 100%;
|
|
1690
1696
|
}
|
|
1691
|
-
.split-window--horizontal .split-window__separator[data-v-
|
|
1697
|
+
.split-window--horizontal .split-window__separator[data-v-0aa0f55f]:before {
|
|
1692
1698
|
content: "";
|
|
1693
1699
|
width: 100%;
|
|
1694
1700
|
height: 8px;
|
|
1695
1701
|
transform: translate(0, -50%);
|
|
1696
1702
|
cursor: row-resize;
|
|
1703
|
+
}
|
|
1704
|
+
.split-window--dragging .split-window__separator[data-v-0aa0f55f]:before {
|
|
1705
|
+
position: fixed;
|
|
1706
|
+
top: 0;
|
|
1707
|
+
left: 0;
|
|
1708
|
+
width: 100%;
|
|
1709
|
+
height: 100%;
|
|
1710
|
+
transform: unset;
|
|
1697
1711
|
}.step-buttons[data-v-fcce71d1] {
|
|
1698
1712
|
padding-top: 2em;
|
|
1699
1713
|
display: flex;
|
package/dist/sipa-bms-ui.es.js
CHANGED
|
@@ -68535,7 +68535,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
68535
68535
|
errors: {},
|
|
68536
68536
|
captions: {},
|
|
68537
68537
|
disabled: { type: Boolean, default: false },
|
|
68538
|
-
small: { type: Boolean },
|
|
68538
|
+
small: { type: Boolean, default: false },
|
|
68539
68539
|
ellipsisLabel: { type: Boolean }
|
|
68540
68540
|
},
|
|
68541
68541
|
emits: ["update:modelValue", "blur", "focus"],
|
|
@@ -90514,6 +90514,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90514
90514
|
watch(
|
|
90515
90515
|
() => props.collapsed,
|
|
90516
90516
|
(val) => {
|
|
90517
|
+
console.log("watch:collapsed", val);
|
|
90517
90518
|
collapsedLocal.value = val ?? false;
|
|
90518
90519
|
}
|
|
90519
90520
|
);
|
|
@@ -90559,7 +90560,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90559
90560
|
});
|
|
90560
90561
|
function onPointerDown(evt) {
|
|
90561
90562
|
isDragging.value = true;
|
|
90562
|
-
|
|
90563
|
+
if (collapsedLocal.value) {
|
|
90564
|
+
setCollapsed(false);
|
|
90565
|
+
}
|
|
90563
90566
|
startSplit.value = clampSplit.value;
|
|
90564
90567
|
startPosition.value = props.splitOrientation === "vertical" ? evt.clientX : evt.clientY;
|
|
90565
90568
|
}
|
|
@@ -90583,14 +90586,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90583
90586
|
switch (evt.key) {
|
|
90584
90587
|
case "ArrowLeft":
|
|
90585
90588
|
case "ArrowUp":
|
|
90586
|
-
if (collapsedLocal.value
|
|
90589
|
+
if (collapsedLocal.value) {
|
|
90587
90590
|
setCollapsed(false);
|
|
90588
90591
|
}
|
|
90589
90592
|
split.value = Math.max(min.value, clampSplit.value - 1);
|
|
90590
90593
|
break;
|
|
90591
90594
|
case "ArrowRight":
|
|
90592
90595
|
case "ArrowDown":
|
|
90593
|
-
if (collapsedLocal.value
|
|
90596
|
+
if (collapsedLocal.value) {
|
|
90594
90597
|
setCollapsed(false);
|
|
90595
90598
|
}
|
|
90596
90599
|
split.value = Math.min(max.value, clampSplit.value + 1);
|
|
@@ -90599,13 +90602,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90599
90602
|
setCollapsed(!collapsedLocal.value);
|
|
90600
90603
|
break;
|
|
90601
90604
|
case "Home":
|
|
90602
|
-
if (collapsedLocal.value
|
|
90605
|
+
if (collapsedLocal.value) {
|
|
90603
90606
|
setCollapsed(false);
|
|
90604
90607
|
}
|
|
90605
90608
|
split.value = props.primary === "first" ? min.value : max.value;
|
|
90606
90609
|
break;
|
|
90607
90610
|
case "End":
|
|
90608
|
-
if (collapsedLocal.value
|
|
90611
|
+
if (collapsedLocal.value) {
|
|
90609
90612
|
setCollapsed(false);
|
|
90610
90613
|
}
|
|
90611
90614
|
split.value = props.primary === "first" ? max.value : min.value;
|
|
@@ -90626,11 +90629,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90626
90629
|
return (_ctx, _cache) => {
|
|
90627
90630
|
return openBlock(), createElementBlock("div", {
|
|
90628
90631
|
ref: "split-window",
|
|
90629
|
-
class: normalizeClass(["split-window",
|
|
90632
|
+
class: normalizeClass(["split-window", [
|
|
90633
|
+
`split-window--${__props.splitOrientation}`,
|
|
90634
|
+
{ "split-window--dragging": isDragging.value }
|
|
90635
|
+
]]),
|
|
90630
90636
|
style: normalizeStyle(gridStyle.value)
|
|
90631
90637
|
}, [
|
|
90632
90638
|
createElementVNode("div", {
|
|
90633
|
-
class: "split-window__first-pane",
|
|
90639
|
+
class: "split-window__pane split-window__first-pane",
|
|
90634
90640
|
id: __props.primary === "first" ? primaryId.value : void 0
|
|
90635
90641
|
}, [
|
|
90636
90642
|
renderSlot(_ctx.$slots, "first", {}, void 0, true)
|
|
@@ -90647,9 +90653,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90647
90653
|
"aria-controls": primaryId.value,
|
|
90648
90654
|
onPointerdown: withModifiers(onPointerDown, ["prevent", "stop"]),
|
|
90649
90655
|
onKeydown: onKeyDown
|
|
90650
|
-
},
|
|
90656
|
+
}, [
|
|
90657
|
+
renderSlot(_ctx.$slots, "separator", {}, void 0, true)
|
|
90658
|
+
], 40, _hoisted_2$k),
|
|
90651
90659
|
createElementVNode("div", {
|
|
90652
|
-
class: "split-window__second-pane",
|
|
90660
|
+
class: "split-window__pane split-window__second-pane",
|
|
90653
90661
|
id: __props.primary === "second" ? primaryId.value : void 0
|
|
90654
90662
|
}, [
|
|
90655
90663
|
renderSlot(_ctx.$slots, "second", {}, void 0, true)
|
|
@@ -90659,7 +90667,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90659
90667
|
}
|
|
90660
90668
|
});
|
|
90661
90669
|
|
|
90662
|
-
const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-
|
|
90670
|
+
const BmsSplitWindow = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-0aa0f55f"]]);
|
|
90663
90671
|
|
|
90664
90672
|
const _hoisted_1$u = { class: "step" };
|
|
90665
90673
|
const _hoisted_2$j = { class: "step-buttons" };
|