@appscode/design-system 2.4.27-alpha1 → 2.4.28
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/package.json +4 -6
- package/vue-components/styles/base/utilities/_colors.scss +25 -9
- package/vue-components/styles/base/utilities/_global.scss +2 -2
- package/vue-components/styles/base/utilities/_typography.scss +74 -68
- package/vue-components/styles/components/_ac-calendar.scss +3 -3
- package/vue-components/styles/components/_ac-code-highlight.scss +1 -1
- package/vue-components/styles/components/_ac-drag.scss +1 -1
- package/vue-components/styles/components/_accordion.scss +1 -1
- package/vue-components/styles/components/_breadcrumb.scss +1 -1
- package/vue-components/styles/components/_card-body-wrapper.scss +3 -3
- package/vue-components/styles/components/_direct-deploy.scss +2 -2
- package/vue-components/styles/components/_dropdown.scss +1 -1
- package/vue-components/styles/components/_getkeeper.scss +1 -1
- package/vue-components/styles/components/_graph.scss +1 -1
- package/vue-components/styles/components/_options.scss +2 -2
- package/vue-components/styles/components/_pagination.scss +2 -2
- package/vue-components/styles/components/_steps.scss +12 -2
- package/vue-components/styles/components/_table-of-content.scss +3 -3
- package/vue-components/styles/components/_table.scss +4 -4
- package/vue-components/styles/components/_tabs.scss +4 -4
- package/vue-components/styles/components/_terminal.scss +4 -4
- package/vue-components/styles/components/_widget-menu.scss +6 -6
- package/vue-components/styles/components/_wizard.scss +9 -9
- package/vue-components/styles/components/ac-toaster/_ac-toasted.scss +2 -2
- package/vue-components/styles/components/alert/_alert.scss +1 -1
- package/vue-components/styles/components/alert/_toast.scss +1 -1
- package/vue-components/styles/components/bbum/_card-team.scss +2 -2
- package/vue-components/styles/components/bbum/_left-sidebar.scss +2 -2
- package/vue-components/styles/components/bbum/_sign-up-notification.scss +2 -2
- package/vue-components/styles/components/bbum/_single-post-preview.scss +1 -1
- package/vue-components/styles/components/bbum/_user-profile.scss +3 -3
- package/vue-components/styles/components/cards/_cluster.scss +1 -1
- package/vue-components/styles/components/cards/_features.scss +1 -1
- package/vue-components/styles/components/cards/_info.scss +1 -1
- package/vue-components/styles/components/cards/_monitoring.scss +1 -1
- package/vue-components/styles/components/cards/_payment-card.scss +3 -3
- package/vue-components/styles/components/cards/_subscription-card.scss +2 -2
- package/vue-components/styles/components/cards/_vendor.scss +5 -5
- package/vue-components/styles/components/form-fields/_check-radio-switch.scss +4 -4
- package/vue-components/styles/components/form-fields/_image-upload.scss +1 -1
- package/vue-components/styles/components/form-fields/_input-card.scss +3 -3
- package/vue-components/styles/components/form-fields/_input.scss +16 -16
- package/vue-components/styles/components/inbox/all.scss +4 -19
- package/vue-components/styles/components/navbar/_menu-content.scss +11 -11
- package/vue-components/styles/components/select-box/_ac-select-box.scss +1 -1
- package/vue-components/styles/components/select-box/_multi-select.scss +23 -22
- package/vue-components/styles/components/sidebar/_left-sidebar.scss +2 -2
- package/vue-components/styles/components/ui-builder/_ui-builder.scss +3 -3
- package/vue-components/styles/components/ui-builder/_vue-open-api.scss +13 -13
- package/vue-components/styles/layouts/_code-preview.scss +1 -1
- package/vue-components/v3/accordion/Accordion.vue +3 -11
- package/vue-components/v3/alert/AlertMessage.vue +3 -11
- package/vue-components/v3/alert/Toast.vue +3 -10
- package/vue-components/v3/breadcrumbs/Breadcrumb.vue +2 -16
- package/vue-components/v3/cards/InfoCard.vue +6 -77
- package/vue-components/v3/cards/Monitoring.vue +3 -23
- package/vue-components/v3/form-fields/AcSelect.vue +10 -14
- package/vue-components/v3/form-fields/Accordion.vue +4 -4
- package/vue-components/v3/form-fields/CheckBox.vue +1 -1
- package/vue-components/v3/form-fields/CheckRadio.vue +2 -3
- package/vue-components/v3/form-fields/CustomSelect.vue +7 -12
- package/vue-components/v3/form-fields/FileUpload.vue +5 -14
- package/vue-components/v3/icons/BellIcon.vue +18 -0
- package/vue-components/v3/icons/CrossIcon.vue +12 -0
- package/vue-components/v3/icons/GridIcon.vue +32 -0
- package/vue-components/v3/icons/HomeIcon.vue +12 -0
- package/vue-components/v3/icons/MemoryIcon.vue +36 -4
- package/vue-components/v3/icons/MonitorIcon.vue +13 -0
- package/vue-components/v3/icons/StorageIcon.vue +32 -0
- package/vue-components/v3/icons/UploadIcon.vue +16 -0
- package/vue-components/v3/inbox/MessageList.vue +7 -6
- package/vue-components/v3/modal/DialogModal.vue +2 -10
- package/vue-components/v3/navbar/Appdrawer.vue +2 -30
- package/vue-components/v3/navbar/Notification.vue +6 -22
- package/vue-components/v3/pagination/Pagination.vue +1 -1
- package/vue-components/v3/searchbars/SearchBar.vue +2 -7
- package/vue-components/v3/steps/Steps.vue +16 -17
- package/vue-components/v3/table/InfoTable.vue +1 -1
- package/vue-components/v3/upcoming/SimpleSelect.vue +5 -5
- package/vue-components/plugins/time-convert.js +0 -45
- /package/vue-components/v3/icons/{ArrowDownIcon.vue → ArrowIcon.vue} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
3
|
import { onClickOutside, useFocus } from "@vueuse/core";
|
|
4
4
|
|
|
5
5
|
import AcButton from "../button/Button.vue";
|
|
6
6
|
import AcButtons from "../button/Buttons.vue";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import ArrowIcon from "../icons/ArrowIcon.vue";
|
|
9
|
+
import RefreshIcon from "../icons/RefreshIcon.vue";
|
|
10
|
+
import CloseIcon from "../icons/CloseIcon.vue";
|
|
11
11
|
|
|
12
12
|
type Option = { text: string; value: string };
|
|
13
13
|
interface prop {
|
|
@@ -104,7 +104,7 @@ watch(isOpen, (n) => {
|
|
|
104
104
|
|
|
105
105
|
<ac-buttons>
|
|
106
106
|
<button class="button ac-button is-white" @click="handleClear">
|
|
107
|
-
<
|
|
107
|
+
<ArrowIcon />
|
|
108
108
|
</button>
|
|
109
109
|
|
|
110
110
|
<ac-button modifier-classes="is-white" @click="$emit('onRefreshClick')">
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import moment from "moment";
|
|
2
|
-
// import { useNow, useThrottleFn } from '@vueuse/core'
|
|
3
|
-
|
|
4
|
-
const getTime = (option) => {
|
|
5
|
-
if (parseInt(option.time, 10) < 0 || !option.time) {
|
|
6
|
-
return undefined;
|
|
7
|
-
}
|
|
8
|
-
let time = option.time;
|
|
9
|
-
|
|
10
|
-
// moment(option.time).valueOf('x') needs to convert pharmer's api date to epoch time
|
|
11
|
-
time = moment(option.time).valueOf("x") ? moment(option.time).valueOf("x") : time * 1000;
|
|
12
|
-
|
|
13
|
-
return moment(time).format("MMM DD YYYY, h:mm A");
|
|
14
|
-
};
|
|
15
|
-
const getDayDifferences = (options) => {
|
|
16
|
-
const past = moment(options.past).isValid() ? moment(options.past).valueOf("x") / 1000 : options.past;
|
|
17
|
-
const now = Date.now() / 1000;
|
|
18
|
-
const diff = now - past;
|
|
19
|
-
if (parseInt(options.past, 10) > 10) {
|
|
20
|
-
let ret = Math.floor(diff / 86400);
|
|
21
|
-
let unit = "";
|
|
22
|
-
if (diff < 60) {
|
|
23
|
-
ret = parseInt(diff, 10);
|
|
24
|
-
unit = " Second";
|
|
25
|
-
} else if (diff < 3600) {
|
|
26
|
-
ret = parseInt(diff / 60, 10);
|
|
27
|
-
unit = " Minute";
|
|
28
|
-
} else if (diff < 86400) {
|
|
29
|
-
ret = parseInt(diff / 3600, 10);
|
|
30
|
-
unit = " Hour";
|
|
31
|
-
} else {
|
|
32
|
-
ret = parseInt(diff / 86400, 10);
|
|
33
|
-
unit = " Day";
|
|
34
|
-
}
|
|
35
|
-
unit += ret > 1 ? "s" : "";
|
|
36
|
-
return ret + unit;
|
|
37
|
-
}
|
|
38
|
-
return undefined;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default {
|
|
42
|
-
getTime,
|
|
43
|
-
// formatMoment,
|
|
44
|
-
getDayDifferences,
|
|
45
|
-
};
|
|
File without changes
|