@simsustech/quasar-components 0.8.0 → 0.9.0

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/dist/form.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref, defineComponent, useAttrs, withAsyncContext, watch, openBlock, createBlock, unref, mergeProps, normalizeProps, guardReactiveProps, withCtx, createVNode, createTextVNode, toDisplayString, computed, useSlots, renderSlot, createCommentVNode, toRefs, resolveDirective, createElementBlock, Fragment, renderList, resolveDynamicComponent, createElementVNode, withDirectives, createSlots } from "vue";
1
+ import { ref, defineComponent, useAttrs, withAsyncContext, watch, openBlock, createBlock, unref, mergeProps, normalizeProps, guardReactiveProps, withCtx, createVNode, createTextVNode, toDisplayString, computed, useSlots, renderSlot, createCommentVNode, toRefs, resolveDirective, createElementBlock, Fragment, renderList, resolveDynamicComponent, createElementVNode, withDirectives, onMounted, createSlots } from "vue";
2
2
  import { useQuasar, QSelect, QItem, QItemSection, QItemLabel, QInput, QDate, QIcon, QTooltip, QBtn, QPopupProxy, QField, QEditor } from "quasar";
3
3
  import { e as enUs, n as nl, u as useLang$1 } from "./en-US-BEeILC7o.js";
4
4
  const lang$1 = {
@@ -37,6 +37,7 @@ const lang$1 = {
37
37
  }
38
38
  },
39
39
  datePicker: {
40
+ date: "Date",
40
41
  placeholder: "YYYY/MM/DD",
41
42
  YYYY: "YYYY",
42
43
  MM: "MM",
@@ -49,6 +50,9 @@ const lang$1 = {
49
50
  currency: "Currency",
50
51
  EUR: "Euro",
51
52
  USD: "USD"
53
+ },
54
+ locale: {
55
+ locale: "Locale"
52
56
  }
53
57
  };
54
58
  const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -59,7 +63,7 @@ var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: f
59
63
  const lang = ref(lang$1);
60
64
  const locales = /* @__PURE__ */ Object.assign({
61
65
  "./en-US.ts": () => Promise.resolve().then(() => enUS),
62
- "./nl.ts": () => import("./nl-CZsfRA99.js")
66
+ "./nl.ts": () => import("./nl-DvM_wB4u.js")
63
67
  });
64
68
  const useLang = () => {
65
69
  return lang;
@@ -485,14 +489,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
485
489
  "model-value": unref(modelValue),
486
490
  "bottom-slots": "",
487
491
  rules: validations.value,
488
- label: _ctx.label,
492
+ label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
489
493
  "stack-label": ""
490
494
  }, {
491
495
  control: withCtx(() => [
492
496
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(format).split("-"), (part, index) => {
493
497
  return openBlock(), createBlock(resolveDynamicComponent(unref(QInput)), mergeProps({
494
498
  key: part,
495
- borderless: ""
499
+ borderless: "",
500
+ ref_for: true
496
501
  }, dateProps.value[part]), {
497
502
  after: withCtx(() => [
498
503
  index < 2 ? (openBlock(), createElementBlock("a", _hoisted_1$1, "-")) : createCommentVNode("", true)
@@ -794,12 +799,14 @@ const _hoisted_2 = { key: 1 };
794
799
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
795
800
  __name: "LocaleSelect",
796
801
  props: {
797
- modelValue: {}
802
+ modelValue: {},
803
+ required: { type: Boolean }
798
804
  },
799
805
  setup(__props) {
800
806
  const props = __props;
801
807
  const { modelValue } = toRefs(props);
802
808
  const attrs = useAttrs();
809
+ const lang2 = useLang();
803
810
  const flagsLang = useLang$1();
804
811
  const languageOptions = [
805
812
  {
@@ -818,6 +825,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
818
825
  return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
819
826
  options: languageOptions,
820
827
  "model-value": unref(modelValue),
828
+ label: `${unref(lang2).locale.locale}${_ctx.required ? "*" : ""}`,
821
829
  "emit-value": "",
822
830
  "map-options": ""
823
831
  }), {
@@ -878,7 +886,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
878
886
  }, 1040)) : createCommentVNode("", true)
879
887
  ]),
880
888
  _: 1
881
- }, 16, ["model-value"]);
889
+ }, 16, ["model-value", "label"]);
882
890
  };
