@simsustech/quasar-components 0.11.6 → 0.11.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 (26) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{QSubmitButton.vue_vue_type_script_setup_true_lang-BAoq0ukq.js → QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js} +1 -1
  3. package/dist/authentication.js +21 -9
  4. package/dist/form.js +4 -4
  5. package/dist/general.js +15 -10
  6. package/dist/quasar-components.css +4 -1
  7. package/dist/types/ui/authentication/AccountsTable.vue.d.ts +3 -5
  8. package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +4 -4
  9. package/dist/types/ui/authentication/LoginButton.vue.d.ts +3 -3
  10. package/dist/types/ui/authentication/LoginForm.vue.d.ts +4 -4
  11. package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +4 -4
  12. package/dist/types/ui/authentication/RegisterForm.vue.d.ts +4 -4
  13. package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +4 -4
  14. package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +3 -3
  15. package/dist/types/ui/form/FilteredModelSelect.vue.d.ts +7 -6
  16. package/dist/types/ui/form/FormInput.vue.d.ts +18 -8
  17. package/dist/types/ui/form/FormItem.vue.d.ts +24 -11
  18. package/dist/types/ui/general/QDrawerList.vue.d.ts +11 -11
  19. package/dist/types/ui/general/QStyledCard.vue.d.ts +7 -7
  20. package/dist/types/ui/general/QStyledLayout.vue.d.ts +3 -3
  21. package/dist/types/ui/general/QSubmitButton.vue.d.ts +3 -3
  22. package/dist/types/ui/general/ResourcePage.vue.d.ts +7 -7
  23. package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +10 -5
  24. package/package.json +23 -23
  25. package/src/ui/form/FormItem.vue +7 -1
  26. package/src/ui/general/ResponsiveDialog.vue +6 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.11.8
4
+
5
+ ### Patch Changes
6
+
7
+ - cdb109c: feat(ResponsiveDialog): add padding prop to ResponsiveDialog
8
+ - 41749a7: fix(FormItem): add break-all class
9
+
10
+ ## 0.11.7
11
+
12
+ ### Patch Changes
13
+
14
+ - 5822b58: fix(components): add word-wrap to FormItem
15
+ - 0a500e8: feat(components): add closeIcon prop to ResponsiveDialog
16
+
3
17
  ## 0.11.6
4
18
 
5
19
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import { useQuasar, debounce, QBtn } from "quasar";
2
- import { ref, defineComponent, toRefs, useAttrs, watch, computed, openBlock, createBlock, mergeProps, unref, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
2
+ import { ref, defineComponent, toRefs, useAttrs, watch, computed, createBlock, openBlock, mergeProps, unref, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
3
3
  const lang$1 = {
4
4
  isoName: "en-US",
5
5
  submit: "Submit",
@@ -1,6 +1,6 @@
1
- import { useQuasar, QForm, QInput, QStep, QStepperNavigation, QStepper, QIcon, QBtn, QSlider, QItemSection, QItem, QList, QMenu, QTable, QTh, QTr, QSelect, QTd, QItemLabel } from "quasar";
2
- import { ref, defineComponent, watch, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, toRef, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, toRefs, createElementVNode } from "vue";
3
- import { _ as _sfc_main$d } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-BAoq0ukq.js";
1
+ import { useQuasar, QForm, QInput, QStepper, QStep, QStepperNavigation, QIcon, QBtn, QSlider, QList, QItem, QItemSection, QMenu, QTable, QTr, QTd, QItemLabel, QSelect, QTh } from "quasar";
2
+ import { ref, defineComponent, watch, computed, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, renderSlot, toRef, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, toRefs, createElementVNode } from "vue";
3
+ import { _ as _sfc_main$d } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js";
4
4
  const lang$1 = {
5
5
  isoName: "en-US",
6
6
  myAccount: "Account",
@@ -152,6 +152,18 @@ function assertString(input) {
152
152
  throw new TypeError("Expected a string but received a ".concat(invalidType));
153
153
  }
154
154
  }
155
+ function isRegExp(obj) {
156
+ return Object.prototype.toString.call(obj) === "[object RegExp]";
157
+ }
158
+ function checkHost(host, matches) {
159
+ for (var i = 0; i < matches.length; i++) {
160
+ var match = matches[i];
161
+ if (host === match || isRegExp(match) && match.test(host)) {
162
+ return true;
163
+ }
164
+ }
165
+ return false;
166
+ }
155
167
  function _typeof(o) {
156
168
  "@babel/helpers - typeof";
157
169
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
@@ -315,10 +327,10 @@ function isEmail(str, options) {
315
327
  var parts = str.split("@");
316
328
  var domain = parts.pop();
317
329
  var lower_domain = domain.toLowerCase();
318
- if (options.host_blacklist.includes(lower_domain)) {
330
+ if (options.host_blacklist.length > 0 && checkHost(lower_domain, options.host_blacklist)) {
319
331
  return false;
320
332
  }
321
- if (options.host_whitelist.length > 0 && !options.host_whitelist.includes(lower_domain)) {
333
+ if (options.host_whitelist.length > 0 && !checkHost(lower_domain, options.host_whitelist)) {
322
334
  return false;
323
335
  }
324
336
  var user = parts.join("@");
@@ -363,7 +375,10 @@ function isEmail(str, options) {
363
375
  }
364
376
  }
365
377
  }
366
- if (user[0] === '"') {
378
+ if (options.blacklisted_chars) {
379
+ if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), "g")) !== -1) return false;
380
+ }
381
+ if (user[0] === '"' && user[user.length - 1] === '"') {
367
382
  user = user.slice(1, user.length - 1);
368
383
  return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
369
384
  }
@@ -374,9 +389,6 @@ function isEmail(str, options) {
374
389
  return false;
375
390
  }
376
391
  }
377
- if (options.blacklisted_chars) {
378
- if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), "g")) !== -1) return false;
379
- }
380
392
  return true;
