@fishawack/lab-velocity 1.11.1 → 2.0.0-beta.10

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 (138) hide show
  1. package/README.md +177 -49
  2. package/_Build/vue/components/Icon.vue +33 -0
  3. package/_Build/vue/components/Svg.vue +45 -0
  4. package/{basic → _Build/vue/components/basic}/Button.vue +17 -19
  5. package/{basic → _Build/vue/components/basic}/link.vue +8 -7
  6. package/{form → _Build/vue/components/form}/Cascader.vue +13 -13
  7. package/{form → _Build/vue/components/form}/CheckboxGroup.vue +28 -6
  8. package/{form → _Build/vue/components/form}/DatePicker.vue +23 -7
  9. package/{form → _Build/vue/components/form}/InputNumber.vue +1 -2
  10. package/{form → _Build/vue/components/form}/Select.vue +10 -11
  11. package/_Build/vue/components/form/Spinner.vue +5 -0
  12. package/{form → _Build/vue/components/form}/Switch.vue +2 -2
  13. package/{form → _Build/vue/components/form}/Upload.vue +4 -6
  14. package/{form → _Build/vue/components/form}/Wysiwyg.vue +14 -14
  15. package/_Build/vue/components/form/Wysiwyg2.vue +577 -0
  16. package/{form → _Build/vue/components/form}/basic.vue +25 -7
  17. package/{form → _Build/vue/components/form}/file.vue +1 -1
  18. package/{form → _Build/vue/components/form}/input.js +2 -2
  19. package/{form → _Build/vue/components/form}/input.vue +31 -11
  20. package/{layout → _Build/vue/components/layout}/Alert.vue +10 -10
  21. package/_Build/vue/components/layout/Footer.vue +50 -0
  22. package/{layout → _Build/vue/components/layout}/Header.vue +5 -7
  23. package/_Build/vue/components/layout/Loader.vue +59 -0
  24. package/{layout → _Build/vue/components/layout}/Tooltip.vue +12 -12
  25. package/{layout → _Build/vue/components/layout}/pageTitle.vue +4 -4
  26. package/{layout → _Build/vue/components/layout}/sideBar.vue +4 -6
  27. package/{navigation → _Build/vue/components/navigation}/Breadcrumbs.vue +15 -10
  28. package/{navigation → _Build/vue/components/navigation}/BreadcrumbsItem.vue +6 -6
  29. package/_Build/vue/components/navigation/Menu.vue +14 -0
  30. package/_Build/vue/components/navigation/MenuItem.vue +20 -0
  31. package/_Build/vue/components/navigation/MenuItemGroup.vue +20 -0
  32. package/_Build/vue/components/navigation/SubMenu.vue +20 -0
  33. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/Upload/upload.vue +259 -0
  34. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/create.vue +62 -0
  35. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/edit.vue +98 -0
  36. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/index.vue +90 -0
  37. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/partials/form.vue +181 -0
  38. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +267 -0
  39. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +36 -0
  40. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +113 -0
  41. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +101 -0
  42. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +112 -0
  43. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/partials/form.vue +174 -0
  44. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +123 -0
  45. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +36 -0
  46. package/{AuthModule → _Build/vue/modules/AuthModule}/components/AuthModal.vue +30 -35
  47. package/_Build/vue/modules/AuthModule/components/Chip.vue +70 -0
  48. package/_Build/vue/modules/AuthModule/components/Chips.vue +26 -0
  49. package/_Build/vue/modules/AuthModule/components/FormRole.vue +117 -0
  50. package/_Build/vue/modules/AuthModule/components/VBreadcrumbs.vue +33 -0
  51. package/_Build/vue/modules/AuthModule/components/VFormFooter.vue +52 -0
  52. package/_Build/vue/modules/AuthModule/components/VPageHeader.vue +38 -0
  53. package/_Build/vue/modules/AuthModule/components/VPasswordValidation.vue +106 -0
  54. package/_Build/vue/modules/AuthModule/components/VRoleLegend.vue +43 -0
  55. package/_Build/vue/modules/AuthModule/components/VTable.vue +136 -0
  56. package/_Build/vue/modules/AuthModule/components/VTableSorter.vue +252 -0
  57. package/_Build/vue/modules/AuthModule/js/FakeAPI.js +78 -0
  58. package/_Build/vue/modules/AuthModule/js/axios.js +81 -0
  59. package/_Build/vue/modules/AuthModule/js/router.js +295 -0
  60. package/_Build/vue/modules/AuthModule/js/store.js +62 -0
  61. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/account-exists.vue +6 -8
  62. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/change-password.vue +39 -38
  63. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/container.vue +4 -8
  64. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-reset.vue +17 -15
  65. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-verification.vue +21 -20
  66. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/force-reset.vue +45 -40
  67. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/forgot.vue +15 -11
  68. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/login.vue +27 -26
  69. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/logincallback.vue +6 -13
  70. package/_Build/vue/modules/AuthModule/routes/loginheadless.vue +21 -0
  71. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/loginsso.vue +34 -29
  72. package/_Build/vue/modules/AuthModule/routes/logout.vue +19 -0
  73. package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +25 -0
  74. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/register.vue +52 -37
  75. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/reset.vue +29 -19
  76. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-forgot.vue +22 -19
  77. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-reset.vue +6 -6
  78. package/_Build/vue/modules/AuthModule/routes/success-verify.vue +30 -0
  79. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/verify.vue +26 -26
  80. package/_base.scss +0 -1
  81. package/_defaults.scss +3 -15
  82. package/_variables.scss +24 -21
  83. package/components/_alert.scss +2 -2
  84. package/components/_auth.scss +163 -0
  85. package/components/_basic.scss +5 -4
  86. package/components/_breadcrumbs.scss +7 -8
  87. package/components/_button.scss +11 -12
  88. package/components/_cascader.scss +1 -1
  89. package/components/_checkbox.scss +27 -26
  90. package/components/_chip.scss +24 -0
  91. package/components/_collapse.scss +2 -3
  92. package/components/_datepicker.scss +7 -6
  93. package/components/_footer.scss +1 -1
  94. package/components/_form.scss +6 -4
  95. package/components/_header.scss +4 -5
  96. package/components/_icon.scss +4 -3
  97. package/components/_inputNumber.scss +4 -3
  98. package/components/_link.scss +7 -7
  99. package/components/_loader.scss +3 -4
  100. package/components/_menu.scss +22 -22
  101. package/{modules → components}/_modal.scss +3 -3
  102. package/components/_pageTitle.scss +3 -3
  103. package/components/_permissionLegend.scss +18 -0
  104. package/components/_select.scss +3 -2
  105. package/components/_sidebar.scss +5 -6
  106. package/components/_switch.scss +2 -2
  107. package/components/_table.scss +3 -3
  108. package/components/_tooltip.scss +2 -2
  109. package/components/_typography.scss +71 -62
  110. package/components/_upload.scss +1 -1
  111. package/components/_wysiwyg.scss +3 -2
  112. package/components/_wysiwyg2.scss +37 -31
  113. package/general.scss +1 -2
  114. package/index.js +38 -30
  115. package/package.json +104 -102
  116. package/vendor.scss +2 -3
  117. package/AuthModule/components/VPasswordValidation.vue +0 -66
  118. package/AuthModule/js/AuthAxios.js +0 -59
  119. package/AuthModule/js/AuthRoutes.js +0 -186
  120. package/AuthModule/js/AuthStore.js +0 -99
  121. package/AuthModule/js/FakeAPI.js +0 -84
  122. package/AuthModule/routes/loginheadless.vue +0 -16
  123. package/AuthModule/routes/logout.vue +0 -21
  124. package/AuthModule/routes/success-verify.vue +0 -29
  125. package/Icon.vue +0 -33
  126. package/Svg.vue +0 -40
  127. package/components/_input.scss +0 -0
  128. package/form/Wysiwyg2.vue +0 -278
  129. package/layout/Footer.vue +0 -35
  130. package/layout/Loader.vue +0 -39
  131. package/modules/_AuthModule.scss +0 -209
  132. package/modules/_AuthVariables.scss +0 -7
  133. package/navigation/Menu.vue +0 -16
  134. package/navigation/MenuItem.vue +0 -20
  135. package/navigation/MenuItemGroup.vue +0 -20
  136. package/navigation/SubMenu.vue +0 -20
  137. /package/{form → _Build/vue/components/form}/Checkbox.vue +0 -0
  138. /package/{form → _Build/vue/components/form}/color.vue +0 -0
