@webitel/ui-sdk 26.6.17 → 26.6.19
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/{contacts-x411Rwez.js → contacts-CW3-LZxF.js} +2 -2
- package/dist/{index-D_POp8ob.js → index-CVZdV0CY.js} +1 -1
- package/dist/{install-Cu0d6sby.js → install-Cr0bk3L_.js} +1847 -1849
- package/dist/{isObject-ByASj__U.js → isObject-CiKYzHrL.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +3 -3
- package/dist/ui-sdk.umd.cjs +487 -492
- package/dist/{useVidstackSrc-BhJ70gII.js → useVidstackSrc-eIh94IOa.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-Bah3VB6-.js → vidstack-Bq6c3Bam-C9bvNDeZ.js} +3 -3
- package/dist/{vidstack-D2pY00kU-ByV8VY12.js → vidstack-D2pY00kU-32fYwL0c.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-AnGHyGmH.js → vidstack-DDXt6fpN-Bdj16PRi.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-BYSsKBwR.js → vidstack-D_-9AA6_-DU-Z0scc.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-DswYN2KC.js → vidstack-DqAw8m9J-D4iW7Pk4.js} +1 -1
- package/dist/{vidstack-audio-BBZWJaJs.js → vidstack-audio-D57MQWMi.js} +2 -2
- package/dist/{vidstack-dash-DioDLqSD.js → vidstack-dash-DQ3tW9tH.js} +4 -4
- package/dist/{vidstack-google-cast-BKifCUBj.js → vidstack-google-cast-Chny36ds.js} +4 -4
- package/dist/{vidstack-hls-B410PN9l.js → vidstack-hls-BJVMAGc7.js} +4 -4
- package/dist/{vidstack-video-BhR43aHZ.js → vidstack-video-0rGus1eV.js} +3 -3
- package/dist/{vidstack-vimeo-D8KMx3dH.js → vidstack-vimeo-y__Gq7-Z.js} +4 -4
- package/dist/{vidstack-youtube-B3lNuheF.js → vidstack-youtube-DP3qUcr_.js} +3 -3
- package/dist/{wt-action-bar-DJunx8Bz.js → wt-action-bar-CMKn5_2O.js} +1 -1
- package/dist/{wt-button-select-IxMhW3aN.js → wt-button-select-Ce3BQoKR.js} +1 -1
- package/dist/{wt-call-media-action-l26Ebm1n.js → wt-call-media-action-ZuyF3TA9.js} +1 -1
- package/dist/{wt-chat-emoji-CGS_HHH7.js → wt-chat-emoji-CL-ZeHBE.js} +65 -65
- package/dist/{wt-confirm-dialog-Bz4AG75V.js → wt-confirm-dialog-msvvphR9.js} +1 -1
- package/dist/{wt-context-menu-D2h6Iosh.js → wt-context-menu-D4f_AGoC.js} +1 -1
- package/dist/{wt-copy-action-wZ1BFpR3.js → wt-copy-action-Cf-_NtcG.js} +1 -1
- package/dist/{wt-datepicker-DVJlOegR.js → wt-datepicker-CGfAsCbg.js} +1 -1
- package/dist/{wt-display-chip-items-BskP208B.js → wt-display-chip-items-NXvaxIwQ.js} +1 -1
- package/dist/{wt-dual-panel-Bf0cLkn2.js → wt-dual-panel-DTmyhNDA.js} +1 -1
- package/dist/{wt-dummy-CnH3EakG.js → wt-dummy-DRMzAM9O.js} +1 -1
- package/dist/{wt-error-page-CTDXxrpz.js → wt-error-page-bVs4FU_6.js} +1 -1
- package/dist/{wt-expansion-card-DqpKEDzd.js → wt-expansion-card-C6Gor6XB.js} +1 -1
- package/dist/{wt-expansion-panel-B1FlwwsJ.js → wt-expansion-panel-CuGG2_bc.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-Cam5mBQD.js → wt-filters-panel-wrapper-B75QdN0o.js} +1 -1
- package/dist/{wt-galleria-C4qtQYNG.js → wt-galleria-CaXq22nn.js} +1 -1
- package/dist/{wt-inline-add-panel-BcmGzVUY.js → wt-inline-add-panel-BMPB9HLd.js} +1 -1
- package/dist/{wt-navigation-menu-jlgb2OVE.js → wt-navigation-menu-Btme7T0n.js} +1 -1
- package/dist/{wt-notifications-bar-D5BgIbDJ.js → wt-notifications-bar-DgC8bv6A.js} +2 -2
- package/dist/{wt-pagination-CzWjNHGr.js → wt-pagination-PBVxACl3.js} +1 -1
- package/dist/{wt-player-DPoW9DsS.js → wt-player-3OnI8Gkb.js} +2 -2
- package/dist/{wt-screen-recordings-action-CnD3u6l1.js → wt-screen-recordings-action-DwlOgzfd.js} +1 -1
- package/dist/{wt-search-bar-w5yRXUJM.js → wt-search-bar-D6qMRH-b.js} +1 -1
- package/dist/{wt-selection-popup-BQ2nxFxN.js → wt-selection-popup-DwA5WMWd.js} +1 -1
- package/dist/{wt-send-message-popup-CIROO7qp.js → wt-send-message-popup-BNHfgzV6.js} +18 -18
- package/dist/{wt-start-page-Co2Dr7sd.js → wt-start-page-DVyRr6sN.js} +12 -12
- package/dist/{wt-status-select-B5RBn4az.js → wt-status-select--ogDeIvZ.js} +1 -1
- package/dist/{wt-stepper-D-5zkV_o.js → wt-stepper-DpszO5_T.js} +1 -1
- package/dist/{wt-table-CIwgA4bb.js → wt-table--CESQOx6.js} +1 -1
- package/dist/{wt-table-actions-cdZk4uQg.js → wt-table-actions-FVBMiBzy.js} +1 -1
- package/dist/{wt-table-column-select-xScdacRt.js → wt-table-column-select-CDlRxNrk.js} +2 -2
- package/dist/{wt-tabs-Brwfb9Xt.js → wt-tabs-C0lD3Xw6.js} +1 -1
- package/dist/{wt-timepicker-fVxaUiFH.js → wt-timepicker-hOlzDr60.js} +1 -1
- package/dist/wt-tree-NhBg3C84.js +2777 -0
- package/dist/{wt-tree-table-DNr013Ft.js → wt-tree-table-CK9T8KmU.js} +22 -22
- package/dist/wt-type-extension-value-input-C3J9mXbz.js +121 -0
- package/dist/{wt-vidstack-player-BjA03boO.js → wt-vidstack-player-CW5GMIcG.js} +10 -10
- package/package.json +6 -1
- package/src/components/_internals/composables/useSelect/useSelectUtils.ts +11 -3
- package/src/components/index.js +0 -5
- package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +14 -11
- package/src/modules/AppConfig/index.ts +63 -0
- package/src/modules/AppConfig/scripts/fetchConfig.ts +43 -0
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +6 -6
- package/src/modules/Filters/components/filter-select.vue +15 -6
- package/src/modules/ObjectPermissions/_internals/components/permissions-role-select.vue +8 -9
- package/src/modules/ObjectPermissions/components/permissions-tab.vue +12 -12
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +29 -7
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +31 -6
- package/src/modules/UploadCsvPopup/components/wt-upload-csv-popup.vue +9 -9
- package/types/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue.d.ts +2 -3
- package/types/modules/AppConfig/index.d.ts +31 -0
- package/types/modules/AppConfig/scripts/fetchConfig.d.ts +8 -0
- package/dist/index-LgFKTZzs.js +0 -2508
- package/dist/wt-tags-input-BDmXu8bo.js +0 -244
- package/dist/wt-tree-jn8eK1wC.js +0 -275
- package/dist/wt-type-extension-value-input-C-Kgj75G.js +0 -123
- package/src/components/wt-tags-input/__tests__/WtTagsInput.spec.js +0 -89
- package/src/components/wt-tags-input/mixin/__tests__/taggableMixin.spec.js +0 -27
- package/src/components/wt-tags-input/wt-tags-input.vue +0 -275
- package/types/components/wt-tags-input/__tests__/WtTagsInput.spec.d.ts +0 -1
- package/types/components/wt-tags-input/mixin/__tests__/taggableMixin.spec.d.ts +0 -1
- package/types/components/wt-tags-input/wt-tags-input.vue.d.ts +0 -3
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<wt-select
|
|
2
|
+
<wt-single-select
|
|
3
3
|
class="permissions-role-select"
|
|
4
4
|
option-label="name"
|
|
5
5
|
v-bind="attrs"
|
|
6
|
-
:value="model"
|
|
7
|
-
@input="model = $event"
|
|
6
|
+
v-model:model-value="model"
|
|
8
7
|
>
|
|
9
|
-
<template #
|
|
10
|
-
<role-row :role="
|
|
11
|
-
{{
|
|
8
|
+
<template #value="{ value, getOptionLabel }">
|
|
9
|
+
<role-row :role="value">
|
|
10
|
+
{{ getOptionLabel(value) || value }}
|
|
12
11
|
</role-row>
|
|
13
12
|
</template>
|
|
14
13
|
|
|
15
|
-
<template #option="{ option,
|
|
14
|
+
<template #option="{ option, getOptionLabel }">
|
|
16
15
|
<role-row :role="option">
|
|
17
|
-
{{ option
|
|
16
|
+
{{ getOptionLabel(option) || option }}
|
|
18
17
|
</role-row>
|
|
19
18
|
</template>
|
|
20
|
-
</wt-select>
|
|
19
|
+
</wt-single-select>
|
|
21
20
|
</template>
|
|
22
21
|
|
|
23
22
|
<script setup>
|
|
@@ -45,32 +45,32 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<template #read="{ item }">
|
|
48
|
-
<wt-select
|
|
49
|
-
:
|
|
48
|
+
<wt-single-select
|
|
49
|
+
:show-clear="false"
|
|
50
50
|
:disabled="!access.edit"
|
|
51
51
|
:options="accessOptions"
|
|
52
|
-
:value="item.access.r"
|
|
53
|
-
@
|
|
52
|
+
:model-value="item.access.r"
|
|
53
|
+
@update:model-value="changeAccessMode({ item, ruleName: 'r', mode: $event })"
|
|
54
54
|
/>
|
|
55
55
|
</template>
|
|
56
56
|
|
|
57
57
|
<template #edit="{ item }">
|
|
58
|
-
<wt-select
|
|
59
|
-
:
|
|
58
|
+
<wt-single-select
|
|
59
|
+
:show-clear="false"
|
|
60
60
|
:disabled="!access.edit"
|
|
61
61
|
:options="accessOptions"
|
|
62
|
-
:value="item.access.w"
|
|
63
|
-
@
|
|
62
|
+
:model-value="item.access.w"
|
|
63
|
+
@update:model-value="changeAccessMode({ item, ruleName: 'w', mode: $event })"
|
|
64
64
|
/>
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<template #delete="{ item }">
|
|
68
|
-
<wt-select
|
|
69
|
-
:
|
|
68
|
+
<wt-single-select
|
|
69
|
+
:show-clear="false"
|
|
70
70
|
:disabled="!access.edit"
|
|
71
71
|
:options="accessOptions"
|
|
72
|
-
:value="item.access.d"
|
|
73
|
-
@
|
|
72
|
+
:model-value="item.access.d"
|
|
73
|
+
@update:model-value="changeAccessMode({ item, ruleName: 'd', mode: $event })"
|
|
74
74
|
/>
|
|
75
75
|
</template>
|
|
76
76
|
<template #actions="{ item }">
|
|
@@ -1,20 +1,42 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<wt-select
|
|
3
|
-
|
|
2
|
+
<wt-single-select
|
|
3
|
+
v-if="!filterSchema.multiple"
|
|
4
4
|
:label="label"
|
|
5
|
-
:multiple="filterSchema.multiple"
|
|
6
5
|
:search-method="search"
|
|
7
|
-
:
|
|
8
|
-
:value="filterSchema.value"
|
|
6
|
+
:data-key="filterSchema.storedProp"
|
|
7
|
+
:model-value="filterSchema.value"
|
|
9
8
|
v-bind="$attrs"
|
|
10
|
-
@
|
|
9
|
+
@hide="
|
|
11
10
|
setValueToQuery({
|
|
12
11
|
value,
|
|
13
12
|
filterQuery,
|
|
14
13
|
storedProp: filterSchema.storedProp,
|
|
15
14
|
})
|
|
16
15
|
"
|
|
17
|
-
@
|
|
16
|
+
@update:model-value="setValue({ filter: filterQuery, value: $event })"
|
|
17
|
+
@reset="
|
|
18
|
+
setValueToQuery({
|
|
19
|
+
value,
|
|
20
|
+
filterQuery,
|
|
21
|
+
storedProp: filterSchema.storedProp,
|
|
22
|
+
})
|
|
23
|
+
"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<wt-multi-select
|
|
27
|
+
:label="label"
|
|
28
|
+
:search-method="search"
|
|
29
|
+
:data-key="filterSchema.storedProp"
|
|
30
|
+
:model-value="filterSchema.value"
|
|
31
|
+
v-bind="$attrs"
|
|
32
|
+
@hide="
|
|
33
|
+
setValueToQuery({
|
|
34
|
+
value,
|
|
35
|
+
filterQuery,
|
|
36
|
+
storedProp: filterSchema.storedProp,
|
|
37
|
+
})
|
|
38
|
+
"
|
|
39
|
+
@update:model-value="setValue({ filter: filterQuery, value: $event })"
|
|
18
40
|
@reset="
|
|
19
41
|
setValueToQuery({
|
|
20
42
|
value,
|
|
@@ -1,20 +1,45 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<wt-select
|
|
2
|
+
<wt-single-select
|
|
3
|
+
v-if="!filterSchema.multiple"
|
|
3
4
|
:allow-custom-values="allowCustomValues"
|
|
4
5
|
:label="label"
|
|
5
|
-
:multiple="filterSchema.multiple"
|
|
6
6
|
:options="localizedOptions"
|
|
7
|
-
:
|
|
8
|
-
:value="value"
|
|
7
|
+
:data-key="filterSchema.storedProp"
|
|
8
|
+
:model-value="value"
|
|
9
9
|
v-bind="$attrs"
|
|
10
|
-
@
|
|
10
|
+
@hide="
|
|
11
11
|
setValueToQuery({
|
|
12
12
|
value,
|
|
13
13
|
filterQuery,
|
|
14
14
|
storedProp: filterSchema.storedProp,
|
|
15
15
|
})
|
|
16
16
|
"
|
|
17
|
-
@
|
|
17
|
+
@update:model-value="setValue({ filter: filterQuery, value: $event })"
|
|
18
|
+
@reset="
|
|
19
|
+
setValueToQuery({
|
|
20
|
+
value,
|
|
21
|
+
filterQuery,
|
|
22
|
+
storedProp: filterSchema.storedProp,
|
|
23
|
+
})
|
|
24
|
+
"
|
|
25
|
+
/>
|
|
26
|
+
|
|
27
|
+
<wt-multi-select
|
|
28
|
+
v-else
|
|
29
|
+
:allow-custom-values="allowCustomValues"
|
|
30
|
+
:label="label"
|
|
31
|
+
:options="localizedOptions"
|
|
32
|
+
:data-key="filterSchema.storedProp"
|
|
33
|
+
:model-value="value"
|
|
34
|
+
v-bind="$attrs"
|
|
35
|
+
@hide="
|
|
36
|
+
setValueToQuery({
|
|
37
|
+
value,
|
|
38
|
+
filterQuery,
|
|
39
|
+
storedProp: filterSchema.storedProp,
|
|
40
|
+
})
|
|
41
|
+
"
|
|
42
|
+
@update:model-value="setValue({ filter: filterQuery, value: $event })"
|
|
18
43
|
@reset="
|
|
19
44
|
setValueToQuery({
|
|
20
45
|
value,
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
/>
|
|
27
27
|
|
|
28
28
|
<form class="wt-upload-csv-popup-form__form">
|
|
29
|
-
<wt-select
|
|
30
|
-
v-model="charset"
|
|
31
|
-
:
|
|
29
|
+
<wt-single-select
|
|
30
|
+
v-model:model-value="charset"
|
|
31
|
+
:show-clear="false"
|
|
32
32
|
:label="t('objects.CSV.charSet')"
|
|
33
33
|
:options="charsetOptions"
|
|
34
34
|
disabled
|
|
@@ -83,18 +83,18 @@
|
|
|
83
83
|
{{ t(field.locale) }}<span v-if="field.required">*</span>
|
|
84
84
|
</p>
|
|
85
85
|
|
|
86
|
-
<wt-select
|
|
86
|
+
<wt-single-select
|
|
87
87
|
v-if="!field.multiple"
|
|
88
|
-
v-model="field.csv"
|
|
89
|
-
:
|
|
88
|
+
v-model:model-value="field.csv"
|
|
89
|
+
:show-clear="!field.required"
|
|
90
90
|
:options="csvColumns"
|
|
91
91
|
:placeholder="t(field.locale)"
|
|
92
|
-
:
|
|
92
|
+
:data-key="null"
|
|
93
93
|
class="wt-upload-csv-popup-mapping-item__select"
|
|
94
94
|
/>
|
|
95
|
-
<wt-
|
|
95
|
+
<wt-multi-select
|
|
96
96
|
v-else
|
|
97
|
-
v-model="field.csv"
|
|
97
|
+
v-model:model-value="field.csv"
|
|
98
98
|
:options="csvColumns"
|
|
99
99
|
:placeholder="t(field.locale)"
|
|
100
100
|
class="wt-upload-csv-popup-mapping-item__select"
|
|
@@ -22,7 +22,7 @@ declare var __VLS_18: "bool", __VLS_19: {
|
|
|
22
22
|
defaultProps: {
|
|
23
23
|
value: unknown;
|
|
24
24
|
clearable: boolean;
|
|
25
|
-
|
|
25
|
+
dataKey: string;
|
|
26
26
|
searchMethod: () => (params: any) => any;
|
|
27
27
|
label: string;
|
|
28
28
|
required: boolean;
|
|
@@ -31,9 +31,8 @@ declare var __VLS_18: "bool", __VLS_19: {
|
|
|
31
31
|
}, __VLS_40: "list", __VLS_41: {
|
|
32
32
|
defaultProps: {
|
|
33
33
|
value: unknown;
|
|
34
|
-
multiple: boolean;
|
|
35
34
|
clearable: boolean;
|
|
36
|
-
|
|
35
|
+
dataKey: string;
|
|
37
36
|
searchMethod: () => (params: any) => any;
|
|
38
37
|
label: string;
|
|
39
38
|
required: boolean;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PartialDeep } from 'type-fest';
|
|
2
|
+
import { fetchConfig } from './scripts/fetchConfig';
|
|
3
|
+
export interface AppConfigModule<T> {
|
|
4
|
+
/**
|
|
5
|
+
* Returns the resolved config, initializing it on first access.
|
|
6
|
+
*/
|
|
7
|
+
getConfig: () => Promise<T>;
|
|
8
|
+
/**
|
|
9
|
+
* Fetches and resolves the config, replacing any previously cached value.
|
|
10
|
+
*/
|
|
11
|
+
initializeConfig: () => Promise<T>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Creates a reusable app config module.
|
|
15
|
+
*
|
|
16
|
+
* Each application provides its own config type `T` and a `defaultConfig` used
|
|
17
|
+
* as the base. The fetched runtime config (see {@link fetchConfig}) is deep-merged
|
|
18
|
+
* over the defaults.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { createAppConfig } from '@webitel/ui-sdk/modules/AppConfig';
|
|
23
|
+
* import { defaultConfig } from './defaults/defaultConfig';
|
|
24
|
+
* import type { AppConfig } from './types/AppConfig';
|
|
25
|
+
*
|
|
26
|
+
* export const { getConfig, initializeConfig } = createAppConfig<AppConfig>(defaultConfig);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function createAppConfig<T>(defaultConfig: PartialDeep<T>): AppConfigModule<T>;
|
|
30
|
+
export { fetchConfig };
|
|
31
|
+
export type { PartialDeep };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fetches the application runtime config from static files served next to the app.
|
|
3
|
+
*
|
|
4
|
+
* Looks up `config.{json,jsonc}` and an optional `config.local.{json,jsonc}` overlay,
|
|
5
|
+
* with the local file taking priority. The shape of the returned object is
|
|
6
|
+
* application-specific, so the concrete type is provided by the caller.
|
|
7
|
+
*/
|
|
8
|
+
export declare function fetchConfig<T>(): Promise<Partial<T>>;
|