883
891
  }
884
892
  });
@@ -890,7 +898,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
890
898
  props: {
891
899
  modelValue: {},
892
900
  labelKey: {},
901
+ labelFunction: { type: Function },
893
902
  valueKey: {},
903
+ extraFields: {},
894
904
  filteredOptions: {},
895
905
  required: { type: Boolean },
896
906
  onFilter: {},
@@ -904,14 +914,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
904
914
  const attrs = useAttrs();
905
915
  const emit = __emit;
906
916
  const lang2 = useLang();
907
- const { modelValue, onFilter, filteredOptions, labelKey, valueKey } = toRefs(props);
917
+ const {
918
+ modelValue,
919
+ onFilter,
920
+ filteredOptions,
921
+ labelKey,
922
+ valueKey,
923
+ labelFunction,
924
+ extraFields
925
+ } = toRefs(props);
908
926
  const options = computed(() => {
909
927
  var _a;
910
928
  if (filteredOptions.value.length) {
911
- return (_a = filteredOptions.value) == null ? void 0 : _a.map((option) => ({
912
- label: option[labelKey.value],
913
- value: option[valueKey.value || "id"]
914
- }));
929
+ return (_a = filteredOptions.value) == null ? void 0 : _a.map((option) => {
930
+ var _a2;
931
+ return {
932
+ label: labelFunction.value ? labelFunction.value(option) : option[labelKey.value],
933
+ value: option[valueKey.value || "id"],
934
+ extraFields: (_a2 = extraFields.value) == null ? void 0 : _a2.reduce(
935
+ (result, key) => {
936
+ if (option.hasOwnProperty(key)) {
937
+ result[key] = option[key];
938
+ }
939
+ return result;
940
+ },
941
+ {}
942
+ )
943
+ };
944
+ });
915
945
  }
916
946
  return [];
917
947
  });
@@ -947,6 +977,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
947
977
  }
948
978
  });
949
979
  });
