fluency-v8-components 1.3.4 → 1.3.6

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 (179) hide show
  1. package/dist/fluency-v8-components.es.js +1 -1
  2. package/dist/fluency-v8-components.umd.js +31 -31
  3. package/dist/{index-Dxs_Gn5T.mjs → index-BBxccHNP.mjs} +53 -47
  4. package/dist/index.css +1 -1
  5. package/dist/{index.es-YeMpD96e.mjs → index.es-D_XhLSeH.mjs} +1 -1
  6. package/package.json +3 -2
  7. package/src/assets/images/ai.svg +1 -0
  8. package/src/assets/images/github-dark.svg +1 -0
  9. package/src/assets/images/github.svg +1 -0
  10. package/src/assets/images/high-priority.svg +1 -0
  11. package/src/assets/images/power-off.svg +1 -0
  12. package/src/assets/images/save.svg +1 -0
  13. package/src/assets/index.ts +15 -0
  14. package/src/assets/main.css +505 -0
  15. package/src/assets/prism-theme.css +290 -0
  16. package/src/components/buttons/ActionButtons.vue +374 -0
  17. package/src/components/buttons/DropdownButton.vue +104 -0
  18. package/src/components/buttons/IconButton.vue +63 -0
  19. package/src/components/buttons/ImageButton.vue +16 -0
  20. package/src/components/buttons/MenuButton.vue +138 -0
  21. package/src/components/buttons/SubmitButtons.vue +51 -0
  22. package/src/components/buttons/TextButton.vue +40 -0
  23. package/src/components/charts/AlertChart.vue +376 -0
  24. package/src/components/charts/BarChart.vue +212 -0
  25. package/src/components/charts/BarChartHorizontal.vue +243 -0
  26. package/src/components/charts/CronChart.vue +146 -0
  27. package/src/components/charts/EmptyChart.vue +76 -0
  28. package/src/components/charts/GradientChart.vue +310 -0
  29. package/src/components/charts/LineChart.test.js +59 -0
  30. package/src/components/charts/LineChart.vue +434 -0
  31. package/src/components/charts/PieChart.vue +293 -0
  32. package/src/components/charts/ProgressChart.vue +106 -0
  33. package/src/components/charts/StackedChart.vue +364 -0
  34. package/src/components/charts/StackedChartClustered.vue +395 -0
  35. package/src/components/charts/TimelineChart.vue +215 -0
  36. package/src/components/charts/WorkflowChart.vue +520 -0
  37. package/src/components/common/AutoCompleteSearchBar.vue +100 -0
  38. package/src/components/common/AutoRefreshButton.vue +53 -0
  39. package/src/components/common/Breadcrumb.vue +45 -0
  40. package/src/components/common/ButtonToggle.vue +24 -0
  41. package/src/components/common/Card.vue +116 -0
  42. package/src/components/common/Carousel.vue +66 -0
  43. package/src/components/common/CategoryCard.vue +28 -0
  44. package/src/components/common/CodeEditor.vue +59 -0
  45. package/src/components/common/DatePicker.vue +21 -0
  46. package/src/components/common/DatePickerInput.vue +109 -0
  47. package/src/components/common/Dialog.vue +103 -0
  48. package/src/components/common/EditorHeading.vue +10 -0
  49. package/src/components/common/EventList.vue +41 -0
  50. package/src/components/common/Facet.vue +206 -0
  51. package/src/components/common/Feed.vue +58 -0
  52. package/src/components/common/Flag.vue +27 -0
  53. package/src/components/common/HomeCard.vue +20 -0
  54. package/src/components/common/ItemBox.vue +49 -0
  55. package/src/components/common/Loading.vue +19 -0
  56. package/src/components/common/LoadingDots.vue +12 -0
  57. package/src/components/common/PageHeading.vue +30 -0
  58. package/src/components/common/Pagination.vue +105 -0
  59. package/src/components/common/Popover.vue +24 -0
  60. package/src/components/common/PowerToggle.vue +130 -0
  61. package/src/components/common/ProgressBar.vue +33 -0
  62. package/src/components/common/RadioButtons.vue +52 -0
  63. package/src/components/common/Schedule.vue +79 -0
  64. package/src/components/common/SearchBar.vue +30 -0
  65. package/src/components/common/Separator.vue +3 -0
  66. package/src/components/common/Slideout.vue +95 -0
  67. package/src/components/common/Sort.vue +83 -0
  68. package/src/components/common/Table.vue +48 -0
  69. package/src/components/common/Tabs.vue +129 -0
  70. package/src/components/common/Tag.vue +53 -0
  71. package/src/components/common/Tooltip.vue +49 -0
  72. package/src/components/common/VerticalTabs.vue +34 -0
  73. package/src/components/common/card/CardItem.vue +27 -0
  74. package/src/components/common/card/CardItemGroup.vue +45 -0
  75. package/src/components/common/facet/Leaf.vue +97 -0
  76. package/src/components/common/facet/TriState.vue +37 -0
  77. package/src/components/common/table/TableData.vue +48 -0
  78. package/src/components/common/table/TableHeader.vue +21 -0
  79. package/src/components/dialogs/ChooseValueDialog.vue +97 -0
  80. package/src/components/dialogs/ConfirmDialog.vue +73 -0
  81. package/src/components/dialogs/CopyDialog.vue +51 -0
  82. package/src/components/dialogs/DownloadDialog.vue +48 -0
  83. package/src/components/dialogs/NameDescDialog.vue +74 -0
  84. package/src/components/dialogs/NameDialog.vue +56 -0
  85. package/src/components/dialogs/PopupEditor.vue +113 -0
  86. package/src/components/dialogs/ProgressDialog.vue +58 -0
  87. package/src/components/dialogs/ResetPasswordDialog.vue +58 -0
  88. package/src/components/dialogs/Wizard.vue +99 -0
  89. package/src/components/dialogs/wizard/Stepper.vue +31 -0
  90. package/src/components/form/CheckBox.vue +26 -0
  91. package/src/components/form/Editor.vue +93 -0
  92. package/src/components/form/FormCol.vue +19 -0
  93. package/src/components/form/FormRow.vue +19 -0
  94. package/src/components/form/FormSection.vue +21 -0
  95. package/src/components/form/GreyForm.vue +7 -0
  96. package/src/components/form/GreyInput.vue +51 -0
  97. package/src/components/form/GreyInputAutocomplete.vue +100 -0
  98. package/src/components/form/GreyInputCopy.vue +66 -0
  99. package/src/components/form/GreyInputGrow.vue +42 -0
  100. package/src/components/form/GreyInputToken.vue +78 -0
  101. package/src/components/form/GreyPassword.vue +36 -0
  102. package/src/components/form/GreySelect.vue +154 -0
  103. package/src/components/form/GreySelectInput.vue +123 -0
  104. package/src/components/form/GreySelectInputMultiple.vue +218 -0
  105. package/src/components/form/GreyTel.vue +58 -0
  106. package/src/components/form/HamburgerItem.vue +95 -0
  107. package/src/components/form/KeyValueEntry.vue +74 -0
  108. package/src/components/form/RadioInput.vue +38 -0
  109. package/src/components/form/UploadFile.vue +99 -0
  110. package/src/components/icons/AiIcon.vue +6 -0
  111. package/src/components/icons/GithubIcon.vue +18 -0
  112. package/src/components/icons/HighPriorityIcon.vue +6 -0
  113. package/src/components/icons/PowerOffIcon.vue +6 -0
  114. package/src/components/icons/SaveIcon.vue +6 -0
  115. package/src/components/index.js +134 -0
  116. package/src/components/menu/DialogMenu.vue +142 -0
  117. package/src/components/menu/GrandChild.vue +39 -0
  118. package/src/components/menu/GridMenu.vue +88 -0
  119. package/src/components/menu/MenuAvatar.vue +66 -0
  120. package/src/components/menu/MenuDesktop.vue +90 -0
  121. package/src/components/notifications/Notify.vue +123 -0
  122. package/src/components/notifications/NotifyList.vue +130 -0
  123. package/src/components/page-structure/FacetPage.vue +77 -0
  124. package/src/components/query/Child.vue +63 -0
  125. package/src/components/query/LVDBQuery.vue +38 -0
  126. package/src/components/status/Active.vue +44 -0
  127. package/src/components/status/ScoreLevel.vue +43 -0
  128. package/src/components/status/Status.vue +51 -0
  129. package/src/components/status/TaskDot.vue +25 -0
  130. package/src/components/status/TaskStatus.vue +26 -0
  131. package/src/components/status/TicketStatus.vue +201 -0
  132. package/src/components/status/Trend.vue +20 -0
  133. package/src/components/tables/ArgumentRunTable.vue +96 -0
  134. package/src/components/tables/ArgumentTable.vue +67 -0
  135. package/src/components/tables/CloudFormationParameters.vue +25 -0
  136. package/src/constants/colors.js +248 -0
  137. package/src/constants/font-map.js +128 -0
  138. package/src/constants/fpl2.js +162 -0
  139. package/src/constants/icon-svg.js +405 -0
  140. package/src/constants/schedule.js +52 -0
  141. package/src/fpl/AddPanel.vue +237 -0
  142. package/src/fpl/Configs/Alert.vue +16 -0
  143. package/src/fpl/Configs/AlertSprite.vue +2 -0
  144. package/src/fpl/Configs/Chart.vue +63 -0
  145. package/src/fpl/Configs/Config.js +154 -0
  146. package/src/fpl/Configs/Counter.vue +35 -0
  147. package/src/fpl/Configs/Histogram.vue +70 -0
  148. package/src/fpl/Configs/IPMap.vue +37 -0
  149. package/src/fpl/Configs/Image.vue +163 -0
  150. package/src/fpl/Configs/MetricChart.vue +20 -0
  151. package/src/fpl/Configs/PieChart.vue +37 -0
  152. package/src/fpl/Configs/SparkChart.vue +41 -0
  153. package/src/fpl/Configs/StackedBarChart.vue +49 -0
  154. package/src/fpl/Configs/Table.vue +211 -0
  155. package/src/fpl/Configs/Text.vue +14 -0
  156. package/src/fpl/Configs/TopNChart.vue +37 -0
  157. package/src/fpl/Outputs/FPLAlert.vue +64 -0
  158. package/src/fpl/Outputs/FPLStream.vue +41 -0
  159. package/src/fpl/Outputs/FPLTable.vue +77 -0
  160. package/src/fpl/Panel.vue +202 -0
  161. package/src/fpl/Panels/Alert.vue +85 -0
  162. package/src/fpl/Panels/AlertSprite.vue +9 -0
  163. package/src/fpl/Panels/Chart.vue +98 -0
  164. package/src/fpl/Panels/Counter.vue +43 -0
  165. package/src/fpl/Panels/Histogram.vue +138 -0
  166. package/src/fpl/Panels/IPMap.vue +48 -0
  167. package/src/fpl/Panels/Image.vue +35 -0
  168. package/src/fpl/Panels/MetricChart.vue +97 -0
  169. package/src/fpl/Panels/PieChart.vue +54 -0
  170. package/src/fpl/Panels/SparkChart.vue +166 -0
  171. package/src/fpl/Panels/StackedBarChart.vue +74 -0
  172. package/src/fpl/Panels/Table.vue +103 -0
  173. package/src/fpl/Panels/Text.vue +24 -0
  174. package/src/fpl/Panels/TopNChart.vue +69 -0
  175. package/src/fpl/index.js +39 -0
  176. package/src/utils/download.js +220 -0
  177. package/src/utils/formatOutput.js +156 -0
  178. package/src/utils/random.js +32 -0
  179. package/src/utils/timeUtils.js +138 -0
