@bexis2/bexis2-core-ui 0.4.98 → 0.4.99

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.
Files changed (39) hide show
  1. package/dist/components/form/Checkbox.svelte +10 -0
  2. package/dist/components/form/Checkbox.svelte.d.ts +1 -0
  3. package/dist/components/form/CheckboxKvPList.svelte +10 -1
  4. package/dist/components/form/CheckboxKvPList.svelte.d.ts +1 -0
  5. package/dist/components/form/CheckboxList.svelte +9 -1
  6. package/dist/components/form/CheckboxList.svelte.d.ts +1 -0
  7. package/dist/components/form/DateInput.svelte +9 -0
  8. package/dist/components/form/DateInput.svelte.d.ts +1 -0
  9. package/dist/components/form/DatePickerInput.svelte +8 -0
  10. package/dist/components/form/DatePickerInput.svelte.d.ts +1 -0
  11. package/dist/components/form/Dropdown.svelte +13 -1
  12. package/dist/components/form/Dropdown.svelte.d.ts +2 -0
  13. package/dist/components/form/DropdownKvP.svelte +12 -1
  14. package/dist/components/form/DropdownKvP.svelte.d.ts +2 -0
  15. package/dist/components/form/MultiSelect.svelte +11 -1
  16. package/dist/components/form/MultiSelect.svelte.d.ts +2 -0
  17. package/dist/components/form/NumberInput.svelte +9 -0
  18. package/dist/components/form/NumberInput.svelte.d.ts +1 -0
  19. package/dist/components/form/TextArea.svelte +9 -0
  20. package/dist/components/form/TextArea.svelte.d.ts +1 -0
  21. package/dist/components/form/TextInput.svelte +9 -0
  22. package/dist/components/form/TextInput.svelte.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/src/lib/components/form/Checkbox.svelte +14 -0
  25. package/src/lib/components/form/CheckboxKvPList.svelte +11 -1
  26. package/src/lib/components/form/CheckboxList.svelte +11 -1
  27. package/src/lib/components/form/DateInput.svelte +12 -0
  28. package/src/lib/components/form/DatePickerInput.svelte +10 -0
  29. package/src/lib/components/form/Dropdown.svelte +13 -1
  30. package/src/lib/components/form/DropdownKvP.svelte +12 -1
  31. package/src/lib/components/form/MultiSelect.svelte +11 -1
  32. package/src/lib/components/form/NumberInput.svelte +10 -0
  33. package/src/lib/components/form/TextArea.svelte +10 -0
  34. package/src/lib/components/form/TextInput.svelte +11 -0
  35. package/dist/css/themes/theme-bexis2.css_old +0 -100
  36. package/dist/themes/theme-bexis2 copy.d.ts +0 -2
  37. package/dist/themes/theme-bexis2 copy.js +0 -112
  38. package/src/lib/css/themes/theme-bexis2.css_old +0 -100
  39. package/src/lib/themes/theme-bexis2 copy.ts +0 -114
@@ -1,17 +1,27 @@
1
1
  <script>import InputContainer from "./InputContainer.svelte";
2
2
  export let id = "";
3
3
  export let label = "";
4
+ export let title = "";
4
5
  export let checked = false;
5
6
  export let valid;
6
7
  export let invalid;
7
8
  export let required;
8
9
  export let feedback;
9
10
  export let description = "";
11
+ $: {
12
+ if ((!label || label.trim() === "") && title && title.trim() !== "") {
13
+ label = title;
14
+ } else if ((!title || title.trim() === "") && label && label.trim() !== "") {
15
+ title = label;
16
+ }
17
+ }
10
18
  </script>
11
19
 
20
+
12
21
  <InputContainer {label} {feedback} {required} {description}>
13
22
  <input
14
23
  {id}
24
+ {title}
15
25
  class="input variant-form-material bg-zinc-50 dark:bg-zinc-50"
16
26
  type="checkbox"
17
27
  class:input-success={valid}
@@ -3,6 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  id?: string;
5
5
  label?: string;
6
+ title?: string;
6
7
  checked?: boolean;
7
8
  valid: boolean;
8
9
  invalid: boolean;
@@ -3,19 +3,28 @@ export let id;
3
3
  export let source;
4
4
  export let target;
5
5
  export let title;
6
+ export let label;
6
7
  export let description = "";
7
8
  export let key;
8
9
  export let help = false;
9
10
  export let vertical = false;
11
+ $: {
12
+ if ((!label || label.trim() === "") && title && title.trim() !== "") {
13
+ label = title;
14
+ } else if ((!title || title.trim() === "") && label && label.trim() !== "") {
15
+ title = label;
16
+ }
17
+ }
10
18
  let required = false;
11
19
  export let feedback;
12
20
  </script>
13
21
 
14
- <InputContainer {id} label={title} {feedback} {required} {help} {description}>
22
+ <InputContainer {id} {label} {feedback} {required} {help} {description}>
15
23
  <div class="flex gap-2" class:flex-col={vertical}>