381
393
  }
382
394
  const __default__$a = {
package/dist/form.js CHANGED
@@ -1,6 +1,6 @@
1
- import { ref, defineComponent, useAttrs, withAsyncContext, watch, openBlock, createBlock, unref, mergeProps, normalizeProps, guardReactiveProps, withCtx, createVNode, createTextVNode, toDisplayString, toRefs, computed, useSlots, renderSlot, createCommentVNode, createSlots, renderList, resolveDirective, createElementBlock, Fragment, resolveDynamicComponent, createElementVNode, withDirectives } from "vue";
2
- import { useQuasar, QSelect, QItem, QItemSection, QItemLabel, QInput, QDate, QIcon, QTooltip, QBtn, QPopupProxy, QField, QEditor } from "quasar";
3
- import { f as flags, u as useLang$1 } from "./index-DnmJt2wP.js";
1
+ import { ref, defineComponent, useAttrs, withAsyncContext, watch, createBlock, openBlock, unref, mergeProps, normalizeProps, guardReactiveProps, withCtx, createVNode, createTextVNode, toDisplayString, toRefs, computed, useSlots, createCommentVNode, renderSlot, createSlots, renderList, resolveDirective, createElementVNode, withDirectives, createElementBlock, Fragment, resolveDynamicComponent } from "vue";
2
+ import { useQuasar, QSelect, QItem, QItemSection, QItemLabel, QInput, QField, QIcon, QTooltip, QPopupProxy, QDate, QBtn, QEditor } from "quasar";
3
+ import { u as useLang$1, f as flags } from "./index-DnmJt2wP.js";
4
4
  const lang$1 = {
5
5
  isoName: "en-US",
6
6
  yes: "Yes",
@@ -276,7 +276,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
276
276
  ]),
277
277
  _: 1
278
278
  }),
