@simsustech/quasar-components 0.6.0 → 0.7.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,17 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 3db27ca: fix(components): export QDrawerList
8
+
9
+ ## 0.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - d5eb6bf: feat(components): add QDrawerList component
14
+
3
15
  ## 0.6.0
4
16
 
5
17
  ### Minor Changes
package/dist/general.js CHANGED
@@ -1,5 +1,5 @@
1
- import { l as loadLang, u as useLang, _ as _sfc_main$4 } 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 } from "quasar";
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
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" };
@@ -7,7 +7,7 @@ const _hoisted_2 = { class: "text-subtitle2" };
7
7
  const __default__$2 = {
8
8
  name: "QStyledCard"
9
9
  };
10
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
10
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
11
11
  ...__default__$2,
12
12
  props: {
13
13
  actions: {}
@@ -77,11 +77,11 @@ const _export_sfc = (sfc, props) => {
77
77
  }
78
78
  return target;
79
79
  };
80
- const QStyledCard = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-302df27a"]]);
80
+ const QStyledCard = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-302df27a"]]);
81
81
  const __default__$1 = {
82
82
  name: "ResponsiveDialog"
83
83
  };
84
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
84
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
85
85
  ...__default__$1,
86
86
  props: {
87
87
  display: { type: Boolean }
@@ -169,7 +169,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
169
169
  ]),
170
170
  _: 3
171
171
  }),