16
24
  {#each source as item}
17
25
  <label class="flex items-center space-x-2" for={item.key}>
18
26
  <input
27
+ {title}
19
28
  class="checkbox"
20
29
  type="checkbox"
21
30
  bind:group={target}
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  source: any;
6
6
  target: any;
7
7
  title: any;
8
+ label: any;
8
9
  description?: string;
9
10
  key: any;
10
11
  help?: boolean;
@@ -2,13 +2,21 @@
2
2
  export let source;
3
3
  export let target;
4
4
  export let title;
5
+ export let label;
5
6
  export let description = "";
6
7
  export let key;
8
+ $: {
9
+ if ((!label || label.trim() === "") && title && title.trim() !== "") {
10
+ label = title;
11
+ } else if ((!title || title.trim() === "") && label && label.trim() !== "") {
12
+ title = label;
13
+ }
14
+ }
7
15
  export let required = false;
8
16
  export let feedback;
9
17
  </script>
10
18
 
11
- <InputContainer label={title} {feedback} {required} {description}>
19
+ <InputContainer {label} {feedback} {required} {description}>
12
20
  {#each source as item}
13
21
  <label class="flex items-center space-x-2" for={item}>
14
22
  <input class="checkbox" type="checkbox" bind:group={target} value={item} id={item} />
@@ -4,6 +4,7 @@ declare const __propDef: {
4
4
  source: any;
5
5
  target: any;
6
6
  title: any;
7
+ label: any;
7
8
  description?: string;
8
9
  key: any;
9
10
  required?: boolean;
@@ -1,6 +1,7 @@
1
1
  <script>import InputContainer from "./InputContainer.svelte";
2
2
  export let id = "";
3
3
  export let label = "";
4
+ export let title = "";
4
5
  export let value = "";
5
6
  export let valid = false;
6
7
  export let invalid = false;
@@ -11,6 +12,13 @@ export let disabled = false;
11
12
  export let description = "";
12
13
  export let showDescription = false;
13
14
  export let showIcon = false;
15
+ $: {
16
+ if ((!label || label.trim() === "") && title && title.trim() !== "") {
17
+ label = title;
18
+ } else if ((!title || title.trim() === "") && label && label.trim() !== "") {
19
+ title = label;
20
+ }
21
+ }
14
22
  </script>
15
23
 
16
24
  <InputContainer
@@ -27,6 +35,7 @@ export let showIcon = false;
27
35
  >
28
36
  <input
29
37
  {id}
38
+ {title}
30
39
  class="input variant-form-material bg-zinc-50 dark:bg-zinc-700 placeholder:text-gray-400"
31
40
  type="date"
32
41
  class:input-success={valid}
@@ -3,6 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  id?: string;
5
5
  label?: string;
6
+ title?: string;
6
7
  value?: string;
7
8
  valid?: boolean;
8
9
  invalid?: boolean;
@@ -4,6 +4,7 @@ import InputContainer from "./InputContainer.svelte";
4
4
  import SveltyPicker from "svelty-picker";
5
5
  export let id = "";
6
6
  export let label = "";
7
+ export let title = "";
7
8
  export let value = "";
8
9
  export let valid = false;
9
10
  export let invalid = false;
@@ -31,6 +32,13 @@ if (mode === "datetime" && (format === "yyyy-mm-dd" || displayFormat === "yyyy-m
31
32
  if (mode === "datetime") {
32
33
  width = "w-64";
33
34
  }
35
+ $: {
36
+ if ((!label || label.trim() === "") && title && title.trim() !== "") {
37
+ label = title;
38
+ } else if ((!title || title.trim() === "") && label && label.trim() !== "") {
39
+ title = label;
40
+ }
41
+ }
34
42
  </script>
35
43
 
36
44
  <InputContainer
@@ -3,6 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  id?: string;
5
5
  label?: string;
6
+ title?: string;
6
7
  value?: string;
7
8
  valid?: boolean;
8
9
  invalid?: boolean;
@@ -5,6 +5,7 @@
5
5
  export let source;
6
6
  export let target;
7
7
  export let title;
8
+ export let label;
8
9
  export let valid = false;
9
10
  export let invalid = false;
10
11
  export let feedback = [''];
@@ -27,11 +28,21 @@
27
28
  function updatedTarget(value) {
28
29
  target = value;
29
30
  }
31
+
32
+ $: {
33
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
34
+ label = title;
35
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
36
+ title = label;
37
+ }
38
+ }
39
+
40
+
30
41
  </script>
31
42
 
32
43
  <InputContainer
33
44
  {id}
34
- label={title}
45
+ {label}
35
46
  {feedback}
36
47
  {required}
37
48
  {help}
@@ -43,6 +54,7 @@
43
54
  >
44
55
  <select
45
56
  {id}
57
+ {title}
46
58
  class="select variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
47
59
  class:input-success={valid}
48
60
  class:input-error={invalid}
@@ -5,6 +5,7 @@ export default class Dropdown extends SvelteComponent<{
5
5
  id: any;
6
6
  target: any;
7
7
  title: any;
8
+ label: any;
8
9
  source: any;
9
10
  description?: string | undefined;
10
11
  showDescription?: boolean | undefined;
@@ -32,6 +33,7 @@ declare const __propDef: {
32
33
  id: any;
33
34
  target: any;
34
35
  title: any;
36
+ label: any;
35
37
  source: any;
36
38
  description?: string | undefined;
37
39
  showDescription?: boolean | undefined;
@@ -5,6 +5,7 @@
5
5
  export let source;
6
6
  export let target;
7
7
  export let title;
8
+ export let label;
8
9
  export let valid = false;
9
10
  export let invalid = false;
10
11
  export let feedback = [''];
@@ -36,11 +37,20 @@
36
37
  target = id;
37
38
  }
38
39
  }
40
+
41
+ $: {
42
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
43
+ label = title;
44
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
45
+ title = label;
46
+ }
47
+ }
48
+
39
49
  </script>
40
50
 
41
51
  <InputContainer
42
52
  {id}
43
- label={title}
53
+ {label}
44
54
  {feedback}
45
55
  {required}
46
56
  {help}
@@ -52,6 +62,7 @@
52
62
  >
53
63
  <select
54
64
  {id}
65
+ {title}
55
66
  class="select variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
56
67
  class:input-success={valid}
57
68
  class:input-error={invalid}
@@ -5,6 +5,7 @@ export default class DropdownKvP extends SvelteComponent<{
5
5
  id: any;
6
6
  target: any;
7
7
  title: any;
8
+ label: any;
8
9
  source: any;
9
10
  description?: string | undefined;
10
11
  showDescription?: boolean | undefined;
@@ -33,6 +34,7 @@ declare const __propDef: {
33
34
  id: any;
34
35
  target: any;
35
36
  title: any;
37
+ label: any;
36
38
  source: any;
37
39
  description?: string | undefined;
38
40
  showDescription?: boolean | undefined;
@@ -9,6 +9,7 @@
9
9
  export let target;
10
10
  export let id;
11
11
  export let title;
12
+ export let label;
12
13
  export let itemId = 'value';
13
14
  export let itemLabel = 'label';
14
15
  export let itemGroup = '';
@@ -30,6 +31,15 @@
30
31
 
31
32
  let isLoaded = false;
32
33
 
34
+ $: {
35
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
36
+ label = title;
37
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
38
+ title = label;
39
+ }
40
+ }
41
+
42
+
33
43
  $: value = '';
34
44
  $: updateTarget(value);
35
45
  $: (target, setValue(target));
@@ -303,7 +313,7 @@
303
313
 
304
314
  <InputContainer
305
315
  {id}
306
- label={title}
316
+ {label}
307
317
  {feedback}
308
318
  {required}
309
319
  {help}
@@ -5,6 +5,7 @@ export default class MultiSelect extends SvelteComponent<{
5
5
  id: any;
6
6
  target: any;
7
7
  title: any;
8
+ label: any;
8
9
  source: any;
9
10
  description?: string | undefined;
10
11
  showDescription?: boolean | undefined;
@@ -49,6 +50,7 @@ declare const __propDef: {
49
50
  id: any;
50
51
  target: any;
51
52
  title: any;
53
+ label: any;
52
54
  source: any;
53
55
  description?: string | undefined;
54
56
  showDescription?: boolean | undefined;
@@ -3,6 +3,7 @@ import { helpStore } from "../../stores/pageStores";
3
3
  import { convertServerColumns } from "../Table/utils";
4
4
  export let id = "";
5
5
  export let label = "";
6
+ export let title = "";
6
7
  export let value = "";
7
8
  export let valid = false;
8
9
  export let invalid = false;
@@ -16,6 +17,13 @@ export let showDescription = false;
16
17
  export let showIcon = false;
17
18
  export let min = void 0;
18
19
  export let max = void 0;
20
+ $: {
21
+ if ((!label || label.trim() === "") && title && title.trim() !== "") {
22
+ label = title;
23
+ } else if ((!title || title.trim() === "") && label && label.trim() !== "") {
24
+ title = label;
25
+ }
26
+ }
19
27
  $: if (max != void 0 && parseInt(value) > max) {
20
28
  value = max.toString();
21
29
  }
@@ -38,6 +46,7 @@ $: if (min != void 0 && parseInt(value) < min) {
38
46
  >
39
47
  <input
40
48
  {id}
49
+ {title}
41
50
  class="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
42
51
  type="number"
43
52
  class:input-success={valid}
@@ -3,6 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  id?: string;
5
5
  label?: string;
6
+ title?: string;
6
7
  value?: string;
7
8
  valid?: boolean;
8
9
  invalid?: boolean;
@@ -1,6 +1,7 @@
1
1
  <script>import InputContainer from "./InputContainer.svelte";
2
2
  export let id = "";
3
3
  export let label = "";
4
+ export let title = "";
4
5
  export let value = "";
5
6
  export let valid = false;
6
7
  export let invalid = false;
@@ -12,6 +13,13 @@ export let disabled = false;
12
13
  export let description = "";
13
14
  export let showDescription = false;
14
15
  export let showIcon = false;
16
+ $: {
17
+ if ((!label || label.trim() === "") && title && title.trim() !== "") {
18
+ label = title;
19
+ } else if ((!title || title.trim() === "") && label && label.trim() !== "") {
20
+ title = label;
21
+ }
22
+ }
15
23
  </script>
16
24
 
17
25
  <InputContainer
@@ -28,6 +36,7 @@ export let showIcon = false;
28
36
  >
29
37
  <textarea
30
38
  {id}
39
+ {title}
31
40
  class="textarea variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
32
41
  class:input-success={valid}
33
42
  class:input-error={invalid}
@@ -3,6 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  id?: string;
5
5
  label?: string;
6
+ title?: string;
6
7
  value?: string;
7
8
  valid?: boolean;
8
9
  invalid?: boolean;
@@ -1,6 +1,7 @@
1
1
  <script>import InputContainer from "./InputContainer.svelte";
2
2
  export let id = "";
3
3
  export let label = "";
4
+ export let title = "";
4
5
  export let value = "";
5
6
  export let valid = false;
6
7
  export let invalid = false;
@@ -12,6 +13,13 @@ export let disabled = false;
12
13
  export let description = "";
13
14
  export let showDescription = false;
14
15
  export let showIcon = false;
16
+ $: {
17
+ if ((!label || label.trim() === "") && title && title.trim() !== "") {
18
+ label = title;
19
+ } else if ((!title || title.trim() === "") && label && label.trim() !== "") {
20
+ title = label;
21
+ }
22
+ }
15
23
  </script>
16
24
 
17
25
  <InputContainer
@@ -28,6 +36,7 @@ export let showIcon = false;
28
36
  >
29
37
  <input
30
38
  {id}
39
+ {title}
31
40
  class="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
32
41
  type="text"
33
42
  class:input-success={valid}
@@ -3,6 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  id?: string;
5
5
  label?: string;
6
+ title?: string;
6
7
  value?: string;
7
8
  valid?: boolean;
8
9
  invalid?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bexis2/bexis2-core-ui",
3
- "version": "0.4.98",
3
+ "version": "0.4.99",
4
4
  "private": false,
5
5
  "description": "Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).",
6
6
  "keywords": [
@@ -3,6 +3,7 @@
3
3
 
4
4
  export let id: string = '';
5
5
  export let label: string = '';
6
+ export let title: string = '';
6
7
  export let checked: boolean = false;
7
8
 
8
9
  export let valid: boolean;
@@ -10,11 +11,24 @@
10
11
  export let required: boolean;
11
12
  export let feedback: [];
12
13
  export let description: string = '';
14
+
15
+ $: {
16
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
17
+ label = title;
18
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
19
+ title = label;
20
+ }
21
+ }
22
+
23
+
24
+
13
25
  </script>
14
26
 
27
+
15
28
  <InputContainer {label} {feedback} {required} {description}>
16
29
  <input
17
30
  {id}
31
+ {title}
18
32
  class="input variant-form-material bg-zinc-50 dark:bg-zinc-50"
19
33
  type="checkbox"
20
34
  class:input-success={valid}
@@ -5,20 +5,30 @@
5
5
  export let source;
6
6
  export let target;
7
7
  export let title;
8
+ export let label
8
9
  export let description = '';
9
10
  export let key;
10
11
  export let help = false;
11
12
  export let vertical = false;
12
13
 
14
+ $: {
15
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
16
+ label = title;
17
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
18
+ title = label;
19
+ }
20
+ }
21
+
13
22
  let required = false;
14
23
  export let feedback: [];
15
24
  </script>
16
25
 
17
- <InputContainer {id} label={title} {feedback} {required} {help} {description}>
26
+ <InputContainer {id} {label} {feedback} {required} {help} {description}>
18
27
  <div class="flex gap-2" class:flex-col={vertical}>
19
28
  {#each source as item}
20
29
  <label class="flex items-center space-x-2" for={item.key}>
21
30
  <input
31
+ {title}
22
32
  class="checkbox"
23
33
  type="checkbox"
24
34
  bind:group={target}
@@ -4,14 +4,24 @@
4
4
  export let source;
5
5
  export let target;
6
6
  export let title;
7
+ export let label;
7
8
  export let description = '';
8
9
  export let key;
9
10
 
11
+ $: {
12
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
13
+ label = title;
14
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
15
+ title = label;
16
+ }
17
+ }
18
+
19
+
10
20
  export let required = false;
11
21
  export let feedback: [];
12
22
  </script>
13
23
 
14
- <InputContainer label={title} {feedback} {required} {description}>
24
+ <InputContainer {label} {feedback} {required} {description}>
15
25
  {#each source as item}
16
26
  <label class="flex items-center space-x-2" for={item}>
17
27
  <input class="checkbox" type="checkbox" bind:group={target} value={item} id={item} />
@@ -3,6 +3,7 @@
3
3
 
4
4
  export let id: string = '';
5
5
  export let label: string = '';
6
+ export let title: string = '';
6
7
  export let value: string = '';
7
8
  export let valid: boolean = false;
8
9
  export let invalid: boolean = false;
@@ -13,6 +14,16 @@
13
14
  export let description: string = '';
14
15
  export let showDescription: boolean = false;
15
16
  export let showIcon: boolean = false;
17
+
18
+ $: {
19
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
20
+ label = title;
21
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
22
+ title = label;
23
+ }
24
+ }
25
+
26
+
16
27
  </script>
17
28
 
18
29
  <InputContainer
@@ -29,6 +40,7 @@
29
40
  >
30
41
  <input
31
42
  {id}
43
+ {title}
32
44
  class="input variant-form-material bg-zinc-50 dark:bg-zinc-700 placeholder:text-gray-400"
33
45
  type="date"
34
46
  class:input-success={valid}
@@ -6,6 +6,7 @@
6
6
 
7
7
  export let id: string = '';
8
8
  export let label: string = '';
9
+ export let title: string = '';
9
10
  export let value: string = '';
10
11
  export let valid: boolean = false;
11
12
  export let invalid: boolean = false;
@@ -37,6 +38,15 @@
37
38
  if (mode === 'datetime') {
38
39
  width = 'w-64';
39
40
  }
41
+
42
+ $: {
43
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
44
+ label = title;
45
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
46
+ title = label;
47
+ }
48
+ }
49
+
40
50
  </script>
41
51
 
42
52
  <InputContainer
@@ -5,6 +5,7 @@
5
5
  export let source;
6
6
  export let target;
7
7
  export let title;
8
+ export let label;
8
9
  export let valid = false;
9
10
  export let invalid = false;
10
11
  export let feedback = [''];
@@ -27,11 +28,21 @@
27
28
  function updatedTarget(value) {
28
29
  target = value;
29
30
  }
31
+
32
+ $: {
33
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
34
+ label = title;
35
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
36
+ title = label;
37
+ }
38
+ }
39
+
40
+
30
41
  </script>
31
42
 
32
43
  <InputContainer
33
44
  {id}
34
- label={title}
45
+ {label}
35
46
  {feedback}
36
47
  {required}
37
48
  {help}
@@ -43,6 +54,7 @@
43
54
  >
44
55
  <select
45
56
  {id}
57
+ {title}
46
58
  class="select variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
47
59
  class:input-success={valid}
48
60
  class:input-error={invalid}
@@ -5,6 +5,7 @@
5
5
  export let source;
6
6
  export let target;
7
7
  export let title;
8
+ export let label;
8
9
  export let valid = false;
9
10
  export let invalid = false;
10
11
  export let feedback = [''];
@@ -36,11 +37,20 @@
36
37
  target = id;
37
38
  }
38
39
  }
40
+
41
+ $: {
42
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
43
+ label = title;
44
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
45
+ title = label;
46
+ }
47
+ }
48
+
39
49
  </script>
40
50
 
41
51
  <InputContainer
42
52
  {id}
43
- label={title}
53
+ {label}
44
54
  {feedback}
45
55
  {required}
46
56
  {help}
@@ -52,6 +62,7 @@
52
62
  >
53
63
  <select
54
64
  {id}
65
+ {title}
55
66
  class="select variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
56
67
  class:input-success={valid}
57
68
  class:input-error={invalid}
@@ -9,6 +9,7 @@
9
9
  export let target;
10
10
  export let id;
11
11
  export let title;
12
+ export let label;
12
13
  export let itemId = 'value';
13
14
  export let itemLabel = 'label';
14
15
  export let itemGroup = '';
@@ -30,6 +31,15 @@
30
31
 
31
32
  let isLoaded = false;
32
33
 
34
+ $: {
35
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
36
+ label = title;
37
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
38
+ title = label;
39
+ }
40
+ }
41
+
42
+
33
43
  $: value = '';