279
- createVNode(unref(QItemLabel), null, {
279
+ createVNode(unref(QItemLabel), { class: "break-all" }, {
280
280
  default: withCtx(() => [
281
281
  createTextVNode(toDisplayString(_ctx.modelValue || "-"), 1)
282
282
  ]),
package/dist/general.js CHANGED
@@ -1,7 +1,7 @@
1
- import { l as loadLang, u as useLang, _ as _sfc_main$5 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-BAoq0ukq.js";
2
- import { useQuasar, QCard, QCardSection, QCardActions, QDialog, QBtn, QToolbarTitle, QToolbar, QHeader, QPage, QPageContainer, QLayout, QSpace, QPageSticky, QSelect, QItemSection, QItemLabel, QItem, QList } from "quasar";
3
- import { defineComponent, watch, ref, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, normalizeClass, createCommentVNode, toRefs, createElementBlock, useAttrs, computed, mergeProps, resolveDynamicComponent, createTextVNode, toDisplayString } from "vue";
4
- import { f as flags, u as useLang$1 } from "./index-DnmJt2wP.js";
1
+ import { u as useLang, l as loadLang, _ as _sfc_main$5 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js";
2
+ import { useQuasar, QCard, QCardSection, QCardActions, QDialog, QLayout, QHeader, QToolbar, QBtn, QToolbarTitle, QPageContainer, QPage, QPageSticky, QSpace, QSelect, QItem, QItemSection, QItemLabel, QList } from "quasar";
3
+ import { defineComponent, watch, ref, createBlock, openBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, normalizeClass, createCommentVNode, toRefs, createElementBlock, useAttrs, computed, mergeProps, resolveDynamicComponent, createTextVNode, toDisplayString } from "vue";
4
+ import { u as useLang$1, f as flags } from "./index-DnmJt2wP.js";
5
5
  const _hoisted_1$2 = { class: "text-h6" };
6
6
  const _hoisted_2$1 = { class: "text-subtitle2" };
7
7
  const __default__$2 = {
@@ -84,7 +84,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
84
84
  ...__default__$1,
85
85
  props: {
86
86
  display: { type: Boolean },
87
- buttonType: {}
87
+ buttonType: { default: "submit" },
88
+ closeIcon: { default: "close" },
89
+ padding: { type: Boolean }
88
90
  },
89
91
  emits: ["submit"],
90
92
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -155,12 +157,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
155
157
  createVNode(_component_q_toolbar, null, {
156
158
  default: withCtx(() => [
157
159
  createVNode(_component_q_btn, {
158
- icon: "close",
160
+ icon: _ctx.closeIcon,
159
161
  flat: "",
160
162
  round: "",
161
163
  dense: "",
162
164
  onClick: close
163
- }),
165
+ }, null, 8, ["icon"]),
164
166
  createVNode(_component_q_toolbar_title, null, {
165
167
  default: withCtx(() => [
166
168
  renderSlot(_ctx.$slots, "title")
@@ -179,14 +181,17 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
179
181
  ]),
180
182
  _: 3
181
183
  }),
182
- createVNode(_component_q_page_container, { style: { "padding-bottom": "-50px" } }, {
184
+ createVNode(_component_q_page_container, { style: { "margin-bottom": "50px" } }, {
183
185
  default: withCtx(() => [
184
- createVNode(_component_q_page, { class: "q-pa-md q-pb-xl" }, {
186
+ createVNode(_component_q_page, {
187
+ padding: _ctx.padding,
188
+ class: "q-pb-xl"
189
+ }, {
185
190
  default: withCtx(() => [
186
191
  renderSlot(_ctx.$slots, "default")
187
192
  ]),
188
193
  _: 3
189
- })
194
+ }, 8, ["padding"])
190
195
  ]),
191
196
  _: 3
192
197
  })
@@ -33,4 +33,7 @@
33
33
  min-width: 16px;
34
34
  padding-left: 8px;
35
35
  padding-right: 0;
36
- }
36
+ }
37
+ .break-all {
38
+ word-break: break-all;
39
+ }
@@ -26,13 +26,13 @@ declare const _default: <T extends Account>(__VLS_props: NonNullable<Awaited<typ
26
26
  }) => any) | undefined;
27
27
  readonly "onUpdate:pagination"?: ((pagination: Pagination) => any) | undefined;
28
28
  readonly "onUpdate:criteria"?: ((criteria: Criteria) => any) | undefined;
29
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onAddRole" | "onRemoveRole" | "onUpdate:pagination" | "onUpdate:criteria"> & Partial<{}> & {
29
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onAddRole" | "onRemoveRole" | "onUpdate:pagination" | "onUpdate:criteria"> & {
30
30
  modelValue: T[];
31
31
  count: number;
32
32
  pagination: Pagination;
33
33
  mappedRoles: Record<string, string>;
34
34
  columns?: QTableColumn[];
35
- }> & import("vue").PublicProps;
35
+ } & Partial<{}>> & import("vue").PublicProps;
36
36
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
37
37
  attrs: any;
38
38
  slots: {};
@@ -48,9 +48,7 @@ declare const _default: <T extends Account>(__VLS_props: NonNullable<Awaited<typ
48
48
  role: string;
49
49
  }): void;
50
50
  };
51
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
- [key: string]: any;
53
- }> & {
51
+ }>) => import("vue").VNode & {
54
52
  __ctx?: Awaited<typeof __VLS_setup>;
55
53
  };
56
54
  export default _default;
@@ -6,7 +6,7 @@ export interface Props {
6
6
  style?: Partial<CSSStyleDeclaration>;
7
7
  })>;
