Skip to content

Commit

Permalink
added missing default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Severino committed Oct 17, 2023
1 parent 6edd204 commit 58d6470
Show file tree
Hide file tree
Showing 19 changed files with 52 additions and 34 deletions.
1 change: 1 addition & 0 deletions resources/js/components/Alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
icontext: {
required: false,
type: String,
default: null
}
},
setup(props, context) {
Expand Down
5 changes: 3 additions & 2 deletions resources/js/components/AttributeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
hiddenAttributes: {
required: false,
type: Array,
default: [],
default: ()=>([]),
},
showHidden: {
required: false,
Expand All @@ -401,7 +401,8 @@
},
group: { // required if onReorder is set // TODO
required: false,
type: String
type: String,
default: null,
},
isSource: {
required: false,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/CommentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
metadata: {
required: false,
type: Object,
default: {},
default: ()=>({}),
},
postUrl: {
required: false,
Expand Down
18 changes: 12 additions & 6 deletions resources/js/components/OlMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@
},
initCollection: {
required: false,
type: Object
type: Object,
default: null
},
initProjection: {
required: false,
Expand All @@ -354,23 +355,27 @@
},
epsg: {
required: false,
type: Object
type: Object,
default: null
},
layers: {
required: true,
type: Object
},
layerStyles: {
required: false,
type: Object
type: Object,
default: null
},
layerLabels: {
required: false,
type: Object
type: Object,
default: null
},
layerCharts: {
required: false,
type: Object
type: Object,
default: null
},
drawDisabled: {
required: false,
Expand Down Expand Up @@ -399,7 +404,8 @@
},
zoomTo: {
type: Number,
required: false
required: false,
default: null
}
},
data() {
Expand Down
5 changes: 4 additions & 1 deletion resources/js/components/attribute/Dimension.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@
export default {
props: {
name: String,
name: {
type: String,
required: true,
},
value: {
type: Object,
default: _ => new Object(),
Expand Down
5 changes: 4 additions & 1 deletion resources/js/components/attribute/Epoch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@
export default {
props: {
name: String,
name: {
type: String,
required: true,
},
value: {
required: false,
type: Object,
Expand Down
9 changes: 6 additions & 3 deletions resources/js/components/attribute/Iconclass.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,14 @@
export default {
props: {
name: String,
name: {
type:String ,
required: true
},
value: {
type: String,
required: false,
required: true,
default: null,
},
disabled: {
type: Boolean,
Expand All @@ -92,7 +96,6 @@
const {
name,
value,
disabled,
} = toRefs(props);
// FETCH
Expand Down
8 changes: 5 additions & 3 deletions resources/js/components/attribute/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@
export default {
props: {
name: String,
name:{
type: String,
required: false,
default: null
},
entries: {
type: Array,
default: _ => new Array(),
Expand All @@ -81,9 +85,7 @@
setup(props, context) {
const { t } = useI18n();
const {
name,
entries,
disabled,
} = toRefs(props);
// FETCH
Expand Down
7 changes: 5 additions & 2 deletions resources/js/components/attribute/Rism.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@
export default {
props: {
name: String,
name: {
type: String,
required: true,
},
value: {
type: String,
required: false,
default: '',
},
disabled: {
type: Boolean,
Expand All @@ -88,7 +92,6 @@
const {
name,
value,
disabled,
} = toRefs(props);
// FETCH
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/attribute/SystemSeparator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
title: {
type: String,
required: false,
default: null,
},
},
setup(props, context) {
Expand Down
2 changes: 2 additions & 0 deletions resources/js/components/attribute/Tabular.vue
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,11 @@
},
selections: {
type: Object,
default: null
},
attribute: {
type: Object,
default: null
},
},
emits: ['change', 'expanded'],
Expand Down
8 changes: 4 additions & 4 deletions resources/js/components/map/InteractiveMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@
selection: {
type: Number,
required: false,
default: null,
},
layers: {
type: Object,
Expand All @@ -379,7 +380,7 @@
data: {
type: Object,
required: false,
default: {},
default: ()=> {},
},
projection: {
type: Number,
Expand All @@ -404,7 +405,7 @@
extent: {
type: Object,
required: false,
default: {}
default: ()=>{}
},
provider: {
type: String,
Expand All @@ -414,6 +415,7 @@
triggerDataRescan: {
type: String,
required: false,
default: null,
},
},
emits: ['added', 'select'],
Expand Down Expand Up @@ -1514,8 +1516,6 @@
t,
// HELPERS
toFixed,
// PROPS
drawing,
// LOCAL
confirmOverlayCoordinateEditing,
enableOverlayCoordinateEditing,
Expand Down
2 changes: 0 additions & 2 deletions resources/js/components/modals/csv/Picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@
t,
// HELPERS
ucfirst,
// PROPS
selection,
// LOCAL
confirmModal,
closeModal,
Expand Down
3 changes: 1 addition & 2 deletions resources/js/components/modals/entity/Add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
parent: {
required: false,
type: Object,
default: null,
},
},
emits: ['closing', 'confirm'],
Expand Down Expand Up @@ -173,8 +174,6 @@
// HELPERS
translateConcept,
multiselectResetClasslist,
// PROPS
parent,
// LOCAL
add,
closeModal,
Expand Down
2 changes: 0 additions & 2 deletions resources/js/components/modals/map/Picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@
return {
t,
// HELPERS
// PROPS
data,
// LOCAL
updateData,
confirmLocation,
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/modals/user/Add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
errors: {
required: false,
type: Object,
default: _ => ({}),
},
},
emits: ['add', 'cancel'],
Expand Down
2 changes: 0 additions & 2 deletions resources/js/components/modals/user/Deactivate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@
return {
t,
// HELPERS
// PROPS
user,
// LOCAL
closeModal,
confirmDeactivate,
Expand Down
2 changes: 2 additions & 0 deletions resources/js/components/plugins/Toast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
id: {
type: String,
required: false,
default: null,
},
icon: {
type: Boolean,
Expand Down Expand Up @@ -93,6 +94,7 @@
channel: {
type: String,
required: false,
default: null
},
},
setup(props, context) {
Expand Down
3 changes: 0 additions & 3 deletions resources/js/components/preferences/Columns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@
t,
// LOCAL
onChange,
// PROPS
data,
readonly,
// STATE
state,
};
Expand Down

0 comments on commit 58d6470

Please sign in to comment.