mountain-ui 1.0.28 → 1.0.30
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/package.json +1 -1
- package/src/lib/registry/entityRegistry/components/EntityPage.svelte +158 -0
- package/src/lib/registry/entityRegistry/components/FieldTableView.svelte +23 -0
- package/src/lib/registry/entityRegistry/components/FieldView.svelte +24 -0
- package/src/lib/registry/entityRegistry/createEntity.js +2 -0
- package/src/lib/registry/fieldTypeRegistry/components/FieldTypeTableView.svelte +11 -0
- package/src/lib/registry/fieldTypeRegistry/components/FieldTypeView.svelte +11 -0
- package/src/lib/registry/fieldTypeRegistry/components/LineView.svelte +33 -0
- package/src/lib/registry/fieldTypeRegistry/components/ViewText.svelte +5 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Lines/View.svelte +61 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Link/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Link/View.svelte +19 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Link/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Primary/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Primary/View.svelte +15 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Primary/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationColumn/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationColumn/View.svelte +52 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationColumn/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/Button.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/Card.svelte +6 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/Icon.svelte +30 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/Input.svelte +153 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/View.svelte +52 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/index.js +41 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/list/ListCheckbox/TableView.svelte +28 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/list/ListCheckbox/View.svelte +31 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/list/ListCheckbox/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/list/ListRadio/TableView.svelte +13 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/list/ListRadio/View.svelte +18 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/list/ListRadio/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/NumberInt/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/NumberInt/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/NumberInt/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatDefault/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatDefault/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatDefault/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatPercent/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatPercent/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatPercent/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatPrice/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatPrice/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/number/float/NumberFloatPrice/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/TextTextarea/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/TextTextarea/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/TextTextarea/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharDefault/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharDefault/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharDefault/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharEmail/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharEmail/View.svelte +13 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharEmail/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPassword/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPassword/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPassword/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPhone/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPhone/View.svelte +13 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPhone/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharUrl/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharUrl/View.svelte +24 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharUrl/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeCreatedAt/TableView.svelte +9 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeCreatedAt/View.svelte +13 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeCreatedAt/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDate/TableView.svelte +9 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDate/View.svelte +13 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDate/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDatetime/TableView.svelte +9 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDatetime/View.svelte +13 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDatetime/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDay/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDay/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeDay/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeHour/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeHour/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeHour/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeMonth/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeMonth/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeMonth/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeMonthOfYear/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeMonthOfYear/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeMonthOfYear/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeUpdatedAt/TableView.svelte +9 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeUpdatedAt/View.svelte +13 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeUpdatedAt/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeYear/TableView.svelte +8 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeYear/View.svelte +12 -0
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/TimeYear/index.js +4 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/time/formatDate.js +155 -0
- package/src/lib/registry/fieldTypeRegistry/registerDefaultFieldTypes.js +2 -0
- package/src/lib/registry/viewTypeRegistry/components/ViewTypeButton.svelte +27 -0
- package/src/lib/registry/viewTypeRegistry/components/ViewTypeComponent.svelte +30 -0
- package/src/lib/registry/viewTypeRegistry/createViewType.js +17 -0
- package/src/lib/registry/viewTypeRegistry/registerDefaultViewTypes.js +7 -0
- package/src/lib/registry/viewTypeRegistry/registry.svelte.js +44 -0
- package/src/lib/registry/viewTypeRegistry/viewTypes/Table/Icon.svelte +16 -0
- package/src/lib/registry/viewTypeRegistry/viewTypes/Table/component/Component copy.svelte +11 -0
- package/src/lib/registry/viewTypeRegistry/viewTypes/Table/component/Component.svelte +12 -0
- package/src/lib/registry/viewTypeRegistry/viewTypes/Table/component/StructureTable.svelte +287 -0
- package/src/lib/registry/viewTypeRegistry/viewTypes/Table/index.js +14 -0
- package/src/routes/+layout.svelte +31 -1
- package/src/routes/+page.svelte +22 -1
package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharEmail/index.js
CHANGED
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'text-varchar-email',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPassword/View.svelte
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../../components/ViewText.svelte';
|
|
5
|
+
|
|
6
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<LineView {compact}>
|
|
10
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
11
|
+
<ViewText>{value === null ? '-' : value.flat}</ViewText>
|
|
12
|
+
</LineView>
|
package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPassword/index.js
CHANGED
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'text-varchar-password',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPhone/View.svelte
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../../components/ViewText.svelte';
|
|
5
|
+
import { Link } from 'hamzus-ui';
|
|
6
|
+
|
|
7
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<LineView {compact}>
|
|
11
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
12
|
+
<Link href="mailto:{value?.flat ?? ""}" label={value?.flat ?? ""}/>
|
|
13
|
+
</LineView>
|
package/src/lib/registry/fieldTypeRegistry/fieldTypes/text/varchar/TextVarcharPhone/index.js
CHANGED
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'text-varchar-phone',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../../components/ViewText.svelte';
|
|
5
|
+
import { AlertCard, Button, Dialog } from 'hamzus-ui';
|
|
6
|
+
|
|
7
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
8
|
+
|
|
9
|
+
let confirmationIsOpen = $state(false)
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<Dialog bind:isOpen={confirmationIsOpen}>
|
|
13
|
+
<div style="display:flex;row-gap:var(--pad-m);flex-direction:column;">
|
|
14
|
+
<h3>Aller a l'adresse</h3>
|
|
15
|
+
<p>Etes vous sure de vouloir suivre ce lien ?</p>
|
|
16
|
+
<p>{value?.flat ?? ""}</p>
|
|
17
|
+
<AlertCard>Le lien peut être potentiellement dangereux et n'est pas verifié !</AlertCard>
|
|
18
|
+
<Button href={value?.flat ?? ""} target="_blank">confirmer</Button>
|
|
19
|
+
</div>
|
|
20
|
+
</Dialog>
|
|
21
|
+
<LineView {compact}>
|
|
22
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
23
|
+
<ViewText>{value === null ? '-' : value.flat}</ViewText>
|
|
24
|
+
</LineView>
|
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'text-varchar-url',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
import { formatDateTime } from '../formatDate';
|
|
6
|
+
|
|
7
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<LineView {compact}>
|
|
11
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
12
|
+
<ViewText>{value === null ? '-' : formatDateTime(value.flat)}</ViewText>
|
|
13
|
+
</LineView>
|
|
@@ -3,6 +3,8 @@ import { createFieldType } from '../../../createFieldType';
|
|
|
3
3
|
import Icon from './Icon.svelte';
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
|
+
import TableView from './TableView.svelte';
|
|
7
|
+
import View from './View.svelte';
|
|
6
8
|
|
|
7
9
|
export default createFieldType({
|
|
8
10
|
type: 'time-created_at',
|
|
@@ -24,7 +26,8 @@ export default createFieldType({
|
|
|
24
26
|
button: Button,
|
|
25
27
|
card: Card,
|
|
26
28
|
input: null,
|
|
27
|
-
|
|
29
|
+
tableView: TableView,
|
|
30
|
+
view: View,
|
|
28
31
|
filter: null,
|
|
29
32
|
properties: null
|
|
30
33
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
import { formatDate } from '../formatDate';
|
|
6
|
+
|
|
7
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<LineView {compact}>
|
|
11
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
12
|
+
<ViewText>{value === null ? '-' : formatDate(value.flat)}</ViewText>
|
|
13
|
+
</LineView>
|
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'time-date',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
import { formatDateTime } from '../formatDate';
|
|
6
|
+
|
|
7
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<LineView {compact}>
|
|
11
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
12
|
+
<ViewText>{value === null ? '-' : formatDateTime(value.flat)}</ViewText>
|
|
13
|
+
</LineView>
|
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'time-datetime',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
|
|
6
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<LineView {compact}>
|
|
10
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
11
|
+
<ViewText>{value === null ? '-' : value.flat}</ViewText>
|
|
12
|
+
</LineView>
|
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'time-day',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
|
|
6
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<LineView {compact}>
|
|
10
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
11
|
+
<ViewText>{value === null ? '-' : value.flat}</ViewText>
|
|
12
|
+
</LineView>
|
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'time-hour',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
|
|
6
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<LineView {compact}>
|
|
10
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
11
|
+
<ViewText>{value === null ? '-' : value.flat}</ViewText>
|
|
12
|
+
</LineView>
|
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'time-month',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
|
|
6
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<LineView {compact}>
|
|
10
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
11
|
+
<ViewText>{value === null ? '-' : value.flat}</ViewText>
|
|
12
|
+
</LineView>
|
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'time-month_of_year',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
import { formatDateTime } from '../formatDate';
|
|
6
|
+
|
|
7
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<LineView {compact}>
|
|
11
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
12
|
+
<ViewText>{value === null ? '-' : formatDateTime(value.flat)}</ViewText>
|
|
13
|
+
</LineView>
|
|
@@ -3,6 +3,8 @@ import { createFieldType } from '../../../createFieldType.js';
|
|
|
3
3
|
import Icon from './Icon.svelte';
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
|
+
import TableView from './TableView.svelte';
|
|
7
|
+
import View from './View.svelte';
|
|
6
8
|
|
|
7
9
|
export default createFieldType({
|
|
8
10
|
type: 'time-updated_at',
|
|
@@ -24,7 +26,8 @@ export default createFieldType({
|
|
|
24
26
|
button: Button,
|
|
25
27
|
card: Card,
|
|
26
28
|
input: null,
|
|
27
|
-
|
|
29
|
+
tableView: TableView,
|
|
30
|
+
view: View,
|
|
28
31
|
filter: null,
|
|
29
32
|
properties: null
|
|
30
33
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Label from '../../../components/Label.svelte';
|
|
3
|
+
import LineView from '../../../components/LineView.svelte';
|
|
4
|
+
import ViewText from '../../../components/ViewText.svelte';
|
|
5
|
+
|
|
6
|
+
let { value, compact, unique, secret, label, required } = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<LineView {compact}>
|
|
10
|
+
<Label {unique} {secret} {label} {required}></Label>
|
|
11
|
+
<ViewText>{value === null ? '-' : value.flat}</ViewText>
|
|
12
|
+
</LineView>
|
|
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
|
|
|
4
4
|
import Button from './Button.svelte';
|
|
5
5
|
import Card from './Card.svelte';
|
|
6
6
|
import Input from './Input.svelte';
|
|
7
|
+
import TableView from './TableView.svelte';
|
|
8
|
+
import View from './View.svelte';
|
|
7
9
|
|
|
8
10
|
export default createFieldType({
|
|
9
11
|
type: 'time-year',
|
|
@@ -25,7 +27,8 @@ export default createFieldType({
|
|
|
25
27
|
button: Button,
|
|
26
28
|
card: Card,
|
|
27
29
|
input: Input,
|
|
28
|
-
|
|
30
|
+
tableView: TableView,
|
|
31
|
+
view: View,
|
|
29
32
|
filter: null,
|
|
30
33
|
properties: null
|
|
31
34
|
},
|