8
8
  }
9
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
10
10
  variables: import("vue").Ref<{
11
11
  header: string;
12
12
  }, {
@@ -45,15 +45,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
45
45
  done: () => void;
46
46
  }) => any) | undefined;
47
47
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
48
- default?(_: {
48
+ default?: ((props: {
49
49
  submit: (args_0: {
50
50
  value?: string;
51
51
  done: () => void;
52
52
  }) => any;
53
- }): any;
53
+ }) => any) | undefined;
54
54
  }>;
55
55
  export default _default;
56
- type __VLS_WithTemplateSlots<T, S> = T & {
56
+ type __VLS_WithSlots<T, S> = T & {
57
57
  new (): {
58
58
  $slots: S;
59
59
  };
@@ -1,11 +1,11 @@
1
1
  export interface Props {
2
2
  withNetwork?: string;
3
3
  }
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
5
- icon?(_: {}): any;
4
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
5
+ icon?: ((props: {}) => any) | undefined;
6
6
  }>;
7
7
  export default _default;
8
- type __VLS_WithTemplateSlots<T, S> = T & {
8
+ type __VLS_WithSlots<T, S> = T & {
9
9
  new (): {
10
10
  $slots: S;
11
11
  };
@@ -7,7 +7,7 @@ export interface Props {
7
7
  style?: Partial<CSSStyleDeclaration>;
8
8
  })>;
9
9
  }
10
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
10
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
11
11
  variables: import("vue").Ref<{
12
12
  header: string;
13
13
  createAccount: string;
@@ -55,15 +55,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
55
55
  done: () => void;
56
56
  }) => any) | undefined;
57
57
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
58
- default?(_: {
58
+ default?: ((props: {
59
59
  submit: (args_0: {
60
60
  value?: string;
61
61
  done: () => void;
62
62
  }) => any;
63
- }): any;
63
+ }) => any) | undefined;
64
64
  }>;
65
65
  export default _default;
66
- type __VLS_WithTemplateSlots<T, S> = T & {
66
+ type __VLS_WithSlots<T, S> = T & {
67
67
  new (): {
68
68
  $slots: S;
69
69
  };
@@ -7,7 +7,7 @@ export interface Props {
7
7
  style?: Partial<CSSStyleDeclaration>;
8
8
  })>;
9
9
  }
10
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
10
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
11
11
  variables: import("vue").Ref<{}, {}>;
12
12
  functions: import("vue").Ref<{
13
13
  submit: (args_0: {
@@ -46,15 +46,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
46
46
  style?: Partial<CSSStyleDeclaration>;
47
47
  })>;
48
48
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
49
- default?(_: {
49
+ default?: ((props: {
50
50
  submit: (args_0: {
51
51
  value?: string;
52
52
  done: () => void;
53
53
  }) => any;
54
- }): any;
54
+ }) => any) | undefined;
55
55
  }>;
56
56
  export default _default;
57
- type __VLS_WithTemplateSlots<T, S> = T & {
57
+ type __VLS_WithSlots<T, S> = T & {
58
58
  new (): {
59
59
  $slots: S;
60
60
  };
@@ -12,7 +12,7 @@ export interface Props {
12
12
  style?: Partial<CSSStyleDeclaration>;
13
13
  })>;
14
14
  }
15
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
15
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
16
16
  variables: import("vue").Ref<{
17
17
  header: string;
18
18
  forgotPassword: string;
@@ -76,15 +76,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
76
76
  rules?: ((val: string) => boolean)[];
77
77
  }[];
