fluency-v8-components 1.4.3 → 1.4.5
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/dist/fluency-v8-components.es.js +144 -141
- package/dist/fluency-v8-components.umd.js +88 -88
- package/dist/{index-4Y4E9JbN.mjs → index-DVmLdvgq.mjs} +8404 -8347
- package/dist/index.css +1 -1
- package/dist/{index.es-CGlekcuf.mjs → index.es-BL37nGHt.mjs} +1 -1
- package/package.json +1 -1
- package/src/assets/main.css +359 -194
- package/src/components/buttons/ActionButtons.vue +10 -10
- package/src/components/buttons/DropdownButton.vue +14 -14
- package/src/components/buttons/IconButton.vue +3 -3
- package/src/components/buttons/ImageButton.vue +1 -1
- package/src/components/buttons/MenuButton.vue +12 -15
- package/src/components/buttons/TextButton.vue +5 -3
- package/src/components/charts/WorkflowChart.vue +1 -1
- package/src/components/common/AutoCompleteSearchBar.vue +5 -5
- package/src/components/common/Breadcrumb.vue +3 -3
- package/src/components/common/ButtonToggle.vue +2 -2
- package/src/components/common/Card.vue +14 -14
- package/src/components/common/Carousel.vue +5 -5
- package/src/components/common/EditorHeading.vue +1 -1
- package/src/components/common/Error.vue +19 -0
- package/src/components/common/EventList.vue +2 -2
- package/src/components/common/Facet.vue +4 -4
- package/src/components/common/Feed.vue +8 -8
- package/src/components/common/Loading.vue +2 -2
- package/src/components/common/LoadingDots.vue +3 -3
- package/src/components/common/Pagination.vue +6 -7
- package/src/components/common/PowerToggle.vue +11 -33
- package/src/components/common/ProgressBar.vue +2 -2
- package/src/components/common/RadioButtons.vue +3 -3
- package/src/components/common/Slideout.vue +7 -8
- package/src/components/common/Sort.vue +2 -5
- package/src/components/common/Table.vue +2 -8
- package/src/components/common/Tabs.vue +12 -11
- package/src/components/common/VerticalTabs.vue +7 -4
- package/src/components/common/facet/Leaf.vue +4 -4
- package/src/components/dialogs/CopyDialog.vue +2 -2
- package/src/components/dialogs/InfoDialog.vue +39 -0
- package/src/components/dialogs/PopupEditor.vue +9 -4
- package/src/components/dialogs/wizard/Stepper.vue +2 -2
- package/src/components/form/CheckBox.vue +2 -2
- package/src/components/form/Editor.vue +1 -1
- package/src/components/form/FormCol.vue +2 -2
- package/src/components/form/FormRow.vue +2 -2
- package/src/components/form/GreyForm.vue +1 -1
- package/src/components/form/GreyInput.vue +3 -3
- package/src/components/form/GreyInputAutocomplete.vue +16 -16
- package/src/components/form/GreyInputCopy.vue +6 -6
- package/src/components/form/GreyInputGrow.vue +2 -2
- package/src/components/form/GreyInputToken.vue +5 -5
- package/src/components/form/GreyPassword.vue +3 -3
- package/src/components/form/GreySelect.vue +18 -15
- package/src/components/form/GreySelectInput.vue +12 -14
- package/src/components/form/GreySelectInputMultiple.vue +11 -14
- package/src/components/form/GreyTel.vue +3 -3
- package/src/components/form/HamburgerItem.vue +1 -1
- package/src/components/form/KeyValueEntry.vue +1 -1
- package/src/components/form/RadioInput.vue +2 -2
- package/src/components/form/UploadFile.vue +1 -1
- package/src/components/icons/PlugOffIcon.vue +13 -0
- package/src/components/icons/PlugOnIcon.vue +13 -0
- package/src/components/index.js +11 -7
- package/src/components/menu/DialogMenu.vue +4 -4
- package/src/components/menu/GrandChild.vue +3 -5
- package/src/components/menu/GridMenu.vue +5 -5
- package/src/components/menu/MenuAvatar.vue +4 -4
- package/src/components/menu/MenuDesktop.vue +4 -6
- package/src/components/notifications/Notify.vue +19 -15
- package/src/components/notifications/NotifyList.vue +18 -14
- package/src/components/status/ScoreLevel.vue +1 -2
- package/src/components/status/TicketStatus.vue +11 -20
- package/src/components/tables/ArgumentTable.vue +1 -1
- package/src/constants/colors.js +1 -1
- package/src/fpl/Configs/Counter.vue +1 -0
- package/src/fpl/Configs/Image.vue +1 -1
- package/src/fpl/Configs/Table.vue +1 -1
- package/src/fpl/Panel.vue +8 -8
- package/src/fpl/Panels/Counter.vue +1 -0
|
@@ -5,34 +5,36 @@
|
|
|
5
5
|
v-if="selected"
|
|
6
6
|
:class="[
|
|
7
7
|
'input-block sm:text-sm sm:leading-6',
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
{ 'std-red-ring': error },
|
|
9
|
+
{ 'disabled': readonly },
|
|
10
10
|
]"
|
|
11
|
+
:disabled="readonly"
|
|
11
12
|
>
|
|
12
13
|
<span class="flex items-center pr-10">
|
|
13
14
|
<span class="ml-3 block truncate">{{ selected.label }}</span>
|
|
14
15
|
</span>
|
|
15
16
|
<span
|
|
16
|
-
class="pointer-events-none
|
|
17
|
+
class="pointer-events-none input-icon"
|
|
17
18
|
>
|
|
18
|
-
<ChevronUpDownIcon class="icon-md
|
|
19
|
+
<ChevronUpDownIcon class="icon-md" aria-hidden="true" />
|
|
19
20
|
</span>
|
|
20
21
|
</ListboxButton>
|
|
21
22
|
<ListboxButton
|
|
22
23
|
v-else
|
|
23
24
|
:class="[
|
|
24
25
|
'input-block sm:text-sm sm:leading-6',
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
{ 'std-red-ring': error },
|
|
27
|
+
{ 'disabled': readonly },
|
|
27
28
|
]"
|
|
29
|
+
:disabled="readonly"
|
|
28
30
|
>
|
|
29
31
|
<span class="flex items-center pr-10">
|
|
30
32
|
<span class="ml-3 block truncate">{{ placeholder }}</span>
|
|
31
33
|
</span>
|
|
32
34
|
<span
|
|
33
|
-
class="pointer-events-none
|
|
35
|
+
class="pointer-events-none input-icon"
|
|
34
36
|
>
|
|
35
|
-
<ChevronUpDownIcon class="icon-md
|
|
37
|
+
<ChevronUpDownIcon class="icon-md" aria-hidden="true" />
|
|
36
38
|
</span>
|
|
37
39
|
</ListboxButton>
|
|
38
40
|
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
leave-to-class="opacity-0"
|
|
44
46
|
>
|
|
45
47
|
<ListboxOptions
|
|
46
|
-
class="input-block
|
|
48
|
+
class="input-block input-dropdown text-sm sm:text-xs"
|
|
47
49
|
>
|
|
48
50
|
<ListboxOption
|
|
49
51
|
as="template"
|
|
@@ -54,8 +56,8 @@
|
|
|
54
56
|
>
|
|
55
57
|
<li
|
|
56
58
|
:class="[
|
|
57
|
-
|
|
58
|
-
'
|
|
59
|
+
{ 'std-blue text-white': active },
|
|
60
|
+
'input-dropdown-item',
|
|
59
61
|
]"
|
|
60
62
|
>
|
|
61
63
|
<div
|
|
@@ -66,11 +68,12 @@
|
|
|
66
68
|
>
|
|
67
69
|
<span
|
|
68
70
|
:class="[
|
|
69
|
-
|
|
70
|
-
'
|
|
71
|
+
{ 'font-semibold': selected },
|
|
72
|
+
'input-dropdown-label',
|
|
71
73
|
]"
|
|
72
|
-
>{{ option.label }}</span
|
|
73
74
|
>
|
|
75
|
+
{{ option.label }}
|
|
76
|
+
</span>
|
|
74
77
|
</div>
|
|
75
78
|
<span
|
|
76
79
|
v-if="selected && selected.value === option.value"
|
|
@@ -87,7 +90,7 @@
|
|
|
87
90
|
</transition>
|
|
88
91
|
</div>
|
|
89
92
|
</Listbox>
|
|
90
|
-
<div v-if="error" class="
|
|
93
|
+
<div v-if="error" class="std-red-text text-sm">
|
|
91
94
|
{{ error }}
|
|
92
95
|
</div>
|
|
93
96
|
</template>
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Combobox as="div" v-bind="$attrs">
|
|
3
|
-
<div class="relative">
|
|
3
|
+
<div class="relative input-block">
|
|
4
4
|
<input
|
|
5
5
|
type="text"
|
|
6
6
|
:class="[
|
|
7
|
-
'pl-3
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
'pl-3 pr-8 w-full bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0',
|
|
8
|
+
{ 'std-red-ring': error },
|
|
9
|
+
{ 'disabled': readonly },
|
|
10
10
|
]"
|
|
11
11
|
v-model.trim="inputValue"
|
|
12
12
|
@input="setModelValue($event.target)"
|
|
13
13
|
/>
|
|
14
|
-
<ComboboxButton
|
|
15
|
-
class="
|
|
16
|
-
>
|
|
17
|
-
<ChevronUpDownIcon class="icon-md text-gray-400" aria-hidden="true" />
|
|
14
|
+
<ComboboxButton class="input-icon focus:outline-hidden">
|
|
15
|
+
<ChevronUpDownIcon class="icon-md" aria-hidden="true" />
|
|
18
16
|
</ComboboxButton>
|
|
19
17
|
|
|
20
18
|
<transition
|
|
@@ -24,7 +22,7 @@
|
|
|
24
22
|
leave-to-class="opacity-0"
|
|
25
23
|
>
|
|
26
24
|
<ComboboxOptions
|
|
27
|
-
class="input-block
|
|
25
|
+
class="input-block input-dropdown text-base sm:text-sm"
|
|
28
26
|
>
|
|
29
27
|
<ComboboxOption
|
|
30
28
|
as="template"
|
|
@@ -36,12 +34,12 @@
|
|
|
36
34
|
>
|
|
37
35
|
<li
|
|
38
36
|
:class="[
|
|
39
|
-
|
|
40
|
-
'
|
|
37
|
+
{ 'std-blue text-white': active },
|
|
38
|
+
'input-dropdown-item pl-3',
|
|
41
39
|
]"
|
|
42
40
|
>
|
|
43
|
-
<div class="flex items-center">
|
|
44
|
-
<span class="
|
|
41
|
+
<div class="flex items-center pr-10">
|
|
42
|
+
<span class="input-dropdown-label">{{ option.label }}</span>
|
|
45
43
|
</div>
|
|
46
44
|
</li>
|
|
47
45
|
</ComboboxOption>
|
|
@@ -49,7 +47,7 @@
|
|
|
49
47
|
</transition>
|
|
50
48
|
</div>
|
|
51
49
|
</Combobox>
|
|
52
|
-
<div v-if="error" class="
|
|
50
|
+
<div v-if="error" class="std-red-text text-sm">
|
|
53
51
|
{{ error }}
|
|
54
52
|
</div>
|
|
55
53
|
</template>
|
|
@@ -5,19 +5,16 @@
|
|
|
5
5
|
multiple
|
|
6
6
|
:class="[
|
|
7
7
|
'input-block py-0 relative',
|
|
8
|
-
error ? 'ring-red-600 ' : '',
|
|
9
|
-
readonly ? 'disabled' : '',
|
|
10
8
|
]"
|
|
11
9
|
@update:model-value="updateSelected"
|
|
12
10
|
>
|
|
13
11
|
<div class="relative w-full rounded-lg text-left min-h-9">
|
|
14
12
|
<div
|
|
15
|
-
class="flex flex-auto flex-wrap"
|
|
16
|
-
:class="{ 'pb-2': selected.length > 0 }"
|
|
13
|
+
class="flex flex-auto flex-wrap py-1"
|
|
17
14
|
>
|
|
18
15
|
<div
|
|
19
16
|
v-for="val in selected"
|
|
20
|
-
class="flex items-center ml-2 select-chip
|
|
17
|
+
class="flex items-center ml-2 select-chip my-1"
|
|
21
18
|
>
|
|
22
19
|
<div class="text-xs font-normal leading-none max-w-full flex-initial">
|
|
23
20
|
{{ val.label }}
|
|
@@ -35,7 +32,7 @@
|
|
|
35
32
|
</div>
|
|
36
33
|
<ComboboxInput
|
|
37
34
|
v-if="allowInput"
|
|
38
|
-
class="z-1
|
|
35
|
+
class="z-1 pl-3 py-2 pr-10 w-full text-sm bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0"
|
|
39
36
|
:displayValue="() => query"
|
|
40
37
|
:disabled="readonly"
|
|
41
38
|
@change="query = $event.target.value"
|
|
@@ -51,10 +48,10 @@
|
|
|
51
48
|
</span>
|
|
52
49
|
</ComboboxButton>
|
|
53
50
|
<ComboboxButton
|
|
54
|
-
class="
|
|
51
|
+
class="input-icon focus:outline-hidden"
|
|
55
52
|
:disabled="readonly"
|
|
56
53
|
>
|
|
57
|
-
<ChevronUpDownIcon class="icon-md
|
|
54
|
+
<ChevronUpDownIcon class="icon-md icon-gray" aria-hidden="true" />
|
|
58
55
|
</ComboboxButton>
|
|
59
56
|
</div>
|
|
60
57
|
<TransitionRoot
|
|
@@ -64,7 +61,7 @@
|
|
|
64
61
|
@after-leave="query = ''"
|
|
65
62
|
>
|
|
66
63
|
<ComboboxOptions
|
|
67
|
-
class="input-block
|
|
64
|
+
class="input-block input-dropdown text-base sm:text-sm"
|
|
68
65
|
>
|
|
69
66
|
<div
|
|
70
67
|
v-if="filteredOptions.length === 0 && query !== ''"
|
|
@@ -82,19 +79,19 @@
|
|
|
82
79
|
>
|
|
83
80
|
<li
|
|
84
81
|
:class="[
|
|
85
|
-
|
|
86
|
-
'
|
|
82
|
+
{ 'std-blue text-white': active },
|
|
83
|
+
'input-dropdown-item pr-10',
|
|
87
84
|
]"
|
|
88
85
|
>
|
|
89
86
|
<span
|
|
90
|
-
class="
|
|
87
|
+
class="input-dropdown-label"
|
|
91
88
|
:class="{ 'font-semibold': selected, 'font-normal': !selected }"
|
|
92
89
|
>
|
|
93
90
|
{{ option.label }}
|
|
94
91
|
</span>
|
|
95
92
|
<span
|
|
96
93
|
v-if="selected"
|
|
97
|
-
class="
|
|
94
|
+
class="input-icon"
|
|
98
95
|
>
|
|
99
96
|
<CheckIcon class="icon-md" aria-hidden="true" />
|
|
100
97
|
</span>
|
|
@@ -103,7 +100,7 @@
|
|
|
103
100
|
</ComboboxOptions>
|
|
104
101
|
</TransitionRoot>
|
|
105
102
|
</Combobox>
|
|
106
|
-
<div v-if="error" class="
|
|
103
|
+
<div v-if="error" class="std-red-text text-sm">
|
|
107
104
|
{{ error }}
|
|
108
105
|
</div>
|
|
109
106
|
</template>
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
type="tel"
|
|
5
5
|
:class="[
|
|
6
6
|
'input-block',
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
{ 'std-red-ring': error },
|
|
8
|
+
{ 'disabled': readonly },
|
|
9
9
|
]"
|
|
10
10
|
placeholder="(xxx)-xxx-xxxx"
|
|
11
11
|
@input="onChange"
|
|
12
12
|
/>
|
|
13
|
-
<div v-if="error" class="
|
|
13
|
+
<div v-if="error" class="std-red-text text-sm">
|
|
14
14
|
{{ error }}
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:class="[
|
|
4
4
|
'cursor-pointer input-block my-2 px-5 py-1 rounded-lg relative',
|
|
5
5
|
draggable ? `draggable${index} select-none` : '',
|
|
6
|
-
'hover:bg-
|
|
6
|
+
'hover:white-bg-hover dark:hover:dark-bg-hover',
|
|
7
7
|
]"
|
|
8
8
|
>
|
|
9
9
|
<span class="flex items-center">
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<input
|
|
3
3
|
type="radio"
|
|
4
4
|
:class="[
|
|
5
|
-
'icon
|
|
6
|
-
|
|
5
|
+
'icon std-blue-text focus:std-blue-ring',
|
|
6
|
+
{ 'disabled': $attrs.readonly },
|
|
7
7
|
]"
|
|
8
8
|
:value="radioValue"
|
|
9
9
|
:checked="radioValue === $attrs.modelValue"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<div class="mt-2 sm:col-span-2 sm:mt-0">
|
|
12
12
|
<div
|
|
13
|
-
class="flex justify-center rounded-lg border border-dashed px-6 py-10
|
|
13
|
+
class="flex justify-center rounded-lg border-2 border-dashed px-6 py-10 std-white-border"
|
|
14
14
|
>
|
|
15
15
|
<div class="text-center">
|
|
16
16
|
<div class="mt-4 flex text-sm leading-6">
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
height="20px"
|
|
4
|
+
viewBox="0 0 24 24"
|
|
5
|
+
width="20px"
|
|
6
|
+
fill="#ef4444"
|
|
7
|
+
>
|
|
8
|
+
<path d="M0 0h24v24H0V0z" fill="none" />
|
|
9
|
+
<path
|
|
10
|
+
d="M18 14.49V9c0-1-1.01-2.01-2-2V3h-2v4h-4V3H8v2.48l9.51 9.5.49-.49zm-1.76 1.77L7.2 7.2l-.01.01L3.98 4 2.71 5.25l3.36 3.36C6.04 8.74 6 8.87 6 9v5.48L9.5 18v3h5v-3l.48-.48L19.45 22l1.26-1.28-4.47-4.46z"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
height="20px"
|
|
4
|
+
viewBox="0 0 24 24"
|
|
5
|
+
width="20px"
|
|
6
|
+
fill="#16a34a"
|
|
7
|
+
>
|
|
8
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
9
|
+
<path
|
|
10
|
+
d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
package/src/components/index.js
CHANGED
|
@@ -20,6 +20,15 @@ export { default as UploadFile } from "./form/UploadFile.vue";
|
|
|
20
20
|
export { default as KeyValueEntry } from "./form/KeyValueEntry.vue";
|
|
21
21
|
export { default as Editor } from "./form/Editor.vue";
|
|
22
22
|
|
|
23
|
+
// icons
|
|
24
|
+
export { default as AiIcon } from "./icons/AiIcon.vue";
|
|
25
|
+
export { default as GithubIcon } from "./icons/GithubIcon.vue";
|
|
26
|
+
export { default as HighPriorityIcon } from "./icons/HighPriorityIcon.vue";
|
|
27
|
+
export { default as PlugOnIcon } from "./icons/PlugOnIcon.vue";
|
|
28
|
+
export { default as PlugOffIcon } from "./icons/PlugOffIcon.vue";
|
|
29
|
+
export { default as PowerOffIcon } from "./icons/PowerOffIcon.vue";
|
|
30
|
+
export { default as SaveIcon } from "./icons/SaveIcon.vue";
|
|
31
|
+
|
|
23
32
|
// notify and dialogs
|
|
24
33
|
export { default as ConfirmDialog } from "./dialogs/ConfirmDialog.vue";
|
|
25
34
|
export { default as CopyDialog } from "./dialogs/CopyDialog.vue";
|
|
@@ -33,6 +42,7 @@ export { default as Wizard } from "./dialogs/Wizard.vue";
|
|
|
33
42
|
export { default as ResetPasswordDialog } from "./dialogs/ResetPasswordDialog.vue";
|
|
34
43
|
export { default as DownloadDialog } from "./dialogs/DownloadDialog.vue";
|
|
35
44
|
export { default as PopupEditor } from "./dialogs/PopupEditor.vue";
|
|
45
|
+
export { default as InfoDialog } from "./dialogs/InfoDialog.vue";
|
|
36
46
|
|
|
37
47
|
// Buttons
|
|
38
48
|
export { default as ActionButtons } from "./buttons/ActionButtons.vue";
|
|
@@ -53,6 +63,7 @@ export { default as ScoreLevel } from "./status/ScoreLevel.vue";
|
|
|
53
63
|
export { default as Status } from "./status/Status.vue";
|
|
54
64
|
|
|
55
65
|
// commons
|
|
66
|
+
export { default as Error } from "./common/Error.vue";
|
|
56
67
|
export { default as AutoRefreshButton } from "./common/AutoRefreshButton.vue";
|
|
57
68
|
export { default as AutoCompleteSearchBar } from "./common/AutoCompleteSearchBar.vue";
|
|
58
69
|
export { default as Breadcrumb } from "./common/Breadcrumb.vue";
|
|
@@ -95,13 +106,6 @@ export { default as Sort } from "./common/Sort.vue";
|
|
|
95
106
|
export { default as Flag } from "./common/Flag.vue";
|
|
96
107
|
export { default as ThreeHomePanel } from "./common/ThreeHomePanel.vue";
|
|
97
108
|
|
|
98
|
-
// icons
|
|
99
|
-
export { default as AiIcon } from "./icons/AiIcon.vue";
|
|
100
|
-
export { default as GithubIcon } from "./icons/GithubIcon.vue";
|
|
101
|
-
export { default as HighPriorityIcon } from "./icons/HighPriorityIcon.vue";
|
|
102
|
-
export { default as PowerOffIcon } from "./icons/PowerOffIcon.vue";
|
|
103
|
-
export { default as SaveIcon } from "./icons/SaveIcon.vue";
|
|
104
|
-
|
|
105
109
|
// charts
|
|
106
110
|
export { default as AlertChart } from "./charts/AlertChart.vue";
|
|
107
111
|
export { default as CronChart } from "./charts/CronChart.vue";
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
<DialogPanel
|
|
11
11
|
class="fixed top-8 left-0 z-50 w-80 px-2 py-6 sm:px-6 sm:top-2 sm:w-full sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"
|
|
12
12
|
>
|
|
13
|
-
<div class="flex items-center
|
|
13
|
+
<div class="flex items-center">
|
|
14
14
|
<button
|
|
15
15
|
type="button"
|
|
16
|
-
class="
|
|
16
|
+
class="rounded-md p-2.5"
|
|
17
17
|
@click="emits('close')"
|
|
18
18
|
>
|
|
19
19
|
<span class="sr-only">Close menu</span>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
</button>
|
|
22
22
|
</div>
|
|
23
23
|
<div
|
|
24
|
-
class="mt-6 flow-root white
|
|
24
|
+
class="mt-6 flow-root std-white std-white-text rounded-3xl p-3"
|
|
25
25
|
>
|
|
26
26
|
<div class="-my-6 divide-y divide-gray-500/10">
|
|
27
27
|
<div class="space-y-2 py-6">
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
:class="[
|
|
54
54
|
'text-sm font-medium',
|
|
55
55
|
props.currentRoute === child.route
|
|
56
|
-
? 'font-semibold
|
|
56
|
+
? 'font-semibold'
|
|
57
57
|
: 'hover:font-bold',
|
|
58
58
|
]"
|
|
59
59
|
@click="emits('close')"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="absolute top-0 z-50 w-44 rounded-3xl shadow-lg
|
|
3
|
+
class="absolute top-0 z-50 w-44 rounded-3xl shadow-lg left-full std-white std-white-text"
|
|
4
4
|
>
|
|
5
5
|
<router-link
|
|
6
6
|
v-for="grandchild in children"
|
|
@@ -12,10 +12,8 @@
|
|
|
12
12
|
>
|
|
13
13
|
<div
|
|
14
14
|
:class="[
|
|
15
|
-
'rounded-lg m-2 p-3 text-sm leading-6',
|
|
16
|
-
props.currentRoute === grandchild.route
|
|
17
|
-
? 'bg-slate-300 dark:bg-slate-700'
|
|
18
|
-
: 'hover:bg-gray-200 dark:hover:bg-neutral-700',
|
|
15
|
+
'rounded-lg m-2 p-3 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover',
|
|
16
|
+
{ 'white-bg-hover dark:dark-bg-hover': props.currentRoute === grandchild.route },
|
|
19
17
|
]"
|
|
20
18
|
>
|
|
21
19
|
{{ grandchild.name }}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Combobox
|
|
3
3
|
as="div"
|
|
4
|
-
class="
|
|
4
|
+
class="std-white-border relative rounded-sm border-2 my-1 focus-within:ring23 focus-within:std-blue-ring focus-within:std-blue-border"
|
|
5
5
|
v-model="selected"
|
|
6
6
|
@update:model-value="emits('update', $event)"
|
|
7
7
|
>
|
|
8
8
|
<ComboboxInput
|
|
9
|
-
class="w-full
|
|
9
|
+
class="w-full text-sm bg-transparent px-2 border-0 outline-none focus:outline-none focus:ring-0"
|
|
10
10
|
@change="query = $event.target.value"
|
|
11
11
|
:displayValue="(option) => option.label"
|
|
12
12
|
/>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@after-leave="query = ''"
|
|
21
21
|
>
|
|
22
22
|
<ComboboxOptions
|
|
23
|
-
class="
|
|
23
|
+
class="input-dropdown max-h-96! text-base text-sm std-white std-white-text"
|
|
24
24
|
>
|
|
25
25
|
<ComboboxOption
|
|
26
26
|
as="template"
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
>
|
|
32
32
|
<li
|
|
33
33
|
:class="[
|
|
34
|
-
|
|
35
|
-
'
|
|
34
|
+
{ 'std-blue text-white': active },
|
|
35
|
+
'input-dropdown-item pl-8 pr-3',
|
|
36
36
|
]"
|
|
37
37
|
>
|
|
38
38
|
<span
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Menu as="div" class="relative ml-auto mt-1.5">
|
|
3
3
|
<MenuButton
|
|
4
|
-
class="rounded-full ring-2
|
|
4
|
+
class="rounded-full ring-2 icon-lg text-sm"
|
|
5
5
|
>
|
|
6
6
|
{{ initials }}
|
|
7
7
|
</MenuButton>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
leave-to-class="transform opacity-0 scale-95"
|
|
15
15
|
>
|
|
16
16
|
<MenuItems
|
|
17
|
-
class="
|
|
17
|
+
class="input-dropdown right-0 top-full mt-3 w-44 rounded-3xl shadow-lg"
|
|
18
18
|
>
|
|
19
19
|
<MenuItem
|
|
20
20
|
v-for="child in userChildren"
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
v-slot="{ close }"
|
|
23
23
|
>
|
|
24
24
|
<div
|
|
25
|
-
class="py-1 px-2 white
|
|
25
|
+
class="py-1 px-2 std-white std-white-text"
|
|
26
26
|
>
|
|
27
27
|
<router-link
|
|
28
28
|
:to="{ name: child.route, params: child.params }"
|
|
29
29
|
@click="close"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
32
|
-
class="rounded-lg p-4 text-sm leading-6 hover:bg-
|
|
32
|
+
class="rounded-lg p-4 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover"
|
|
33
33
|
>
|
|
34
34
|
{{ child.name }}
|
|
35
35
|
</div>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
v-slot="{ close, active }"
|
|
24
24
|
>
|
|
25
25
|
<div
|
|
26
|
-
class="py-1 px-2 white
|
|
26
|
+
class="py-1 px-2 std-white std-white-text"
|
|
27
27
|
>
|
|
28
28
|
<router-link
|
|
29
29
|
v-if="!child.children"
|
|
@@ -32,10 +32,8 @@
|
|
|
32
32
|
>
|
|
33
33
|
<div
|
|
34
34
|
:class="[
|
|
35
|
-
'rounded-lg p-4 text-sm leading-6',
|
|
36
|
-
currentRoute === child.route
|
|
37
|
-
? 'bg-slate-300 dark:bg-slate-700'
|
|
38
|
-
: 'hover:bg-gray-200 dark:hover:bg-neutral-700',
|
|
35
|
+
'rounded-lg p-4 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover',
|
|
36
|
+
{ 'white-bg-hover dark:dark-bg-hover': currentRoute === child.route },
|
|
39
37
|
]"
|
|
40
38
|
>
|
|
41
39
|
{{ child.name }}
|
|
@@ -43,7 +41,7 @@
|
|
|
43
41
|
</router-link>
|
|
44
42
|
<div v-else>
|
|
45
43
|
<div
|
|
46
|
-
class="relative rounded-lg p-4 text-sm leading-6 hover:bg-
|
|
44
|
+
class="relative rounded-lg p-4 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover"
|
|
47
45
|
>
|
|
48
46
|
<span class="relative row text-sm">
|
|
49
47
|
{{ child.name }}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<Dialog
|
|
5
5
|
v-if="isDialog"
|
|
6
6
|
as="div"
|
|
7
|
-
:class="success ? '
|
|
7
|
+
:class="success ? 'std-green-light' : 'std-red-light'"
|
|
8
8
|
class="rounded-md p-4 fixed bottom-5 z-50"
|
|
9
9
|
style="min-width: 75%; left: 50%; transform: translateX(-50%)"
|
|
10
10
|
@close="closeModal"
|
|
@@ -13,20 +13,22 @@
|
|
|
13
13
|
<div class="flex-shrink-0">
|
|
14
14
|
<CheckCircleIcon
|
|
15
15
|
v-if="success"
|
|
16
|
-
class="icon-md
|
|
16
|
+
class="icon-md icon-green"
|
|
17
17
|
aria-hidden="true"
|
|
18
18
|
/>
|
|
19
|
-
<XCircleIcon v-else class="icon-md
|
|
19
|
+
<XCircleIcon v-else class="icon-md icon-red" aria-hidden="true" />
|
|
20
20
|
</div>
|
|
21
21
|
<div class="ml-3">
|
|
22
|
-
<h3 v-if="success" class="text-sm font-medium
|
|
22
|
+
<h3 v-if="success" class="text-sm font-medium std-green-text">
|
|
23
23
|
{{ title }}
|
|
24
24
|
</h3>
|
|
25
|
-
<h3 v-else class="text-sm font-medium
|
|
26
|
-
|
|
25
|
+
<h3 v-else class="text-sm font-medium std-red-text">
|
|
26
|
+
{{ title }}
|
|
27
|
+
</h3>
|
|
28
|
+
<div v-if="success" class="mt-2 text-sm std-green-text">
|
|
27
29
|
<p>{{ msg }}</p>
|
|
28
30
|
</div>
|
|
29
|
-
<div v-else class="mt-2 text-sm
|
|
31
|
+
<div v-else class="mt-2 text-sm std-red-text">
|
|
30
32
|
<p>{{ msg }}</p>
|
|
31
33
|
</div>
|
|
32
34
|
</div>
|
|
@@ -41,28 +43,30 @@
|
|
|
41
43
|
</Dialog>
|
|
42
44
|
<div
|
|
43
45
|
v-else
|
|
44
|
-
:class="success ? '
|
|
45
|
-
class="rounded-md p-4 fixed bottom-5 z-
|
|
46
|
+
:class="success ? 'std-green-light' : 'std-red-light'"
|
|
47
|
+
class="rounded-md p-4 fixed bottom-5 z-80"
|
|
46
48
|
style="min-width: 75%; left: 50%; transform: translateX(-50%)"
|
|
47
49
|
>
|
|
48
50
|
<div class="flex">
|
|
49
51
|
<div class="flex-shrink-0">
|
|
50
52
|
<CheckCircleIcon
|
|
51
53
|
v-if="success"
|
|
52
|
-
class="icon-md
|
|
54
|
+
class="icon-md icon-green"
|
|
53
55
|
aria-hidden="true"
|
|
54
56
|
/>
|
|
55
|
-
<XCircleIcon v-else class="icon-md
|
|
57
|
+
<XCircleIcon v-else class="icon-md icon-red" aria-hidden="true" />
|
|
56
58
|
</div>
|
|
57
59
|
<div class="ml-3">
|
|
58
|
-
<h3 v-if="success" class="text-sm font-medium
|
|
60
|
+
<h3 v-if="success" class="text-sm font-medium std-green-text">
|
|
61
|
+
{{ title }}
|
|
62
|
+
</h3>
|
|
63
|
+
<h3 v-else class="text-sm font-medium std-red-text">
|
|
59
64
|
{{ title }}
|
|
60
65
|
</h3>
|
|
61
|
-
<
|
|
62
|
-
<div v-if="success" class="mt-2 text-sm text-green-700">
|
|
66
|
+
<div v-if="success" class="mt-2 text-sm std-green-text">
|
|
63
67
|
<p>{{ msg }}</p>
|
|
64
68
|
</div>
|
|
65
|
-
<div v-else class="mt-2 text-sm
|
|
69
|
+
<div v-else class="mt-2 text-sm std-red-text">
|
|
66
70
|
<p>{{ msg }}</p>
|
|
67
71
|
</div>
|
|
68
72
|
</div>
|