@simsustech/quasar-components 0.10.0 → 0.10.1

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,11 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4ef557b: fix(ResourcePage): fix error on empty type
8
+
3
9
  ## 0.10.0
4
10
 
5
11
  ### Minor Changes
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
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";
3
+ import { defineComponent, watch, ref, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, normalizeClass, createCommentVNode, 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" };
@@ -211,8 +211,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
211
211
  disabled: { type: Boolean }
212
212
  },
213
213
  emits: ["create", "update"],
214
- setup(__props, { expose: __expose, emit: __emit }) {
215
- const slots = useSlots();
214
+ setup(__props, { emit: __emit }) {
216
215
  const props = __props;
217
216
  const emit = __emit;
218
217
  const $q = useQuasar();
@@ -223,23 +222,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
223
222
  loadLang($q.lang.isoName);
224
223
  });
225
224
  const { type, disabled } = toRefs(props);
226
- if (!type.value && !slots.fab)
227
- type.value = "create";
228
225
  const done = () => "";
229
- const create = (evt) => disabled.value ? () => {
230
- } : emit("create", { done });
231
- const update = (evt) => disabled.value ? () => {
232
- } : emit("update", { done });
233
- const variables = ref({
234
- // header: lang.value.some.nested.prop
235
- });
236
- const functions = ref({
237
- // submit
238
- });
239
- __expose({
240
- variables,
241
- functions
242
- });
226
+ const create = (evt) => emit("create", { done });
227
+ const update = (evt) => emit("update", { done });
243
228
  return (_ctx, _cache) => {
244
229
  const _component_q_btn = QBtn;
245
230
  const _component_q_toolbar_title = QToolbarTitle;
@@ -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_TypePropsToOption<Props>, {
6
- variables: import("vue").Ref<{}>;
7
- functions: import("vue").Ref<{}>;
8
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
6
  create: (args_0: {
10
7
  data?: unknown;
11
8
  done: (success?: boolean) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@ export default {
49
49
  </script>
50
50
 
51
51
  <script setup lang="ts">
52
- import { ref, toRefs, watch, useSlots } from 'vue'
52
+ import { toRefs, watch } from 'vue'
53
53
  import { useQuasar } from 'quasar'
54
54
  import { useLang, loadLang } from './lang'
55
55
 
@@ -57,7 +57,6 @@ export interface Props {
57
57
  type?: 'create' | 'update'
58
58
  disabled?: boolean
59
59
  }
60
- const slots = useSlots()
61
60
  const props = defineProps<Props>()
62
61
 
63
62
  const emit = defineEmits<{
@@ -91,30 +90,7 @@ watch($q.lang, (val) => {
91
90
 
92
91
  const { type, disabled } = toRefs(props)
93
92
 
94
- if (!type.value && !slots.fab) type.value = 'create'
95
-
96
93
  const done = () => ''
97
- const create = (evt: unknown) =>
98
- disabled.value
99
- ? () => {
100
- //
101
- }
102
- : emit('create', { done })
103
- const update = (evt: unknown) =>
104
- disabled.value
105
- ? () => {
106
- //
107
- }
108
- : emit('update', { done })
109
-
110
- const variables = ref({
111
- // header: lang.value.some.nested.prop
112
- })
113
- const functions = ref({
114
- // submit
115
- })
116
- defineExpose({
117
- variables,
118
- functions
119
- })
94
+ const create = (evt: unknown) => emit('create', { done })
95
+ const update = (evt: unknown) => emit('update', { done })
120
96
  </script>