34
44
  $: updateTarget(value);
35
45
  $: (target, setValue(target));
@@ -303,7 +313,7 @@
303
313
 
304
314
  <InputContainer
305
315
  {id}
306
- label={title}
316
+ {label}
307
317
  {feedback}
308
318
  {required}
309
319
  {help}
@@ -5,6 +5,7 @@
5
5
 
6
6
  export let id: string = '';
7
7
  export let label: string = '';
8
+ export let title: string = '';
8
9
  export let value: string = '';
9
10
 
10
11
  export let valid: boolean = false;
@@ -20,6 +21,14 @@
20
21
  export let min: number | undefined = undefined;
21
22
  export let max: number | undefined = undefined;
22
23
 
24
+ $: {
25
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
26
+ label = title;
27
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
28
+ title = label;
29
+ }
30
+ }
31
+
23
32
  // Diese Zeile wird jedes Mal ausgeführt, wenn sich "menge" ändert
24
33
  $: if (max != undefined && parseInt(value) > max) {
25
34
  value = max.toString();
@@ -44,6 +53,7 @@
44
53
  >
45
54
  <input
46
55
  {id}
56
+ {title}
47
57
  class="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
48
58
  type="number"
49
59
  class:input-success={valid}
@@ -3,6 +3,7 @@
3
3
 
4
4
  export let id: string = '';
5
5
  export let label: string = '';
6
+ export let title: string = '';
6
7
  export let value: string = '';
7
8
 
8
9
  export let valid: boolean = false;
@@ -15,6 +16,14 @@
15
16
  export let description: string = '';
16
17
  export let showDescription: boolean = false;
17
18
  export let showIcon: boolean = false;
19
+
20
+ $: {
21
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
22
+ label = title;
23
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
24
+ title = label;
25
+ }
26
+ }
18
27
  </script>
