@enki-tek/fms-web-components 0.0.26 → 0.0.28
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/components/Badge/Badge.scss +2 -0
- package/components/Badge/Badge.svelte +8 -4
- package/components/Badge/Badge.svelte.d.ts +3 -2
- package/components/EnkiCard/CardBody.svelte +4 -3
- package/components/EnkiCard/CardBody.svelte.d.ts +2 -0
- package/components/EnkiCard/CardFooter.svelte +2 -1
- package/components/EnkiCard/CardFooter.svelte.d.ts +2 -2
- package/components/EnkiCard/CardSubTitle.svelte +2 -1
- package/components/EnkiCard/CardSubTitle.svelte.d.ts +2 -2
- package/components/EnkiCard/CardText.svelte +2 -1
- package/components/EnkiCard/CardText.svelte.d.ts +2 -2
- package/components/EnkiCard/CardTitle.svelte +2 -1
- package/components/EnkiCard/CardTitle.svelte.d.ts +2 -2
- package/components/EnkiCard/EnkiCard.svelte +2 -1
- package/components/EnkiCard/EnkiCard.svelte.d.ts +2 -2
- package/components/EnkiTable/TableBody.svelte +5 -1
- package/components/EnkiTable/TableBody.svelte.d.ts +2 -2
- package/components/EnkiTable/TableCell.svelte +2 -2
- package/components/EnkiTable/TableCell.svelte.d.ts +2 -2
- package/components/EnkiTable/TableHead.svelte +4 -1
- package/components/EnkiTable/TableHead.svelte.d.ts +2 -2
- package/components/EnkiTable/TableHeadCell.svelte +2 -1
- package/components/EnkiTable/TableHeadCell.svelte.d.ts +2 -0
- package/components/EnkiTable/TableRow.svelte +8 -4
- package/components/EnkiTable/TableRow.svelte.d.ts +2 -2
- package/components/textField/TextField.svelte +24 -22
- package/components/textField/TextField.svelte.d.ts +6 -2
- package/package.json +1 -1
@@ -1,15 +1,17 @@
|
|
1
1
|
<script>import { Badge } from "sveltestrap";
|
2
2
|
import { badgeConfig } from "./BadgeConfig";
|
3
3
|
export let config = "";
|
4
|
-
export let label = "badges";
|
5
4
|
export let className;
|
6
|
-
let badgeStyles = [className];
|
5
|
+
let badgeStyles = [`custom-badge`, className];
|
7
6
|
if (badgeConfig.hasOwnProperty(config)) {
|
8
|
-
badgeStyles = [...badgeConfig[config]
|
7
|
+
badgeStyles = [...badgeConfig[config]];
|
9
8
|
}
|
10
9
|
</script>
|
11
10
|
|
12
|
-
<Badge pill color="none" class={badgeStyles.join(' ')}>
|
11
|
+
<Badge pill color="none" class={badgeStyles.join(' ')}>
|
12
|
+
<slot />
|
13
|
+
|
14
|
+
</Badge>
|
13
15
|
|
14
16
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
15
17
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
@@ -25,6 +27,8 @@ if (badgeConfig.hasOwnProperty(config)) {
|
|
25
27
|
text-transform: capitalize;
|
26
28
|
font-weight: 500;
|
27
29
|
font-family: Roboto;
|
30
|
+
background-color: #00A96B;
|
31
|
+
color: #000000;
|
28
32
|
}
|
29
33
|
:global(.ebg-none) {
|
30
34
|
background-color: #ffffff !important;
|
@@ -2,13 +2,14 @@ import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
3
3
|
props: {
|
4
4
|
config?: string | undefined;
|
5
|
-
label?: string | undefined;
|
6
5
|
className: any;
|
7
6
|
};
|
8
7
|
events: {
|
9
8
|
[evt: string]: CustomEvent<any>;
|
10
9
|
};
|
11
|
-
slots: {
|
10
|
+
slots: {
|
11
|
+
default: {};
|
12
|
+
};
|
12
13
|
};
|
13
14
|
export type BadgeProps = typeof __propDef.props;
|
14
15
|
export type BadgeEvents = typeof __propDef.events;
|
@@ -1,16 +1,17 @@
|
|
1
1
|
<script>
|
2
2
|
import { CardBody } from 'sveltestrap';
|
3
3
|
export let type = '';
|
4
|
+
export let className = '';
|
4
5
|
const cardType = {
|
5
6
|
loginCard: 'login-card-body'
|
6
7
|
};
|
7
|
-
let
|
8
|
+
let cardClasses = [className];
|
8
9
|
if (cardType.hasOwnProperty(type)) {
|
9
|
-
|
10
|
+
cardClasses = [...cardType[type]];
|
10
11
|
}
|
11
12
|
</script>
|
12
13
|
|
13
|
-
<CardBody class={
|
14
|
+
<CardBody class={cardClasses.join(' ')}>
|
14
15
|
<slot />
|
15
16
|
</CardBody>
|
16
17
|
|
@@ -3,6 +3,7 @@
|
|
3
3
|
/** @typedef {typeof __propDef.slots} CardBodySlots */
|
4
4
|
export default class CardBody extends SvelteComponentTyped<{
|
5
5
|
type?: string | undefined;
|
6
|
+
className?: string | undefined;
|
6
7
|
}, {
|
7
8
|
[evt: string]: CustomEvent<any>;
|
8
9
|
}, {
|
@@ -16,6 +17,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
16
17
|
declare const __propDef: {
|
17
18
|
props: {
|
18
19
|
type?: string | undefined;
|
20
|
+
className?: string | undefined;
|
19
21
|
};
|
20
22
|
events: {
|
21
23
|
[evt: string]: CustomEvent<any>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} CardFooterEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} CardFooterSlots */
|
4
4
|
export default class CardFooter extends SvelteComponentTyped<{
|
5
|
-
|
5
|
+
className?: string | undefined;
|
6
6
|
}, {
|
7
7
|
[evt: string]: CustomEvent<any>;
|
8
8
|
}, {
|
@@ -15,7 +15,7 @@ export type CardFooterSlots = typeof __propDef.slots;
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
16
16
|
declare const __propDef: {
|
17
17
|
props: {
|
18
|
-
|
18
|
+
className?: string | undefined;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} CardSubTitleEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} CardSubTitleSlots */
|
4
4
|
export default class CardSubTitle extends SvelteComponentTyped<{
|
5
|
-
|
5
|
+
className?: string | undefined;
|
6
6
|
}, {
|
7
7
|
[evt: string]: CustomEvent<any>;
|
8
8
|
}, {
|
@@ -15,7 +15,7 @@ export type CardSubTitleSlots = typeof __propDef.slots;
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
16
16
|
declare const __propDef: {
|
17
17
|
props: {
|
18
|
-
|
18
|
+
className?: string | undefined;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} CardTextEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} CardTextSlots */
|
4
4
|
export default class CardText extends SvelteComponentTyped<{
|
5
|
-
|
5
|
+
className?: string | undefined;
|
6
6
|
}, {
|
7
7
|
[evt: string]: CustomEvent<any>;
|
8
8
|
}, {
|
@@ -15,7 +15,7 @@ export type CardTextSlots = typeof __propDef.slots;
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
16
16
|
declare const __propDef: {
|
17
17
|
props: {
|
18
|
-
|
18
|
+
className?: string | undefined;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} CardTitleEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} CardTitleSlots */
|
4
4
|
export default class CardTitle extends SvelteComponentTyped<{
|
5
|
-
|
5
|
+
className?: string | undefined;
|
6
6
|
}, {
|
7
7
|
[evt: string]: CustomEvent<any>;
|
8
8
|
}, {
|
@@ -15,7 +15,7 @@ export type CardTitleSlots = typeof __propDef.slots;
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
16
16
|
declare const __propDef: {
|
17
17
|
props: {
|
18
|
-
|
18
|
+
className?: string | undefined;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} EnkiCardEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} EnkiCardSlots */
|
4
4
|
export default class EnkiCard extends SvelteComponentTyped<{
|
5
|
-
|
5
|
+
className?: string | undefined;
|
6
6
|
}, {
|
7
7
|
[evt: string]: CustomEvent<any>;
|
8
8
|
}, {
|
@@ -15,7 +15,7 @@ export type EnkiCardSlots = typeof __propDef.slots;
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
16
16
|
declare const __propDef: {
|
17
17
|
props: {
|
18
|
-
|
18
|
+
className?: string | undefined;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} TableBodyEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} TableBodySlots */
|
4
4
|
export default class TableBody extends SvelteComponentTyped<{
|
5
|
-
|
5
|
+
className?: string | undefined;
|
6
6
|
}, {
|
7
7
|
[evt: string]: CustomEvent<any>;
|
8
8
|
}, {
|
@@ -15,7 +15,7 @@ export type TableBodySlots = typeof __propDef.slots;
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
16
16
|
declare const __propDef: {
|
17
17
|
props: {
|
18
|
-
|
18
|
+
className?: string | undefined;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -2,8 +2,8 @@
|
|
2
2
|
export let dataLabel = " ";
|
3
3
|
export let colspan = 1;
|
4
4
|
export let rowspan = 1 ;
|
5
|
-
export let
|
6
|
-
let tdStyles = ['td-div',
|
5
|
+
export let className = ''
|
6
|
+
let tdStyles = ['td-div', className]
|
7
7
|
</script>
|
8
8
|
|
9
9
|
<td data-label ={dataLabel} colspan={colspan} rowspan={rowspan} class={tdStyles.join(' ')} ><slot /></td>
|
@@ -2,9 +2,9 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} TableCellEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} TableCellSlots */
|
4
4
|
export default class TableCell extends SvelteComponentTyped<{
|
5
|
+
className?: string | undefined;
|
5
6
|
colspan?: number | undefined;
|
6
7
|
rowspan?: number | undefined;
|
7
|
-
textAlign?: string | undefined;
|
8
8
|
dataLabel?: string | undefined;
|
9
9
|
}, {
|
10
10
|
[evt: string]: CustomEvent<any>;
|
@@ -18,9 +18,9 @@ export type TableCellSlots = typeof __propDef.slots;
|
|
18
18
|
import { SvelteComponentTyped } from "svelte";
|
19
19
|
declare const __propDef: {
|
20
20
|
props: {
|
21
|
+
className?: string | undefined;
|
21
22
|
colspan?: number | undefined;
|
22
23
|
rowspan?: number | undefined;
|
23
|
-
textAlign?: string | undefined;
|
24
24
|
dataLabel?: string | undefined;
|
25
25
|
};
|
26
26
|
events: {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} TableHeadEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} TableHeadSlots */
|
4
4
|
export default class TableHead extends SvelteComponentTyped<{
|
5
|
-
|
5
|
+
className?: string | undefined;
|
6
6
|
}, {
|
7
7
|
[evt: string]: CustomEvent<any>;
|
8
8
|
}, {
|
@@ -15,7 +15,7 @@ export type TableHeadSlots = typeof __propDef.slots;
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
16
16
|
declare const __propDef: {
|
17
17
|
props: {
|
18
|
-
|
18
|
+
className?: string | undefined;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -2,7 +2,8 @@
|
|
2
2
|
export let colspan = 1;
|
3
3
|
export let rowspan = 1;
|
4
4
|
export let textAlign = ' ';
|
5
|
-
let
|
5
|
+
export let className = '';
|
6
|
+
let tdStyles = ['th-div', `text-${textAlign}` , className];
|
6
7
|
</script>
|
7
8
|
|
8
9
|
<th colspan={colspan} rowspan={rowspan} class={tdStyles.join(' ')}><slot /></th>
|
@@ -2,6 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} TableHeadCellEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} TableHeadCellSlots */
|
4
4
|
export default class TableHeadCell extends SvelteComponentTyped<{
|
5
|
+
className?: string | undefined;
|
5
6
|
colspan?: number | undefined;
|
6
7
|
rowspan?: number | undefined;
|
7
8
|
textAlign?: string | undefined;
|
@@ -17,6 +18,7 @@ export type TableHeadCellSlots = typeof __propDef.slots;
|
|
17
18
|
import { SvelteComponentTyped } from "svelte";
|
18
19
|
declare const __propDef: {
|
19
20
|
props: {
|
21
|
+
className?: string | undefined;
|
20
22
|
colspan?: number | undefined;
|
21
23
|
rowspan?: number | undefined;
|
22
24
|
textAlign?: string | undefined;
|
@@ -1,3 +1,11 @@
|
|
1
|
+
<script>
|
2
|
+
export let className = '';
|
3
|
+
</script>
|
4
|
+
|
5
|
+
<tr class={className}>
|
6
|
+
<slot />
|
7
|
+
</tr>
|
8
|
+
|
1
9
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
2
10
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
3
11
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
@@ -16,7 +24,3 @@
|
|
16
24
|
padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
|
17
25
|
font-weight: 400;
|
18
26
|
}</style>
|
19
|
-
|
20
|
-
<tr>
|
21
|
-
<slot></slot>
|
22
|
-
</tr>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} TableRowEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} TableRowSlots */
|
4
4
|
export default class TableRow extends SvelteComponentTyped<{
|
5
|
-
|
5
|
+
className?: string | undefined;
|
6
6
|
}, {
|
7
7
|
[evt: string]: CustomEvent<any>;
|
8
8
|
}, {
|
@@ -15,7 +15,7 @@ export type TableRowSlots = typeof __propDef.slots;
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
16
16
|
declare const __propDef: {
|
17
17
|
props: {
|
18
|
-
|
18
|
+
className?: string | undefined;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -1,29 +1,31 @@
|
|
1
1
|
<script>
|
2
|
-
|
2
|
+
import { Input } from 'sveltestrap';
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
export let type = 'text';
|
5
|
+
export let placeholder = 'placeholder';
|
6
|
+
export let value = '';
|
7
|
+
export let name = '';
|
8
|
+
export let size = '';
|
9
|
+
export let disabled = false;
|
10
|
+
export let valid = false;
|
11
|
+
export let invalid = false;
|
12
|
+
export let feedback;
|
13
13
|
</script>
|
14
14
|
|
15
|
-
<Input
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
<Input
|
16
|
+
{type}
|
17
|
+
class="custom-field efs-normal"
|
18
|
+
{placeholder}
|
19
|
+
{name}
|
20
|
+
{value}
|
21
|
+
{disabled}
|
22
|
+
{valid}
|
23
|
+
{invalid}
|
24
|
+
bsSize={size}
|
25
|
+
{feedback}
|
26
|
+
>
|
27
|
+
<slot />
|
28
|
+
</Input>
|
27
29
|
|
28
30
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
29
31
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
@@ -13,7 +13,9 @@ export default class TextField extends SvelteComponentTyped<{
|
|
13
13
|
valid?: boolean | undefined;
|
14
14
|
}, {
|
15
15
|
[evt: string]: CustomEvent<any>;
|
16
|
-
}, {
|
16
|
+
}, {
|
17
|
+
default: {};
|
18
|
+
}> {
|
17
19
|
}
|
18
20
|
export type TextFieldProps = typeof __propDef.props;
|
19
21
|
export type TextFieldEvents = typeof __propDef.events;
|
@@ -34,6 +36,8 @@ declare const __propDef: {
|
|
34
36
|
events: {
|
35
37
|
[evt: string]: CustomEvent<any>;
|
36
38
|
};
|
37
|
-
slots: {
|
39
|
+
slots: {
|
40
|
+
default: {};
|
41
|
+
};
|
38
42
|
};
|
39
43
|
export {};
|