@enki-tek/fms-web-components 0.0.20 → 0.0.21
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.
@@ -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
|
+
[x: string]: never;
|
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
|
+
[x: string]: never;
|
19
19
|
};
|
20
20
|
events: {
|
21
21
|
[evt: string]: CustomEvent<any>;
|
@@ -1,13 +1,21 @@
|
|
1
1
|
<script>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
export let
|
6
|
-
|
2
|
+
import { Table } from 'sveltestrap';
|
3
|
+
export let size = "lg"
|
4
|
+
export let type = ' ';
|
5
|
+
export let className ='' ;
|
6
|
+
const tableTypes = {
|
7
|
+
hover:'table-hover' ,
|
8
|
+
striped:'table-striped'
|
9
|
+
}
|
10
|
+
let tableClasses = ['table' ,className];
|
11
|
+
if (tableTypes.hasOwnProperty(type.trim())) {
|
12
|
+
tableClasses.push(tableTypes[type.trim()]);
|
13
|
+
}
|
14
|
+
|
7
15
|
</script>
|
8
16
|
|
9
|
-
<Table size = {size} class={
|
10
|
-
|
17
|
+
<Table size = {size} class={tableClasses.join(' ')}>
|
18
|
+
<slot />
|
11
19
|
</Table>
|
12
20
|
|
13
21
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
@@ -2,9 +2,9 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} EnkiTableEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} EnkiTableSlots */
|
4
4
|
export default class EnkiTable extends SvelteComponentTyped<{
|
5
|
+
type?: string | undefined;
|
5
6
|
size?: string | undefined;
|
6
|
-
|
7
|
-
striped?: string | undefined;
|
7
|
+
className?: string | undefined;
|
8
8
|
}, {
|
9
9
|
[evt: string]: CustomEvent<any>;
|
10
10
|
}, {
|
@@ -17,9 +17,9 @@ export type EnkiTableSlots = typeof __propDef.slots;
|
|
17
17
|
import { SvelteComponentTyped } from "svelte";
|
18
18
|
declare const __propDef: {
|
19
19
|
props: {
|
20
|
+
type?: string | undefined;
|
20
21
|
size?: string | undefined;
|
21
|
-
|
22
|
-
striped?: string | undefined;
|
22
|
+
className?: string | undefined;
|
23
23
|
};
|
24
24
|
events: {
|
25
25
|
[evt: string]: CustomEvent<any>;
|