quasar-ui-danx 0.4.74 → 0.4.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.4.74",
3
+ "version": "0.4.77",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="dx-text-field">
3
3
  <FieldLabel
4
- v-if="!prependLabel"
4
+ v-if="!prependLabel && label"
5
5
  :label="label"
6
6
  :required="required"
7
7
  :required-label="requiredLabel"
@@ -1,7 +1,6 @@
1
1
  <template>
2
2
  <DialogLayout
3
3
  class="dx-info-dialog"
4
- v-bind="$props"
5
4
  @close="onClose"
6
5
  >
7
6
  <slot />
@@ -18,7 +17,10 @@
18
17
  <slot name="subtitle" />
19
18
  </template>
20
19
  <template #actions>
21
- <div class="flex-grow">
20
+ <div
21
+ v-if="!hideDone"
22
+ class="flex-grow"
23
+ >
22
24
  <QBtn
23
25
  :label="doneText"
24
26
  class="dx-dialog-button dx-dialog-button-done"
@@ -34,21 +36,18 @@
34
36
  </DialogLayout>
35
37
  </template>
36
38
 
37
- <script setup>
39
+ <script setup lang="ts">
38
40
  import DialogLayout from "./DialogLayout";
39
41
 
40
42
  const emit = defineEmits(["update:model-value", "close"]);
41
- defineProps({
42
- ...DialogLayout.props,
43
- disabled: Boolean,
44
- doneClass: {
45
- type: [String, Object],
46
- default: ""
47
- },
48
- doneText: {
49
- type: String,
50
- default: "Done"
51
- }
43
+ withDefaults(defineProps<{
44
+ disabled?: boolean;
45
+ hideDone?: boolean;
46
+ doneClass?: string | object;
47
+ doneText?: string;
48
+ }>(), {
49
+ doneClass: "",
50
+ doneText: "Done"
52
51
  });
53
52
 
54
53
  function onClose() {
@@ -51,9 +51,14 @@ export interface ListControlsOptions {
51
51
  isFieldOptionsEnabled?: boolean;
52
52
  }
53
53
 
54
+ export interface ListSortItem {
55
+ column: string;
56
+ order?: "asc" | "desc";
57
+ }
58
+
54
59
  export interface ListControlsPagination {
55
60
  __sort?: object[] | null;
56
- sort?: object[] | null;
61
+ sort?: ListSortItem[] | null;
57
62
  sortBy?: string | null;
58
63
  descending?: boolean;
59
64
  page?: number;
@@ -1,5 +1,5 @@
1
1
  export interface LabelPillWidgetProps {
2
2
  label?: string | number;
3
3
  size?: "xs" | "sm" | "md" | "lg";
4
- color?: "sky" | "green" | "red" | "amber" | "yellow" | "blue" | "slate" | "gray" | "none";
4
+ color?: "sky" | "green" | "red" | "amber" | "yellow" | "blue" | "slate" | "slate-mid" | "gray" | "none";
5
5
  }