fds-vue-core 8.15.0 → 8.16.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/FdsSearchSelectPro/FdsSearchSelectPro.vue.d.ts +2 -1
- package/dist/components/FdsSearchSelectPro/types.d.ts +5 -0
- package/dist/components/FdsWeekCalendar/FdsWeekCalendar.vue.d.ts +1 -1
- package/dist/components/Form/FdsInput/FdsInput.vue.d.ts +11 -1
- package/dist/fds-vue-core.cjs.js +22 -13
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +23 -14
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/FdsSearchSelectPro/FdsSearchSelectPro.stories.ts +8 -1
- package/src/components/FdsSearchSelectPro/FdsSearchSelectPro.vue +11 -2
- package/src/components/FdsSearchSelectPro/types.ts +6 -0
- package/src/components/Form/FdsInput/FdsInput.stories.ts +17 -0
- package/src/components/Form/FdsInput/FdsInput.vue +12 -2
- package/src/index.ts +5 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { FdsSearchSelectProItemSlotProps, FdsSearchSelectProProps } from './types';
|
|
1
|
+
import { FdsSearchSelectProItemSlotProps, FdsSearchSelectProProps, FdsSearchSelectProSelectedSlotProps } from './types';
|
|
2
2
|
type __VLS_Slots = {
|
|
3
3
|
item?: (props: FdsSearchSelectProItemSlotProps) => unknown;
|
|
4
|
+
selected?: (props: FdsSearchSelectProSelectedSlotProps) => unknown;
|
|
4
5
|
};
|
|
5
6
|
declare const __VLS_base: import('vue').DefineComponent<FdsSearchSelectProProps, {
|
|
6
7
|
blur: () => void;
|
|
@@ -132,3 +132,8 @@ export interface FdsSearchSelectProItemSlotProps {
|
|
|
132
132
|
/** Default row text as HTML, with the search match wrapped in `<b>`. */
|
|
133
133
|
highlightedText: string;
|
|
134
134
|
}
|
|
135
|
+
/** Props passed to the `selected` slot of `FdsSearchSelectPro`, shown before the input text in single-select mode. */
|
|
136
|
+
export interface FdsSearchSelectProSelectedSlotProps {
|
|
137
|
+
/** The currently selected item. */
|
|
138
|
+
item: Record<string, unknown>;
|
|
139
|
+
}
|
|
@@ -11,6 +11,7 @@ declare const __VLS_export: import('vue').DefineComponent<FdsWeekCalendarProps,
|
|
|
11
11
|
"onIncrement-week"?: (() => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
loading: import('./types').FdsWeekCalendarLoading;
|
|
14
|
+
selected: Date | null;
|
|
14
15
|
enabledDates: Date[];
|
|
15
16
|
disablePreviousWeek: boolean;
|
|
16
17
|
disableNextWeek: boolean;
|
|
@@ -18,7 +19,6 @@ declare const __VLS_export: import('vue').DefineComponent<FdsWeekCalendarProps,
|
|
|
18
19
|
minWeek: Date;
|
|
19
20
|
maxDate: Date;
|
|
20
21
|
previewOtherDays: boolean;
|
|
21
|
-
selected: Date | null;
|
|
22
22
|
weekLabel: string;
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { Slot } from 'vue';
|
|
1
2
|
import { FdsInputProps } from './types';
|
|
2
3
|
type __VLS_Props = FdsInputProps;
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
prefix?: Slot;
|
|
6
|
+
};
|
|
3
7
|
type __VLS_ModelProps = {
|
|
4
8
|
modelValue?: string;
|
|
5
9
|
};
|
|
6
10
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
-
declare const
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
12
|
"update:modelValue": (value: string | undefined) => any;
|
|
9
13
|
} & {
|
|
10
14
|
input: (ev: Event) => any;
|
|
@@ -48,5 +52,11 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
48
52
|
lazy?: boolean;
|
|
49
53
|
};
|
|
50
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
55
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
51
56
|
declare const _default: typeof __VLS_export;
|
|
52
57
|
export default _default;
|
|
58
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -1080,7 +1080,7 @@ var FdsButtonIcon_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1080
1080
|
var _hoisted_1$42 = { class: "flex items-start gap-2" };
|
|
1081
1081
|
var _hoisted_2$29 = { class: "h-7 flex items-center" };
|
|
1082
1082
|
var _hoisted_3$23 = { class: "leading-7" };
|
|
1083
|
-
var _hoisted_4$
|
|
1083
|
+
var _hoisted_4$20 = { class: "relative h-7" };
|
|
1084
1084
|
var _hoisted_5$17 = {
|
|
1085
1085
|
key: 1,
|
|
1086
1086
|
class: "fds-block-alert-slot mb-0-last-child"
|
|
@@ -1152,7 +1152,7 @@ var FdsBlockAlert_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1152
1152
|
name: "alert",
|
|
1153
1153
|
size: 24,
|
|
1154
1154
|
class: "fill-yellow-700"
|
|
1155
|
-
})]), (0, vue.createElementVNode)("span", _hoisted_3$23, (0, vue.toDisplayString)(__props.heading), 1)]), (0, vue.createElementVNode)("div", _hoisted_4$
|
|
1155
|
+
})]), (0, vue.createElementVNode)("span", _hoisted_3$23, (0, vue.toDisplayString)(__props.heading), 1)]), (0, vue.createElementVNode)("div", _hoisted_4$20, [__props.closeable ? ((0, vue.openBlock)(), (0, vue.createBlock)(FdsButtonIcon_default, (0, vue.mergeProps)({
|
|
1156
1156
|
key: 0,
|
|
1157
1157
|
icon: "cross",
|
|
1158
1158
|
size: 28,
|
|
@@ -1177,7 +1177,7 @@ var _hoisted_2$28 = {
|
|
|
1177
1177
|
class: "flex items-start justify-between gap-4 mb-4"
|
|
1178
1178
|
};
|
|
1179
1179
|
var _hoisted_3$22 = { class: "flex items-center gap-3" };
|
|
1180
|
-
var _hoisted_4$
|
|
1180
|
+
var _hoisted_4$19 = { class: "flex items-start gap-3 leading-8" };
|
|
1181
1181
|
var _hoisted_5$16 = { class: "mb-0-last-child" };
|
|
1182
1182
|
// src/components/Blocks/FdsBlockContent/FdsBlockContent.vue
|
|
1183
1183
|
var FdsBlockContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1223,7 +1223,7 @@ var FdsBlockContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1223
1223
|
id: contentBlockId.value,
|
|
1224
1224
|
class: contentClasses.value,
|
|
1225
1225
|
style: borderLeftStyle.value
|
|
1226
|
-
}, rootAttrs.value), [__props.heading ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("header", _hoisted_2$28, [(0, vue.createElementVNode)("div", _hoisted_3$22, [(0, vue.createElementVNode)("h3", { class: (0, vue.normalizeClass)(headerClasses.value) }, (0, vue.toDisplayString)(__props.heading), 3)]), (0, vue.createElementVNode)("div", _hoisted_4$
|
|
1226
|
+
}, rootAttrs.value), [__props.heading ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("header", _hoisted_2$28, [(0, vue.createElementVNode)("div", _hoisted_3$22, [(0, vue.createElementVNode)("h3", { class: (0, vue.normalizeClass)(headerClasses.value) }, (0, vue.toDisplayString)(__props.heading), 3)]), (0, vue.createElementVNode)("div", _hoisted_4$19, [(0, vue.renderSlot)(_ctx.$slots, "headerInfo")])])) : (0, vue.createCommentVNode)("", true), (0, vue.createElementVNode)("div", _hoisted_5$16, [(0, vue.renderSlot)(_ctx.$slots, "default")])], 16, _hoisted_1$41);
|
|
1227
1227
|
};
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
@@ -1279,7 +1279,7 @@ var _hoisted_2$27 = {
|
|
|
1279
1279
|
class: "flex items-center mr-4"
|
|
1280
1280
|
};
|
|
1281
1281
|
var _hoisted_3$21 = { class: "inline-flex items-center" };
|
|
1282
|
-
var _hoisted_4$
|
|
1282
|
+
var _hoisted_4$18 = { class: "flex items-center gap-2" };
|
|
1283
1283
|
var _hoisted_5$15 = {
|
|
1284
1284
|
key: 0,
|
|
1285
1285
|
class: "w-full flex mt-2"
|
|
@@ -1351,7 +1351,7 @@ var FdsBlockExpander_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1351
1351
|
name: __props.icon,
|
|
1352
1352
|
size: 24,
|
|
1353
1353
|
class: (0, vue.normalizeClass)(["fill-blue-500", [{ "fill-gray-500": __props.disabled }, __props.iconClass]])
|
|
1354
|
-
}, null, 8, ["name", "class"])])) : (0, vue.createCommentVNode)("", true), (0, vue.createElementVNode)("span", _hoisted_3$21, [(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(["font-bold font-heading text-lg leading-6", { "text-gray-700": __props.disabled }]) }, (0, vue.toDisplayString)(__props.heading), 3)])], 2), (0, vue.createElementVNode)("span", _hoisted_4$
|
|
1354
|
+
}, null, 8, ["name", "class"])])) : (0, vue.createCommentVNode)("", true), (0, vue.createElementVNode)("span", _hoisted_3$21, [(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(["font-bold font-heading text-lg leading-6", { "text-gray-700": __props.disabled }]) }, (0, vue.toDisplayString)(__props.heading), 3)])], 2), (0, vue.createElementVNode)("span", _hoisted_4$18, [__props.stickerText && __props.stickerColor ? ((0, vue.openBlock)(), (0, vue.createBlock)(FdsSticker_default, {
|
|
1355
1355
|
key: 0,
|
|
1356
1356
|
variant: __props.stickerColor
|
|
1357
1357
|
}, {
|
|
@@ -1378,7 +1378,7 @@ var _hoisted_2$26 = {
|
|
|
1378
1378
|
class: "flex items-start gap-4"
|
|
1379
1379
|
};
|
|
1380
1380
|
var _hoisted_3$20 = { class: "flex-1" };
|
|
1381
|
-
var _hoisted_4$
|
|
1381
|
+
var _hoisted_4$17 = {
|
|
1382
1382
|
key: 0,
|
|
1383
1383
|
class: "mb-1"
|
|
1384
1384
|
};
|
|
@@ -1431,7 +1431,7 @@ var FdsBlockInfo_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1431
1431
|
name: __props.icon,
|
|
1432
1432
|
size: largeIconSize,
|
|
1433
1433
|
class: "fill-blue-500"
|
|
1434
|
-
}, null, 8, ["name"]), (0, vue.createElementVNode)("div", _hoisted_3$20, [__props.heading ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_4$
|
|
1434
|
+
}, null, 8, ["name"]), (0, vue.createElementVNode)("div", _hoisted_3$20, [__props.heading ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_4$17, [(0, vue.createElementVNode)("header", _hoisted_5$14, [(0, vue.createElementVNode)("h3", _hoisted_6$11, (0, vue.toDisplayString)(__props.heading), 1), (0, vue.createElementVNode)("div", _hoisted_7$9, [(0, vue.renderSlot)(_ctx.$slots, "headerInfo")])])])) : (0, vue.createCommentVNode)("", true), (0, vue.unref)(hasSlot) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_8$7, [(0, vue.renderSlot)(_ctx.$slots, "default")])) : (0, vue.createCommentVNode)("", true)])])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_9$6, [__props.heading ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
1435
1435
|
key: 0,
|
|
1436
1436
|
class: (0, vue.normalizeClass)({ "mb-2": (0, vue.unref)(hasSlot) })
|
|
1437
1437
|
}, [(0, vue.createElementVNode)("header", _hoisted_10$4, [(0, vue.createElementVNode)("div", _hoisted_11$4, [__props.icon && __props.iconSize === "small" ? ((0, vue.openBlock)(), (0, vue.createBlock)(FdsIcon_default, {
|
|
@@ -7551,7 +7551,7 @@ var _hoisted_1$27 = {
|
|
|
7551
7551
|
};
|
|
7552
7552
|
var _hoisted_2$19 = { class: "flex flex-col gap-2" };
|
|
7553
7553
|
var _hoisted_3$19 = { key: 0 };
|
|
7554
|
-
var _hoisted_4$
|
|
7554
|
+
var _hoisted_4$16 = {
|
|
7555
7555
|
key: 1,
|
|
7556
7556
|
class: "flex flex-col gap-1"
|
|
7557
7557
|
};
|
|
@@ -7667,7 +7667,7 @@ var FdsDevModeOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
7667
7667
|
"onChange"
|
|
7668
7668
|
]);
|
|
7669
7669
|
}), 128))])) : (0, vue.createCommentVNode)("", true),
|
|
7670
|
-
buttonToggles.value.length > 0 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_4$
|
|
7670
|
+
buttonToggles.value.length > 0 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_4$16, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(buttonToggles.value, (toggle) => {
|
|
7671
7671
|
return (0, vue.openBlock)(), (0, vue.createBlock)(FdsButtonMinor_default, {
|
|
7672
7672
|
key: toggle.key,
|
|
7673
7673
|
size: "sm",
|
|
@@ -10899,6 +10899,10 @@ var _hoisted_3$17 = [
|
|
|
10899
10899
|
"pattern",
|
|
10900
10900
|
"searchIcon"
|
|
10901
10901
|
];
|
|
10902
|
+
var _hoisted_4$15 = {
|
|
10903
|
+
key: 0,
|
|
10904
|
+
class: "pointer-events-none absolute top-1/2 left-3 flex -translate-y-1/2 items-center"
|
|
10905
|
+
};
|
|
10902
10906
|
var inputPaddingClasses = "px-3 py-[calc(0.75rem-1px)]";
|
|
10903
10907
|
// src/components/Form/FdsInput/FdsInput.vue
|
|
10904
10908
|
var FdsInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -11176,7 +11180,7 @@ var FdsInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
11176
11180
|
maxlength: (0, vue.unref)(maxlength),
|
|
11177
11181
|
tabindex: props.disabled ? -1 : void 0,
|
|
11178
11182
|
"aria-invalid": props.valid === false ? "true" : void 0,
|
|
11179
|
-
class: inputClasses.value,
|
|
11183
|
+
class: [inputClasses.value, _ctx.$slots.prefix && "pl-11"],
|
|
11180
11184
|
style: inputStyle.value,
|
|
11181
11185
|
"aria-label": props.ariaLabel,
|
|
11182
11186
|
"aria-labelledby": ariaLabelledBy.value,
|
|
@@ -11195,6 +11199,7 @@ var FdsInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
11195
11199
|
if (ev.key === "Enter") _ctx.$emit("keyup.enter", ev);
|
|
11196
11200
|
})
|
|
11197
11201
|
}), null, 16, _hoisted_3$17),
|
|
11202
|
+
_ctx.$slots.prefix ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_4$15, [(0, vue.renderSlot)(_ctx.$slots, "prefix")])) : (0, vue.createCommentVNode)("", true),
|
|
11198
11203
|
(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(rightIconsContainerClasses.value) }, [
|
|
11199
11204
|
showDateIcon.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(FdsButtonIcon_default, {
|
|
11200
11205
|
key: 0,
|
|
@@ -11234,7 +11239,7 @@ var FdsInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
11234
11239
|
}, null, 8, ["icon", "text"])) : (0, vue.createCommentVNode)("", true)
|
|
11235
11240
|
], 2),
|
|
11236
11241
|
showTodaySuffixInField.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
11237
|
-
key:
|
|
11242
|
+
key: 1,
|
|
11238
11243
|
class: (0, vue.normalizeClass)(todaySuffixClasses.value),
|
|
11239
11244
|
style: (0, vue.normalizeStyle)(todaySuffixStyle.value)
|
|
11240
11245
|
}, (0, vue.toDisplayString)(todayLabel.value), 7)) : (0, vue.createCommentVNode)("", true)
|
|
@@ -14087,7 +14092,11 @@ var FdsSearchSelectPro_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14087
14092
|
searchIcon: !__props.disabled && !inputHasFocus.value && !hasInputValue.value && !hasSelection.value && !dropdownVisible.value,
|
|
14088
14093
|
onInput: handleInput,
|
|
14089
14094
|
onClearInput: handleClear
|
|
14090
|
-
}),
|
|
14095
|
+
}), (0, vue.createSlots)({ _: 2 }, [_ctx.$slots.selected && !__props.multiple && selectedItem.value ? {
|
|
14096
|
+
name: "prefix",
|
|
14097
|
+
fn: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "selected", { item: selectedItem.value })]),
|
|
14098
|
+
key: "0"
|
|
14099
|
+
} : void 0]), 1040, [
|
|
14091
14100
|
"label",
|
|
14092
14101
|
"meta",
|
|
14093
14102
|
"labelLeft",
|