@quoreadmin/ui 1.7.6 → 1.7.8

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.
Files changed (123) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index115.js +24 -18
  3. package/dist/index140.js +374 -352
  4. package/dist/index142.js +10 -5
  5. package/dist/index171.js +14 -14
  6. package/dist/index172.js +3 -3
  7. package/dist/index175.js +4 -4
  8. package/dist/index182.js +10 -10
  9. package/dist/index184.js +10 -10
  10. package/dist/index190.js +9 -9
  11. package/dist/index191.js +1 -1
  12. package/dist/index192.js +1 -1
  13. package/dist/index193.js +1 -1
  14. package/dist/index20.js +26 -19
  15. package/dist/index201.js +4 -4
  16. package/dist/index202.js +84 -29
  17. package/dist/index203.js +400 -109
  18. package/dist/index204.js +22 -36
  19. package/dist/index205.js +161 -26
  20. package/dist/index206.js +225 -33
  21. package/dist/index207.js +37 -9
  22. package/dist/index208.js +10 -19
  23. package/dist/index209.js +33 -10
  24. package/dist/index210.js +116 -10
  25. package/dist/index211.js +35 -50
  26. package/dist/index212.js +26 -43
  27. package/dist/index213.js +35 -3
  28. package/dist/index214.js +9 -39
  29. package/dist/index215.js +19 -21
  30. package/dist/index216.js +10 -88
  31. package/dist/index217.js +9 -406
  32. package/dist/index218.js +51 -22
  33. package/dist/index219.js +39 -157
  34. package/dist/index220.js +3 -19
  35. package/dist/index221.js +38 -19
  36. package/dist/index222.js +21 -22
  37. package/dist/index223.js +113 -185
  38. package/dist/index224.js +25 -57
  39. package/dist/index225.js +77 -31
  40. package/dist/index226.js +19 -39
  41. package/dist/index227.js +19 -126
  42. package/dist/index228.js +16 -34
  43. package/dist/index229.js +20 -80
  44. package/dist/index230.js +10 -10
  45. package/dist/index231.js +160 -19
  46. package/dist/index232.js +10 -10
  47. package/dist/index233.js +15 -13
  48. package/dist/index234.js +194 -156
  49. package/dist/index235.js +66 -224
  50. package/dist/index236.js +34 -37
  51. package/dist/index237.js +39 -9
  52. package/dist/index241.js +8 -8
  53. package/dist/index242.js +2 -2
  54. package/dist/index248.js +2 -2
  55. package/dist/index249.js +2 -2
  56. package/dist/index250.js +8 -8
  57. package/dist/index259.js +6 -6
  58. package/dist/index260.js +1 -1
  59. package/dist/index261.js +1 -1
  60. package/dist/index274.js +2 -2
  61. package/dist/index279.js +2 -54
  62. package/dist/index280.js +1 -1
  63. package/dist/index281.js +3 -26
  64. package/dist/index282.js +26 -21
  65. package/dist/index283.js +53 -21
  66. package/dist/index284.js +26 -16
  67. package/dist/index285.js +22 -17
  68. package/dist/index286.js +21 -22
  69. package/dist/index287.js +16 -2
  70. package/dist/index288.js +17 -3
  71. package/dist/index289.js +23 -27
  72. package/dist/index290.js +1518 -79
  73. package/dist/index291.js +386 -22
  74. package/dist/index292.js +2698 -902
  75. package/dist/index293.js +85 -21
  76. package/dist/index294.js +3770 -20
  77. package/dist/index295.js +59 -19
  78. package/dist/index296.js +15 -69
  79. package/dist/index297.js +84 -19
  80. package/dist/index298.js +201 -18
  81. package/dist/index299.js +246 -22
  82. package/dist/index300.js +78 -21
  83. package/dist/index301.js +22 -63
  84. package/dist/index302.js +909 -1492
  85. package/dist/index303.js +22 -386
  86. package/dist/index304.js +20 -2731
  87. package/dist/index305.js +19 -85
  88. package/dist/index306.js +58 -3759
  89. package/dist/index307.js +19 -60
  90. package/dist/index308.js +19 -15
  91. package/dist/index309.js +21 -83
  92. package/dist/index31.js +34 -27
  93. package/dist/index310.js +22 -202
  94. package/dist/index311.js +63 -246
  95. package/dist/index332.js +1 -1
  96. package/dist/index337.js +1 -1
  97. package/dist/index342.js +2 -2
  98. package/dist/index347.js +1 -1
  99. package/dist/index348.js +2 -2
  100. package/dist/index355.js +2 -2
  101. package/dist/index369.js +100 -16
  102. package/dist/index370.js +90 -100
  103. package/dist/index371.js +98 -91
  104. package/dist/index372.js +16 -97
  105. package/dist/index43.js +535 -501
  106. package/dist/index44.js +100 -84
  107. package/dist/index95.js +23 -15
  108. package/dist/src/components/data-filter/data-filter.d.ts +10 -0
  109. package/dist/src/components/data-list/data-list.d.ts +10 -0
  110. package/dist/src/components/date-picker/date-picker.d.ts +10 -0
  111. package/dist/src/components/date-picker/date-picker.stories.d.ts +20 -0
  112. package/dist/src/components/form-group/form-group.stories.d.ts +10 -0
  113. package/dist/src/components/grid/grid.stories.d.ts +28 -0
  114. package/dist/src/components/input/input.d.ts +10 -0
  115. package/dist/src/components/input/input.stories.d.ts +40 -0
  116. package/dist/src/components/list/list.stories.d.ts +9 -0
  117. package/dist/src/components/modal/modal.stories.d.ts +9 -0
  118. package/dist/src/components/room-details-popover/room-details-popover.d.ts +24 -7
  119. package/dist/src/components/select/select.d.ts +9 -0
  120. package/dist/src/components/select/select.stories.d.ts +27 -0
  121. package/dist/src/views/lists.vue.d.ts +20 -0
  122. package/dist/src/views/tables.vue.d.ts +10 -0
  123. package/package.json +1 -1
