@mythpe/quasar-ui-qui 0.0.27 → 0.0.29-dev

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 (93) hide show
  1. package/index.d.ts +13 -0
  2. package/package.json +17 -8
  3. package/src/boot/register.ts +14 -0
  4. package/src/components/datatable/MDatatable.vue +2305 -0
  5. package/src/components/datatable/MDtAvatar.vue +49 -0
  6. package/src/components/datatable/MDtBtn.vue +153 -0
  7. package/src/components/datatable/MDtContextmenuItems.vue +54 -0
  8. package/src/components/datatable/index.ts +6 -0
  9. package/src/components/form/MAvatarViewer.vue +327 -0
  10. package/src/components/form/MAxios.vue +144 -0
  11. package/src/components/form/MBtn.vue +271 -93
  12. package/src/components/form/MCheckbox.vue +150 -0
  13. package/src/components/form/MCkeditor.vue +403 -0
  14. package/src/components/form/MColor.vue +122 -0
  15. package/src/components/form/MDate.vue +50 -0
  16. package/src/components/form/MEditor.vue +285 -0
  17. package/src/components/form/MEmail.vue +43 -0
  18. package/src/components/form/MField.vue +148 -0
  19. package/src/components/form/MFile.vue +215 -0
  20. package/src/components/form/MForm.vue +89 -0
  21. package/src/components/form/MHidden.vue +86 -0
  22. package/src/components/form/MHiddenInput.vue +58 -0
  23. package/src/components/form/MInput.vue +178 -0
  24. package/src/components/form/MInputFieldControl.vue +27 -0
  25. package/src/components/form/MInputLabel.vue +38 -0
  26. package/src/components/form/MMobile.vue +43 -0
  27. package/src/components/form/MOptions.vue +255 -0
  28. package/src/components/form/MOtp.vue +292 -0
  29. package/src/components/form/MPassword.vue +73 -0
  30. package/src/components/form/MPicker.vue +313 -0
  31. package/src/components/form/MRadio.vue +181 -0
  32. package/src/components/form/MSelect.vue +352 -0
  33. package/src/components/form/MTime.vue +48 -0
  34. package/src/components/form/MToggle.vue +211 -0
  35. package/src/components/form/MUploader.vue +511 -0
  36. package/src/components/form/index.ts +65 -0
  37. package/src/components/grid/MBlock.vue +39 -18
  38. package/src/components/grid/MCol.vue +11 -15
  39. package/src/components/grid/MColumn.vue +12 -1
  40. package/src/components/grid/MContainer.vue +22 -13
  41. package/src/components/grid/MHelpRow.vue +13 -12
  42. package/src/components/grid/MRow.vue +31 -10
  43. package/src/components/grid/index.ts +16 -0
  44. package/src/components/index.ts +15 -0
  45. package/src/components/modal/MDialog.vue +58 -0
  46. package/src/components/modal/MModalMenu.vue +62 -0
  47. package/src/components/modal/MTooltip.vue +39 -0
  48. package/src/components/modal/index.ts +5 -0
  49. package/src/components/parials/UploaderItem.vue +298 -0
  50. package/src/components/parials/index.ts +3 -0
  51. package/src/components/transition/MFadeTransition.vue +27 -0
  52. package/src/components/transition/MFadeXTransition.vue +26 -0
  53. package/src/components/transition/MTransition.vue +44 -0
  54. package/src/components/transition/index.ts +13 -0
  55. package/src/components/typography/MTypingString.vue +8 -0
  56. package/src/components/typography/index.ts +11 -0
  57. package/src/composable/index.ts +12 -0
  58. package/src/composable/useBindInput.ts +209 -0
  59. package/src/composable/useError.ts +11 -0
  60. package/src/composable/useMyth.ts +311 -0
  61. package/src/composable/useValue.ts +12 -0
  62. package/src/index.common.js +19 -1
  63. package/src/index.esm.js +18 -3
  64. package/src/index.js +19 -0
  65. package/src/index.sass +9 -26
  66. package/src/index.ts +18 -4
  67. package/src/index.umd.js +17 -2
  68. package/src/style/m-container.sass +13 -0
  69. package/src/style/main.sass +146 -0
  70. package/src/style/print.sass +14 -0
  71. package/src/style/transition.sass +40 -0
  72. package/src/types/api-helpers.d.ts +62 -0
  73. package/src/types/components.d.ts +1108 -27
  74. package/src/types/index.d.ts +21 -1
  75. package/src/types/install-options.d.ts +19 -0
  76. package/src/types/lodash.d.ts +26 -0
  77. package/src/types/m-datatable.d.ts +316 -0
  78. package/src/types/m-geolocation.d.ts +16 -0
  79. package/src/types/m-helpers.d.ts +97 -0
  80. package/src/types/plugin-props-option.d.ts +305 -0
  81. package/src/types/quasar-helpers.d.ts +7 -0
  82. package/src/types/theme.d.ts +12 -0
  83. package/src/utils/Helpers.ts +293 -0
  84. package/src/utils/Str.ts +211 -0
  85. package/src/utils/index.ts +13 -0
  86. package/src/utils/myth.ts +109 -0
  87. package/src/utils/vee-rules.ts +32 -0
  88. package/src/utils/vue-plugin.ts +163 -0
  89. package/tsconfig.json +9 -13
  90. package/src/myth.ts +0 -30
  91. package/src/types/myth.ts +0 -42
  92. package/src/vue-plugin.ts +0 -41
  93. package/types.d.ts +0 -1
