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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<Dialog
|
|
4
4
|
v-if="isDialog"
|
|
5
5
|
as="div"
|
|
6
|
-
:class="success ? '
|
|
6
|
+
:class="success ? 'std-green-light' : 'std-red-light'"
|
|
7
7
|
class="rounded-md p-4 fixed bottom-5 z-50"
|
|
8
8
|
style="min-width: 75%; left: 50%; transform: translateX(-50%)"
|
|
9
9
|
@close="closeModal"
|
|
@@ -12,22 +12,24 @@
|
|
|
12
12
|
<div class="flex-shrink-0">
|
|
13
13
|
<CheckCircleIcon
|
|
14
14
|
v-if="success"
|
|
15
|
-
class="icon-md
|
|
15
|
+
class="icon-md icon-green"
|
|
16
16
|
aria-hidden="true"
|
|
17
17
|
/>
|
|
18
|
-
<XCircleIcon v-else class="icon-md
|
|
18
|
+
<XCircleIcon v-else class="icon-md icon-red" aria-hidden="true" />
|
|
19
19
|
</div>
|
|
20
20
|
<div class="ml-3">
|
|
21
|
-
<h3 v-if="success" class="text-sm font-medium
|
|
21
|
+
<h3 v-if="success" class="text-sm font-medium std-green-text">
|
|
22
22
|
{{ title }}
|
|
23
23
|
</h3>
|
|
24
|
-
<h3 v-else class="text-sm font-medium
|
|
25
|
-
|
|
24
|
+
<h3 v-else class="text-sm font-medium std-red-text">
|
|
25
|
+
{{ title }}
|
|
26
|
+
</h3>
|
|
27
|
+
<div v-if="success" class="mt-2 text-sm std-green-text">
|
|
26
28
|
<ul role="list" class="list-disc space-y-1 pl-5">
|
|
27
29
|
<li v-for="item in list" :key="item">{{ item }}</li>
|
|
28
30
|
</ul>
|
|
29
31
|
</div>
|
|
30
|
-
<div v-else class="mt-2 text-sm
|
|
32
|
+
<div v-else class="mt-2 text-sm std-red-text">
|
|
31
33
|
<ul role="list" class="list-disc space-y-1 pl-5">
|
|
32
34
|
<li v-for="item in list" :key="item">{{ item }}</li>
|
|
33
35
|
</ul>
|
|
@@ -44,7 +46,7 @@
|
|
|
44
46
|
</Dialog>
|
|
45
47
|
<div
|
|
46
48
|
v-else
|
|
47
|
-
:class="success ? '
|
|
49
|
+
:class="success ? 'std-green-light' : 'std-red-light'"
|
|
48
50
|
class="rounded-md p-4 fixed bottom-5 z-50"
|
|
49
51
|
style="min-width: 75%; left: 50%; transform: translateX(-50%)"
|
|
50
52
|
>
|
|
@@ -52,22 +54,24 @@
|
|
|
52
54
|
<div class="flex-shrink-0">
|
|
53
55
|
<CheckCircleIcon
|
|
54
56
|
v-if="success"
|
|
55
|
-
class="icon-md
|
|
57
|
+
class="icon-md icon-green"
|
|
56
58
|
aria-hidden="true"
|
|
57
59
|
/>
|
|
58
|
-
<XCircleIcon v-else class="icon-md
|
|
60
|
+
<XCircleIcon v-else class="icon-md icon-red" aria-hidden="true" />
|
|
59
61
|
</div>
|
|
60
62
|
<div class="ml-3">
|
|
61
|
-
<h3 v-if="success" class="text-sm font-medium
|
|
63
|
+
<h3 v-if="success" class="text-sm font-medium std-green-text">
|
|
64
|
+
{{ title }}
|
|
65
|
+
</h3>
|
|
66
|
+
<h3 v-else class="text-sm font-medium std-red-text">
|
|
62
67
|
{{ title }}
|
|
63
68
|
</h3>
|
|
64
|
-
<
|
|
65
|
-
<div v-if="success" class="mt-2 text-sm text-green-700">
|
|
69
|
+
<div v-if="success" class="mt-2 text-sm std-green-text">
|
|
66
70
|
<ul role="list" class="list-disc space-y-1 pl-5">
|
|
67
71
|
<li v-for="item in list" :key="item">{{ item }}</li>
|
|
68
72
|
</ul>
|
|
69
73
|
</div>
|
|
70
|
-
<div v-else class="mt-2 text-sm
|
|
74
|
+
<div v-else class="mt-2 text-sm std-red-text">
|
|
71
75
|
<ul role="list" class="list-disc space-y-1 pl-5">
|
|
72
76
|
<li v-for="item in list" :key="item">{{ item }}</li>
|
|
73
77
|
</ul>
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
:class="[
|
|
4
|
-
'text-left justify-start inline-flex items-center rounded-sm mx-2 px-2 py-0.5 text-xs font-medium
|
|
4
|
+
'text-left justify-start inline-flex items-center rounded-sm mx-2 px-2 py-0.5 text-xs font-medium std-light dark:std-dark',
|
|
5
5
|
{ 'score-none': scoreLevel === 'none' },
|
|
6
6
|
{ 'score-low': scoreLevel === 'low' },
|
|
7
7
|
{ 'score-medium': scoreLevel === 'medium' },
|
|
8
8
|
{ 'score-serious': scoreLevel === 'serious' },
|
|
9
9
|
{ 'score-high': scoreLevel === 'high' },
|
|
10
10
|
{ 'score-critical': scoreLevel === 'critical' },
|
|
11
|
-
{ 'score-warn': scoreLevel === 'warn' },
|
|
12
11
|
]"
|
|
13
12
|
>
|
|
14
13
|
<ExclamationTriangleIcon class="icon mr-1" />
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<Menu as="div" class="inline-block text-left">
|
|
3
3
|
<div>
|
|
4
4
|
<MenuButton
|
|
5
|
-
class="inline-flex w-full justify-center rounded-md
|
|
5
|
+
class="inline-flex w-full justify-center rounded-md std-white std-white-ring px-3 py-1 text-sm font-semibold shadow-xs ring-1 ring-inset hover:std-white-hover"
|
|
6
6
|
:disabled="disabled"
|
|
7
7
|
@click="($event) => closeMenu($event)"
|
|
8
8
|
>
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"
|
|
18
18
|
class="icon mt-0.5 icon-blue"
|
|
19
19
|
/>
|
|
20
|
-
<CheckCircleIcon
|
|
21
|
-
v-if="selectedItem === 'resolved' || selectedItem === 'Resolved'"
|
|
22
|
-
class="icon mt-0.5 icon-green"
|
|
23
|
-
/>
|
|
24
20
|
<XCircleIcon
|
|
25
21
|
v-if="selectedItem === 'closed' || selectedItem === 'Closed'"
|
|
26
22
|
class="icon mt-0.5 icon-gray"
|
|
@@ -31,7 +27,7 @@
|
|
|
31
27
|
</div>
|
|
32
28
|
<ChevronDownIcon
|
|
33
29
|
v-if="!disabled"
|
|
34
|
-
class="-mr-1 icon-md
|
|
30
|
+
class="-mr-1 icon-md"
|
|
35
31
|
aria-hidden="true"
|
|
36
32
|
/>
|
|
37
33
|
</MenuButton>
|
|
@@ -46,7 +42,7 @@
|
|
|
46
42
|
leave-to-class="transform opacity-0 scale-95"
|
|
47
43
|
>
|
|
48
44
|
<MenuItems
|
|
49
|
-
class="absolute z-10 w-
|
|
45
|
+
class="std-white absolute z-10 w-40 origin-top-right rounded-xs shadow-lg focus:outline-hidden "
|
|
50
46
|
style="transform: translateX(-60px)"
|
|
51
47
|
>
|
|
52
48
|
<div class="py-0.5" v-for="(item, index) in data" :key="index">
|
|
@@ -58,10 +54,8 @@
|
|
|
58
54
|
>
|
|
59
55
|
<a
|
|
60
56
|
:class="[
|
|
61
|
-
active
|
|
62
|
-
|
|
63
|
-
: 'text-gray-700',
|
|
64
|
-
'block px-4 py-1 text-sm dark:text-white dark:std-dark',
|
|
57
|
+
{ 'std-white-hover': active},
|
|
58
|
+
'std-white-text block px-4 py-1 text-sm cursor-pointer',
|
|
65
59
|
]"
|
|
66
60
|
>
|
|
67
61
|
<div class="flex">
|
|
@@ -90,11 +84,9 @@
|
|
|
90
84
|
<MenuItem v-slot="{ active }">
|
|
91
85
|
<div
|
|
92
86
|
:class="[
|
|
93
|
-
active
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
'block px-4 py-1 text-sm dark:text-white dark:std-dark',
|
|
97
|
-
]"
|
|
87
|
+
{ 'std-white-hover': active},
|
|
88
|
+
'std-white-text block px-4 py-1 text-sm',
|
|
89
|
+
]"
|
|
98
90
|
>
|
|
99
91
|
<div class="flex">
|
|
100
92
|
<XCircleIcon class="icon mt-0.5 icon-gray" />
|
|
@@ -105,14 +97,14 @@
|
|
|
105
97
|
<div
|
|
106
98
|
v-if="openClassification"
|
|
107
99
|
:class="[
|
|
108
|
-
'absolute top-0 w-80 rounded-xs
|
|
100
|
+
'absolute top-0 w-80 rounded-xs std-white shadow-lg',
|
|
109
101
|
{ 'left-full': subItemDirection === 'right' },
|
|
110
102
|
{ 'right-full': subItemDirection === 'left' },
|
|
111
103
|
]"
|
|
112
104
|
>
|
|
113
105
|
<a
|
|
114
106
|
v-for="classification in classifications"
|
|
115
|
-
class="block px-4 py-1 text-sm
|
|
107
|
+
class="cursor-pointer block px-4 py-1 text-sm std-white-text hover:std-white-hover"
|
|
116
108
|
@click.stop="selectSubItem(item, classification)"
|
|
117
109
|
>
|
|
118
110
|
<div class="flex">
|
|
@@ -130,11 +122,10 @@
|
|
|
130
122
|
<script setup>
|
|
131
123
|
import { Menu, MenuButton, MenuItem, MenuItems } from "@headlessui/vue";
|
|
132
124
|
import {
|
|
133
|
-
CheckCircleIcon,
|
|
134
|
-
ClockIcon,
|
|
135
125
|
ChevronDownIcon,
|
|
136
126
|
ExclamationCircleIcon,
|
|
137
127
|
XCircleIcon,
|
|
128
|
+
ClockIcon,
|
|
138
129
|
} from "@heroicons/vue/24/outline";
|
|
139
130
|
import { ref, watch } from "vue";
|
|
140
131
|
// constants
|
package/src/constants/colors.js
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<input
|
|
72
72
|
v-if="backgroundColor"
|
|
73
73
|
type="color"
|
|
74
|
-
class="mx-2 block w-20
|
|
74
|
+
class="mx-2 block w-20 border std-white std-white-border cursor-pointer rounded-md"
|
|
75
75
|
id="hs-color-input"
|
|
76
76
|
v-model="local.panelConfig.backgroundColor"
|
|
77
77
|
/>
|
package/src/fpl/Panel.vue
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</span>
|
|
15
15
|
</div>
|
|
16
16
|
<Menu v-if="!viewing" as="div" class="absolute right-1 top-2">
|
|
17
|
-
<MenuButton class="-m-2.5 block p-2.5
|
|
17
|
+
<MenuButton class="-m-2.5 block p-2.5 icon-gray hover:opacity-50">
|
|
18
18
|
<span class="sr-only">Open options</span>
|
|
19
19
|
<EllipsisHorizontalIcon class="icon-md" aria-hidden="true" />
|
|
20
20
|
</MenuButton>
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
leave-to-class="transform opacity-0 scale-95"
|
|
28
28
|
>
|
|
29
29
|
<MenuItems
|
|
30
|
-
class="absolute right-0 z-10 mt-0.5 w-32 origin-top-right rounded-md py-2 shadow-lg
|
|
30
|
+
class="std-white absolute right-0 z-10 mt-0.5 w-32 origin-top-right rounded-md py-2 shadow-lg"
|
|
31
31
|
>
|
|
32
32
|
<MenuItem v-slot="{ active }">
|
|
33
33
|
<div
|
|
34
34
|
:class="[
|
|
35
|
-
|
|
36
|
-
'block px-3 py-1 text-sm leading-6',
|
|
35
|
+
{ 'std-blue std-white-text': active },
|
|
36
|
+
'block px-3 py-1 text-sm leading-6 cursor-pointer',
|
|
37
37
|
]"
|
|
38
38
|
@click="emits('edit', panel)"
|
|
39
39
|
>
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
<MenuItem v-if="panel.panelType === 'table'" v-slot="{ active }">
|
|
44
44
|
<div
|
|
45
45
|
:class="[
|
|
46
|
-
|
|
47
|
-
'block px-3 py-1 text-sm leading-6',
|
|
46
|
+
{ 'std-blue std-white-text': active },
|
|
47
|
+
'block px-3 py-1 text-sm leading-6 cursor-pointer',
|
|
48
48
|
]"
|
|
49
49
|
@click="downloadTableCSV"
|
|
50
50
|
>
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
<MenuItem v-slot="{ active }">
|
|
55
55
|
<div
|
|
56
56
|
:class="[
|
|
57
|
-
|
|
58
|
-
'block px-3 py-1 text-sm leading-6',
|
|
57
|
+
{ 'std-blue std-white-text': active },
|
|
58
|
+
'block px-3 py-1 text-sm leading-6 cursor-pointer',
|
|
59
59
|
]"
|
|
60
60
|
@click="emits('delete', panel.key)"
|
|
61
61
|
>
|
|
@@ -35,6 +35,7 @@ if (props.obj.table.rows[0]) {
|
|
|
35
35
|
// function defs
|
|
36
36
|
function formatCol(total, format) {
|
|
37
37
|
if (format === "Data") return dataCount(total) + "B";
|
|
38
|
+
if (format === "Cost") return "$" + total.toFixed(2);
|
|
38
39
|
if (format === "Readable Numbers") return humanCount(total.toPrecision(3));
|
|
39
40
|
if (format === "comma") return total.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
40
41
|
if (format === "comma_data") return total.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + "B";
|