980
+ onMounted(() => {
981
+ if (!options.value.length)
982
+ emit("filter", {
983
+ ids: selectedIds.value,
984
+ searchPhrase: "",
985
+ done: () => {
986
+ }
987
+ });
988
+ });
950
989
  return (_ctx, _cache) => {
951
990
  return openBlock(), createBlock(unref(QSelect), mergeProps({
952
991
  ref_key: "selectRef",
@@ -973,11 +1012,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
973
1012
  ]),
974
1013
  _: 2
975
1014
  }, [
976
- renderList(Object.keys(_ctx.$slots), (slot, index) => {
1015
+ renderList(_ctx.$slots, (_, slot) => {
977
1016
  return {
978
1017
  name: slot,
979
1018
  fn: withCtx((scope) => [
980
- renderSlot(_ctx.$slots, slot, { scope })
1019
+ renderSlot(_ctx.$slots, slot, normalizeProps(guardReactiveProps(scope || {})))
981
1020
  ])
982
1021
  };
983
1022
  })
package/dist/general.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { l as loadLang, u as useLang, _ as _sfc_main$5 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-DAnZaTMl.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, useAttrs, computed, mergeProps, createTextVNode, toDisplayString } from "vue";
2
+ import { useQuasar, QCard, QCardSection, QCardActions, QDialog, QBtn, QToolbarTitle, QToolbar, QHeader, QPage, QPageContainer, QLayout, QPageSticky, QSelect, QItemSection, QItemLabel, QItem, QList } from "quasar";
3
+ import { defineComponent, watch, ref, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, normalizeClass, createCommentVNode, useSlots, toRefs, useAttrs, computed, mergeProps, createTextVNode, toDisplayString } from "vue";
4
4
  import { e as enUs, n as nl } from "./en-US-BEeILC7o.js";
5
5
  const _hoisted_1$1 = { class: "text-h6" };
6
6
  const _hoisted_2 = { class: "text-subtitle2" };
@@ -207,11 +207,12 @@ const __default__ = {
207
207
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
208
208
  ...__default__,
209
209
  props: {
210
- type: { default: "create" },
211
- disabled: { type: Boolean, default: false }
210
+ type: {},
211
+ disabled: { type: Boolean }
212
212
  },
213
213
  emits: ["create", "update"],
214
214
  setup(__props, { expose: __expose, emit: __emit }) {
215
+ const slots = useSlots();
215
216
  const props = __props;
216
217
  const emit = __emit;
217
218
  const $q = useQuasar();
@@ -221,7 +222,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
221
222
  watch($q.lang, (val) => {
222
223
  loadLang($q.lang.isoName);
223
224
  });
224
- const { disabled } = toRefs(props);
225
+ const { type, disabled } = toRefs(props);
226
+ if (!type.value && !slots.fab)
227
+ type.value = "create";
225
228
  const done = () => "";
226
229
  const create = (evt) => disabled.value ? () => {
227
230
  } : emit("create", { done });
@@ -240,7 +243,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
240
243
  return (_ctx, _cache) => {
241
244
  const _component_q_btn = QBtn;
242
245
  const _component_q_toolbar_title = QToolbarTitle;
243
- const _component_q_space = QSpace;
244
246
  const _component_q_toolbar = QToolbar;
245
247
  const _component_q_page_sticky = QPageSticky;
246
248
  const _component_q_page = QPage;
@@ -258,7 +260,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
258
260
  class: normalizeClass(["shadow-2", { "bg-dark": unref($q).dark.isActive, "bg-white": !unref($q).dark.isActive }])
259
261
  }, {
260
262
  default: withCtx(() => [
261
- _ctx.type === "create" ? (openBlock(), createBlock(_component_q_btn, {
263
+ renderSlot(_ctx.$slots, "fab"),
264
+ unref(type) === "create" ? (openBlock(), createBlock(_component_q_btn, {
262
265
  key: 0,
263
266
  disable: unref(disabled),
264
267
  flat: "",
@@ -269,7 +272,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
269
272
  icon: "add",
270
273
  class: "q-mr-sm bg-primary text-white",
271
274
  onClick: create
272
- }, null, 8, ["disable"])) : (openBlock(), createBlock(_component_q_btn, {
275
+ }, null, 8, ["disable"])) : unref(type) === "update" ? (openBlock(), createBlock(_component_q_btn, {
273
276
  key: 1,
274
277
  disable: unref(disabled),
275
278
  flat: "",
@@ -280,14 +283,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
280
283
  icon: "edit",
281
284
  class: "q-mr-sm bg-primary text-white",
282
285
  onClick: update
283
- }, null, 8, ["disable"])),
284
- createVNode(_component_q_toolbar_title, { shrink: "" }, {
286
+ }, null, 8, ["disable"])) : createCommentVNode("", true),
287
+ createVNode(_component_q_toolbar_title, null, {
285
288
  default: withCtx(() => [
286
289
  renderSlot(_ctx.$slots, "header")
287
290
  ]),
288
291
  _: 3
289
292
  }),
290
- createVNode(_component_q_space)
293
+ renderSlot(_ctx.$slots, "header-side")
291
294
  ]),
292
295
  _: 3
293
296
  }, 8, ["class"])
@@ -34,6 +34,7 @@ const lang = {
34
34
  }
35
35
  },
36
36
  datePicker: {
37
+ date: "Datum",
37
38
  placeholder: "JJJJ/MM/DD",
38
39
  YYYY: "JJJJ",
39
40
  MM: "MM",
@@ -46,6 +47,9 @@ const lang = {
46
47
  currency: "Valuta",
47
48
  EUR: "Euro",
48
49
  USD: "USD"
50
+ },
51
+ locale: {
52
+ locale: "Land"
49
53
  }
50
54
  };
51
55
  export {
@@ -85,6 +85,22 @@ const lang = {
85
85
  },
86
86
  verification: {
87
87
  slider: "Sleep a.u.b. het onderstaande bolletje helemaal naar rechts."
88
+ },
89
+ account: {
90
+ title: "Accounts",
91
+ fields: {
92
+ name: "Naam",
93
+ email: "Email",
94
+ roles: "Rollen"
95
+ },
96
+ labels: {
97
+ addRole: "Rol toevoegen",
98
+ removeRole: "Rol verwijderen"
99
+ },
100
+ messages: {
101
+ addRole: ({ email }) => `Selecteer de rol die u wilt toevoegen aan ${email}.`,
102
+ removeRole: ({ email }) => `Selecteer de rol die u wilt verwijderen van ${email}.`
103
+ }
88
104
  }
89
105
  };
90
106
  export {
@@ -10,4 +10,5 @@ export { default as VerificationSlider } from './VerificationSlider.vue';
10
10
  export { default as ConsentList } from './ConsentList.vue';
11
11
  export { default as UserMenuButton } from './UserMenuButton.vue';
12
12
  export { default as LoginButton } from './LoginButton.vue';
13
+ export { default as AccountsTable } from './AccountsTable.vue';
13
14
  export { useLang, loadLang } from './lang/index.js';
@@ -86,6 +86,26 @@ export interface Language {
86
86
  verification: {
87
87
  slider: string;
88
88
  };
89
+ account: {
90
+ title: string;
91
+ fields: {
92
+ name: string;
93
+ email: string;
94
+ roles: string;
95
+ };
96
+ labels: {
97
+ addRole: string;
98
+ removeRole: string;
99
+ };
100
+ messages: {
101
+ addRole: ({ email }: {
102
+ email: string;
103
+ }) => string;
104
+ removeRole: ({ email }: {
105
+ email: string;
106
+ }) => string;
107
+ };
108
+ };
89
109
  }
90
110
  import type { Ref } from 'vue';
91
111
  export declare const lang: Ref<{
@@ -176,6 +196,26 @@ export declare const lang: Ref<{
176
196
  verification: {
177
197
  slider: string;
178
198
  };
199
+ account: {
200
+ title: string;
201
+ fields: {
202
+ name: string;
203
+ email: string;
204
+ roles: string;
205
+ };
206
+ labels: {
207
+ addRole: string;
208
+ removeRole: string;
209
+ };
210
+ messages: {
211
+ addRole: ({ email }: {
212
+ email: string;
213
+ }) => string;
214
+ removeRole: ({ email }: {
215
+ email: string;
216
+ }) => string;
217
+ };
218
+ };
179
219
  }>;
180
220
  export declare const defineLang: (lang: Language) => Language;
181
221
  export declare const useLang: () => Ref<Language>;
@@ -2,7 +2,7 @@ import { QDateProps, QuasarLanguageCodes } from 'quasar';
2
2
  export interface Props {
3
3
  modelValue: string | null;
4
4
  format?: 'YYYY-MM-DD' | 'DD-MM-YYYY' | 'MM-DD-YYYY';
5
- locale?: QuasarLanguageCodes;
5
+ locale?: QuasarLanguageCodes[number];
6
6
  label?: string;
7
7
  required?: boolean;
8
8
  clearable?: boolean;
@@ -24,9 +24,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
24
24
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
25
25
  }, {
26
26
  label: string;
27
- date: Partial<QDateProps>;
28
27
  format: "YYYY-MM-DD" | "DD-MM-YYYY" | "MM-DD-YYYY";
29
- locale: keyof import("quasar").QuasarLanguageCodesHolder;
28
+ date: Partial<QDateProps>;
29
+ locale: string;
30
30
  }, {}>;
31
31
  export default _default;
32
32
  type __VLS_WithDefaults<P, D> = {
@@ -4,10 +4,10 @@ export interface Period {
4
4
  type: 'unavailable';
5
5
  }
6
6
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
7
- modelValue: string | null | undefined | {
7
+ modelValue: string | {
8
8
  from: string;
9
9
  to: string;
10
- };
10
+ } | null | undefined;
11
11
  periods?: Period[] | undefined;
12
12
  range?: boolean | undefined;
13
13
  options?: ((date: string) => boolean) | undefined;
@@ -17,10 +17,10 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
17
17
  to: string;
18
18
  }) => void;
19
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
20
- modelValue: string | null | undefined | {
20
+ modelValue: string | {
21
21
  from: string;
22
22
  to: string;
23
- };
23
+ } | null | undefined;
24
24
  periods?: Period[] | undefined;
25
25
  range?: boolean | undefined;
26
26
  options?: ((date: string) => boolean) | undefined;
@@ -2,25 +2,24 @@ declare const _default: <T extends {
2
2
  [key: string]: unknown;
3
3
  id: number;
4
4
  }>(__VLS_props: {
5
- label?: string | undefined;
6
- required?: boolean | undefined;
7
- modelValue?: number | number[] | null | undefined;
8
- hint?: string | undefined;
9
- multiple?: boolean | undefined;
10
5
  onFilter?: ((args_0: {
11
6
  ids: number[];
12
7
  searchPhrase: string;
13
8
  done: (success?: boolean) => void;
14
9
  }) => any) | undefined;
15
10
  "onUpdate:model-value"?: ((id: number) => any) | undefined;
11
+ modelValue?: number | number[] | null | undefined;
16
12
  labelKey: string;
13
+ labelFunction?: ((option: unknown) => string) | undefined;
17
14
  valueKey?: string | undefined;
15
+ extraFields?: string[] | undefined;
18
16
  filteredOptions: T[];
17
+ required?: boolean | undefined;
18
+ multiple?: boolean | undefined;
19
+ label?: string | undefined;
20
+ hint?: string | undefined;
19
21
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
20
22
  attrs: any;
21
- slots: Partial<Record<string, (_: {
22
- scope: any;
23
- }) => any>>;
24
23
  emit: {
25
24
  (e: 'update:model-value', id: number): void;
26
25
  (e: 'filter', { ids, searchPhrase, done }: {
@@ -29,28 +28,29 @@ declare const _default: <T extends {
29
28
  done: (success?: boolean) => void;
30
29
  }): void;
31
30
  };
31
+ slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
32
32
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
33
33
  props: {
34
- label?: string | undefined;
35
- required?: boolean | undefined;
36
- modelValue?: number | number[] | null | undefined;
37
- hint?: string | undefined;
38
- multiple?: boolean | undefined;
39
34
  onFilter?: ((args_0: {
40
35
  ids: number[];
41
36
  searchPhrase: string;
42
37
  done: (success?: boolean) => void;
43
38
  }) => any) | undefined;
44
39
  "onUpdate:model-value"?: ((id: number) => any) | undefined;
40
+ modelValue?: number | number[] | null | undefined;
45
41
  labelKey: string;
42
+ labelFunction?: ((option: unknown) => string) | undefined;
46
43
  valueKey?: string | undefined;
44
+ extraFields?: string[] | undefined;
47
45
  filteredOptions: T[];
46
+ required?: boolean | undefined;
47
+ multiple?: boolean | undefined;
48
+ label?: string | undefined;
49
+ hint?: string | undefined;
48
50
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
49
51
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
50
52
  attrs: any;
51
- slots: Partial<Record<string, (_: {
52
- scope: any;
53
- }) => any>>;
53
+ slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
54
54
  emit: {
55
55
  (e: 'update:model-value', id: number): void;
56
56
  (e: 'filter', { ids, searchPhrase, done }: {
@@ -64,26 +64,26 @@ declare const _default: <T extends {
64
64
  }> & {
65
65
  __ctx?: {
66
66
  props: {
67
- label?: string | undefined;
68
- required?: boolean | undefined;
69
- modelValue?: number | number[] | null | undefined;
70
- hint?: string | undefined;
71
- multiple?: boolean | undefined;
72
67
  onFilter?: ((args_0: {
73
68
  ids: number[];
74
69
  searchPhrase: string;
75
70
  done: (success?: boolean) => void;
76
71
  }) => any) | undefined;
77
72
  "onUpdate:model-value"?: ((id: number) => any) | undefined;
73
+ modelValue?: number | number[] | null | undefined;
78
74
  labelKey: string;
75
+ labelFunction?: ((option: unknown) => string) | undefined;
79
76
  valueKey?: string | undefined;
77
+ extraFields?: string[] | undefined;
80
78
  filteredOptions: T[];
79
+ required?: boolean | undefined;
80
+ multiple?: boolean | undefined;
81
+ label?: string | undefined;
82
+ hint?: string | undefined;
81
83
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
82
84
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
83
85
  attrs: any;
84
- slots: Partial<Record<string, (_: {
85
- scope: any;
86
- }) => any>>;
86
+ slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
87
87
  emit: {
88
88
  (e: 'update:model-value', id: number): void;
89
89
  (e: 'filter', { ids, searchPhrase, done }: {
@@ -95,7 +95,6 @@ declare const _default: <T extends {
95
95
  } | undefined;
96
96
  };
97
97
  export default _default;
98
- type __VLS_OmitKeepDiscriminatedUnion<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
99
98
  type __VLS_Prettify<T> = {
100
99
  [K in keyof T]: T[K];
101
100
  } & {};
@@ -1,5 +1,6 @@
1
1
  export interface Props {
2
2
  modelValue?: string | null;
3
+ required?: boolean;
3
4
  }
4
5
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>>, {}, {}>;
5
6
  export default _default;
@@ -34,6 +34,7 @@ export interface Language {
34
34
  };
35
35
  };
36
36
  datePicker: {
37
+ date: string;
37
38
  placeholder: string;
38
39
  YYYY: string;
39
40
  MM: string;
@@ -47,6 +48,9 @@ export interface Language {
47
48
  EUR: string;
48
49
  USD: string;
49
50
  };
51
+ locale: {
52
+ locale: string;
53
+ };
50
54
  }
51
55
  import type { Ref } from 'vue';
52
56
  export declare const lang: Ref<{
@@ -85,6 +89,7 @@ export declare const lang: Ref<{
85
89
  };
86
90
  };
87
91
  datePicker: {
92
+ date: string;
88
93
  placeholder: string;
89
94
  YYYY: string;
90
95
  MM: string;
@@ -98,6 +103,9 @@ export declare const lang: Ref<{
98
103
  EUR: string;
99
104
  USD: string;
100
105
  };
106
+ locale: {
107
+ locale: string;
108
+ };
101
109
  }>;
102
110
  export declare const defineLang: (lang: Language) => Language;
103
111
  export declare const useLang: () => Ref<Language>;
@@ -2,10 +2,7 @@ export interface Props {
2
2
  type?: 'create' | 'update';
3
3
  disabled?: boolean;
4
4
  }
5
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
6
- type: string;
7
- disabled: boolean;
8
- }>, {
5
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {
9
6
  variables: import("vue").Ref<{}>;
10
7
  functions: import("vue").Ref<{}>;
11
8
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -17,10 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
14
  data?: unknown;
18
15
  done: (success?: boolean) => void;
19
16
  }) => void;
20
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
21
- type: string;
22
- disabled: boolean;
23
- }>>> & {
17
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
24
18
  onUpdate?: ((args_0: {
25
19
  data?: unknown;
26
20
  done: (success?: boolean) => void;
@@ -29,22 +23,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
29
23
  data?: unknown;
30
24
  done: (success?: boolean) => void;
31
25
  }) => any) | undefined;
32
- }, {
33
- type: "update" | "create";
34
- disabled: boolean;
35
- }, {}>, {
26
+ }, {}, {}>, {
36
27
  default?(_: {}): any;
28
+ fab?(_: {}): any;
37
29
  header?(_: {}): any;
30
+ "header-side"?(_: {}): any;
38
31
  }>;
39
32
  export default _default;
40
- type __VLS_WithDefaults<P, D> = {
41
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
- default: D[K];
43
- }> : P[K];
44
- };
45
- type __VLS_Prettify<T> = {
46
- [K in keyof T]: T[K];
47
- } & {};
48
33
  type __VLS_WithTemplateSlots<T, S> = T & {
49
34
  new (): {
50
35
  $slots: S;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",