@@ -1 +1,19 @@
1
- export * from './vue-plugin'
1
+ /*
2
+ * MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
3
+ * Email: mythpe@gmail.com
4
+ * Mobile: +966590470092
5
+ * Website: https://www.4myth.com
6
+ * Github: https://github.com/mythpe
7
+ */
8
+
9
+ import * as composable from './composable'
10
+ import * as utils from './utils'
11
+
12
+ export default {
13
+ ...composable,
14
+ ...utils
15
+ }
16
+
17
+ export * from './components'
18
+ export * from './composable'
19
+ export * from './utils'
package/src/index.esm.js CHANGED
@@ -1,4 +1,19 @@
1
- import * as VuePlugin from './vue-plugin'
1
+ /*
2
+ * MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
3
+ * Email: mythpe@gmail.com
4
+ * Mobile: +966590470092
5
+ * Website: https://www.4myth.com
6
+ * Github: https://github.com/mythpe
7
+ */
2
8
 
3
- export * from './vue-plugin'
4
- export default VuePlugin
9
+ import * as composable from './composable'
10
+ import * as utils from './utils'
11
+
12
+ export default {
13
+ ...composable,
14
+ ...utils
15
+ }
16
+
17
+ export * from './components'
18
+ export * from './composable'
19
+ export * from './utils'
package/src/index.js ADDED
@@ -0,0 +1,19 @@
1
+ /*
2
+ * MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
3
+ * Email: mythpe@gmail.com
4
+ * Mobile: +966590470092
5
+ * Website: https://www.4myth.com
6
+ * Github: https://github.com/mythpe
7
+ */
8
+
9
+ import * as composable from './composable'
10
+ import * as utils from './utils'
11
+
12
+ export default {
13
+ ...composable,
14
+ ...utils
15
+ }
16
+
17
+ export * from './components'
18
+ export * from './composable'
19
+ export * from './utils'
package/src/index.sass CHANGED
@@ -1,27 +1,10 @@
1
- @import 'quasar/src/css/variables.sass'
2
- $m--container-padding: $space-base !default
3
- $m--container-fluid-width: 1440px !default
4
- $m--row-margin-top: $m--container-padding !default
5
-
6
- .flex-break
7
- flex: 1 0 100% !important
8
-
9
- .row
10
- .flex-break
11
- height: 0 !important
12
-
13
- .column
14
- .flex-break
15
- width: 0 !important
1
+ // MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
2
+ // Email: mythpe@gmail.com
3
+ // Mobile: +966590470092
4
+ // Website: https://www.4myth.com
5
+ // Github: https://github.com/mythpe
16
6
 