172
- !_ctx.display ? (openBlock(), createBlock(_sfc_main$4, {
172
+ !_ctx.display ? (openBlock(), createBlock(_sfc_main$5, {
173
173
  key: 0,
174
174
  color: "accent",
175
175
  onSubmit: submit
@@ -204,7 +204,7 @@ const _hoisted_1 = { style: { "margin-top": "80px" } };
204
204
  const __default__ = {
205
205
  name: "ResourcePage"
206
206
  };
207
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
207
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
208
208
  ...__default__,
209
209
  props: {
210
210
  type: { default: "create" },
@@ -300,7 +300,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
300
300
  };
301
301
  }
302
302
  });
303
- const _sfc_main = /* @__PURE__ */ defineComponent({
303
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
304
304
  __name: "QLanguageSelect",
305
305
  props: {
306
306
  modelValue: {},
@@ -414,12 +414,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
414
414
  };
415
415
  }
416
416
  });
417
+ const _sfc_main = /* @__PURE__ */ defineComponent({
418
+ __name: "QDrawerList",
419
+ setup(__props) {
420
+ return (_ctx, _cache) => {
421
+ return openBlock(), createBlock(unref(QList), { class: "q-drawer-list" }, {
422
+ default: withCtx(() => [
423
+ renderSlot(_ctx.$slots, "default")
424
+ ]),
425
+ _: 3
426
+ });
427
+ };
428
+ }
429
+ });
417
430
  export {
418
- _sfc_main as QLanguageSelect,
431
+ _sfc_main as QDrawerList,
432
+ _sfc_main$1 as QLanguageSelect,
419
433
  QStyledCard,
420
- _sfc_main$4 as QSubmitButton,
421
- _sfc_main$1 as ResourcePage,
422
- _sfc_main$2 as ResponsiveDialog,
434
+ _sfc_main$5 as QSubmitButton,
435
+ _sfc_main$2 as ResourcePage,
436
+ _sfc_main$3 as ResponsiveDialog,
423
437
  loadLang,
424
438
  useLang
425
439
  };
package/dist/style.css CHANGED
@@ -1,4 +1,36 @@
1
1
  .card[data-v-302df27a] {
2
2
  width: 100%;
3
3
  max-width: 300px;
4
+ }/* https://github.com/quasarframework/quasar/blob/dev/docs/src/layouts/doc-layout/DocPageMenu.sass */
5
+ .q-drawer-list .q-item__section--avatar {
6
+ color: var(--q-primary);
7
+ min-width: 28px;
8
+ padding-right: 12px;
9
+ }
10
+ .q-drawer-list .q-expansion-item__content {
11
+ margin-left: 18px;
12
+ padding-left: 4px;
13
+ border-left: 1px solid rgba(0, 0, 0, 0.5);
14
+ }
15
+ .q-drawer-list .q-expansion-item__content .q-expansion-item__content {
16
+ margin-left: 26px;
17
+ padding-left: 2px !important;
18
+ }
19
+ .q-drawer-list .q-expansion-item__content .q-expansion-item__content .q-item {
20
+ padding-left: 16px !important;
21
+ margin-left: 2px;
22
+ }
23
+ .q-drawer-list .q-expansion-item__toggle-icon {
24
+ color: #bdbdbd;
25
+ }
26
+ .q-drawer-list .q-expansion-item--expanded > div > .q-item > .q-item__section--main {
27
+ color: var(--q-primary);
28
+ }
29
+ .q-drawer-list .q-expansion-item--expanded > div > .q-item > .q-item__section--side .q-expansion-item__toggle-icon {
30
+ color: var(--q-primary);
31
+ }
32
+ .q-drawer-list__deep-expansion > .q-expansion-item__container > .q-item .q-item__section--avatar {
33
+ min-width: 16px;
34
+ padding-left: 8px;
35
+ padding-right: 0;
4
36
  }
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
2
+ default?(_: {}): any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -3,4 +3,5 @@ export { default as QStyledCard } from './QStyledCard.vue';
3
3
  export { default as ResponsiveDialog } from './ResponsiveDialog.vue';
4
4
  export { default as ResourcePage } from './ResourcePage.vue';
5
5
  export { default as QLanguageSelect } from './QLanguageSelect.vue';
6
+ export { default as QDrawerList } from './QDrawerList.vue';
6
7
  export { useLang, loadLang } from './lang/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -0,0 +1,45 @@
1
+ <template>
2
+ <q-list class="q-drawer-list">
3
+ <slot name="default" />
4
+ </q-list>
5
+ </template>
6
+
7
+ <script setup lang="ts">
8
+ import { QList } from 'quasar'
9
+ </script>
10
+
11
+ <style lang="sass">
12
+ /* https://github.com/quasarframework/quasar/blob/dev/docs/src/layouts/doc-layout/DocPageMenu.sass */
13
+ .q-drawer-list
14
+ .q-item__section--avatar
15
+ color: var(--q-primary)
16
+ min-width: 28px
17
+ padding-right: 12px
18
+
19
+ .q-expansion-item__content
20
+ margin-left: 18px
21
+ padding-left: 4px
22
+ border-left: 1px solid rgba(0, 0, 0, .50)
23
+
24
+ .q-expansion-item__content
25
+ margin-left: 26px
26
+ padding-left: 2px !important
27
+ .q-item
28
+ padding-left: 16px !important
29
+ margin-left: 2px
30
+
31
+ .q-expansion-item__toggle-icon
32
+ color: #bdbdbd
33
+
34
+ .q-expansion-item--expanded > div > .q-item
35
+ > .q-item__section--main
36
+ color: var(--q-primary)
37
+ > .q-item__section--side .q-expansion-item__toggle-icon
38
+ color: var(--q-primary)
39
+
40
+ &__deep-expansion > .q-expansion-item__container > .q-item
41
+ .q-item__section--avatar
42
+ min-width: 16px
43
+ padding-left: 8px
44
+ padding-right: 0
45
+ </style>
@@ -3,4 +3,5 @@ export { default as QStyledCard } from './QStyledCard.vue'
3
3
  export { default as ResponsiveDialog } from './ResponsiveDialog.vue'
4
4
  export { default as ResourcePage } from './ResourcePage.vue'
5
5
  export { default as QLanguageSelect } from './QLanguageSelect.vue'
6
+ export { default as QDrawerList } from './QDrawerList.vue'
6
7
  export { useLang, loadLang } from './lang/index.js'