19
28
 
20
29
  <InputContainer
@@ -31,6 +40,7 @@
31
40
  >
32
41
  <textarea
33
42
  {id}
43
+ {title}
34
44
  class="textarea variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
35
45
  class:input-success={valid}
36
46
  class:input-error={invalid}
@@ -3,6 +3,7 @@
3
3
 
4
4
  export let id: string = '';
5
5
  export let label: string = '';
6
+ export let title: string = '';
6
7
  export let value: string = '';
7
8
  export let valid: boolean = false;
8
9
  export let invalid: boolean = false;
@@ -14,6 +15,15 @@
14
15
  export let description: string = '';
15
16
  export let showDescription: boolean = false;
16
17
  export let showIcon: boolean = false;
18
+
19
+ $: {
20
+ if ((!label || label.trim() === '') && title && title.trim() !== '') {
21
+ label = title;
22
+ } else if ((!title || title.trim() === '') && label && label.trim() !== '') {
23
+ title = label;
24
+ }
25
+ }
26
+
17
27
  </script>
18
28
 
19
29
  <InputContainer
@@ -30,6 +40,7 @@
30
40
  >
31
41
  <input
32
42
  {id}
43
+ {title}
33
44
  class="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
34
45
  type="text"
35
46
  class:input-success={valid}
