Skip to content

Commit

Permalink
Fixing merge conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed May 16, 2024
1 parent 0b71c4b commit 0749b1f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
8 changes: 0 additions & 8 deletions src/WebformBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1300,19 +1300,11 @@ export default class WebformBuilder extends Component {

/**
* Called when a new component is saved.
<<<<<<< HEAD
* @param parent
* @param component
* @param isNew
* @param original
* @returns {boolean}
=======
* @param {Component} component - The component instance to save.
* @param {Component} parent - The parent component.
* @param {boolean} isNew - If this is a new component.
* @param {Component} original - The original component.
* @returns {boolean} - If the component was saved.
>>>>>>> 168311e19969359e558efc2a999c71f753e77511
*/
saveComponent(component, parent, isNew, original) {
this.editForm.detach();
Expand Down
25 changes: 0 additions & 25 deletions src/components/day/Day.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,16 +405,10 @@ export default class DayComponent extends Field {
}

/**
<<<<<<< HEAD
* Set the value at a specific index.
* @param index
* @param value
=======
* Set the value at a specific index and updates the component's refs.
* @param {number} index - The index to set.
* @param {any} value - The value to set.
* @returns {null|void} - Returns null if the value is invalid, otherwise void.
>>>>>>> 168311e19969359e558efc2a999c71f753e77511
*/
setValueAt(index, value) {
// temporary solution to avoid input reset
Expand Down Expand Up @@ -499,13 +493,8 @@ export default class DayComponent extends Field {

/**
* Return the date for this component.
<<<<<<< HEAD
* @param value
* @returns {*}
=======
* @param {any} value - The value to convert to a date.
* @returns {null|string} - The date string.
>>>>>>> 168311e19969359e558efc2a999c71f753e77511
*/
getDate(value) {
let defaults = [], day, month, year;
Expand Down Expand Up @@ -568,11 +557,7 @@ export default class DayComponent extends Field {

/**
* Return the raw value.
<<<<<<< HEAD
* @returns {Date}
=======
* @returns {string} - The raw value of the component.
>>>>>>> 168311e19969359e558efc2a999c71f753e77511
*/
get validationValue() {
return this.dataValue;
Expand All @@ -585,13 +570,8 @@ export default class DayComponent extends Field {

/**
* Get the value at a specific index.
<<<<<<< HEAD
* @param index
* @returns {*}
=======
* @param {number} index - The index to get the value from.
* @returns {*} - The value at index.
>>>>>>> 168311e19969359e558efc2a999c71f753e77511
*/
getValueAt(index) {
const date = this.date || this.emptyValue;
Expand All @@ -607,13 +587,8 @@ export default class DayComponent extends Field {

/**
* Get the input value of the date.
<<<<<<< HEAD
* @param value
* @returns {null}
=======
* @param {any} value - The value to convert to a string.
* @returns {string|null} - The string value of the date.
>>>>>>> 168311e19969359e558efc2a999c71f753e77511
*/
getValueAsString(value) {
return this.getDate(value) || '';
Expand Down

0 comments on commit 0749b1f

Please sign in to comment.