78
78
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
79
- default?(_: {
79
+ default?: ((props: {
80
80
  submit: (args_0: {
81
81
  value?: string;
82
82
  done: () => void;
83
83
  }) => any;
84
- }): any;
84
+ }) => any) | undefined;
85
85
  }>;
86
86
  export default _default;
87
- type __VLS_WithTemplateSlots<T, S> = T & {
87
+ type __VLS_WithSlots<T, S> = T & {
88
88
  new (): {
89
89
  $slots: S;
90
90
  };
@@ -5,7 +5,7 @@ export interface Props {
5
5
  style?: Partial<CSSStyleDeclaration>;
6
6
  })>;
7
7
  }
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
8
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
9
9
  variables: import("vue").Ref<{}, {}>;
10
10
  functions: import("vue").Ref<{
11
11
  submit: (args_0: {
@@ -34,15 +34,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
34
34
  done: () => void;
35
35
  }) => any) | undefined;
36
36
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
37
- default?(_: {
37
+ default?: ((props: {
38
38
  submit: (args_0: {
39
39
  value?: string;
40
40
  done: () => void;
41
41
  }) => any;
42
- }): any;
42
+ }) => any) | undefined;
43
43
  }>;
44
44
  export default _default;
45
- type __VLS_WithTemplateSlots<T, S> = T & {
45
+ type __VLS_WithSlots<T, S> = T & {
46
46
  new (): {
47
47
  $slots: S;
48
48
  };
@@ -2,7 +2,7 @@ import type { RouteLocationRaw } from 'vue-router';
2
2
  export interface Props {
3
3
  userRoute: RouteLocationRaw;
4
4
  }
5
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
5
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
6
6
  variables: import("vue").Ref<{}, {}>;
7
7
  functions: import("vue").Ref<{}, {}>;
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -10,10 +10,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
10
10
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
11
11
  onSignOut?: (() => any) | undefined;
12
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
13
- default?(_: {}): any;
13
+ default?: ((props: {}) => any) | undefined;
14
14
  }>;
15
15
  export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
16
+ type __VLS_WithSlots<T, S> = T & {
17
17
  new (): {
18
18
  $slots: S;
19
19
  };
@@ -9,7 +9,7 @@ declare const _default: <T extends {
9
9
  done: (success?: boolean) => void;
10
10
  }) => any) | undefined;
11
11
  readonly "onUpdate:model-value"?: ((id: number) => any) | undefined;
12
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFilter" | "onUpdate:model-value"> & Partial<{}> & {
12
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFilter" | "onUpdate:model-value"> & {
13
13
  modelValue?: number | number[] | null;
14
14
  labelKey: string;
15
15
  labelFunction?: (option: unknown) => string;
@@ -21,10 +21,13 @@ declare const _default: <T extends {
21
21
  multiple?: boolean;
22
22
  label?: string;
23
23
  hint?: string;
24
- }> & import("vue").PublicProps;
24
+ } & Partial<{}>> & import("vue").PublicProps;
25
25
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
26
26
  attrs: any;
27
- slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
27
+ slots: {
28
+ [x: string]: ((props: any) => any) | undefined;
29
+ [x: number]: ((props: any) => any) | undefined;
30
+ };
28
31
  emit: {
29
32
  (e: "update:model-value", id: number): void;
30
33
  (e: "filter", { ids, searchPhrase, done }: {
@@ -33,9 +36,7 @@ declare const _default: <T extends {
33
36
  done: (success?: boolean) => void;
34
37
  }): void;
35
38
  };
36
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
- [key: string]: any;
38
- }> & {
39
+ }>) => import("vue").VNode & {
39
40
  __ctx?: Awaited<typeof __VLS_setup>;
40
41
  };
41
42
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { QInput, ValidationRule } from 'quasar';
1
2
  export type FormItems = 'name' | 'firstName' | 'lastName' | 'address' | 'city' | 'postalCode' | 'telephoneNumber';
