@enki-tek/fms-web-components 0.0.15 → 0.0.16
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/CheckBox/Checkbox.svelte +5 -1
- package/components/CheckBox/Checkbox.svelte.d.ts +4 -0
- package/components/Dropdown/Dropdown.scss +8 -2
- package/components/Dropdown/Dropdown.svelte +9 -3
- package/components/Dropdown/DropdownItem.svelte +11 -3
- package/components/Dropdown/DropdownItem.svelte.d.ts +1 -9
- package/package.json +1 -1
@@ -8,6 +8,8 @@
|
|
8
8
|
export let size = 'lg';
|
9
9
|
export let name = 'checkboxname';
|
10
10
|
export let valid;
|
11
|
+
export let invalid;
|
12
|
+
export let feedback
|
11
13
|
</script>
|
12
14
|
|
13
15
|
<Input
|
@@ -17,7 +19,9 @@
|
|
17
19
|
bsSize={size}
|
18
20
|
{label}
|
19
21
|
bind:value
|
20
|
-
valid={
|
22
|
+
valid={valid}
|
23
|
+
invalid={invalid}
|
24
|
+
feedback={feedback}
|
21
25
|
checked={enable === 'true' ? true : enable === 'false' ? false : false}
|
22
26
|
disabled={disable === 'true' ? true : disable === 'false' ? false : false}
|
23
27
|
/>
|
@@ -2,7 +2,9 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} CheckboxEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} CheckboxSlots */
|
4
4
|
export default class Checkbox extends SvelteComponentTyped<{
|
5
|
+
invalid: any;
|
5
6
|
valid: any;
|
7
|
+
feedback: any;
|
6
8
|
disable: any;
|
7
9
|
enable: any;
|
8
10
|
label?: string | undefined;
|
@@ -19,7 +21,9 @@ export type CheckboxSlots = typeof __propDef.slots;
|
|
19
21
|
import { SvelteComponentTyped } from "svelte";
|
20
22
|
declare const __propDef: {
|
21
23
|
props: {
|
24
|
+
invalid: any;
|
22
25
|
valid: any;
|
26
|
+
feedback: any;
|
23
27
|
disable: any;
|
24
28
|
enable: any;
|
25
29
|
label?: string | undefined;
|
@@ -31,12 +31,18 @@
|
|
31
31
|
top: 4px;
|
32
32
|
@extend %commonSCSS;
|
33
33
|
text-transform: uppercase;
|
34
|
+
z-index: 100;
|
34
35
|
}
|
35
36
|
|
36
37
|
:global(.dropdown-custom .dropdown-menu-custom) {
|
37
|
-
margin-
|
38
|
-
margin-top: -15px !important;
|
38
|
+
margin-top: -13px !important;
|
39
39
|
transform: translateX(0);
|
40
|
+
border-top: none;
|
41
|
+
border-top-left-radius: 0;
|
42
|
+
border-top-right-radius: 0;
|
43
|
+
z-index: 100;
|
44
|
+
width: 101% !important;
|
45
|
+
margin-left: -1px !important;
|
40
46
|
}
|
41
47
|
|
42
48
|
:global(.dropdown-item-custom) {
|
@@ -8,7 +8,7 @@ export let title = "Dropdowns";
|
|
8
8
|
color="light"
|
9
9
|
class="efs-small dropdown-toggle-custom btn-lg bg-transparent etext-secondary border-0 outline-0 "
|
10
10
|
caret>{title}</DropdownToggle>
|
11
|
-
<DropdownMenu class="
|
11
|
+
<DropdownMenu class=" position-absolute dropdown-menu-custom">
|
12
12
|
<slot />
|
13
13
|
</DropdownMenu>
|
14
14
|
</Dropdown>
|
@@ -47,11 +47,17 @@ export let title = "Dropdowns";
|
|
47
47
|
position: absolute;
|
48
48
|
top: 4px;
|
49
49
|
text-transform: uppercase;
|
50
|
+
z-index: 100;
|
50
51
|
}
|
51
52
|
:global(.dropdown-custom .dropdown-menu-custom) {
|
52
|
-
margin-
|
53
|
-
margin-top: -15px !important;
|
53
|
+
margin-top: -13px !important;
|
54
54
|
transform: translateX(0);
|
55
|
+
border-top: none;
|
56
|
+
border-top-left-radius: 0;
|
57
|
+
border-top-right-radius: 0;
|
58
|
+
z-index: 100;
|
59
|
+
width: 101% !important;
|
60
|
+
margin-left: -1px !important;
|
55
61
|
}
|
56
62
|
:global(.dropdown-item-custom) {
|
57
63
|
color: #343A40;
|
@@ -1,7 +1,9 @@
|
|
1
1
|
<script>import { DropdownItem } from "sveltestrap";
|
2
|
+
export let classname;
|
3
|
+
export let disabled;
|
2
4
|
</script>
|
3
5
|
|
4
|
-
<DropdownItem class="dropdown-item-custom">
|
6
|
+
<DropdownItem class="dropdown-item-custom {classname}" disabled={disabled} on:click >
|
5
7
|
<slot />
|
6
8
|
</DropdownItem>
|
7
9
|
|
@@ -38,11 +40,17 @@
|
|
38
40
|
position: absolute;
|
39
41
|
top: 4px;
|
40
42
|
text-transform: uppercase;
|
43
|
+
z-index: 100;
|
41
44
|
}
|
42
45
|
:global(.dropdown-custom .dropdown-menu-custom) {
|
43
|
-
margin-
|
44
|
-
margin-top: -15px !important;
|
46
|
+
margin-top: -13px !important;
|
45
47
|
transform: translateX(0);
|
48
|
+
border-top: none;
|
49
|
+
border-top-left-radius: 0;
|
50
|
+
border-top-right-radius: 0;
|
51
|
+
z-index: 100;
|
52
|
+
width: 101% !important;
|
53
|
+
margin-left: -1px !important;
|
46
54
|
}
|
47
55
|
:global(.dropdown-item-custom) {
|
48
56
|
color: #343A40;
|
@@ -1,13 +1,5 @@
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
2
|
-
declare const __propDef:
|
3
|
-
props: Record<string, never>;
|
4
|
-
events: {
|
5
|
-
[evt: string]: CustomEvent<any>;
|
6
|
-
};
|
7
|
-
slots: {
|
8
|
-
default: {};
|
9
|
-
};
|
10
|
-
};
|
2
|
+
declare const __propDef: any;
|
11
3
|
export type DropdownItemProps = typeof __propDef.props;
|
12
4
|
export type DropdownItemEvents = typeof __propDef.events;
|
13
5
|
export type DropdownItemSlots = typeof __propDef.slots;
|