@simsustech/quasar-components 0.11.19 → 0.11.21

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.11.21
4
+
5
+ ### Patch Changes
6
+
7
+ - 6dc180e: fix(components): use lower QDrawer width for small screens in Md3Layout
8
+
9
+ ## 0.11.20
10
+
11
+ ### Patch Changes
12
+
13
+ - 3c91d3e: fix(components): fix icons in PasswordChangeStepper
14
+
3
15
  ## 0.11.19
4
16
 
5
17
  ### Patch Changes
@@ -870,7 +870,11 @@ const __default__$8 = {
870
870
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
871
871
  ...__default__$8,
872
872
  props: {
873
- input: {}
873
+ input: { default: void 0 },
874
+ icons: { default: () => ({
875
+ visibility: "visibility",
876
+ visibilityOff: "visibility_off"
877
+ }) }
874
878
  },
875
879
  emits: ["requestOtp", "changePassword"],
876
880
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -974,8 +978,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
974
978
  form: { id: "passwordChangeForm" },
975
979
  email: email.value,
976
980
  input: _ctx.input,
981
+ icons: _ctx.icons,
977
982
  onSubmit: changePassword
978
- }, null, 8, ["email", "input"])
983
+ }, null, 8, ["email", "input", "icons"])
979
984
  ]),
980
985
  _: 1
981
986
  }, 8, ["title"])
package/dist/md3.js CHANGED
@@ -280,6 +280,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
280
280
  const drawerRef = ref();
281
281
  const leftDrawerOpen = ref(false);
282
282
  const miniState = ref(false);
283
+ const drawerWidth = computed(() => {
284
+ return $q.screen.lt.sm ? 300 : 360;
285
+ });
283
286
  watch(
284
287
  () => $q.screen.height,
285
288
  () => {
@@ -355,7 +358,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
355
358
  ref_key: "drawerRef",
356
359
  ref: drawerRef,
357
360
  "model-value": leftDrawerOpen.value,
358
- width: 360,
361
+ width: drawerWidth.value,
359
362
  "mini-width": 80,
360
363
  mini: miniState.value,
361
364
  "show-if-above": "",
@@ -391,7 +394,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
391
394
  renderSlot(_ctx.$slots, "drawer")
392
395
  ]),
393
396
  _: 3
394
- }, 8, ["model-value", "mini"]),
397
+ }, 8, ["model-value", "width", "mini"]),
395
398
  createVNode(_component_q_footer, { class: "h-80px lt-md" }, {
396
399
  default: withCtx(() => [
397
400
  renderSlot(_ctx.$slots, "footer")
@@ -3,6 +3,10 @@ export interface Props {
3
3
  input?: Omit<QInputProps, 'id' | 'name' | 'modelValue' | 'label' | 'rules' | 'type' | 'lazy-rules' | 'autofocus' | ('label' & {
4
4
  style?: Partial<CSSStyleDeclaration>;
5
5
  })>;
6
+ icons?: {
7
+ visibility: string;
8
+ visibilityOff: string;
9
+ };
6
10
  }
7
11
  declare const _default: import("vue").DefineComponent<Props, {
8
12
  variables: import("vue").Ref<{
@@ -41,5 +45,13 @@ declare const _default: import("vue").DefineComponent<Props, {
41
45
  email: string;
42
46
  done: () => void;
43
47
  }) => any) | undefined;
44
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
+ }>, {
49
+ icons: {
50
+ visibility: string;
51
+ visibilityOff: string;
52
+ };
53
+ input: Omit<QInputProps, "id" | "name" | "modelValue" | "label" | "rules" | "type" | "lazy-rules" | "autofocus" | ("label" & {
54
+ style?: Partial<CSSStyleDeclaration>;
55
+ })>;
56
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
57
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.11.19",
3
+ "version": "0.11.21",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -15,6 +15,7 @@
15
15
  :form="{ id: 'passwordChangeForm' }"
16
16
  :email="email"
17
17
  :input="input"
18
+ :icons="icons"
18
19
  @submit="changePassword"
19
20
  >
20
21
  </password-change-form>
@@ -65,8 +66,18 @@ export interface Props {
65
66
  | 'autofocus'
66
67
  | ('label' & { style?: Partial<CSSStyleDeclaration> })
67
68
  >
69
+ icons?: {
70
+ visibility: string
71
+ visibilityOff: string
72
+ }
68
73
  }
69
- defineProps<Props>()
74
+ withDefaults(defineProps<Props>(), {
75
+ input: undefined,
76
+ icons: () => ({
77
+ visibility: 'visibility',
78
+ visibilityOff: 'visibility_off'
79
+ })
80
+ })
70
81
  // const attrs = useAttrs();
71
82
  const emit = defineEmits<{
72
83
  (
@@ -20,7 +20,7 @@
20
20
  <q-drawer
21
21
  ref="drawerRef"
22
22
  :model-value="leftDrawerOpen"
23
- :width="360"
23
+ :width="drawerWidth"
24
24
  :mini-width="80"
25
25
  :mini="miniState"
26
26
  show-if-above
@@ -70,7 +70,7 @@
70
70
  </template>
71
71
 
72
72
  <script setup lang="ts">
73
- import { ref, onMounted, watch } from 'vue'
73
+ import { ref, onMounted, watch, computed } from 'vue'
74
74
  import { debounce, useQuasar } from 'quasar'
75
75
 
76
76
  import { QDrawer } from 'quasar'
@@ -89,6 +89,10 @@ const drawerRef = ref<QDrawer>()
89
89
  const leftDrawerOpen = ref(false)
90
90
  const miniState = ref(false)
91
91
 
92
+ const drawerWidth = computed(() => {
93
+ return $q.screen.lt.sm ? 300 : 360
94
+ })
95
+
92
96
  // Small screen: toggle leftDrawerOpen, large screen: toggle miniState
93
97
  // Prevent unresponsiveness with screen changes and drawer opened
94
98
  watch(