@mythpe/quasar-ui-qui 0.0.30 → 0.0.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -177,7 +177,14 @@ defineOptions({
177
177
  </script>
178
178
 
179
179
  <template>
180
- <q-btn v-bind="{...$props,...attrs,label:loading?`${getLabel} ...`:getLabel}">
180
+ <q-btn
181
+ v-bind="{
182
+ ...$props,
183
+ ...attrs,
184
+ label: loading ? `${getLabel} ...` : getLabel,
185
+ ariaLabel: 'ariaLabel' in attrs && attrs.ariaLabel ? __(attrs.ariaLabel) : getLabel
186
+ }"
187
+ >
181
188
  <template
182
189
  v-if="!!btnLoading && !$slots.loading"
183
190
  #loading
@@ -380,7 +380,6 @@ defineOptions({
380
380
  v-else
381
381
  :dir="isRtl ? 'rtl' : 'ltr'"
382
382
  :style="`direction: ${isRtl ? 'rtl' : 'ltr'}`"
383
- v-bind="$attrs"
384
383
  >
385
384
  <ckeditor
386
385
  ref="input"
@@ -10,7 +10,7 @@ import MAxios from './MAxios.vue'
10
10
  import MAvatarViewer from './MAvatarViewer.vue'
11
11
  import MBtn from './MBtn.vue'
12
12
  import MCheckbox from './MCheckbox.vue'
13
- import MCkeditor from './MCkeditor.vue'
13
+ // import MCkeditor from './MCkeditor.vue'
14
14
  import MColor from './MColor.vue'
15
15
  import MDate from './MDate.vue'
16
16
  import MEditor from './MEditor.vue'
@@ -39,7 +39,7 @@ export {
39
39
  MAvatarViewer,
40
40
  MBtn,
41
41
  MCheckbox,
42
- MCkeditor,
42
+ // MCkeditor,
43
43
  MColor,
44
44
  MDate,
45
45
  MEditor,
package/src/index.sass CHANGED
@@ -5,6 +5,7 @@
5
5
  // Github: https://github.com/mythpe
6
6
 
7
7
  @import 'quasar/src/css/variables.sass'
8
+ @import './style/ckeditor5.sass'
8
9
  @import './style/main.sass'
9
10
  @import './style/m-container.sass'
10
11
  @import './style/print.sass'
@@ -0,0 +1,15 @@
1
+ @import 'ckeditor5/ckeditor5.css' #{"/* rtl:ignore */"}
2
+
3
+ $ck-z-dialog: 9999
4
+ $ck-z-panel: calc(var(--ck-z-default) + var(--ck-z-dialog))
5
+
6
+ :root
7
+ --ck-z-dialog: 9999 !important
8
+ --ck-z-panel: calc(var(--ck-z-default) + var(--ck-z-dialog)) !important
9
+
10
+
11
+ .ck-body-wrapper [class*='ck-powered-by']
12
+ display: none !important
13
+
14
+ .ck.ck-block-toolbar-button
15
+ transform: translateX(10px)
@@ -2,7 +2,8 @@ import type {
2
2
  MAvatarViewerProps,
3
3
  MBlockProps,
4
4
  MBtnProps,
5
- MCheckboxProps, MCkeditorProps,
5
+ MCheckboxProps,
6
+ MCkeditorProps,
6
7
  MColProps,
7
8
  MColumnProps,
8
9
  MContainerProps,
@@ -28,10 +29,15 @@ import type {
28
29
  import type {
29
30
  QBtnDropdownProps,
30
31
  QBtnProps,
31
- QCardProps, QDialogOptions,
32
+ QCardProps,
33
+ QDialogOptions,
32
34
  QDialogProps,
33
- QFieldProps, QIconProps, QItemLabelProps,
34
- QItemProps, QItemSectionProps, QListProps,
35
+ QFieldProps,
36
+ QIconProps,
37
+ QItemLabelProps,
38
+ QItemProps,
39
+ QItemSectionProps,
40
+ QListProps,
35
41
  QMenuProps,
36
42
  QNotifyCreateOptions,
37
43
  QPageStickyProps,
@@ -7,20 +7,24 @@
7
7
  */
8
8
 
9
9
  import type { App } from 'vue'
10
+ import { defineAsyncComponent } from 'vue'
10
11
  import { name, version } from '../../package.json'
11
12
  import { myth } from './myth'
12
13
  import {
13
14
  MAvatarViewer,
14
15
  MAxios,
15
16
  MBlock,
16
- MBtn,
17
17
  MCheckbox,
18
- MCkeditor,
19
18
  MCol,
20
19
  MColor,
21
20
  MColumn,
22
21
  MContainer,
22
+ MDatatable,
23
23
  MDate,
24
+ MDialog,
25
+ MDtAvatar,
26
+ MDtBtn,
27
+ MDtContextmenuItems,
24
28
  MEditor,
25
29
  MEmail,
26
30
  MFadeTransition,
@@ -35,6 +39,7 @@ import {
35
39
  MInputFieldControl,
36
40
  MInputLabel,
37
41
  MMobile,
42
+ MModalMenu,
38
43
  MOptions,
39
44
  MOtp,
40
45
  MPassword,
@@ -44,19 +49,14 @@ import {
44
49
  MSelect,
45
50
  MTime,
46
51
  MToggle,
52
+ MTooltip,
47
53
  MTransition,
48
54
  MTypingString,
49
- MUploader,
50
- MDialog,
51
- MModalMenu,
52
- MTooltip,
53
- MDatatable,
54
- MDtAvatar,
55
- MDtBtn,
56
- MDtContextmenuItems
55
+ MUploader
57
56
  } from '../components'
58
57
 
59
58
  import type { InstallOptions } from '../types'
59
+ import { QSpinner } from 'quasar'
60
60
 
61
61
  function install (app: App, options: InstallOptions = {}) {
62
62
  if (options.rounded !== undefined) {
@@ -109,9 +109,17 @@ function install (app: App, options: InstallOptions = {}) {
109
109
  // Form.
110
110
  app.component('MAvatarViewer', MAvatarViewer)
111
111
  app.component('MAxios', MAxios)
112
- app.component('MBtn', MBtn)
112
+ // app.component('MBtn', MBtn)
113
+ app.component('MBtn', defineAsyncComponent({
114
+ loader: () => import('../components/form/MBtn.vue'),
115
+ loadingComponent: QSpinner,
116
+ delay: 4000
117
+ }))
113
118
  app.component('MCheckbox', MCheckbox)
114
- app.component('MCkeditor', MCkeditor)
119
+ app.component('MCkeditor', defineAsyncComponent({
120
+ loader: () => import('../components/form/MCkeditor.vue'),
121
+ delay: 0
122
+ }))
115
123
  app.component('MColor', MColor)
116
124
  app.component('MDate', MDate)
117
125
  app.component('MEditor', MEditor)