@webitel/ui-sdk 25.10.9 → 25.10.10
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/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2711 -2718
- package/dist/ui-sdk.umd.cjs +50 -50
- package/package.json +1 -1
- package/src/components/wt-app-header/_variables.scss +1 -1
- package/src/components/wt-app-header/wt-app-header.vue +13 -14
- package/src/components/wt-menubar/wt-menubar.vue +28 -0
- package/src/components/wt-table-column-select/wt-table-column-select.vue +1 -1
- package/src/scripts/index.js +2 -1
- package/types/components/wt-app-header/wt-app-header.vue.d.ts +1 -2
- package/types/components/wt-menubar/wt-menubar.vue.d.ts +10 -0
- package/types/scripts/index.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.10.
|
|
3
|
+
"version": "25.10.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
:key="name"
|
|
6
|
-
#[name]
|
|
7
|
-
>
|
|
8
|
-
<slot v-if="name !== 'default'" :name="name" />
|
|
9
|
-
</template>
|
|
10
|
-
</PMenubar>
|
|
2
|
+
<header class="wt-app-header">
|
|
3
|
+
<slot />
|
|
4
|
+
</header>
|
|
11
5
|
</template>
|
|
12
6
|
|
|
13
|
-
<script setup>
|
|
14
|
-
import { useSlots } from 'vue'
|
|
15
|
-
|
|
16
|
-
const slots = useSlots()
|
|
17
|
-
</script>
|
|
7
|
+
<script setup></script>
|
|
18
8
|
|
|
19
9
|
<style lang="scss">
|
|
20
10
|
@use './variables.scss';
|
|
@@ -22,6 +12,15 @@ const slots = useSlots()
|
|
|
22
12
|
|
|
23
13
|
<style lang="scss" scoped>
|
|
24
14
|
.wt-app-header {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: flex-end;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: var(--wt-app-header-content-gap);
|
|
25
19
|
box-sizing: border-box;
|
|
20
|
+
background: var(--wt-app-header-background);
|
|
21
|
+
padding: var(--wt-app-header-padding);
|
|
22
|
+
min-height: var(
|
|
23
|
+
--wt-app-header-min-height
|
|
24
|
+
); // fixed height because anything can be put inside slot, so padding won't work properly
|
|
26
25
|
}
|
|
27
26
|
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<PMenubar class="wt-menubar">
|
|
3
|
+
<template
|
|
4
|
+
v-for="(_, name) in slots"
|
|
5
|
+
:key="name"
|
|
6
|
+
#[name]
|
|
7
|
+
>
|
|
8
|
+
<slot v-if="name !== 'default'" :name="name" />
|
|
9
|
+
</template>
|
|
10
|
+
</PMenubar>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup>
|
|
14
|
+
/**
|
|
15
|
+
* @author Oleksandr Palonnyi
|
|
16
|
+
*
|
|
17
|
+
* @description https://webitel.atlassian.net/browse/WTEL-7529?focusedCommentId=692643
|
|
18
|
+
* */
|
|
19
|
+
import { useSlots } from 'vue'
|
|
20
|
+
|
|
21
|
+
const slots = useSlots()
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style lang="scss">
|
|
25
|
+
</style>
|
|
26
|
+
|
|
27
|
+
<style lang="scss" scoped>
|
|
28
|
+
</style>
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
88
88
|
return this.draft
|
|
89
89
|
.filter((header) => !this.staticHeaders.includes(header.value))
|
|
90
90
|
.sort((a, b) => {
|
|
91
|
-
return this.shownColLabel(a)
|
|
91
|
+
return this.shownColLabel(a)?.localeCompare(this.shownColLabel(b));
|
|
92
92
|
// sorting headers for alphabet just in popup
|
|
93
93
|
});
|
|
94
94
|
},
|
package/src/scripts/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import prettifyFileSize from './prettifyFileSize.js';
|
|
|
29
29
|
import prettifyTime from './prettifyTime.js';
|
|
30
30
|
import preventHiddenPageCallsDecorator from './preventHiddenPageCallsDecorator.js';
|
|
31
31
|
import saveAsJSON from './saveAsJSON.js';
|
|
32
|
-
import { queryToSortAdapter, sortToQueryAdapter } from './sortQueryAdapters.js';
|
|
32
|
+
import { getNextSortOrder,queryToSortAdapter, sortToQueryAdapter } from './sortQueryAdapters.js';
|
|
33
33
|
import updateObject from './updateObject.js';
|
|
34
34
|
|
|
35
35
|
export {
|
|
@@ -39,6 +39,7 @@ export {
|
|
|
39
39
|
convertDuration,
|
|
40
40
|
debounce,
|
|
41
41
|
eventBus,
|
|
42
|
+
getNextSortOrder,
|
|
42
43
|
isEmpty,
|
|
43
44
|
isRelativeDatetimeValue,
|
|
44
45
|
kebabToCamel,
|
|
@@ -5,6 +5,5 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
7
|
type __VLS_Slots = {
|
|
8
|
-
|
|
9
|
-
[x: number]: (props: {}) => any;
|
|
8
|
+
default?: (props: {}) => any;
|
|
10
9
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
[x: string]: (props: {}) => any;
|
|
9
|
+
[x: number]: (props: {}) => any;
|
|
10
|
+
};
|
package/types/scripts/index.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ import { snakeToKebab } from './caseConverters.js';
|
|
|
26
26
|
import { sortToQueryAdapter } from './sortQueryAdapters.js';
|
|
27
27
|
import updateObject from './updateObject.js';
|
|
28
28
|
import { wtlog } from './logger.js';
|
|
29
|
-
|
|
29
|
+
import { getNextSortOrder } from './sortQueryAdapters.js';
|
|
30
|
+
export { camelToKebab, camelToSnake, compareSize, convertDuration, debounce, eventBus, isEmpty, isRelativeDatetimeValue, kebabToCamel, kebabToSnake, normalizeToTimestamp, objCamelToKebab, objCamelToSnake, objSnakeToCamel, prettifyFileSize, prettifyTime, preventHiddenPageCallsDecorator, queryToSortAdapter, saveAsJSON, sizeGreaterOrEqual, sizeGreaterThen, sizeSmallerOrEqual, sizeSmallerThen, snakeToCamel, snakeToKebab, sortToQueryAdapter, updateObject, wtlog, getNextSortOrder };
|