diff --git a/src/boot/quasar.js b/src/boot/quasar.js index e1e879315..a8c397b83 100644 --- a/src/boot/quasar.js +++ b/src/boot/quasar.js @@ -51,7 +51,5 @@ export default boot(({ app }) => { await useCau(response, message); }; - app.directive('shortcut', keyShortcut); - app.mixin(qFormMixin); - app.mixin(mainShortcutMixin); + app.provide('app', app); }); diff --git a/src/components/VnColor.vue b/src/components/VnColor.vue deleted file mode 100644 index 73c898ce3..000000000 --- a/src/components/VnColor.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - diff --git a/src/components/VnTable/VnColumn.vue b/src/components/VnTable/VnColumn.vue index baa576bba..0040385c5 100644 --- a/src/components/VnTable/VnColumn.vue +++ b/src/components/VnTable/VnColumn.vue @@ -1,6 +1,6 @@ - rowClickFunction && rowClickFunction(row)" @update:selected="emit('update:selected', $event)" @selection="(details) => handleSelection(details, rows)" - @click="handleClick" + v-on="isEditable ? { click: handleClick } : {}" > @@ -496,13 +635,6 @@ function shouldDisplayReadonly(col, rowIndex) { dense :options="tableModes.filter((mode) => !mode.disable)" /> - {{ col.toolTip }} @@ -525,13 +659,17 @@ function shouldDisplayReadonly(col, rowIndex) { /> @@ -550,7 +688,6 @@ function shouldDisplayReadonly(col, rowIndex) { @@ -607,27 +737,6 @@ function shouldDisplayReadonly(col, rowIndex) { - - - @@ -751,7 +860,7 @@ function shouldDisplayReadonly(col, rowIndex) { :row="row" :row-index="index" > - - + + - +const $props = defineProps({ + colors: { + type: String, + default: '{"value":[]}', + }, +}); + +const colorArray = JSON.parse($props.colors)?.value; +const maxHeight = 30; +const colorHeight = maxHeight / colorArray?.length; + + + + + + + + + diff --git a/src/components/common/VnComponent.vue b/src/components/common/VnComponent.vue index d9d1ea26b..c1700fd45 100644 --- a/src/components/common/VnComponent.vue +++ b/src/components/common/VnComponent.vue @@ -45,6 +45,7 @@ function toValueAttrs(attrs) { } + console.log('mouse-down')" /> diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index 1b896611a..7981ac683 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -70,10 +70,6 @@ const focus = () => { vnInputRef.value.focus(); }; -defineExpose({ - focus, -}); - const mixinRules = [ requiredFieldRule, ...($attrs.rules ?? []), diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue index 2dbb43f1e..8aa725b4a 100644 --- a/src/components/common/VnSelect.vue +++ b/src/components/common/VnSelect.vue @@ -6,7 +6,7 @@ import { useRequired } from 'src/composables/useRequired'; import dataByOrder from 'src/utils/dataByOrder'; import { QItemLabel } from 'quasar'; -const emit = defineEmits(['update:modelValue', 'update:options', 'remove', 'blur']); +const emit = defineEmits(['update:modelValue', 'update:options', 'remove']); const $attrs = useAttrs(); const { t } = useI18n(); @@ -327,7 +327,6 @@ function handleKeyDown(event) { :option-value="optionValue" v-bind="{ ...$attrs, ...styleAttrs }" @filter="filterHandler" - @blur="() => emit('blur')" :emit-value="nullishToTrue($attrs['emit-value'])" :map-options="nullishToTrue($attrs['map-options'])" :use-input="nullishToTrue($attrs['use-input'])" diff --git a/src/components/common/VnSelectDialog.vue b/src/components/common/VnSelectDialog.vue index 12322c3fa..5944a1ea7 100644 --- a/src/components/common/VnSelectDialog.vue +++ b/src/components/common/VnSelectDialog.vue @@ -34,7 +34,6 @@ const isAllowedToCreate = computed(() => { return role.hasAny($props.rolesAllowedToCreate); }); - { - - - - - - Acepto los términos y condiciones - - - - Dar foco al checkbox - - - -