quasar-ui-danx 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/dist/danx.es.js +1194 -1191
  2. package/dist/danx.umd.js +5 -5
  3. package/dist/style.css +1 -1
  4. package/package.json +1 -1
  5. package/src/components/ActionTable/ActionTable.vue +5 -1
  6. package/src/components/ActionTable/ActionTableColumn.vue +1 -1
  7. package/src/components/ActionTable/Columns/ColumnSettingsDialog.vue +1 -1
  8. package/src/components/ActionTable/Filters/FilterFieldList.vue +2 -1
  9. package/src/components/ActionTable/Form/Fields/BooleanField.vue +1 -1
  10. package/src/components/ActionTable/Form/Fields/ConfirmPasswordField.vue +1 -1
  11. package/src/components/ActionTable/Form/Fields/DateTimeField.vue +1 -1
  12. package/src/components/ActionTable/Form/Fields/InlineDateTimeField.vue +1 -1
  13. package/src/components/ActionTable/Form/Fields/IntegerField.vue +1 -1
  14. package/src/components/ActionTable/Form/Fields/MultiFileField.vue +1 -1
  15. package/src/components/ActionTable/Form/Fields/MultiKeywordField.vue +2 -1
  16. package/src/components/ActionTable/Form/Fields/NewPasswordField.vue +1 -1
  17. package/src/components/ActionTable/Form/Fields/NumberField.vue +1 -1
  18. package/src/components/ActionTable/Form/Fields/NumberRangeField.vue +1 -1
  19. package/src/components/ActionTable/Form/Fields/SelectWithChildrenField.vue +1 -1
  20. package/src/components/ActionTable/Form/Fields/SingleFileField.vue +1 -1
  21. package/src/components/ActionTable/Form/Fields/TextField.vue +2 -1
  22. package/src/components/ActionTable/Form/Fields/WysiwygField.vue +1 -1
  23. package/src/components/AuditHistory/AuditHistoryItem.vue +1 -1
  24. package/src/components/PanelsDrawer/PanelsDrawer.vue +2 -1
  25. package/src/components/Utility/Dialogs/InputDialog.vue +1 -1
  26. package/src/components/Utility/Tools/ActionVnode.vue +1 -1
  27. package/src/helpers/actions.ts +1 -1
  28. package/tsconfig.json +0 -1
  29. package/vite.config.js +3 -0
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .slide-image[data-v-ac4d9efe]{width:100%;height:100%;background:#000;display:flex;justify-content:center;align-items:center}.slide-image img[data-v-ac4d9efe]{max-height:100%;max-width:100%;object-fit:contain}.carousel[data-v-ac4d9efe] .q-carousel__navigation--bottom{position:relative;bottom:8em}.action-button[data-v-4bede0de]{position:absolute;bottom:1.5em;right:1em;z-index:1}.play-button[data-v-4bede0de]{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%;pointer-events:none}.collapsable-sidebar[data-v-38458242]{@apply overflow-y-auto scroll-smooth flex-shrink-0 border-r border-neutral-plus-5 transition-all;}.dialog-title[data-v-529ed64e]{@apply bg-gray-very-light text-gray-default font-medium uppercase text-xs px-6 py-3 border-b border-neutral-plus-5 rounded-t-md;font-family:Roboto,sans-serif;letter-spacing:.05em;box-shadow:0 -4px 12px #00000040}.dialog-content[data-v-529ed64e]{box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}body .q-tooltip.interactive-tooltip{pointer-events:auto!important;background:#fff;color:inherit;box-shadow:0 0 10px 3px #0003}[class*=list-move],[class*=list-enter-active],[class*=".list-leave-active"]{transition:all .3s cubic-bezier(.55,0,.1,1)}[class*=list-leave-active]{position:absolute!important}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.fade-list-enter-from,.fade-list-leave-to{opacity:0;transform:scaleY(.01) translate(30px)}.fade-down-list-enter-from,.fade-down-list-leave-to{opacity:0;transform-origin:top;transform:translateY(30px)}.slide-enter-active,.slide-leave-active,.slide-right-enter-active,.slide-right-leave-active{transition:all .3s linear;width:100%}.slide-right-enter-active,.slide-enter-active{position:absolute!important;top:0}.slide-enter-from{right:-120%}.slide-enter-to{right:0}.slide-leave-to{left:-120%}.slide-leave-from{left:0}.slide-right-enter-from{left:-120%}.slide-right-enter-to{left:0}.slide-right-leave-to{right:-120%}.slide-right-leave-from{right:0}.list-move[data-v-6a1edcb9],.list-enter-active[data-v-6a1edcb9],.list-leave-active[data-v-6a1edcb9]{transition:all .5s ease}.list-enter-from[data-v-6a1edcb9],.list-leave-to[data-v-6a1edcb9]{opacity:0;transform:translate(2em)}.list-leave-active[data-v-6a1edcb9]{position:absolute}.category-toggle[data-v-042cd8be]{@apply text-xs font-bold rounded-lg border border-solid border-neutral-plus-5 px-2 py-1 mx-1 cursor-pointer flex items-center;}.category-toggle.has-visible-columns[data-v-042cd8be]{@apply text-white bg-blue-base;}[data-drop-zone] .resize-handle[data-v-f53f68e8]{position:absolute;top:0;right:-.45em;width:.9em;opacity:0;transition:all .3s}[data-drop-zone]:hover .resize-handle[data-v-f53f68e8]{opacity:1}.panel-tabs[data-v-5d23285c] .q-tab{justify-content:start!important;padding:0;@apply text-left py-2.5 px-2 rounded-lg hover:bg-neutral-plus-6;}.panel-tabs[data-v-5d23285c] .q-tab .q-focus-helper,.panel-tabs[data-v-5d23285c] .q-tab .q-tab__indicator{display:none}.panel-tabs[data-v-5d23285c] .q-tab .q-tab__content{@apply p-0;}.panel-tabs[data-v-5d23285c] .q-tab.q-tab--active{@apply text-white bg-blue-base;}
1
+ .slide-image[data-v-ac4d9efe]{width:100%;height:100%;background:#000;display:flex;justify-content:center;align-items:center}.slide-image img[data-v-ac4d9efe]{max-height:100%;max-width:100%;object-fit:contain}.carousel[data-v-ac4d9efe] .q-carousel__navigation--bottom{position:relative;bottom:8em}.action-button[data-v-4bede0de]{position:absolute;bottom:1.5em;right:1em;z-index:1}.play-button[data-v-4bede0de]{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%;pointer-events:none}.collapsable-sidebar[data-v-38458242]{@apply overflow-y-auto scroll-smooth flex-shrink-0 border-r border-neutral-plus-5 transition-all;}.dialog-title[data-v-529ed64e]{@apply bg-gray-very-light text-gray-default font-medium uppercase text-xs px-6 py-3 border-b border-neutral-plus-5 rounded-t-md;font-family:Roboto,sans-serif;letter-spacing:.05em;box-shadow:0 -4px 12px #00000040}.dialog-content[data-v-529ed64e]{box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}body .q-tooltip.interactive-tooltip{pointer-events:auto!important;background:#fff;color:inherit;box-shadow:0 0 10px 3px #0003}[class*=list-move],[class*=list-enter-active],[class*=".list-leave-active"]{transition:all .3s cubic-bezier(.55,0,.1,1)}[class*=list-leave-active]{position:absolute!important}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.fade-list-enter-from,.fade-list-leave-to{opacity:0;transform:scaleY(.01) translate(30px)}.fade-down-list-enter-from,.fade-down-list-leave-to{opacity:0;transform-origin:top;transform:translateY(30px)}.slide-enter-active,.slide-leave-active,.slide-right-enter-active,.slide-right-leave-active{transition:all .3s linear;width:100%}.slide-right-enter-active,.slide-enter-active{position:absolute!important;top:0}.slide-enter-from{right:-120%}.slide-enter-to{right:0}.slide-leave-to{left:-120%}.slide-leave-from{left:0}.slide-right-enter-from{left:-120%}.slide-right-enter-to{left:0}.slide-right-leave-to{right:-120%}.slide-right-leave-from{right:0}.list-move[data-v-6a1edcb9],.list-enter-active[data-v-6a1edcb9],.list-leave-active[data-v-6a1edcb9]{transition:all .5s ease}.list-enter-from[data-v-6a1edcb9],.list-leave-to[data-v-6a1edcb9]{opacity:0;transform:translate(2em)}.list-leave-active[data-v-6a1edcb9]{position:absolute}.category-toggle[data-v-042cd8be]{@apply text-xs font-bold rounded-lg border border-solid border-neutral-plus-5 px-2 py-1 mx-1 cursor-pointer flex items-center;}.category-toggle.has-visible-columns[data-v-042cd8be]{@apply text-white bg-blue-base;}[data-drop-zone] .resize-handle[data-v-519dc3ff]{position:absolute;top:0;right:-.45em;width:.9em;opacity:0;transition:all .3s}[data-drop-zone]:hover .resize-handle[data-v-519dc3ff]{opacity:1}.panel-tabs[data-v-5d23285c] .q-tab{justify-content:start!important;padding:0;@apply text-left py-2.5 px-2 rounded-lg hover:bg-neutral-plus-6;}.panel-tabs[data-v-5d23285c] .q-tab .q-focus-helper,.panel-tabs[data-v-5d23285c] .q-tab .q-tab__indicator{display:none}.panel-tabs[data-v-5d23285c] .q-tab .q-tab__content{@apply p-0;}.panel-tabs[data-v-5d23285c] .q-tab.q-tab--active{@apply text-white bg-blue-base;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -8,6 +8,7 @@
8
8
  :columns="columns"
9
9
  :loading="isLoadingList"
10
10
  :rows="pagedItems?.data || []"
11
+ binary-state-sort
11
12
  selection="multiple"
12
13
  :rows-per-page-options="rowsPerPageOptions"
13
14
  class="sticky-column sticky-header w-full h-full !border-0"
@@ -69,7 +70,10 @@ import { getItem, setItem } from '../../helpers';
69
70
  import { DragHandleIcon as RowResizeIcon } from '../../svg';
70
71
  import { HandleDraggable } from '../DragAndDrop';
71
72
  import { ActionVnode, mapSortBy } from '../index';
72
- import { ActionTableColumn, EmptyTableState, registerStickyScrolling, TableSummaryRow } from './index';
73
+ import ActionTableColumn from './ActionTableColumn.vue';
74
+ import EmptyTableState from './EmptyTableState.vue';
75
+ import { registerStickyScrolling } from './listHelpers';
76
+ import TableSummaryRow from './TableSummaryRow.vue';
73
77
 
74
78
  defineEmits(['update:quasar-pagination', 'update:selected-rows']);
75
79
  const props = defineProps({
@@ -33,8 +33,8 @@
33
33
  <script setup>
34
34
  import { computed } from 'vue';
35
35
  import { RenderVnode } from '../Utility';
36
+ import ActionMenu from './ActionMenu';
36
37
  import { TitleColumnFormat } from './Columns';
37
- import { ActionMenu } from './index';
38
38
 
39
39
  const props = defineProps({
40
40
  rowProps: {
@@ -40,7 +40,7 @@ import { computed } from 'vue';
40
40
  import { FlashMessages, remove } from '../../../helpers';
41
41
  import { ListItemDraggable } from '../../DragAndDrop';
42
42
  import { InfoDialog, ListTransition } from '../../Utility';
43
- import { ColumnListItem } from './index';
43
+ import ColumnListItem from './ColumnListItem';
44
44
 
45
45
  const emit = defineEmits(['close', 'update:hidden-column-names', 'update:title-column-names', 'update:sortable-columns']);
46
46
  const props = defineProps({
@@ -43,7 +43,8 @@
43
43
  </template>
44
44
  <script setup>
45
45
  import { computed } from 'vue';
46
- import { FilterableField, FilterFieldItem } from './index';
46
+ import FilterableField from './FilterableField';
47
+ import FilterFieldItem from './FilterFieldItem';
47
48
 
48
49
  const emit = defineEmits(['update:filter']);
49
50
  const props = defineProps({
@@ -15,7 +15,7 @@
15
15
  </template>
16
16
 
17
17
  <script setup>
18
- import { FieldLabel } from './index';
18
+ import FieldLabel from './FieldLabel';
19
19
 
20
20
  defineEmits(['update:model-value']);
21
21
  defineProps({
@@ -10,7 +10,7 @@
10
10
  </template>
11
11
 
12
12
  <script setup>
13
- import { LabeledInput } from './index';
13
+ import LabeledInput from './LabeledInput';
14
14
 
15
15
  defineEmits(['update:model-value']);
16
16
  const props = defineProps({
@@ -26,7 +26,7 @@
26
26
  <script setup>
27
27
  import { ref } from 'vue';
28
28
  import { fLocalizedDateTime } from '../../../../helpers';
29
- import { DateTimePicker } from './index';
29
+ import DateTimePicker from './DateTimePicker';
30
30
 
31
31
  const emit = defineEmits(['update:model-value']);
32
32
  const props = defineProps({
@@ -25,7 +25,7 @@
25
25
  <script setup>
26
26
  import { PencilIcon as EditIcon } from '@heroicons/vue/solid';
27
27
  import { fLocalizedDateTime } from '../../../../helpers';
28
- import { DateTimePicker } from './index';
28
+ import DateTimePicker from './DateTimePicker';
29
29
 
30
30
  const emit = defineEmits(['close', 'save', 'update:model-value']);
31
31
  defineProps({
@@ -9,7 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script setup>
12
- import { NumberField } from './index';
12
+ import NumberField from './NumberField';
13
13
 
14
14
  defineEmits(['update:model-value']);
15
15
  defineProps({
@@ -64,7 +64,7 @@
64
64
  import { onMounted } from 'vue';
65
65
  import { useMultiFileUpload } from '../../../../helpers';
66
66
  import { FilePreview } from '../../../Utility';
67
- import { FieldLabel } from './index';
67
+ import FieldLabel from './FieldLabel';
68
68
 
69
69
  const emit = defineEmits(['update:model-value']);
70
70
  const props = defineProps({
@@ -24,7 +24,8 @@
24
24
 
25
25
  <script setup>
26
26
  import { computed, ref, watch } from 'vue';
27
- import { SelectField, TextField } from './index';
27
+ import SelectField from './SelectField';
28
+ import TextField from './TextField';
28
29
 
29
30
  const emit = defineEmits(['update:model-value']);
30
31
  const props = defineProps({
@@ -8,7 +8,7 @@
8
8
  </template>
9
9
 
10
10
  <script setup>
11
- import { LabeledInput } from './index';
11
+ import LabeledInput from './LabeledInput';
12
12
 
13
13
  defineEmits(['update:model-value']);
14
14
  const props = defineProps({
@@ -23,7 +23,7 @@
23
23
  import { useDebounceFn } from '@vueuse/core';
24
24
  import { computed, nextTick, ref, watch } from 'vue';
25
25
  import { fNumber } from '../../../../helpers';
26
- import { FieldLabel } from './index';
26
+ import FieldLabel from './FieldLabel';
27
27
 
28
28
  const emit = defineEmits(['update:model-value', 'update']);
29
29
  const props = defineProps({
@@ -42,7 +42,7 @@ import { useDebounceFn } from '@vueuse/core';
42
42
  import { computed, ref, watch } from 'vue';
43
43
  import { fCurrency, fNumber, fPercent } from '../../../../helpers';
44
44
  import { PercentIcon } from '../../../../svg';
45
- import { NumberField } from './index';
45
+ import NumberField from './NumberField';
46
46
 
47
47
  const emit = defineEmits(['update:model-value']);
48
48
  const props = defineProps({
@@ -30,7 +30,7 @@
30
30
  <script setup>
31
31
  import { ref, watch } from 'vue';
32
32
  import { remove } from '../../../../helpers';
33
- import { SelectField } from './index';
33
+ import SelectField from './SelectField';
34
34
 
35
35
  const emit = defineEmits(['update:model-value']);
36
36
  const props = defineProps({
@@ -51,7 +51,7 @@
51
51
  import { onMounted } from 'vue';
52
52
  import { useSingleFileUpload } from '../../../../helpers';
53
53
  import { FilePreview } from '../../../Utility';
54
- import { FieldLabel } from './index';
54
+ import FieldLabel from './FieldLabel';
55
55
 
56
56
  const emit = defineEmits(['update:model-value']);
57
57
  const props = defineProps({
@@ -37,7 +37,8 @@
37
37
  </template>
38
38
 
39
39
  <script setup>
40
- import { FieldLabel, LabelValueBlock } from './index';
40
+ import FieldLabel from './FieldLabel';
41
+ import LabelValueBlock from './LabelValueBlock';
41
42
 
42
43
  defineEmits(['update:model-value', 'submit']);
43
44
  defineProps({
@@ -26,7 +26,7 @@
26
26
  <script setup>
27
27
  import { default as TinyMceEditor } from '@tinymce/tinymce-vue';
28
28
  import { apiKey } from '../../../../vendor/tinymce-config';
29
- import { FieldLabel } from './index';
29
+ import FieldLabel from './FieldLabel';
30
30
 
31
31
  defineEmits(['update:model-value']);
32
32
  defineProps({
@@ -33,7 +33,7 @@
33
33
  <script setup>
34
34
  import { computed } from 'vue';
35
35
  import { fLocalizedDateTime } from '../../helpers';
36
- import { AuditHistoryItemValue } from './index';
36
+ import AuditHistoryItemValue from './AuditHistoryItemValue';
37
37
 
38
38
  const props = defineProps({
39
39
  item: {
@@ -41,7 +41,8 @@
41
41
  import { ref, watch } from 'vue';
42
42
  import { XIcon as CloseIcon } from '../../svg';
43
43
  import { ContentDrawer } from '../Utility';
44
- import { PanelsDrawerPanels, PanelsDrawerTabs } from './index';
44
+ import PanelsDrawerPanels from './PanelsDrawerPanels';
45
+ import PanelsDrawerTabs from './PanelsDrawerTabs';
45
46
 
46
47
  defineEmits(['update:model-value', 'close']);
47
48
  const props = defineProps({
@@ -16,7 +16,7 @@
16
16
  </template>
17
17
  <script setup>
18
18
  import { ref } from 'vue';
19
- import { ConfirmDialog } from './index';
19
+ import ConfirmDialog from './ConfirmDialog';
20
20
 
21
21
  defineEmits(['confirm', 'close', 'update:input']);
22
22
  const props = defineProps({
@@ -12,7 +12,7 @@
12
12
  <script setup>
13
13
  import { ref } from 'vue';
14
14
  import { activeActionVnode } from '../../../helpers';
15
- import { RenderVnode } from './index';
15
+ import RenderVnode from './RenderVnode';
16
16
 
17
17
  const isSaving = ref(false);
18
18
  async function onConfirm(input) {
@@ -1,5 +1,5 @@
1
1
  import { ref, shallowRef, VNode } from "vue";
2
- import { FlashMessages } from "./index";
2
+ import { FlashMessages } from "./FlashMessages";
3
3
 
4
4
  interface ActionOptions {
5
5
  name?: string;
package/tsconfig.json CHANGED
@@ -34,7 +34,6 @@
34
34
  "src/**/*.ts",
35
35
  "src/**/*.vue",
36
36
  "src/**/*.svg",
37
- "package.json",
38
37
  "types/**/*.d.ts"
39
38
  ],
40
39
  "exclude": [
package/vite.config.js CHANGED
@@ -5,6 +5,9 @@ import svgLoader from 'vite-svg-loader';
5
5
 
6
6
  export default defineConfig({
7
7
  plugins: [vue(), svgLoader()],
8
+ resolve: {
9
+ extensions: ['.mjs', '.js', '.ts', '.mts', '.jsx', '.tsx', '.json', '.vue', '.svg']
10
+ },
8
11
  build: {
9
12
  lib: {
10
13
  entry: resolve(__dirname, './src/index.esm.js'),