Merge branch 'master' of github.com:akaunting/akaunting

This commit is contained in:
Cüneyt Şentürk 2022-11-28 13:14:53 +03:00
commit ec8d5077fa
4 changed files with 24 additions and 22 deletions

View File

@ -54,15 +54,17 @@ document.querySelectorAll("[data-table-body]").forEach((table) => {
if (document.body.clientWidth <= 768) {
table.querySelectorAll('[data-table-list]').forEach((actions) => {
actions.querySelector('[data-mobile-actions]').addEventListener('click', function() {
this.closest('td').querySelector('[data-mobile-actions-modal]').classList.add('show');
this.closest('td').querySelector('[data-mobile-actions-modal]').classList.remove('opacity-0', 'invisible');
this.closest('td').querySelector('[data-mobile-actions-modal]').addEventListener('click', function() {
this.classList.add('opacity-0', 'invisible');
this.classList.remove('show');
if (actions.querySelector('[data-mobile-actions]')) {
actions.querySelector('[data-mobile-actions]').addEventListener('click', function() {
this.closest('td').querySelector('[data-mobile-actions-modal]').classList.add('show');
this.closest('td').querySelector('[data-mobile-actions-modal]').classList.remove('opacity-0', 'invisible');
this.closest('td').querySelector('[data-mobile-actions-modal]').addEventListener('click', function() {
this.classList.add('opacity-0', 'invisible');
this.classList.remove('show');
});
});
});
}
});
}
});
@ -451,7 +453,7 @@ document.querySelectorAll('[data-truncate-marquee]').forEach((truncate) => {
//disable/enable icons ejected from data-truncate-marquee, HTML of icons ejected from parent element (data-truncate-marquee)
document.querySelectorAll('[data-index-icon]').forEach((defaultText) => {
if (defaultText.closest('tr')) {
if (defaultText.closest('[data-table-list]')) {
let icon_parents_element = defaultText.parentElement.parentElement.parentElement;
if (icon_parents_element.classList.contains('flex')) {

View File

@ -8,8 +8,8 @@
:aria-hidden="!show">
<div class="w-full my-10 m-auto flex flex-col" :class="modalDialogClass ? modalDialogClass : 'max-w-screen-sm'">
<slot name="modal-content">
<div class="modal-content">
<div class="p-5 bg-body rounded-tl-lg rounded-tr-lg">
<div class="bg-body rounded-lg modal-content">
<div class="p-5">
<div class="flex items-center justify-between border-b pb-5">
<slot name="card-header">
<h4 class="text-base font-medium">
@ -24,7 +24,7 @@
</div>
<slot name="modal-body">
<div class="px-5 bg-body">
<div class="px-5">
<template v-if="transaction">
<div class="flex flex-col items-start gap-y-3">
<div class="text-left text-sm">
@ -247,7 +247,7 @@
</div>
</slot>
<div class="p-5 bg-body rounded-bl-lg rounded-br-lg border-gray-300">
<div class="p-5 border-gray-300">
<slot name="card-footer">
<div class="flex items-center justify-end">
<button type="button" class="px-6 py-1.5 mr-2 hover:bg-gray-200 rounded-lg" @click="onCancel">

View File

@ -10,8 +10,8 @@
:aria-hidden="!show">
<div class="w-full my-10 m-auto flex flex-col px-2 sm:px-0" :class="modalDialogClass ? modalDialogClass : 'max-w-md'">
<slot name="modal-content">
<div class="modal-content">
<div class="p-5 bg-body rounded-tl-lg rounded-tr-lg">
<div class="bg-body rounded-lg modal-content">
<div class="p-5">
<div class="flex items-center justify-between border-b pb-5">
<slot name="card-header">
<h4 class="text-base font-medium">
@ -26,10 +26,10 @@
</div>
<slot name="modal-body">
<div class="py-1 px-5 bg-body" v-html="message"></div>
<div class="py-1 px-5" v-html="message"></div>
</slot>
<div class="p-5 bg-body rounded-bl-lg rounded-br-lg border-gray-300">
<div class="p-5 border-gray-300">
<slot name="card-footer">
<div class="flex items-center justify-end">
<button type="button" class="px-6 py-1.5 ltr:mr-2 rtl:ml-2 hover:bg-gray-200 rounded-lg" @click="onCancel">

View File

@ -10,8 +10,8 @@
:aria-hidden="!show">
<div class="w-full my-10 m-auto flex flex-col px-2 sm:px-0" :class="modalDialogClass ? modalDialogClass : 'max-w-md'">
<slot name="modal-content">
<div class="modal-content">
<div class="p-5 bg-body rounded-tl-lg rounded-tr-lg">
<div class="bg-body rounded-lg modal-content">
<div class="p-5">
<div class="flex items-center justify-between border-b pb-5">
<slot name="card-header">
<h4 class="text-base font-medium">
@ -26,15 +26,15 @@
</div>
<slot name="modal-body">
<div class="py-1 px-5 bg-body" v-if="!is_component" v-html="message"></div>
<div class="py-1 px-5 bg-body" v-else>
<div class="py-1 px-5" v-if="!is_component" v-html="message"></div>
<div class="py-1 px-5" v-else>
<form id="form-create" method="POST" action="#"/>
<component v-bind:is="component"></component>
</div>
</slot>
<div class="p-5 bg-body rounded-bl-lg rounded-br-lg border-gray-300">
<div class="p-5 border-gray-300">
<slot name="card-footer">
<div class="flex items-center justify-end">
<button type="button" class="px-6 py-1.5 mr-2 hover:bg-gray-200 rounded-lg" :class="buttons.cancel.class" @click="onCancel">