package/form/Wysiwyg2.vue DELETED
@@ -1,278 +0,0 @@
1
- <template>
2
- <XInput v-bind="$props" class="vel-wysiwyg">
3
- <template #label>
4
- <slot name="label" />
5
- </template>
6
- <div class="control-group vel-wysiwyg__controls" v-if="editor">
7
- <el-dropdown>
8
- Heading
9
- <template #dropdown>
10
- <el-dropdown-menu>
11
- <el-dropdown-item @click="editor.chain().focus().toggleHeading({ level: 1 }).run()" :class="{ 'is-active': editor.isActive('heading', { level: 1 }) }">
12
- H1
13
- </el-dropdown-item>
14
- <el-dropdown-item @click="editor.chain().focus().toggleHeading({ level: 2 }).run()" :class="{ 'is-active': editor.isActive('heading', { level: 2 }) }">
15
- H2
16
- </el-dropdown-item>
17
- <el-dropdown-item @click="editor.chain().focus().toggleHeading({ level: 3 }).run()" :class="{ 'is-active': editor.isActive('heading', { level: 3 }) }">
18
- H3
19
- </el-dropdown-item>
20
- <el-dropdown-item @click="editor.chain().focus().toggleHeading({ level: 4 }).run()" :class="{ 'is-active': editor.isActive('heading', { level: 4 }) }">
21
- H4
22
- </el-dropdown-item>
23
- <el-dropdown-item @click="editor.chain().focus().toggleHeading({ level: 5 }).run()" :class="{ 'is-active': editor.isActive('heading', { level: 5 }) }">
24
- H5
25
- </el-dropdown-item>
26
- <el-dropdown-item @click="editor.chain().focus().toggleHeading({ level: 6 }).run()" :class="{ 'is-active': editor.isActive('heading', { level: 6 }) }">
27
- H6
28
- </el-dropdown-item>
29
- <el-dropdown-item @click="editor.chain().focus().setParagraph().run()" :class="{ 'is-active': editor.isActive('paragraph') }">
30
- Paragraph
31
- </el-dropdown-item>
32
- </el-dropdown-menu>
33
- </template>
34
- </el-dropdown>
35
- <el-dropdown>
36
- Style
37
- <template #dropdown>
38
- <el-dropdown-menu>
39
- <el-dropdown-item class="vel-wysiwyg__button" @click="editor.chain().focus().toggleBold().run()" :disabled="!editor.can().chain().focus().toggleBold().run()" :class="{ 'is-active': editor.isActive('bold') }">Bold</el-dropdown-item>
40
- <el-dropdown-item class="vel-wysiwyg__button" @click="editor.chain().focus().toggleItalic().run()" :disabled="!editor.can().chain().focus().toggleItalic().run()" :class="{ 'is-active': editor.isActive('italic') }">Italic</el-dropdown-item>
41
- <el-dropdown-item class="vel-wysiwyg__button" @click="editor.chain().focus().toggleUnderline().run()" :disabled="!editor.can().chain().focus().toggleUnderline().run()" :class="{ 'is-active': editor.isActive('underline') }">Underline</el-dropdown-item>
42
- </el-dropdown-menu>
43
- </template>
44
- </el-dropdown>
45
- <el-dropdown v-if="table">
46
- Table
47
- <template #dropdown>
48
- <el-dropdown-menu>
49
- <el-dropdown-item @click="editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run()">
50
- Insert table
51
- </el-dropdown-item>
52
- <el-dropdown-item @click="editor.chain().focus().addColumnBefore().run()">
53
- Add column before
54
- </el-dropdown-item>
55
- <el-dropdown-item @click="editor.chain().focus().addColumnAfter().run()">
56
- Add column after
57
- </el-dropdown-item>
58
- <el-dropdown-item @click="editor.chain().focus().deleteColumn().run()">
59
- Delete column
60
- </el-dropdown-item>
61
- <el-dropdown-item @click="editor.chain().focus().addRowBefore().run()">
62
- Add row before
63
- </el-dropdown-item>
64
- <el-dropdown-item @click="editor.chain().focus().addRowAfter().run()">
65
- Add row after
66
- </el-dropdown-item>
67
- <el-dropdown-item @click="editor.chain().focus().deleteRow().run()">
68
- Delete row
69
- </el-dropdown-item>
70
- <el-dropdown-item @click="editor.chain().focus().deleteTable().run()">
71
- Delete table
72
- </el-dropdown-item>
73
- <el-dropdown-item @click="editor.chain().focus().mergeCells().run()">
74
- Merge cells
75
- </el-dropdown-item>
76
- <el-dropdown-item @click="editor.chain().focus().splitCell().run()">
77
- Split cell
78
- </el-dropdown-item>
79
- <el-dropdown-item @click="editor.chain().focus().toggleHeaderColumn().run()">
80
- Toggle header column
81
- </el-dropdown-item>
82
- <el-dropdown-item @click="editor.chain().focus().toggleHeaderRow().run()">
83
- Toggle header row
84
- </el-dropdown-item>
85
- <el-dropdown-item @click="editor.chain().focus().toggleHeaderCell().run()">
86
- Toggle header cell
87
- </el-dropdown-item>
88
- <el-dropdown-item @click="editor.chain().focus().mergeOrSplit().run()">
89
- Merge or split
90
- </el-dropdown-item>
91
- <el-dropdown-item @click="editor.chain().focus().setCellAttribute('colspan', 2).run()">
92
- Set cell attribute
93
- </el-dropdown-item>
94
- <el-dropdown-item @click="editor.chain().focus().fixTables().run()">
95
- Fix tables
96
- </el-dropdown-item>
97
- </el-dropdown-menu>
98
- </template>
99
- </el-dropdown>
100
- <button type="button" @click="editor.chain().focus().toggleBulletList().run()" :class="{ 'is-active': editor.isActive('bulletList') }">
101
- <svg viewBox="0 0 18 18"> <line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"></line> <line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"></line> <line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"></line> <line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"></line> <line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"></line> <line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"></line> </svg>
102
- </button>
103
- <button type="button" @click="editor.chain().focus().toggleOrderedList().run()" :class="{ 'is-active': editor.isActive('orderedList') }">
104
- <svg viewBox="0 0 18 18"> <line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"></line> <line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"></line> <line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"></line> <line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"></line> <path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"></path> <path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"></path> <path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"></path> </svg>
105
- </button>
106
- <button type="button" @click="editor.chain().focus().toggleCodeBlock().run()" :class="{ 'is-active': editor.isActive('codeBlock') }">
107
- Code block
108
- </button>
109
- <button type="button" @click="editor.chain().focus().toggleBlockquote().run()" :class="{ 'is-active': editor.isActive('blockquote') }">
110
- Blockquote
111
- </button>
112
- <button type="button" @click="editor.chain().focus().setHorizontalRule().run()">
113
- Horizontal rule
114
- </button>
115
- <button type="button" @click="editor.chain().focus().toggleSuperscript().run()" :class="{ 'is-active': editor.isActive('superscript') }">
116
- <svg viewBox="0 0 18 18"> <path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"></path> <path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"></path> </svg>
117
- </button>
118
- <button type="button" @click="editor.chain().focus().toggleSubscript().run()" :class="{ 'is-active': editor.isActive('subscript') }">
119
- <svg viewBox="0 0 18 18"> <path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"></path> <path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"></path> </svg>
120
- </button>
121
- <button type="button" @click="setLink" :class="{ 'is-active': editor.isActive('link') }">
122
- <svg viewBox="0 0 18 18"> <line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"></line> <path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"></path> <path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"></path> </svg>
123
- </button>
124
- </div>
125
- <editor-content :editor="editor" />
126
- <el-dialog
127
- v-model="dialogVisible"
128
- title="URL"
129
- width="500"
130
- >
131
- <label>Enter URL</label>
132
- <el-input v-model="newUrl" type="url" />
133
- <template #footer>
134
- <div class="dialog-footer">
135
- <el-button @click="dialogVisible = false">Cancel</el-button>
136
- <el-button type="primary" @click="updateURL">
137
- Confirm
138
- </el-button>
139
- </div>
140
- </template>
141
- </el-dialog>
142
- </XInput>
143
- </template>
144
-
145
- <script>
146
- import input from "./input.js";
147
- import XInput from "./input.vue";
148
- import sanitizeHtml from 'sanitize-html';
149
- import { ElDropdown, ElDropdownItem, ElDropdownMenu, ElDialog, ElButton, ElInput } from "element-plus";
150
- import { Editor, EditorContent } from '@tiptap/vue-3'
151
- import StarterKit from '@tiptap/starter-kit';
152
- import Underline from '@tiptap/extension-underline'
153
- import Table from '@tiptap/extension-table'
154
- import TableCell from '@tiptap/extension-table-cell'
155
- import TableHeader from '@tiptap/extension-table-header'
156
- import TableRow from '@tiptap/extension-table-row'
157
- import Superscript from '@tiptap/extension-superscript'
158
- import Subscript from '@tiptap/extension-subscript'
159
- import Link from '@tiptap/extension-link'
160
-
161
- export default {
162
- mixins: [input],
163
-
164
- components: {
165
- XInput,
166
- EditorContent,
167
- ElDropdown,
168
- ElDropdownItem,
169
- ElDropdownMenu,
170
- ElDialog,
171
- ElButton,
172
- ElInput
173
- },
174
-
175
- props: {
176
- table: {
177
- type: Boolean,
178
- default: false,
179
- },
180
- baseClass: {
181
- type: String,
182
- default: "vel-wysiwyg",
183
- },
184
- },
185
-
186
- data: () => ({
187
- editor: null,
188
- hold: null,
189
- previousUrl: null,
190
- newUrl: null,
191
- dialogVisible:false,
192
- }),
193
-
194
- watch: {
195
- modelValue: {
196
- handler(val) {
197
- if (this.hold !== val) {
198
- this.setValue();
199
- }
200
- },
201
- },
202
- },
203
-
204
- methods: {
205
- setValue() {
206
- this.editor.commands.setContent(this.modelValue);
207
- },
208
- setLink() {
209
- this.previousUrl = this.editor.getAttributes('link').href;
210
- this.newUrl = this.previousUrl;
211
- this.dialogVisible = true;
212
-
213
- },
214
- updateURL() {
215
- // cancelled
216
- this.dialogVisible = false;
217
- let url = this.newUrl;
218
- if (url === this.previousUrl) {
219
- return
220
- }
221
-
222
- // empty
223
- if (url === '') {
224
- this.editor
225
- .chain()
226
- .focus()
227
- .extendMarkRange('link')
228
- .unsetLink()
229
- .run()
230
-
231
- return
232
- }
233
- // update link
234
- this.editor
235
- .chain()
236
- .focus()
237
- .extendMarkRange('link')
238
- .setLink({ href: url })
239
- .run()
240
- }
241
- },
242
-
243
- mounted() {
244
- let extensions = [
245
- StarterKit,
246
- Underline,
247
- Superscript,
248
- Subscript,
249
- Link.configure({
250
- openOnClick: false,
251
- defaultProtocol: 'https',
252
- })
253
- ];
254
- if(this.$props.table) {
255
- extensions.push(
256
- Table.configure({
257
- resizable: true,
258
- }),
259
- TableRow,
260
- TableHeader,
261
- TableCell);
262
- }
263
-
264
- this.editor = new Editor({
265
- extensions: extensions,
266
- });
267
- this.setValue();
268
-
269
- this.editor.on('blur', ({ editor, event }) => {
270
- const value = editor.isEmpty ? '' : event.srcElement.innerHTML;
271
- if(this.hold !== value) {
272
- this.hold = value;
273
- this.$emit("update:modelValue", this.hold);
274
- }
275
- })
276
- },
277
- };
278
- </script>
package/layout/Footer.vue DELETED
@@ -1,35 +0,0 @@
1
- <template>
2
- <footer class="vel-footer">
3
- <div>
4
- <h5 class="color-0">
5
- <slot/>
6
- </h5>
7
- </div>
8
- <div class="vel-footer__bottom">
9
- <div class="vel-footer__bottom__links">
10
- <p class="color-0">&copy;2025 Avalere Health.</p>
11
- <el-link underline class="color-0 ml" href="https://avalerehealth.com/privacy-policy/" target="_blank">Privacy Policy</el-link>
12
- <el-link underline class="color-0 ml" href="https://avalerehealth.com/corporate-policies/" target="_blank">Corporate policies and compliance</el-link>
13
- </div>
14
- <div class="vel-footer__bottom__end">
15
- <p class="color-0">Have a question?</p><el-link underline class="color-0 ml" :href="contact">Contact our Support Team</el-link>
16
- </div>
17
- </div>
18
- </footer>
19
- </template>
20
-
21
- <script>
22
- import elLink from "../basic/link.vue";
23
-
24
- export default {
25
- props: {
26
- contact: {
27
- required:true,
28
- type:String
29
- }
30
- },
31
- components: {
32
- elLink
33
- }
34
- }
35
- </script>
package/layout/Loader.vue DELETED
@@ -1,39 +0,0 @@
1
- <template>
2
- <div class="vel-loader">
3
- <slot>
4
- <svg viewBox="0 0 84 84" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
5
- <defs>
6
- <pattern id="e11rz3cojb" width="100%" height="100%" patternUnits="objectBoundingBox">
7
- <use xlink:href="#w1y9w0pc6a"/>
8
- </pattern>
9
- <image id="w1y9w0pc6a" width="84" height="84" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAVKADAAQAAAABAAAAVAAAAAC3aM1AAAAIi0lEQVR4Ae2XWY4kuRFEe7RBv9L9/3UJ3URXkDACBO0rX1S+KEtvZ2TkND+EAR1gmflK0oZR1fPdly9ffjvWfy/Wf0pu5hvvMGPwzn8VN5/IudNPXnP6IrXyxCtOzmW//oE/GwXfjTUzimo+/cwbTzRPLLm+++K7qLtr1LpqT43ri9TDsUTzPwhfCcolq2VMzubwihmTMw+ei75vtSqA8zJOLP07/K2eVYIiDtYhMQ6+WkD2u7IqFrXGkhtbgq8E/cnYmd8VaYpGTN4hB6wipn+H574dvyOCfXdqu5rud2UXO3pfCcphFMuDpS/vMGNwFpu+Y86oPV68xjvfWpGajhv7JrwjaH2leUl5h8Q4HPjOGuWXxsxq3yTCGPZO//R1MueOoBxeweApsPEOFdF+/Q6p0Zw1842DCtHFzCVmT8bv8ksxOc9dQVNEDuWljYvGUzTrMyYnh3X+R+b5JxfXKlcU86CxGb4SKPPJZ/MOQRGjFtBcTdGIJ0cMLEWR15zxj47PnqzLnLwi59Uqz7vUmsx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m1Bd2CLlZg8bj9QregixVYPG6/0C3oYgUWj9svdAu6WIHF4/YL3YIuVmDxuP1Ct6CLFVg8br/QLehiBRaP2y90C7pYgcXj9gvdgi5WYPG4/UK3oIsVWDxuv9At6GIFFo/bL3QLuliBxeP2C92CLlZg8bj9QregixVYPG6/0C3oYgUWj9svdAu6WIHF4/YL3YIuVmDxuP1Ct6CLFVg8br/QxYL+DzAT0LD/r1MPAAAAAElFTkSuQmCC"/>
10
- <path id="3vizvfpwxc" d="M0 0h39.967v39.966H0z"/>
11
- </defs>
12
- <g fill="none" fill-rule="evenodd">
13
- <path class="circle" d="M42 0C18.804 0 0 18.804 0 42s18.804 42 42 42 42-18.804 42-42S65.196 0 42 0zm0 4c20.987 0 38 17.013 38 38S62.987 80 42 80 4 62.987 4 42 21.013 4 42 4z" fill="url(#e11rz3cojb)" fill-rule="nonzero"/>
14
- <g transform="translate(22 22)">
15
- <mask id="y3cby6hymd" fill="#fff">
16
- <use xlink:href="#3vizvfpwxc"/>
17
- </mask>
18
- <path d="m16.552 21.54 4.036-12.407h.312l4.204 12.946c2.503 1.604 4.81 3.465 6.752 5.604l-.38.486c-3.45-2.688-8.243-5.126-14.924-6.63m23.414 18.425L26.189 0h-10.89L8.295 20.29a82.37 82.37 0 0 0-6.892-.306L0 24.047c2.37.103 4.628.329 6.769.664L1.502 39.966h9.055l4.314-13.26c7.747 2.716 13.03 7.333 15.105 13.26h9.99v-.002" fill="#0D0D0D" mask="url(#y3cby6hymd)"/>
19
- </g>
20
- </g>
21
- </svg>
22
-
23
- </slot>
24
-
25
- </div>
26
- </template>
27
-
28
- <script>
29
- export default {
30
- props: {
31
- reversed: {
32
- type: Boolean,
33
- default: false,
34
- }
35
- },
36
- components: {
37
- }
38
- };
39
- </script>
@@ -1,209 +0,0 @@
1
- @import "./AuthVariables";
2
- @import "element-plus/theme-chalk/base";
3
- @import "../components/input.scss";
4
- @import "../components/button";
5
- @import "../components/basic";
6
- @import "./modal";
7
-
8
- // AuthModule
9
- .AuthModule {
10
- position: fixed;
11
- background-color: black;
12
- height: 100vh;
13
- width: 100%;
14
- background: url('../media/content/images/hero-auth-background-desktop.jpg') center top no-repeat;
15
- background-size: cover;
16
- z-index: 10;
17
-
18
- .logo {
19
- width: 13.3rem;
20
- z-index: 99;
21
- }
22
- @include breakpoint (max-width $tabletMax) {
23
- background: url('../media/content/images/hero-auth-background-tablet.jpg') center top no-repeat;
24
- }
25
- @include breakpoint (max-width $mobileMax) {
26
- background: url('../media/content/images/hero-auth-background-mobile.jpg') center top no-repeat;
27
- }
28
- }
29
-
30
- .AuthModule__form {
31
- position: absolute;
32
- top: 50%;
33
- left: 50%;
34
- transform: translate(-50%, -50%);
35
- background-color: white;
36
- min-width: 320px;
37
- width: 460px;
38
- padding: 48px 40px 40px;
39
- z-index: 1;
40
-
41
- @include breakpoint (max-width $mobileMax) {
42
- top: 84px;
43
- transform: translate(-50%, 0);
44
- padding: 24px;
45
- width: calc(100% - 80px);
46
- h2 .h2 {
47
- font-size: 24px;
48
- line-height: 32px;
49
- }
50
- }
51
-
52
- h2, .h2 {
53
- line-height: 50px;
54
- font-size: 48px;
55
- }
56
- .h2--small {
57
- font-size: 36px;
58
- line-height: 44px;
59
- }
60
-
61
- p {
62
- font-size: 14px;
63
- line-height: 20px;
64
- margin-bottom: 24px;
65
- letter-spacing: -0.1px;
66
- &.disclaimer {
67
- font-size: 12px;
68
- color: rgba($color1, 0.5);
69
- margin: 0;
70
- }
71
- a {
72
- color: $color1;
73
- }
74
- &.form__error {
75
- font-size: 12px;
76
- line-height: 18px;
77
- }
78
- }
79
-
80
- .vel-button {
81
- max-width: 200px;
82
- width: 200px;
83
- padding: 9px 23.5px;
84
- font-size: 14px;
85
- @include breakpoint (max-width $mobileMax) {
86
- max-width: unset;
87
- width: 100%;
88
- }
89
- }
90
-
91
- .form {
92
- &.error {
93
- .form__input {
94
- .el-input__wrapper {
95
- border: 0.4px solid red;
96
- }
97
- }
98
- .form__input.error {
99
- border:none;
100
- .el-input__wrapper {
101
- border: 0.4px solid red;
102
- }
103
- }
104
- }
105
- // &__icon-container{
106
- // position: absolute;
107
- // top: 50%;
108
- // right: $spacing * 1.5;
109
- // transform: translateY(-50%);
110
- // display: flex;
111
- // }
112
- // &__action-icon {
113
- // margin-left: $spacing * 0.5;
114
- // cursor: pointer;
115
- // }
116
- }
117
- .vel-basic__label {
118
- font-size: 12px;
119
- color: rgba($color1, 0.5);
120
- }
121
- .vel-basic__textbox {
122
- --el-border-color:#CFD8DD;
123
- --el-input-text-color :#666666;
124
- --el-input-focus-border-color:#CFD8DD;
125
- --el-input-hover-border-color:#CFD8DD;
126
- font-size: 14px;
127
- padding-bottom: $am-spacing * 2.5;
128
- .el-input__inner {
129
- --el-input-inner-height:38px;
130
- }
131
- }
132
- .el-button--primary {
133
- --el-button-text-color:#ffffff;
134
- }
135
- input, input:focus {
136
- @extend .el-input__inner;
137
- }
138
- }
139
-
140
- .AuthModule__logo__container {
141
- position: absolute;
142
- top:48px;
143
- left:0%;
144
- }
145
- .AuthModule__logo {
146
- position: relative;
147
- }
148
- .AuthModule__Content {
149
- position: absolute;
150
- z-index: 1;
151
- top: 50%;
152
- left: 50%;
153
- transform: translate(-50%, -50%);
154
- max-width: 1024px;
155
- width: 100%;
156
- height: 100%;
157
- }
158
-
159
-
160
- .AM-mb{
161
- margin-bottom: $am-spacing !important;
162
- }
163
- .AM-mt{
164
- margin-top: $am-spacing !important;
165
- }
166
- .AM-pb{
167
- padding-bottom: $am-spacing !important;
168
- }
169
- .AM-pt{
170
- padding-top: $am-spacing !important;
171
- }
172
- @for $i from 1 through 5 {
173
-
174
- .AM-mb-#{$i - 1} {
175
- margin-bottom: ($i - 1) * $am-spacing !important;
176
- }
177
-
178
- .AM-mb-#{$i - 1}\.5 {
179
- margin-bottom: ($i - .5) * $am-spacing !important;
180
- }
181
-
182
- .AM-mt-#{$i - 1} {
183
- margin-top: ($i - 1) * $am-spacing !important;
184
- }
185
-
186
- .AM-mt-#{$i - 1}\.5 {
187
- margin-top: ($i - .5) * $am-spacing !important;
188
- }
189
-
190
- .AM-pt-#{$i - 1} {
191
- padding-top: ($i - 1) * $am-spacing !important;
192
- }
193
-
194
- .AM-pt-#{$i - 1}\.5 {
195
- padding-top: ($i - .5) * $am-spacing !important;
196
- }
197
-
198
- .AM-pb-#{$i - 1} {
199
- padding-bottom: ($i - 1) * $am-spacing !important;
200
- }
201
-
202
- .AM-pb-#{$i - 1}\.5 {
203
- padding-bottom: ($i - .5) * $am-spacing !important;
204
- }
205
- }
206
-
207
- .AM-color-highlight {
208
- color: $am-highlight;
209
- }
@@ -1,7 +0,0 @@
1
- $am-spacing: 8px;
2
- $am-highlight: #3C976E;
3
-
4
- $color8: #f2f2f2; //Used
5
- $color10: #dcdbdb;
6
- $color12: #5C5C5C;
7
- $colorAlert: #D53A3A;
@@ -1,16 +0,0 @@
1
- <template>
2
- <el-menu
3
- class="vel-menu"
4
- >
5
- <slot />
6
- </el-menu>
7
- </template>
8
-
9
- <script>
10
- import { ElMenu } from "element-plus";
11
- export default {
12
- components: {
13
- ElMenu
14
- }
15
- }
16
- </script>
@@ -1,20 +0,0 @@
1
- <template>
2
- <el-menu-item :index="index" class="vel-menu-item" v-bind="$props">
3
- <template #title>
4
- <slot name="title" />
5
- </template>
6
- <template #default>
7
- <slot name="default" />
8
- </template>
9
- </el-menu-item>
10
- </template>
11
-
12
- <script>
13
- import { ElMenuItem } from "element-plus";
14
- export default {
15
- components: {
16
- ElMenuItem
17
- },
18
- props: ['index']
19
- }
20
- </script>
@@ -1,20 +0,0 @@
1
- <template>
2
- <el-sub-menu :index="index" v-bind="$props">
3
- <template #title>
4
- <slot name="title" />
5
- </template>
6
- <template #default>
7
- <slot name="default" />
8
- </template>
9
- </el-sub-menu>
10
- </template>
11
-
12
- <script>
13
- import ElSubMenu from "./SubMenu.vue";
14
- export default {
15
- components: {
16
- ElSubMenu
17
- },
18
- props:['index']
19
- }
20
- </script>
@@ -1,20 +0,0 @@
1
- <template>
2
- <el-sub-menu :index="index" class="vel-sub-menu" >
3
- <template #title>
4
- <slot name="title" />
5
- </template>
6
- <template #default>
7
- <slot name="default" />
8
- </template>
9
- </el-sub-menu>
10
- </template>
11
-
12
- <script>
13
- import { ElSubMenu } from "element-plus";
14
- export default {
15
- components: {
16
- ElSubMenu
17
- },
18
- props: ['index']
19
- }
20
- </script>
File without changes