@@ -1,100 +0,0 @@
1
- [data-theme='bexis2theme'] {
2
- /* =~= Theme Properties =~= */
3
- --base-font-family: system-ui;
4
- --base-font-color: var(--color-surface-900);
5
- --base-font-color-dark: 255 255 255;
6
- /*--theme-rounded-base: 4px;
7
- --theme-rounded-container: 4px;
8
- --theme-border-base: 1px;*/
9
- --radius-base: 4px;
10
- --radius-container: 4px;
11
- --default-border-width: 1px;
12
- --default-divide-width: 1px;
13
- --default-ring-width: 1px;
14
- /* =~= Theme On-X Colors =~= */
15
- --on-primary: 255 255 255;
16
- --on-secondary: 255 255 255;
17
- --on-tertiary: 0 0 0;
18
- --on-success: 255 255 255;
19
- --on-warning: 255 255 255;
20
- --on-error: 255 255 255;
21
- --on-surface: 0 0 0;
22
- /* =~= Theme Colors =~= */
23
- /* primary | #45b2a1 */
24
- --color-primary-50: #e3f3f1;
25
- --color-primary-100: #daf0ec;
26
- --color-primary-200: #d1ece8;
27
- --color-primary-300: #b5e0d9;
28
- --color-primary-400: #7dc9bd;
29
- --color-primary-500: #45b2a1;
30
- --color-primary-600: #3ea091;
31
- --color-primary-700: #348679;
32
- --color-primary-800: #296b61;
33
- --color-primary-900: #22574f;
34
- /* secondary | #ff9700 */
35
- --color-secondary-50: #ffefd9;
36
- --color-secondary-100: #ffeacc;
37
- --color-secondary-200: #ffe5bf;
38
- --color-secondary-300: #ffd599;
39
- --color-secondary-400: #ffb64d;
40
- --color-secondary-500: #ff9700;
41
- --color-secondary-600: #e68800;
42
- --color-secondary-700: #bf7100;
43
- --color-secondary-800: #995b00;
44
- --color-secondary-900: #7d4a00;
45
- /* tertiary | #bee1da */
46
- --color-tertiary-50: #f5fbf9;
47
- --color-tertiary-100: #f2f9f8;
48
- --color-tertiary-200: #eff8f6;
49
- --color-tertiary-300: #e5f3f0;
50
- --color-tertiary-400: #d2eae5;
51
- --color-tertiary-500: #bee1da;
52
- --color-tertiary-600: #abcbc4;
53
- --color-tertiary-700: #8fa9a4;
54
- --color-tertiary-800: #728783;
55
- --color-tertiary-900: #5d6e6b;
56
- /* success | #4BB543 */
57
- --color-success-50: #e4f4e3;
58
- --color-success-100: #dbf0d9;
59
- --color-success-200: #d2edd0;
60
- --color-success-300: #b7e1b4;
61
- --color-success-400: #81cb7b;
62
- --color-success-500: #4bb543;
63
- --color-success-600: #44a33c;
64
- --color-success-700: #388832;
65
- --color-success-800: #2d6d28;
66
- --color-success-900: #255921;
67
- /* warning | #EAB308 */
68
- --color-warning-50: #fcf4da;
69
- --color-warning-100: #fbf0ce;
70
- --color-warning-200: #faecc1;
71
- --color-warning-300: #f7e19c;
72
- --color-warning-400: #f0ca52;
73
- --color-warning-500: #eab308;
74
- --color-warning-600: #d3a107;
75
- --color-warning-700: #b08606;
76
- --color-warning-800: #8c6b05;
77
- --color-warning-900: #735804;
78
- /* error | #FF0000 */
79
- --color-error-50: #ffd9d9;
80
- --color-error-100: #ffcccc;
81
- --color-error-200: #ffbfbf;
82
- --color-error-300: #ff9999;
83
- --color-error-400: #ff4d4d;
84
- --color-error-500: #ff0000;
85
- --color-error-600: #e60000;
86
- --color-error-700: #bf0000;
87
- --color-error-800: #990000;
88
- --color-error-900: #7d0000;
89
- /* surface | #c7c7c7 */
90
- --color-surface-50: #f7f7f7;
91
- --color-surface-100: #f4f4f4;
92
- --color-surface-200: #f1f1f1;
93
- --color-surface-300: #e9e9e9;
94
- --color-surface-400: #d8d8d8;
95
- --color-surface-500: #c7c7c7;
96
- --color-surface-600: #b3b3b3;
97
- --color-surface-700: #959595;
98
- --color-surface-800: #777777;
99
- --color-surface-900: #626262;
100
- }
@@ -1,2 +0,0 @@
1
- import type { CustomThemeConfig } from '@skeletonlabs/tw-plugin';
2
- export declare const bexis2theme: CustomThemeConfig;
@@ -1,112 +0,0 @@
1
- export const bexis2theme = {
2
- name: 'bexis2theme',
3
- properties: {
4
- // =~= Theme Properties =~=
5
- '--theme-font-family-base': `system-ui`,
6
- '--theme-font-family-heading': `system-ui`,
7
- '--theme-font-color-base': 'var(--color-surface-900)',
8
- '--theme-font-color-dark': '#ffffff',
9
- '--theme-rounded-base': '4px',
10
- '--theme-rounded-container': '4px',
11
- '--theme-border-base': '1px',
12
- // =~= Theme On-X Colors =~=
13
- '--on-primary': '255 255 255',
14
- '--on-secondary': '255 255 255',
15
- '--on-tertiary': '0 0 0',
16
- '--on-success': '255 255 255',
17
- '--on-warning': '255 255 255',
18
- '--on-error': '255 255 255',
19
- '--on-surface': '255 255 255',
20
- // =~= Theme Colors =~=
21
- // primary | #45b2a1
22
- '--color-primary-50': '#e3f3f1',
23
- '--color-primary-100': '#daf0ec',
24
- '--color-primary-200': '#d1ece8',
25
- '--color-primary-300': '#b5e0d9',
26
- '--color-primary-400': '#7dc9bd',
27
- '--color-primary-500': '#45b2a1',
28
- '--color-primary-600': '#3ea091',
29
- '--color-primary-700': '#348679',
30
- '--color-primary-800': '#296b61',
31
- '--color-primary-900': '#22574f',
32
- // secondary | #ff9700
33
- '--color-secondary-50': '#ffefd9',
34
- '--color-secondary-100': '#ffeacc',
35
- '--color-secondary-200': '#ffe5bf',
36
- '--color-secondary-300': '#ffd599',
37
- '--color-secondary-400': '#ffb64d',
38
- '--color-secondary-500': '#ff9700',
39
- '--color-secondary-600': '#e68800',
40
- '--color-secondary-700': '#bf7100',
41
- '--color-secondary-800': '#995b00',
42
- '--color-secondary-900': '#7d4a00',
43
- // tertiary | #bee1da
44
- '--color-tertiary-50': '#f5fbf9',
45
- '--color-tertiary-100': '#f2f9f8',
46
- '--color-tertiary-200': '#eff8f6',
47
- '--color-tertiary-300': '#e5f3f0',
48
- '--color-tertiary-400': '#d2eae5',
49
- '--color-tertiary-500': '#bee1da',
50
- '--color-tertiary-600': '#abcbc4',
51
- '--color-tertiary-700': '#8fa9a4',
52
- '--color-tertiary-800': '#728783',
53
- '--color-tertiary-900': '#5d6e6b',
54
- // success | #4BB543
55
- '--color-success-50': '#e4f4e3',
56
- '--color-success-100': '#dbf0d9',
57
- '--color-success-200': '#d2edd0',
58
- '--color-success-300': '#b7e1b4',
59
- '--color-success-400': '#81cb7b',
60
- '--color-success-500': '#4bb543',
61
- '--color-success-600': '#44a33c',
62
- '--color-success-700': '#388832',
63
- '--color-success-800': '#2d6d28',
64
- '--color-success-900': '#255921',
65
- // warning | #EAB308
66
- '--color-warning-50': '#fcf4da',
67
- '--color-warning-100': '#fbf0ce',
68
- '--color-warning-200': '#faecc1',
69
- '--color-warning-300': '#f7e19c',
70
- '--color-warning-400': '#f0ca52',
71
- '--color-warning-500': '#eab308',
72
- '--color-warning-600': '#d3a107',
73
- '--color-warning-700': '#b08606',
74
- '--color-warning-800': '#8c6b05',
75
- '--color-warning-900': '#735804',
76
- // error | #FF0000
77
- '--color-error-50': '#ffd9d9',
78
- '--color-error-100': '#ffcccc',
79
- '--color-error-200': '#ffbfbf',
80
- '--color-error-300': '#ff9999',
81
- '--color-error-400': '#ff4d4d',
82
- '--color-error-500': '#ff0000',
83
- '--color-error-600': '#e60000',
84
- '--color-error-700': '#bf0000',
85
- '--color-error-800': '#990000',
86
- '--color-error-900': '#7d0000',
87
- // surface | #c7c7c7
88
- '--color-surface-50': '#f7f7f7',
89
- '--color-surface-100': '#f4f4f4',
90
- '--color-surface-200': '#f1f1f1',
91
- '--color-surface-300': '#e9e9e9',
92
- '--color-surface-400': '#d8d8d8',
93
- '--color-surface-500': '#c7c7c7',
94
- '--color-surface-600': '#b3b3b3',
95
- '--color-surface-700': '#959595',
96
- '--color-surface-800': '#777777',
97
- '--color-surface-900': '#626262'
98
- },
99
- properties_dark: {
100
- // surface | #2e2e2e
101
- '--color-surface-50': '#e0e0e0',
102
- '--color-surface-100': '#d5d5d5',
103
- '--color-surface-200': '#cbcbcb',
104
- '--color-surface-300': '#ababab',
105
- '--color-surface-400': '#6d6d6d',
106
- '--color-surface-500': '#2e2e2e',
107
- '--color-surface-600': '#292929',
108
- '--color-surface-700': '#232323',
109
- '--color-surface-800': '#1c1c1c',
110
- '--color-surface-900': '#171717'
111
- }
112
- };
@@ -1,100 +0,0 @@
1
- [data-theme='bexis2theme'] {
2
- /* =~= Theme Properties =~= */
3
- --base-font-family: system-ui;
4
- --base-font-color: var(--color-surface-900);
5
- --base-font-color-dark: 255 255 255;
6
- /*--theme-rounded-base: 4px;
7
- --theme-rounded-container: 4px;
8
- --theme-border-base: 1px;*/
9
- --radius-base: 4px;
10
- --radius-container: 4px;
11
- --default-border-width: 1px;
12
- --default-divide-width: 1px;
13
- --default-ring-width: 1px;
14
- /* =~= Theme On-X Colors =~= */
15
- --on-primary: 255 255 255;
16
- --on-secondary: 255 255 255;
17
- --on-tertiary: 0 0 0;
18
- --on-success: 255 255 255;
19
- --on-warning: 255 255 255;
20
- --on-error: 255 255 255;
21
- --on-surface: 0 0 0;
22
- /* =~= Theme Colors =~= */
23
- /* primary | #45b2a1 */
24
- --color-primary-50: #e3f3f1;
25
- --color-primary-100: #daf0ec;
26
- --color-primary-200: #d1ece8;
27
- --color-primary-300: #b5e0d9;
28
- --color-primary-400: #7dc9bd;
29
- --color-primary-500: #45b2a1;
30
- --color-primary-600: #3ea091;
31
- --color-primary-700: #348679;
32
- --color-primary-800: #296b61;
33
- --color-primary-900: #22574f;
34
- /* secondary | #ff9700 */
35
- --color-secondary-50: #ffefd9;
36
- --color-secondary-100: #ffeacc;
37
- --color-secondary-200: #ffe5bf;
38
- --color-secondary-300: #ffd599;
39
- --color-secondary-400: #ffb64d;
40
- --color-secondary-500: #ff9700;
41
- --color-secondary-600: #e68800;
42
- --color-secondary-700: #bf7100;
43
- --color-secondary-800: #995b00;
44
- --color-secondary-900: #7d4a00;
45
- /* tertiary | #bee1da */
46
- --color-tertiary-50: #f5fbf9;
47
- --color-tertiary-100: #f2f9f8;
48
- --color-tertiary-200: #eff8f6;
49
- --color-tertiary-300: #e5f3f0;
50
- --color-tertiary-400: #d2eae5;
51
- --color-tertiary-500: #bee1da;
52
- --color-tertiary-600: #abcbc4;
53
- --color-tertiary-700: #8fa9a4;
54
- --color-tertiary-800: #728783;
55
- --color-tertiary-900: #5d6e6b;
56
- /* success | #4BB543 */
57
- --color-success-50: #e4f4e3;
58
- --color-success-100: #dbf0d9;
59
- --color-success-200: #d2edd0;
60
- --color-success-300: #b7e1b4;
61
- --color-success-400: #81cb7b;
62
- --color-success-500: #4bb543;
63
- --color-success-600: #44a33c;
64
- --color-success-700: #388832;
65
- --color-success-800: #2d6d28;
66
- --color-success-900: #255921;
67
- /* warning | #EAB308 */
68
- --color-warning-50: #fcf4da;
69
- --color-warning-100: #fbf0ce;
70
- --color-warning-200: #faecc1;
71
- --color-warning-300: #f7e19c;
72
- --color-warning-400: #f0ca52;
73
- --color-warning-500: #eab308;
74
- --color-warning-600: #d3a107;
75
- --color-warning-700: #b08606;
76
- --color-warning-800: #8c6b05;
77
- --color-warning-900: #735804;
78
- /* error | #FF0000 */
79
- --color-error-50: #ffd9d9;
80
- --color-error-100: #ffcccc;
81
- --color-error-200: #ffbfbf;
82
- --color-error-300: #ff9999;
83
- --color-error-400: #ff4d4d;
84
- --color-error-500: #ff0000;
85
- --color-error-600: #e60000;
86
- --color-error-700: #bf0000;
87
- --color-error-800: #990000;
88
- --color-error-900: #7d0000;
89
- /* surface | #c7c7c7 */
90
- --color-surface-50: #f7f7f7;
91
- --color-surface-100: #f4f4f4;
92
- --color-surface-200: #f1f1f1;
93
- --color-surface-300: #e9e9e9;
94
- --color-surface-400: #d8d8d8;
95
- --color-surface-500: #c7c7c7;
96
- --color-surface-600: #b3b3b3;
97
- --color-surface-700: #959595;
98
- --color-surface-800: #777777;
99
- --color-surface-900: #626262;
100
- }
@@ -1,114 +0,0 @@
1
- import type { CustomThemeConfig } from '@skeletonlabs/tw-plugin';
2
-
3
- export const bexis2theme: CustomThemeConfig = {
4
- name: 'bexis2theme',
5
- properties: {
6
- // =~= Theme Properties =~=
7
- '--theme-font-family-base': `system-ui`,
8
- '--theme-font-family-heading': `system-ui`,
9
- '--theme-font-color-base': 'var(--color-surface-900)',
10
- '--theme-font-color-dark': '#ffffff',
11
- '--theme-rounded-base': '4px',
12
- '--theme-rounded-container': '4px',
13
- '--theme-border-base': '1px',
14
- // =~= Theme On-X Colors =~=
15
- '--on-primary': '255 255 255',
16
- '--on-secondary': '255 255 255',
17
- '--on-tertiary': '0 0 0',
18
- '--on-success': '255 255 255',
19
- '--on-warning': '255 255 255',
20
- '--on-error': '255 255 255',
21
- '--on-surface': '255 255 255',
22
- // =~= Theme Colors =~=
23
- // primary | #45b2a1
24
- '--color-primary-50': '#e3f3f1',
25
- '--color-primary-100': '#daf0ec',
26
- '--color-primary-200': '#d1ece8',
27
- '--color-primary-300': '#b5e0d9',
28
- '--color-primary-400': '#7dc9bd',
29
- '--color-primary-500': '#45b2a1',
30
- '--color-primary-600': '#3ea091',
31
- '--color-primary-700': '#348679',
32
- '--color-primary-800': '#296b61',
33
- '--color-primary-900': '#22574f',
34
- // secondary | #ff9700
35
- '--color-secondary-50': '#ffefd9',
36
- '--color-secondary-100': '#ffeacc',
37
- '--color-secondary-200': '#ffe5bf',
38
- '--color-secondary-300': '#ffd599',
39
- '--color-secondary-400': '#ffb64d',
40
- '--color-secondary-500': '#ff9700',
41
- '--color-secondary-600': '#e68800',
42
- '--color-secondary-700': '#bf7100',
43
- '--color-secondary-800': '#995b00',
44
- '--color-secondary-900': '#7d4a00',
45
- // tertiary | #bee1da
46
- '--color-tertiary-50': '#f5fbf9',
47
- '--color-tertiary-100': '#f2f9f8',
48
- '--color-tertiary-200': '#eff8f6',
49
- '--color-tertiary-300': '#e5f3f0',
50
- '--color-tertiary-400': '#d2eae5',
51
- '--color-tertiary-500': '#bee1da',
52
- '--color-tertiary-600': '#abcbc4',
53
- '--color-tertiary-700': '#8fa9a4',
54
- '--color-tertiary-800': '#728783',
55
- '--color-tertiary-900': '#5d6e6b',
56
- // success | #4BB543
57
- '--color-success-50': '#e4f4e3',
58
- '--color-success-100': '#dbf0d9',
59
- '--color-success-200': '#d2edd0',
60
- '--color-success-300': '#b7e1b4',
61
- '--color-success-400': '#81cb7b',
62
- '--color-success-500': '#4bb543',
63
- '--color-success-600': '#44a33c',
64
- '--color-success-700': '#388832',
65
- '--color-success-800': '#2d6d28',
66
- '--color-success-900': '#255921',
67
- // warning | #EAB308
68
- '--color-warning-50': '#fcf4da',
69
- '--color-warning-100': '#fbf0ce',
70
- '--color-warning-200': '#faecc1',
71
- '--color-warning-300': '#f7e19c',
72
- '--color-warning-400': '#f0ca52',
73
- '--color-warning-500': '#eab308',
74
- '--color-warning-600': '#d3a107',
75
- '--color-warning-700': '#b08606',
76
- '--color-warning-800': '#8c6b05',
77
- '--color-warning-900': '#735804',
78
- // error | #FF0000
79
- '--color-error-50': '#ffd9d9',
80
- '--color-error-100': '#ffcccc',
81
- '--color-error-200': '#ffbfbf',
82
- '--color-error-300': '#ff9999',
83
- '--color-error-400': '#ff4d4d',
84
- '--color-error-500': '#ff0000',
85
- '--color-error-600': '#e60000',
86
- '--color-error-700': '#bf0000',
87
- '--color-error-800': '#990000',
88
- '--color-error-900': '#7d0000',
89
- // surface | #c7c7c7
90
- '--color-surface-50': '#f7f7f7',
91
- '--color-surface-100': '#f4f4f4',
92
- '--color-surface-200': '#f1f1f1',
93
- '--color-surface-300': '#e9e9e9',
94
- '--color-surface-400': '#d8d8d8',
95
- '--color-surface-500': '#c7c7c7',
96
- '--color-surface-600': '#b3b3b3',
97
- '--color-surface-700': '#959595',
98
- '--color-surface-800': '#777777',
99
- '--color-surface-900': '#626262'
100
- },
101
- properties_dark: {
102
- // surface | #2e2e2e
103
- '--color-surface-50': '#e0e0e0',
104
- '--color-surface-100': '#d5d5d5',
105
- '--color-surface-200': '#cbcbcb',
106
- '--color-surface-300': '#ababab',
107
- '--color-surface-400': '#6d6d6d',
108
- '--color-surface-500': '#2e2e2e',
109
- '--color-surface-600': '#292929',
110
- '--color-surface-700': '#232323',
111
- '--color-surface-800': '#1c1c1c',
112
- '--color-surface-900': '#171717'
113
- }
114
- };