fds-vue-core 2.0.87 → 2.0.88

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.
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import FdsSearchSelect from './FdsSearchSelect.vue';
3
+ declare const meta: Meta<typeof FdsSearchSelect>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const WithItems: Story;
7
+ export declare const WithSelectedEarlier: Story;
8
+ export declare const SingleOrganization: Story;
9
+ export declare const WithValidation: Story;
10
+ export declare const WithLabelLeft: Story;
11
+ export declare const WithAbsoluteList: Story;
12
+ export declare const Disabled: Story;
13
+ export declare const EnglishLocale: Story;
14
+ export declare const WithPagination: Story;
15
+ //# sourceMappingURL=FdsSearchSelect.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FdsSearchSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FdsSearchSelect/FdsSearchSelect.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,eAAe,MAAM,uBAAuB,CAAA;AAEnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CAyHtC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AA+BlC,eAAO,MAAM,SAAS,EAAE,KAwBvB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAuBjC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KA6BhC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KA0B5B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KA0B3B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAyB9B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KA8B3B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KA0D5B,CAAA"}
@@ -0,0 +1,41 @@
1
+ import type { FdsSearchSelectProps } from './types';
2
+ declare const _default: import("vue").DefineComponent<FdsSearchSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ change: (value: string) => any;
4
+ paginate: (value: number) => any;
5
+ searchSelected: (value: Record<string, unknown>) => any;
6
+ total: (value: number) => any;
7
+ }, string, import("vue").PublicProps, Readonly<FdsSearchSelectProps> & Readonly<{
8
+ onChange?: (value: string) => any;
9
+ onPaginate?: (value: number) => any;
10
+ onSearchSelected?: (value: Record<string, unknown>) => any;
11
+ onTotal?: (value: number) => any;
12
+ }>, {
13
+ label: string;
14
+ disabled: boolean;
15
+ meta: string | null;
16
+ loading: boolean;
17
+ valid: string;
18
+ invalidMessage: string;
19
+ labelLeft: boolean;
20
+ locale: "sv" | "en";
21
+ page: number;
22
+ items: Array<Record<string, unknown>>;
23
+ totalPages: number;
24
+ totalCount: number;
25
+ searchFields: string[];
26
+ preserveOrder: boolean;
27
+ initialValue: string;
28
+ dropdownAbsolute: boolean;
29
+ singleItemLabel: string;
30
+ searchContext: {
31
+ context: string;
32
+ linkWord: string;
33
+ };
34
+ noResultPrompt: string;
35
+ borderless: boolean;
36
+ marginless: boolean;
37
+ maxListHeight: number | string;
38
+ clearTrigger: boolean;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
+ export default _default;
41
+ //# sourceMappingURL=FdsSearchSelect.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FdsSearchSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FdsSearchSelect/FdsSearchSelect.vue"],"names":[],"mappings":"AA+kBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAy0BnD,wBAIG"}
@@ -0,0 +1,29 @@
1
+ export interface FdsSearchSelectProps {
2
+ items: Array<Record<string, unknown>>;
3
+ page?: number;
4
+ totalPages?: number;
5
+ totalCount?: number;
6
+ loading?: boolean;
7
+ searchFields?: string[];
8
+ preserveOrder?: boolean;
9
+ initialValue?: string;
10
+ disabled?: boolean;
11
+ dropdownAbsolute?: boolean;
12
+ labelLeft?: boolean;
13
+ label?: string;
14
+ meta?: string | null;
15
+ singleItemLabel?: string;
16
+ searchContext?: {
17
+ context: string;
18
+ linkWord: string;
19
+ };
20
+ valid?: string;
21
+ invalidMessage?: string;
22
+ noResultPrompt?: string;
23
+ borderless?: boolean;
24
+ marginless?: boolean;
25
+ maxListHeight?: number | string;
26
+ locale?: 'sv' | 'en';
27
+ clearTrigger?: boolean;
28
+ }
29
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/FdsSearchSelect/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACrD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC/B,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB"}
@@ -6,4 +6,13 @@ type Story = StoryObj<typeof meta>;
6
6
  export declare const Basic: Story;
7
7
  export declare const WithVModel: Story;
8
8
  export declare const WithMeta: Story;
9
+ export declare const WithValidation: Story;
10
+ export declare const Disabled: Story;
11
+ export declare const Required: Story;
12
+ export declare const WithLabelLeft: Story;
13
+ export declare const Password: Story;
14
+ export declare const Search: Story;
15
+ export declare const WithMask: Story;
16
+ export declare const WithMaskPhone: Story;
17
+ export declare const AllStates: Story;
9
18
  //# sourceMappingURL=FdsInput.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FdsInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsInput/FdsInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AAErC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CA2B/B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KASxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAA"}
1
+ {"version":3,"file":"FdsInput.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsInput/FdsInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AAErC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAwG/B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAcxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KA+B5B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAiBpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAoBtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAmB3B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAcvB,CAAA"}
@@ -23,11 +23,17 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
23
23
  id: string;
24
24
  type: "text" | "search" | "email" | "password";
25
25
  meta: string;
26
+ mask: string | RegExp | Array<string | RegExp>;
26
27
  valid: string;
27
28
  optional: boolean;
28
29
  labelLeft: boolean;
29
30
  clearButton: boolean;
30
31
  passwordLabels: string[];
32
+ maskOptions: {
33
+ lazy?: boolean;
34
+ placeholderChar?: string;
35
+ [key: string]: unknown;
36
+ };
31
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
38
  export default _default;
33
39
  //# sourceMappingURL=FdsInput.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FdsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsInput/FdsInput.vue"],"names":[],"mappings":"AAiJA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAmGjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsNF,wBAIG"}
1
+ {"version":3,"file":"FdsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsInput/FdsInput.vue"],"names":[],"mappings":"AA+NA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA4KjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA1LF,CAhNuC;uBAgNvC,CA9MuB;;;;AAsmBvB,wBAIG"}
@@ -16,5 +16,11 @@ export interface FdsInputProps {
16
16
  locale?: 'sv' | 'en';
17
17
  size?: number | string;
18
18
  maxlength?: number;
19
+ mask?: string | RegExp | Array<string | RegExp>;
20
+ maskOptions?: {
21
+ lazy?: boolean;
22
+ placeholderChar?: string;
23
+ [key: string]: unknown;
24
+ };
19
25
  }