2
3
  export interface Props {
3
4
  modelValue?: string | null;
@@ -5,17 +6,26 @@ export interface Props {
5
6
  label?: string;
6
7
  required?: boolean;
7
8
  }
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
11
- refs: {};
12
- rootEl: any;
9
+ declare const attrs: {
10
+ [x: string]: unknown;
13
11
  };
14
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const lang: import("vue").Ref<import("./lang").Language, import("./lang").Language>;
13
+ declare const validations: import("vue").Ref<ValidationRule[], ValidationRule[]>;
14
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
15
+ declare var __VLS_11: string | number, __VLS_12: any;
16
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
17
+ [K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
18
+ }>;
19
+ declare const __VLS_self: import("vue").DefineComponent<Props, {
20
+ QInput: typeof QInput;
21
+ attrs: typeof attrs;
22
+ lang: typeof lang;
23
+ validations: typeof validations;
24
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
25
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
27
  export default _default;
18
- type __VLS_WithTemplateSlots<T, S> = T & {
28
+ type __VLS_WithSlots<T, S> = T & {
19
29
  new (): {
20
30
  $slots: S;
21
31
  };
@@ -1,23 +1,36 @@
1
+ import { QItem, QItemLabel, QItemSection } from 'quasar';
1
2
  export type FormItems = 'name' | 'firstName' | 'lastName' | 'address' | 'city' | 'postalCode';
2
3
  export interface Props {
3
4
  modelValue?: string;
4
5
  label?: string;
5
6
  field?: FormItems;
6
7
  }
7
- declare function __VLS_template(): {
8
- attrs: Partial<{}>;
9
- slots: {
10
- avatar?(_: {}): any;
11
- side?(_: {}): any;
12
- };
13
- refs: {};
14
- rootEl: any;
8
+ declare const attrs: {
9
+ [x: string]: unknown;
15
10
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const slots: Readonly<{
12
+ [name: string]: import("vue").Slot<any> | undefined;
13
+ }>;
14
+ declare const lang: import("vue").Ref<import("./lang").Language, import("./lang").Language>;
15
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
16
+ declare var __VLS_10: {}, __VLS_28: {};
17
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
18
+ avatar?: (props: typeof __VLS_10) => any;
19
+ } & {
20
+ side?: (props: typeof __VLS_28) => any;
21
+ }>;
22
+ declare const __VLS_self: import("vue").DefineComponent<Props, {
23
+ QItem: typeof QItem;
24
+ QItemLabel: typeof QItemLabel;
25
+ QItemSection: typeof QItemSection;
26
+ attrs: typeof attrs;
27
+ slots: typeof slots;
28
+ lang: typeof lang;
29
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
30
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
32
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
33
+ type __VLS_WithSlots<T, S> = T & {
21
34
  new (): {
22
35
  $slots: S;
23
36
  };
@@ -1,16 +1,16 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- default?(_: {}): any;
5
- };
6
- refs: {};
7
- rootEl: any;
8
- };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1
+ import { QList } from 'quasar';
2
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
3
+ declare var __VLS_6: {};
4
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
5
+ default?: (props: typeof __VLS_6) => any;
6
+ }>;
7
+ declare const __VLS_self: import("vue").DefineComponent<{}, {
8
+ QList: typeof QList;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
10
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
12
  export default _default;
13
- type __VLS_WithTemplateSlots<T, S> = T & {
13
+ type __VLS_WithSlots<T, S> = T & {
14
14
  new (): {
15
15
  $slots: S;
16
16
  };
@@ -2,18 +2,18 @@ import { QCardActionsProps } from 'quasar';
2
2
  export interface Props {
3
3
  actions?: QCardActionsProps;
4
4
  }
5
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
5
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
6
6
  variables: import("vue").Ref<{}, {}>;
7
7
  functions: import("vue").Ref<{}, {}>;
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
9
- image?(_: {}): any;
10
- title?(_: {}): any;
11
- subtitle?(_: {}): any;
12
- default?(_: {}): any;
13
- actions?(_: {}): any;
9
+ image?: ((props: {}) => any) | undefined;
10
+ title?: ((props: {}) => any) | undefined;
11
+ subtitle?: ((props: {}) => any) | undefined;
12
+ default?: ((props: {}) => any) | undefined;
13
+ actions?: ((props: {}) => any) | undefined;
14
14
  }>;
15
15
  export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
16
+ type __VLS_WithSlots<T, S> = T & {
17
17
  new (): {
18
18
  $slots: S;
19
19
  };
@@ -1,14 +1,14 @@
1
1
  export interface Props {
2
2
  title: string;
3
3
  }
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
4
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
5
5
  variables: import("vue").Ref<{}, {}>;
6
6
  functions: import("vue").Ref<{}, {}>;
7
7
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
8
- leftDrawerItems?(_: {}): any;
8
+ leftDrawerItems?: ((props: {}) => any) | undefined;
9
9
  }>;
10
10
  export default _default;
11
- type __VLS_WithTemplateSlots<T, S> = T & {
11
+ type __VLS_WithSlots<T, S> = T & {
12
12
  new (): {
13
13
  $slots: S;
14
14
  };
@@ -5,7 +5,7 @@ export interface Props {
5
5
  isNextButton?: boolean;
6
6
  color?: string;
7
7
  }
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
9
  submit: (args_0: {
10
10
  value?: string;
11
11
  done: () => void;
@@ -20,10 +20,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
20
20
  color: string;
21
21
  loading: boolean;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
23
- default?(_: {}): any;
23
+ default?: ((props: {}) => any) | undefined;
24
24
  }>;
25
25
  export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
26
+ type __VLS_WithSlots<T, S> = T & {
27
27
  new (): {
28
28
  $slots: S;
29
29
  };
@@ -4,7 +4,7 @@ export interface Props {
4
4
  topBarFab?: boolean;
5
5
  topBarShrink?: boolean;
6
6
  }
7
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
8
  update: (args_0: {
9
9
  data?: unknown;
10
10
  done: (success?: boolean) => void;
@@ -28,14 +28,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
28
28
  topBarFab: boolean;
29
29
  topBarShrink: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
31
- default?(_: {}): any;
32
- fab?(_: {}): any;
33
- header?(_: {}): any;
34
- "top-bar-buttons"?(_: {}): any;
35
- "header-side"?(_: {}): any;
31
+ default?: ((props: {}) => any) | undefined;
32
+ fab?: ((props: {}) => any) | undefined;
33
+ header?: ((props: {}) => any) | undefined;
34
+ 'top-bar-buttons'?: ((props: {}) => any) | undefined;
35
+ 'header-side'?: ((props: {}) => any) | undefined;
36
36
  }>;
37
37
  export default _default;
38
- type __VLS_WithTemplateSlots<T, S> = T & {
38
+ type __VLS_WithSlots<T, S> = T & {
39
39
  new (): {
40
40
  $slots: S;
41
41
  };
@@ -1,8 +1,10 @@
1
1
  export interface Props {
2
2
  display?: boolean;
3
3
  buttonType?: 'submit' | 'send';
4
+ closeIcon?: string;
5
+ padding?: boolean;
4
6
  }
5
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {
7
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
6
8
  variables: import("vue").Ref<{}, {}>;
7
9
  functions: import("vue").Ref<{
8
10
  open: () => void | undefined;
@@ -25,12 +27,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Pr
25
27
  onSubmit?: ((args_0: {
26
28
  done: (success?: boolean) => void;
27
29
  }) => any) | undefined;
28
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
29
- title?(_: {}): any;
30
- default?(_: {}): any;
30
+ }>, {
31
+ buttonType: "submit" | "send";
32
+ closeIcon: string;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
34
+ title?: ((props: {}) => any) | undefined;
35
+ default?: ((props: {}) => any) | undefined;
31
36
  }>;
32
37
  export default _default;
33
- type __VLS_WithTemplateSlots<T, S> = T & {
38
+ type __VLS_WithSlots<T, S> = T & {
34
39
  new (): {
35
40
  $slots: S;
36
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.11.6",
3
+ "version": "0.11.8",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -46,37 +46,37 @@
46
46
  },
47
47
  "bugs": "https://github.com/simsusech/quasar-components/issues",
48
48
  "dependencies": {
49
- "validator": "^13.12.0"
49
+ "validator": "^13.15.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "quasar": "^2.17.4"
52
+ "quasar": "^2.18.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@types/node": "^22.10.0",
56
- "@types/validator": "^13.12.2",
57
- "@types/ws": "^8.5.13",
58
- "@typescript-eslint/eslint-plugin": "^8.16.0",
59
- "@typescript-eslint/parser": "^8.16.0",
60
- "@vitejs/plugin-vue": "^5.2.1",
55
+ "@types/node": "^22.14.0",
56
+ "@types/validator": "^13.12.3",
57
+ "@types/ws": "^8.18.1",
58
+ "@typescript-eslint/eslint-plugin": "^8.29.0",
59
+ "@typescript-eslint/parser": "^8.29.0",
60
+ "@vitejs/plugin-vue": "^5.2.3",
61
61
  "@vue/server-renderer": "^3.5.13",
62
- "eslint": "^9.15.0",
63
- "eslint-config-prettier": "^9.1.0",
64
- "eslint-plugin-prettier": "^5.2.1",
62
+ "eslint": "^9.24.0",
63
+ "eslint-config-prettier": "^10.1.1",
64
+ "eslint-plugin-prettier": "^5.2.6",
65
65
  "eslint-plugin-prettier-vue": "^5.0.0",
66
- "eslint-plugin-vue": "^9.31.0",
67
- "glob": "^11.0.0",
68
- "local-pkg": "^0.5.1",
69
- "prettier": "^3.4.1",
70
- "quasar": "^2.17.4",
66
+ "eslint-plugin-vue": "^10.0.0",
67
+ "glob": "^11.0.1",
68
+ "local-pkg": "^1.1.1",
69
+ "prettier": "^3.5.3",
70
+ "quasar": "^2.18.1",
71
71
  "rimraf": "^6.0.1",
72
- "typescript": "5.6.3",
73
- "typescript-eslint": "^8.16.0",
74
- "unplugin-vue-components": "^0.27.5",
75
- "vite": "^6.0.1",
72
+ "typescript": "5.8.3",
73
+ "typescript-eslint": "^8.29.0",
74
+ "unplugin-vue-components": "^28.4.1",
75
+ "vite": "^6.2.5",
76
76
  "vue": "^3.5.13",
77
- "vue-eslint-parser": "^9.4.3",
77
+ "vue-eslint-parser": "^10.1.3",
78
78
  "vue-router": "^4.5.0",
79
- "vue-tsc": "^2.1.10"
79
+ "vue-tsc": "^2.2.8"
80
80
  },
81
81
  "scripts": {
82
82
  "build:plugin": "vite build",
@@ -7,7 +7,7 @@
7
7
  <q-item-label overline>
8
8
  {{ label ? label : field ? lang.fields[field] : '' }}
9
9
  </q-item-label>
10
- <q-item-label>
10
+ <q-item-label class="break-all">
11
11
  {{ modelValue || '-' }}
12
12
  </q-item-label>
13
13
  </q-item-section>
@@ -48,3 +48,9 @@ watch($q.lang, () => {
48
48
  loadLang($q.lang.isoName)
49
49
  })
50
50
  </script>
51
+
52
+ <style>
53
+ .break-all {
54
+ word-break: break-all;
55
+ }
56
+ </style>
@@ -8,7 +8,7 @@
8
8
  >
9
9
  <q-header class="bg-primary">
10
10
  <q-toolbar>
11
- <q-btn icon="close" flat round dense @click="close" />
11
+ <q-btn :icon="closeIcon" flat round dense @click="close" />
12
12
  <q-toolbar-title>
13
13
  <slot name="title" />
14
14
  </q-toolbar-title>
@@ -21,8 +21,8 @@
21
21
  </q-toolbar>
22
22
  </q-header>
23
23
 
24
- <q-page-container style="padding-bottom: -50px">
25
- <q-page class="q-pa-md q-pb-xl">
24
+ <q-page-container style="margin-bottom: 50px">
25
+ <q-page :padding="padding" class="q-pb-xl">
26
26
  <slot></slot>
27
27
  </q-page>
28
28
  </q-page-container>
@@ -45,8 +45,10 @@ import QSubmitButton from './QSubmitButton.vue'
45
45
  export interface Props {
46
46
  display?: boolean
47
47
  buttonType?: 'submit' | 'send'
48
+ closeIcon?: string
49
+ padding?: boolean
48
50
  }
49
- defineProps<Props>()
51
+ withDefaults(defineProps<Props>(), { buttonType: 'submit', closeIcon: 'close' })
50
52
  // const attrs = useAttrs();
51
53
  const emit = defineEmits<{
52
54
  (