| | |
| | | inputs: 'input,textarea,select' |
| | | }, |
| | | setup({el, refs, manyRefs, data}) { |
| | | if (refs.inputs) { |
| | | refs.inputs.forEach(input => { |
| | | if (manyRefs.inputs) { |
| | | manyRefs.inputs.forEach(input => { |
| | | let wrapper = input.closest('[data-field]'); |
| | | input.dataset.groupId = data.groupId; |
| | | window.prefixInput(input, `${data.groupId}-`, wrapper); |
| | | }); |
| | | } |
| | |
| | | |
| | | if (this.fields.has(upload.field)) { |
| | | let field = this.fields.get(upload.field); |
| | | console.log('Upload Status: ', upload.status); |
| | | switch (upload.status) { |
| | | case 'local_processing': |
| | | this.notify('upload-received', { |
| | |
| | | } |
| | | |
| | | let field = this.fields.get(fieldId); |
| | | |
| | | if (field.config.destination === 'post_group') { |
| | | this.handleGroupMetaChange(e.target); |
| | | } else { |
| | |
| | | const groupId = input.dataset.groupId; |
| | | if (!groupId) return; |
| | | |
| | | // Capture values immediately (before debouncer) |
| | | // Capture values immediately |
| | | const inputName = input.name; |
| | | if (!inputName) return; |
| | | const inputValue = input.value; |
| | |
| | | if (selectionHandler?.destroy) { |
| | | selectionHandler.destroy(); |
| | | } |
| | | this.selectionHandlers.get(group.field)?.removeWrapper(element.element); |
| | | if (this.selectionHandlers.get(group.field) && element && element.element) { |
| | | this.selectionHandlers.get(group.field).removeWrapper(element.element) |
| | | } |
| | | |
| | | // Existing sortable cleanup |
| | | const sortable = this.sortables.get(sortableKey); |
| | | if (sortable?.destroy) { |
| | | sortable.destroy(); |
| | | if (this.sortables.has(sortableKey)) { |
| | | const sortable = this.sortables.get(sortableKey); |
| | | if (sortable?.destroy) { |
| | | sortable.destroy(); |
| | | } |
| | | |
| | | this.sortables.delete(sortableKey); |
| | | } |
| | | this.sortables.delete(sortableKey); |
| | | |
| | | } |
| | | |
| | | if (element?.element) { |