20
26
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsInput/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CA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AAE,MAAM,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IAC/C,WAAW,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE,OAAO,CAAA;QACd,eAAe,CAAC,EAAE,MAAM,CAAA;QACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KACvB,CAAA;CACF"}
@@ -0,0 +1,10 @@
1
+ import type { Ref } from 'vue';
2
+ /**
3
+ * Composable for bolding search query matches in text
4
+ * @param searchTerm - Reactive search term (Ref<string>)
5
+ * @returns Function that takes text and returns HTML with matched query bolded
6
+ */
7
+ export declare function useBoldQuery(searchTerm: Ref<string>): {
8
+ boldQuery: (text: string) => string;
9
+ };
10
+ //# sourceMappingURL=useBoldQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBoldQuery.d.ts","sourceRoot":"","sources":["../../src/composables/useBoldQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC;sBACzB,MAAM,KAAG,MAAM;EAoBzC"}
@@ -0,0 +1,16 @@
1
+ import { type Ref } from 'vue';
2
+ /**
3
+ * Check if a string looks like a personnummer (Swedish personal identity number)
4
+ * @param value - String value to check
5
+ * @returns Boolean indicating if the value looks like a personnummer
6
+ */
7
+ export declare function isPidString(value: string): boolean;
8
+ /**
9
+ * Composable for detecting if a string looks like a personnummer (Swedish personal identity number)
10
+ * @param value - Reactive string value to check (Ref<string>)
11
+ * @returns Computed boolean indicating if the value looks like a personnummer
12
+ */
13
+ export declare function useIsPid(value: Ref<string>): {
14
+ isPid: import("vue").ComputedRef<boolean>;
15
+ };
16
+ //# sourceMappingURL=useIsPid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsPid.d.ts","sourceRoot":"","sources":["../../src/composables/useIsPid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAExC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CA2BlD;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC;;EAM1C"}