@@ -0,0 +1,104 @@
1
+ <template>
2
+ <Menu as="div" class="relative">
3
+ <div class="std-btn py-0">
4
+ <div
5
+ :class="[
6
+ 'std-blue rounded-l-lg px-5 py-3 cursor-pointer',
7
+ { 'std-red': color === 'red' },
8
+ { 'std-green': color === 'green' },
9
+ { 'std-blue': color === 'blue' },
10
+ ]"
11
+ @click="loading ? null : emits('mainClick')"
12
+ >
13
+ <div v-if="loading" class="mx-2 inline-block spinner"></div>
14
+ <div v-else class="flex">
15
+ <slot />
16
+ {{ props.text }}
17
+ </div>
18
+ </div>
19
+ <MenuButton
20
+ :class="[
21
+ 'std-blue rounded-r-lg px-1 py-3 border-l-2 cursor-pointer disabled:cursor-not-allowed disabled:opacity-50',
22
+ { 'std-red': color === 'red' },
23
+ { 'std-green': color === 'green' },
24
+ { 'std-blue': color === 'blue' },
25
+ ]"
26
+ :disabled="secondaryButtons.length === 0 || loading"
27
+ @click="dropdown = !dropdown"
28
+ >
29
+ <ArrowDownIcon v-if="!dropdown" class="icon-md" />
30
+ <ArrowUpIcon v-else class="icon-md" />
31
+ </MenuButton>
32
+ </div>
33
+ <Transition
34
+ enter="transition ease-out duration-75"
35
+ enterFrom="opacity-0 scale-95"
36
+ enterTo="opacity-100 scale-100"
37
+ leave="transition ease-in duration-100"
38
+ leaveFrom="opacity-100 scale-100"
39
+ leaveTo="opacity-0 scale-95"
40
+ >
41
+ <MenuItems
42
+ :class="[
43
+ 'absolute right-0 z-50 mt-0.5 w-32 origin-top-right rounded-md py-2 shadow-lg text-white max-h-96 overflow-y-auto break-all',
44
+ { 'bg-red-600': color === 'red' },
45
+ { 'bg-green-700': color === 'green' },
46
+ { 'bg-sky-700': color === 'blue' },
47
+ ]"
48
+ >
49
+ <MenuItem v-for="button in sortedButtons" v-slot="{ active }">
50
+ <div
51
+ :class="[
52
+ active ? 'cursor-pointer' : '',
53
+ 'block px-3 py-1 text-sm leading-6',
54
+ { 'std-red': color === 'red' },
55
+ { 'std-green': color === 'green' },
56
+ { 'std-blue': color === 'blue' },
57
+ ]"
58
+ @click="loading ? null : emits('secondaryClick', button)"
59
+ >
60
+ {{ button }}
61
+ </div>
62
+ </MenuItem>
63
+ </MenuItems>
64
+ </Transition>
65
+ </Menu>
66
+ </template>
67
+
68
+ <script setup>
69
+ import { ref, computed } from "vue";
70
+ import { ArrowDownIcon, ArrowUpIcon } from "@heroicons/vue/20/solid";
71
+ import { Menu, MenuButton, MenuItem, MenuItems } from "@headlessui/vue";
72
+
73
+ const props = defineProps({
74
+ text: {
75
+ type: String,
76
+ required: true,
77
+ },
78
+ color: {
79
+ type: String,
80
+ default: "blue",
81
+ validator: (value) => ["red", "green", "blue"].includes(value),
82
+ },
83
+ loading: {
84
+ type: Boolean,
85
+ default: false,
86
+ },
87
+ secondaryButtons: {
88
+ type: Array,
89
+ default: () => [],
90
+ },
91
+ sorted: {
92
+ type: Boolean,
93
+ default: false,
94
+ },
95
+ });
96
+ const emits = defineEmits(["mainClick", "secondaryClick"]);
97
+ const dropdown = ref(false);
98
+
99
+ const sortedButtons = computed(() => {
100
+ return props.sorted
101
+ ? props.secondaryButtons.sort((a, b) => a.localeCompare(b))
102
+ : props.secondaryButtons;
103
+ });
104
+ </script>
@@ -0,0 +1,63 @@
1
+ <template>
2
+ <button
3
+ :class="[
4
+ 'circle-btn std-blue relative',
5
+ { 'p-1.5': dense },
6
+ { 'std-red': color === 'red' },
7
+ { 'std-green': color === 'green' },
8
+ ]"
9
+ :disabled="disabled || loading"
10
+ @mouseover="showTooltip"
11
+ @mouseout="hideTooltip"
12
+ >
13
+ <div v-if="loading" class="spinner"></div>
14
+ <slot v-else />
15
+ <Tooltip
16
+ :tooltip="tooltip"
17
+ :showingTooltip="showingTooltip"
18
+ :direction="tooltipDirection"
19
+ />
20
+ </button>
21
+ </template>
22
+
23
+ <script setup>
24
+ import { ref } from "vue";
25
+ import { Tooltip } from "@/components";
26
+
27
+ const showingTooltip = ref(false);
28
+ const props = defineProps({
29
+ color: {
30
+ type: String,
31
+ default: "blue",
32
+ validator: (value) => ["red", "green", "blue"].includes(value),
33
+ },
34
+ disabled: {
35
+ type: Boolean,
36
+ default: false,
37
+ },
38
+ dense: {
39
+ type: Boolean,
40
+ default: false,
41
+ },
42
+ tooltip: {
43
+ type: String,
44
+ default: "",
45
+ },
46
+ tooltipDirection: {
47
+ type: String,
48
+ default: "bottom",
49
+ },
50
+ loading: {
51
+ type: Boolean,
52
+ default: false,
53
+ },
54
+ });
55
+
56
+ function showTooltip() {
57
+ if (props.tooltip) showingTooltip.value = true;
58
+ }
59
+
60
+ function hideTooltip() {
61
+ showingTooltip.value = false;
62
+ }
63
+ </script>
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <button
3
+ class="circle-btn std-white outline outline-2 outline-slate-200 p-3 m-2 dark:std-dark"
4
+ >
5
+ <img class="icon-xl" :src="src" />
6
+ </button>
7
+ </template>
8
+
9
+ <script setup lang="ts">
10
+ defineProps({
11
+ src: {
12
+ type: String,
13
+ default: "",
14
+ },
15
+ });
16
+ </script>
@@ -0,0 +1,138 @@
1
+ <template>
2
+ <Menu
3
+ as="div"
4
+ :class="[
5
+ 'relative',
6
+ { 'px-3 py-1': dense },
7
+ { 'std-red': color === 'red' },
8
+ { 'std-green': color === 'green' },
9
+ { 'std-blue': color === 'blue' },
10
+ { 'std-btn': type === 'button' },
11
+ { 'text-black dark:text-white': color === 'none' },
12
+ { 'cursor-not-allowed': disabled },
13
+ ]"
14
+ >
15
+ <MenuButton class="row" :disabled="disabled || loading">
16
+ {{ props.text }}
17
+ <ArrowDownIcon v-if="type === 'button'" class="icon-md" />
18
+ <slot />
19
+ </MenuButton>
20
+ <Transition
21
+ enter="transition ease-out duration-75"
22
+ enterFrom="opacity-0 scale-95"
23
+ enterTo="opacity-100 scale-100"
24
+ leave="transition ease-in duration-100"
25
+ leaveFrom="opacity-100 scale-100"
26
+ leaveTo="opacity-0 scale-95"
27
+ >
28
+ <MenuItems
29
+ :class="[
30
+ 'absolute right-0 top-full z-50 mt-0.5 rounded-lg py-2 shadow-lg max-h-96 overflow-y-auto break-all',
31
+ { 'bg-red-600 text-white': color === 'red' },
32
+ { 'bg-green-700 text-white': color === 'green' },
33
+ { 'bg-sky-700 text-white': color === 'blue' },
34
+ {
35
+ 'bg-white dark:bg-black text-black dark:text-white':
36
+ color === 'none',
37
+ },
38
+ { 'right-0': anchor === 'right' },
39
+ { 'left-0': anchor === 'left' },
40
+ ]"
41
+ anchor="bottom-start"
42
+ >
43
+ <MenuItem v-for="button in sortedButtons" v-slot="{ active }">
44
+ <div
45
+ :class="[
46
+ active ? 'cursor-pointer' : '',
47
+ 'block px-3 py-1 text-sm leading-6 min-w-44',
48
+ { 'std-red': color === 'red' },
49
+ { 'std-green': color === 'green' },
50
+ { 'std-blue': color === 'blue' },
51
+ {
52
+ 'std-white dark:std-dark': active && color === 'none',
53
+ },
54
+ ]"
55
+ @click="secondaryClick(button)"
56
+ >
57
+ {{ button.name || button }}
58
+ </div>
59
+ </MenuItem>
60
+ <slot name="items" />
61
+ </MenuItems>
62
+ </Transition>
63
+ </Menu>
64
+ </template>
65
+
66
+ <script setup>
67
+ import { computed } from "vue";
68
+ import { ArrowDownIcon } from "@heroicons/vue/20/solid";
69
+ import { Menu, MenuButton, MenuItem, MenuItems } from "@headlessui/vue";
70
+
71
+ const props = defineProps({
72
+ text: {
73
+ type: String,
74
+ default: "",
75
+ },
76
+ color: {
77
+ type: String,
78
+ default: "blue",
79
+ },
80
+ disabled: {
81
+ type: Boolean,
82
+ default: false,
83
+ },
84
+ dense: {
85
+ type: Boolean,
86
+ default: false,
87
+ },
88
+ loading: {
89
+ type: Boolean,
90
+ default: false,
91
+ },
92
+ secondaryButtons: {
93
+ type: Array,
94
+ default: () => [],
95
+ },
96
+ anchor: {
97
+ type: String,
98
+ default: "right",
99
+ },
100
+ type: {
101
+ type: String,
102
+ default: "button",
103
+ },
104
+ emitValue: {
105
+ type: Boolean,
106
+ default: true,
107
+ },
108
+ sorted: {
109
+ type: Boolean,
110
+ default: false,
111
+ },
112
+ });
113
+ const emits = defineEmits(["secondaryClick"]);
114
+
115
+ const sortedButtons = computed(() => {
116
+ if (props.sorted) {
117
+ return props.secondaryButtons.sort((a, b) => {
118
+ if (a.name && b.name) {
119
+ return a.name.localeCompare(b.name);
120
+ }
121
+ return a.localeCompare(b);
122
+ });
123
+ }
124
+ return props.secondaryButtons;
125
+ });
126
+
127
+ function secondaryClick(button) {
128
+ if (props.disabled || props.loading) {
129
+ return;
130
+ }
131
+
132
+ if (props.emitValue) {
133
+ emits("secondaryClick", button.name || button);
134
+ } else {
135
+ emits("secondaryClick", button);
136
+ }
137
+ }
138
+ </script>
@@ -0,0 +1,51 @@
1
+ <template>
2
+ <TextButton
3
+ :text="saveText"
4
+ :color="isRun ? 'green' : 'blue'"
5
+ :disabled="disableSave || loading"
6
+ :loading="loading"
7
+ @click="handleSave"
8
+ />
9
+ <TextButton
10
+ color="red"
11
+ text="Cancel"
12
+ :loading="loading"
13
+ :disabled="loading"
14
+ @click="handleClose"
15
+ />
16
+ </template>
17
+ <script setup>
18
+ import { TextButton } from "@/components";
19
+
20
+ const props = defineProps({
21
+ saveText: {
22
+ type: String,
23
+ default: "Save",
24
+ },
25
+ disableSave: {
26
+ type: [Boolean, Number],
27
+ default: false,
28
+ },
29
+ isRun: {
30
+ type: Boolean,
31
+ default: false,
32
+ },
33
+ loading: {
34
+ type: Boolean,
35
+ default: false,
36
+ },
37
+ });
38
+ const emits = defineEmits(["save", "close"]);
39
+
40
+ function handleSave() {
41
+ if (!props.loading && !props.disableSave) {
42
+ emits("save");
43
+ }
44
+ }
45
+
46
+ function handleClose() {
47
+ if (!props.loading) {
48
+ emits("close");
49
+ }
50
+ }
51
+ </script>
@@ -0,0 +1,40 @@
1
+ <template>
2
+ <button
3
+ :class="[
4
+ 'std-btn std-blue',
5
+ { 'px-3 py-1': dense },
6
+ { 'std-red': color === 'red' },
7
+ { 'std-green': color === 'green' },
8
+ ]"
9
+ :disabled="disabled || loading"
10
+ >
11
+ <div v-if="loading" class="mx-2 inline-block spinner"></div>
12
+ <div v-else class="flex">
13
+ <slot />
14
+ {{ props.text }}
15
+ </div>
16
+ </button>
17
+ </template>
18
+
19
+ <script setup>
20
+ const props = defineProps({
21
+ text: String,
22
+ color: {
23
+ type: String,
24
+ default: "blue",
25
+ validator: (value) => ["red", "green", "blue"].includes(value),
26
+ },
27
+ disabled: {
28
+ type: [Boolean, Number],
29
+ default: false,
30
+ },
31
+ dense: {
32
+ type: Boolean,
33
+ default: false,
34
+ },
35
+ loading: {
36
+ type: Boolean,
37
+ default: false,
38
+ },
39
+ });
40
+ </script>