17
- .m--container
18
- &__dense
19
- padding: 0 !important
20
-
21
- &__fluid
22
- max-width: $m--container-fluid-width
23
- margin-left: auto
24
- margin-right: auto
25
-
26
- .m--row + .m--row
27
- margin-top: $m--row-margin-top
7
+ @import 'quasar/src/css/variables.sass'
8
+ @import './style/main.sass'
9
+ @import './style/m-container.sass'
10
+ @import './style/print.sass'
package/src/index.ts CHANGED
@@ -1,5 +1,19 @@
1
- export * from './vue-plugin'
2
- export * from './types'
1
+ /*
2
+ * MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
3
+ * Email: mythpe@gmail.com
4
+ * Mobile: +966590470092
5
+ * Website: https://www.4myth.com
6
+ * Github: https://github.com/mythpe
7
+ */
3
8
 
4
- import * as VuePlugin from './vue-plugin'
5
- export default VuePlugin
9
+ import * as composable from './composable'
10
+ import * as utils from './utils'
11
+
12
+ export default {
13
+ ...composable,
14
+ ...utils
15
+ }
16
+
17
+ export * from './components'
18
+ export * from './composable'
19
+ export * from './utils'
package/src/index.umd.js CHANGED
@@ -1,2 +1,17 @@
1
- import * as VuePlugin from './vue-plugin'
2
- export default VuePlugin
1
+ /*
2
+ * MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
3
+ * Email: mythpe@gmail.com
4
+ * Mobile: +966590470092
5
+ * Website: https://www.4myth.com
6
+ * Github: https://github.com/mythpe
7
+ */
8
+
9
+ import * as components from './components'
10
+ import * as composable from './composable'
11
+ import * as utils from './utils'
12
+
13
+ export default {
14
+ ...components,
15
+ ...composable,
16
+ ...utils
17
+ }
@@ -0,0 +1,13 @@
1
+ @use "quasar/src/css/variables" as q
2
+
3
+ $m--container-padding: q.$space-base !default
4
+ $m--container-fluid-width: 1440px !default
5
+
6
+ .m--container
7
+ &__dense
8
+ padding: 0
9
+
10
+ &__fluid
11
+ max-width: $m--container-fluid-width
12
+ margin-left: auto
13
+ margin-right: auto
@@ -0,0 +1,146 @@
1
+ @use 'sass:map'
2
+ @use "quasar/src/css/variables" as q
3
+
4
+ // Flex.
5
+ .flex-break
6
+ flex: 1 0 100% !important
7
+ padding: 0 !important
8
+ margin: 0 !important
9
+
10
+ .row
11
+ .flex-break
12
+ height: 0 !important
13
+
14
+ .column
15
+ .flex-break
16
+ width: 0 !important
17
+
18
+ $m--row-margin-top: 1rem !default
19
+
20
+ .m--row + .m--row
21
+ margin-top: $m--row-margin-top
22
+
23
+
24
+ // Directions.
25
+ .ltr
26
+ direction: ltr #{"/* rtl:ignore */"}
27
+
28
+ .rtl
29
+ direction: rtl #{"/* rtl:ignore */"}
30
+
31
+ // Colors.
32
+ $text-light-color: #111111 !default
33
+ $text-dark-color: #ffffff !default
34
+
35
+ .body--light
36
+ color: $text-light-color
37
+
38
+ .text-color
39
+ color: $text-light-color
40
+
41
+ .body--dark
42
+ color: $text-dark-color
43
+
44
+ .text-color
45
+ color: $text-dark-color
46
+
47
+
48
+ $text-decorations: ('none': none, 'overline': overline, 'underline': underline, 'line-through': line-through)
49
+ @each $name, $value in $text-decorations
50
+ .text-decoration-#{$name}
51
+ text-decoration: map.get($text-decorations, $value) !important
52
+
53
+ $text-wraps: ('wrap': wrap, 'nowrap': nowrap, 'balance': balance, 'pretty': pretty, 'stable': stable)
54
+ @each $name, $value in $text-wraps
55
+ .text-wrap-#{$name}
56
+ text-wrap: map.get($text-wraps, $value) !important
57
+
58
+ $breaks: ('inside', 'after', 'before')
59
+ @each $break in $breaks
60
+ .break-#{$break}-avoid
61
+ page-break-#{$break}: avoid
62
+
63
+ @each $break in $breaks
64
+ .break-#{$break}-always
65
+ page-break-#{$break}: always
66
+
67
+
68
+ $maxes: ('width', 'height') !default
69
+ @each $max in $maxes
70
+ .max-#{$max}
71
+ max-#{$max}: 100% !important
72
+
73
+ $alignsX: ('top', 'bottom') !default
74
+ $alignsY: ('left', 'right') !default
75
+ $radius-class-name: 'border-rounded' !default
76
+ $radius-value: q.$generic-border-radius !default
77
+ $bordered-class-name: 'bordered' !default
78
+ $bordered-size: 1px !default
79
+ $bordered-style: $bordered-size solid q.$primary !default
80
+
81
+
82
+ .#{$radius-class-name}
83
+ border-radius: $radius-value
84
+
85
+
86
+ .#{$bordered-class-name}
87
+ border: $bordered-style
88
+
89
+
90
+ @each $x in $alignsX
91
+ .bordered-#{$x}
92
+ border-#{$x}: $bordered-style
93
+
94
+ .#{$radius-class-name}-#{$x}
95
+ border-#{$x}-left-radius: $radius-value
96
+ border-#{$x}-right-radius: $radius-value
97
+
98
+
99
+ @each $y in $alignsY
100
+ .#{$radius-class-name}-#{$x}-#{$y}
101
+ border-#{$x}-#{$y}-radius: $radius-value
102
+
103
+
104
+ .#{$radius-class-name}-#{$y}
105
+ border-bottom-#{$y}-radius: $radius-value
106
+ border-top-#{$y}-radius: $radius-value
107
+
108
+
109
+ .bordered-#{$y}
110
+ border-#{$y}: $bordered-style
111
+
112
+ .pre-text
113
+ white-space-collapse: preserve-breaks
114
+ white-space: pre-line
115
+
116
+
117
+ pre
118
+ max-width: 100%
119
+
120
+ [data-input-name].m--input__error
121
+ > .q-field
122
+ &:not(.q-field--disabled)
123
+ .q-field__label::after
124
+ color: q.$negative
125
+
126
+ .m--input__top-label__content
127
+ color: q.$negative
128
+
129
+ [data-input-name].m--input__required
130
+ &:not(.m--input__is-top-label)
131
+ > .q-field
132
+ &:not(.q-field--disabled)
133
+ .q-field__label::after
134
+ content: ' *'
135
+
136
+ .m--input__top-label__content::after
137
+ content: ' *'
138
+
139
+ .m--input__color-preview
140
+ border: 1px solid q.$primary
141
+ border-radius: $radius-value
142
+
143
+
144
+ .m--confirm.actions-between
145
+ .q-card__actions
146
+ justify-content: space-between !important
@@ -0,0 +1,14 @@
1
+ @media print
2
+ .q-notifications
3
+ display: none !important
4
+
5
+ .print-shadow-none
6
+ box-shadow: none !important
7
+ border: 0 !important
8
+
9
+ .print-no-padding
10
+ padding: 0 !important
11
+
12
+ .print-no-margin
13
+ margin: 0 !important
14
+
@@ -0,0 +1,40 @@
1
+ .myth-transition__fade-enter-from,
2
+ .myth-transition__fade-leave-to
3
+ opacity: 0
4
+ transform: translateY(-20px)
5
+
6
+
7
+ .myth-transition__fade-enter-active,
8
+ .myth-transition__fade-leave-active
9
+ transition: all .3s ease
10
+
11
+
12
+ .myth-transition__fade-x-enter-from,
13
+ .myth-transition__fade-x-leave-to
14
+ opacity: 0
15
+ transform: translateX(-20px)
16
+
17
+
18
+ .myth-transition__fade-x-enter-active
19
+ transition: all .3s ease
20
+
21
+
22
+ .myth-transition__fade-x-leave-active
23
+ transition: all .1s ease
24
+
25
+
26
+ .m__transition__fade-move,
27
+ .m__transition__fade-enter-active,
28
+ .m__transition__fade-leave-active
29
+ transition: all 0.5s ease
30
+
31
+
32
+ .m__transition__fade-enter-from,
33
+ .m__transition__fade-leave-to
34
+ opacity: 0
35
+ transform: translateX(30px)
36
+
37
+
38
+ .m__transition__fade-leave-active
39
+ position: absolute
40
+
@@ -0,0 +1,62 @@
1
+ /*
2
+ * MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
3
+ * Email: mythpe@gmail.com
4
+ * Mobile: +966590470092
5
+ * Website: https://www.4myth.com
6
+ * Github: https://github.com/mythpe
7
+ */
8
+
9
+ /*
10
+ * MyTh Ahmed Faiz Copyright © 2016-2024 All rights reserved.
11
+ * Email: mythpe@gmail.com
12
+ * Mobile: +966590470092
13
+ * Website: https://www.4myth.com
14
+ * Github: https://github.com/mythpe
15
+ */
16
+
17
+ import type { AxiosRequestConfig } from 'axios'
18
+ import type { ApiInterface, Generic } from './m-helpers'
19
+ import type { ApiServiceParams } from './m-datatable'
20
+
21
+ export type UrlType = string | number | any;
22
+ export type ParamsType = Record<string, any> | FormData | object
23
+ export type ConfigType = AxiosRequestConfig<ApiInterface> & Partial<{
24
+ params: Partial<ApiServiceParams> & Generic
25
+ }>
26
+ export type HelpersStubSchema = {
27
+ index (config?: ConfigType): Promise<ApiInterface>;
28
+
29
+ staticIndex (config?: ConfigType): Promise<ApiInterface>;
30
+
31
+ export (data?: ParamsType, config?: AxiosRequestConfig): Promise<ApiInterface>;
32
+
33
+ store (data?: ParamsType, config?: AxiosRequestConfig): Promise<ApiInterface>;
34
+
35
+ show (id: UrlType, config?: AxiosRequestConfig): Promise<ApiInterface>;
36
+
37
+ staticShow (id: UrlType, config?: AxiosRequestConfig): Promise<ApiInterface>;
38
+
39
+ update (id: UrlType, data?: ParamsType, config?: AxiosRequestConfig): Promise<ApiInterface>;
40
+
41
+ destroy (id: UrlType, config?: AxiosRequestConfig): Promise<ApiInterface>;
42
+
43
+ destroyAll (ids?: UrlType[], config?: AxiosRequestConfig): Promise<ApiInterface>;
44
+
45
+ getUploadAttachmentsUrl (id: UrlType): string;
46
+
47
+ uploadAttachments (id: UrlType, data: Generic, config?: AxiosRequestConfig): Promise<ApiInterface>;
48
+
49
+ deleteAttachment (id: UrlType, fileId: string | number, config?: AxiosRequestConfig): Promise<ApiInterface>;
50
+
51
+ updateAttachment (id: UrlType, fileId: string | number, data: Record<string, any>, config?: AxiosRequestConfig): Promise<ApiInterface>;
52
+
53
+ } | (HelpersStubSchema & Record<string, HelpersStubSchema | ((...args: any) => Promise<ApiInterface>)>)
54
+ export type StubSchemaContext = HelpersStubSchema
55
+ & Record<string, ((...args: any) => Promise<ApiInterface>)>
56
+ & Record<string, Record<string, ((...args: any) => Promise<ApiInterface>)>>
57
+ & Record<string, Record<string, Record<string, ((...args: any) => Promise<ApiInterface>)>>>
58
+ export type StubSchema = StubSchemaContext
59
+ & ((...args: any) => Promise<ApiInterface>)
60
+ & string
61
+ & Record<string, StubSchemaContext>
62
+ export type MythApiServicesSchema = { [key: string | symbol | number]: StubSchema }