package/dist/index115.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as h, useSlots as b, ref as o, computed as u } from "vue";
2
- import w from "./index54.js";
3
- const f = "eye", v = "eye-slash", V = h({
1
+ import { defineComponent as b, useSlots as w, ref as o, computed as u } from "vue";
2
+ import P from "./index54.js";
3
+ const f = "eye", v = "eye-slash", q = b({
4
4
  name: "QInput",
5
5
  inheritAttrs: !1,
6
6
  props: {
@@ -68,11 +68,16 @@ const f = "eye", v = "eye-slash", V = h({
68
68
  iconPosition: {
69
69
  type: String,
70
70
  default: "right"
71
+ },
72
+ // Shows "*Required" indicator next to placeholder with different styling
73
+ required: {
74
+ type: Boolean,
75
+ default: !1
71
76
  }
72
77
  },
73
78
  emits: ["update:model-value", "update-type"],
74
- setup(e, { emit: d }) {
75
- const y = b(), i = o(null), l = o(!1), n = o(e.type === "password" ? f : ""), a = o(!e.expands), s = u(() => !!e.disabled), m = u(() => {
79
+ setup(e, { emit: i }) {
80
+ const y = w(), d = o(null), l = o(!1), n = o(e.type === "password" ? f : ""), a = o(!e.expands), s = u(() => !!e.disabled), m = u(() => {
76
81
  const t = n.value;
77
82
  return !!e.modelValue && !s.value && (c.value && e.iconPosition === "left" || !t);
78
83
  }), S = u(() => [
@@ -86,49 +91,50 @@ const f = "eye", v = "eye-slash", V = h({
86
91
  e.controlClass,
87
92
  { ["size-" + e.size]: e.size },
88
93
  { collapsed: !a.value }
89
- ]), p = u(() => [
94
+ ]), g = u(() => [
90
95
  "input",
91
96
  { [e.status]: e.status && !s.value },
92
97
  { [e.inputClass]: !!e.inputClass },
93
98
  { populated: !!e.modelValue }
94
- ]), c = u(() => !!y?.default), g = () => {
95
- const t = e.type === "password", C = e.type === "text" && n.value === v;
96
- (t || C) && r(), e.expands && i.value && !a.value && (a.value = !a.value, l.value = a.value, i.value.querySelector("input")?.focus());
97
- }, x = () => {
99
+ ]), c = u(() => !!y?.default), h = u(() => e.required && !e.modelValue && !l.value), x = () => {
100
+ const t = e.type === "password", p = e.type === "text" && n.value === v;
101
+ (t || p) && r(), e.expands && d.value && !a.value && (a.value = !a.value, l.value = a.value, d.value.querySelector("input")?.focus());
102
+ }, C = () => {
98
103
  l.value = !l.value, !e.modelValue && e.expands && (a.value = !1);
99
104
  }, r = () => {
100
105
  const t = e.type === "text" ? "password" : "text";
101
- n.value = t === "text" ? v : f, d("update-type", t);
106
+ n.value = t === "text" ? v : f, i("update-type", t);
102
107
  };
103
108
  return {
104
109
  // refs
105
- currentInput: i,
110
+ currentInput: d,
106
111
  focused: l,
107
112
  icon: n,
108
113
  isExpanded: a,
109
114
  // computed
110
115
  rootClasses: S,
111
- inputClasses: p,
116
+ inputClasses: g,
112
117
  isDisabled: s,
113
118
  showClearIcon: m,
114
119
  isSlotAvailable: c,
120
+ showCustomPlaceholder: h,
115
121
  // Methods
116
- onClickIcon: g,
117
- onFocusOut: x,
122
+ onClickIcon: x,
123
+ onFocusOut: C,
118
124
  togglePasswordVisibility: r,
119
125
  updateValue: (t) => {
120
- d(
126
+ i(
121
127
  "update:model-value",
122
128
  t.target.value
123
129
  );
124
130
  },
125
131
  // composables
126
- mq: w
132
+ mq: P
127
133
  };
128
134
  }
129
135
  });
130
136
  export {
131
137
  v as HIDE_PASSWORD_ICON,
132
138
  f as SHOW_PASSWORD_ICON,
133
- V as default
139
+ q as default
134
140
  };