@appscode/design-system 2.5.11 → 2.6.0
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
CHANGED
|
@@ -14,7 +14,7 @@ const route = useRoute();
|
|
|
14
14
|
|
|
15
15
|
const pathReplaceWithParam = (path: string) => {
|
|
16
16
|
//Split the path and remove the first and last empty block
|
|
17
|
-
|
|
17
|
+
const splitPath = path.split("/").filter((element) => element !== "");
|
|
18
18
|
|
|
19
19
|
//Replace all element with query params where the element start with ":"
|
|
20
20
|
// Then again add them wthi "/" and return the path value
|
|
@@ -37,7 +37,7 @@ const createVal = (startIdx: number, paths: Array<string>) => {
|
|
|
37
37
|
|
|
38
38
|
const createList = (paths: Array<string>) => {
|
|
39
39
|
//Split all the path and remove all empty block
|
|
40
|
-
|
|
40
|
+
const spath = paths.map((element) => {
|
|
41
41
|
return element.split("/").filter((word) => word !== "");
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -186,11 +186,11 @@ export default defineComponent({
|
|
|
186
186
|
this.$emit("editorDidMount", this.editor);
|
|
187
187
|
},
|
|
188
188
|
_setValue(value) {
|
|
189
|
-
|
|
189
|
+
const editor = this._getEditor();
|
|
190
190
|
if (editor) return editor.setValue(value);
|
|
191
191
|
},
|
|
192
192
|
_getValue() {
|
|
193
|
-
|
|
193
|
+
const editor = this._getEditor();
|
|
194
194
|
if (!editor) return "";
|
|
195
195
|
return editor.getValue();
|
|
196
196
|
},
|
|
@@ -102,7 +102,7 @@ const filteredAppList = appListWithUrl.filter((element) => {
|
|
|
102
102
|
if (element.name === props.currentApp) return false;
|
|
103
103
|
|
|
104
104
|
// remove billing selfhost & learn from selfhost mode
|
|
105
|
-
|
|
105
|
+
const selfHostList = ["billing", "selfhost", "learn"];
|
|
106
106
|
if (isSelfHosted.value && selfHostList.includes(element.name)) return false;
|
|
107
107
|
|
|
108
108
|
return true;
|
|
@@ -43,7 +43,7 @@ const noOfPageNos = computed(() => {
|
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
const pageRange = computed(() => {
|
|
46
|
-
|
|
46
|
+
const o = { start: 1, end: 0 };
|
|
47
47
|
if (noOfPageNos.value < 5) {
|
|
48
48
|
o.start = 1;
|
|
49
49
|
o.end = noOfPageNos.value;
|
|
@@ -63,9 +63,9 @@ const pageRange = computed(() => {
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
const pages = computed(() => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
const ar = [];
|
|
67
|
+
const start = pageRange.value.start;
|
|
68
|
+
const end = pageRange.value.end;
|
|
69
69
|
for (let i = start; i <= end; i++) {
|
|
70
70
|
ar.push(i);
|
|
71
71
|
}
|
|
@@ -73,8 +73,8 @@ const pages = computed(() => {
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
const itemsRange = computed(() => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
const start = (activePageNo.value - 1) * selectedItemCountPerPage.value;
|
|
77
|
+
const end = Math.min(activePageNo.value * selectedItemCountPerPage.value, props.totalNoOfItems);
|
|
78
78
|
|
|
79
79
|
return { start, end };
|
|
80
80
|
});
|