@webitel/ui-sdk 26.8.86 → 26.8.88
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/{clients-CkhN_A5L.js → clients-cfVUVngv.js} +317 -289
- package/dist/{components-CV6dUJR6.js → components-BSM66otL.js} +1065 -1853
- package/dist/{composables-BtWSAI5D.js → composables-OP5kSvlh.js} +3 -3
- package/dist/debounce-A4B4PTkL.js +5 -0
- package/dist/{deep-copy-CTgLtgMO.js → deep-copy-7O5ej7vT.js} +1 -1
- package/dist/dist-DB8lC4KJ.js +112 -0
- package/dist/{dist-CAOIU8xq.js → dist-DJZOILzq.js} +1 -1
- package/dist/{genClient-HHiOUj56.js → genClient-5JkKKac8.js} +6 -7
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2 -2
- package/dist/ui-sdk.umd.cjs +675 -675
- package/dist/{useValidation-CEed9cxY.js → useValidation-Dmm2xos_.js} +1 -1
- package/dist/{useWtTable-DLWucXPx.js → useWtTable-CUpN0LZ5.js} +1 -1
- package/dist/{vue-i18n-Db_oYfO8.js → vue-i18n-B88GcHzn.js} +215 -215
- package/dist/{vue-router-Dwey8MMv.js → vue-router-CobN9tLi.js} +1 -1
- package/dist/{wt-action-bar-DtAECixF.js → wt-action-bar-BpuER6TA.js} +1 -1
- package/dist/{wt-chat-emoji-CPKosJ8P.js → wt-chat-emoji-zW3fKPW8.js} +1 -1
- package/dist/{wt-datepicker-BgjjbOMX.js → wt-datepicker-BS3przUJ.js} +2 -2
- package/dist/{wt-display-chip-items-CK-cnYdD.js → wt-display-chip-items-D-lzTp0d.js} +1 -1
- package/dist/{wt-expansion-card-BT586Mul.js → wt-expansion-card-8YzHs8F1.js} +1 -1
- package/dist/{wt-galleria-DMCgiiju.js → wt-galleria-CmaNfz7E.js} +2 -2
- package/dist/{wt-icon-action-DJzm0kEk.js → wt-icon-action-B8vuj9cC.js} +1 -1
- package/dist/{wt-pagination-G2ZGU4Pi.js → wt-pagination-DLRMTDRV.js} +1 -1
- package/dist/{wt-player-CFrKSilF.js → wt-player-CqjIR3Q-.js} +2 -2
- package/dist/{wt-popover-BCYPu5NC.js → wt-popover-DuZFw3bg.js} +1 -1
- package/dist/{wt-search-bar-DosqJLXT.js → wt-search-bar-CE4WhuJ6.js} +2 -2
- package/dist/{wt-selection-popup-CjYw4ppb.js → wt-selection-popup-Bd4EuLl-.js} +1 -1
- package/dist/{wt-send-message-popup-C4XEqrKj.js → wt-send-message-popup-CiswBW69.js} +287 -306
- package/dist/{wt-slider-BPzRTeYU.js → wt-slider-Co6hZQu_.js} +1 -1
- package/dist/{wt-start-page-BFQExFUj.js → wt-start-page-Bp7b0ir-.js} +1 -1
- package/dist/{wt-status-select-Dnv9tj7o.js → wt-status-select-z4n_FL2z.js} +1 -1
- package/dist/{wt-table-PR_Kx7Sv.js → wt-table-C-DMIrud.js} +2 -2
- package/dist/{wt-table-column-select-CmbjLO9b.js → wt-table-column-select-BtFhZKPT.js} +26 -19
- package/dist/{wt-timepicker-B4MOaSEZ.js → wt-timepicker-D-tnO-gX.js} +2 -2
- package/dist/{wt-tree-BYk31Ees.js → wt-tree-BH2o2iCt.js} +843 -844
- package/dist/{wt-tree-table-ZJSw_3hx.js → wt-tree-table-D4nCNUq_.js} +1 -1
- package/dist/{wt-type-extension-value-input-CuxKUgu-.js → wt-type-extension-value-input-DTjVuaQe.js} +3 -3
- package/dist/{wt-vidstack-player-O1Xcyw-A.js → wt-vidstack-player-BUFABzVR.js} +997 -991
- package/package.json +6 -2
- package/src/api/transformers/starToSearch/starToSearch.transformer.js +1 -1
- package/src/components/wt-table-column-select/wt-table-column-select.vue +21 -2
- package/src/components/wt-textarea/wt-textarea.vue +12 -1
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +16 -0
- package/src/composables/useCachedItemInstanceName/useCachedItemInstanceName.js +1 -1
- package/src/modules/AuditForm/components/audit-form.vue +1 -1
- package/src/modules/CardStoreModule/store/CardStoreModule.js +1 -1
- package/src/modules/TableVariableColumnSelect/components/__tests__/wt-table-variable-column-select.spec.ts +101 -0
- package/src/modules/TableVariableColumnSelect/components/wt-table-variable-column-select.vue +278 -0
- package/src/modules/TableVariableColumnSelect/composable/__tests__/useTableVariableHeaders.spec.ts +129 -0
- package/src/modules/TableVariableColumnSelect/composable/useTableVariableHeaders.ts +59 -0
- package/src/modules/TableVariableColumnSelect/index.ts +7 -0
- package/src/modules/Userinfo/mappings/mappings.ts +1 -1
- package/src/modules/Userinfo/stores/userinfoStore.ts +1 -1
- package/src/scripts/debounce.js +1 -1
- package/src/scripts/logger.js +1 -1
- package/src/scripts/updateObject.js +1 -2
- package/src/store/BaseStoreModules/BaseStoreModule.js +1 -1
- package/src/store/new/helpers/createStoreModule.js +1 -1
- package/src/store/new/modules/baseStoreModule/baseStoreModule.js +1 -1
- package/src/store/new/modules/cardStoreModule/cardStoreModule.js +1 -1
- package/types/.tsbuildinfo +1 -1
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +11 -0
- package/types/modules/TableVariableColumnSelect/components/wt-table-variable-column-select.vue.d.ts +17 -0
- package/types/modules/TableVariableColumnSelect/composable/useTableVariableHeaders.d.ts +14 -0
- package/types/modules/TableVariableColumnSelect/index.d.ts +2 -0
- package/dist/debounce-Bp3jy7S5.js +0 -133
- package/dist/dist-Crpfx4FA.js +0 -87
- package/dist/rolldown-runtime-BEcgMyyN.js +0 -27
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { WtTableHeader } from '../../../components/wt-table/types/WtTable';
|
|
2
|
+
|
|
3
|
+
export const VARIABLE_FIELD_PREFIX = 'variables.';
|
|
4
|
+
|
|
5
|
+
export type TableVariableHeader = WtTableHeader;
|
|
6
|
+
|
|
7
|
+
type HeadersRef = {
|
|
8
|
+
readonly value: TableVariableHeader[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const isVariableHeader = (
|
|
12
|
+
header: Pick<TableVariableHeader, 'field' | 'value'>,
|
|
13
|
+
) =>
|
|
14
|
+
(header.field ?? '').startsWith(VARIABLE_FIELD_PREFIX) ||
|
|
15
|
+
(header.value ?? '').startsWith(VARIABLE_FIELD_PREFIX);
|
|
16
|
+
|
|
17
|
+
export function useTableVariableHeaders({
|
|
18
|
+
headers,
|
|
19
|
+
updateShownHeaders,
|
|
20
|
+
}: {
|
|
21
|
+
headers: HeadersRef;
|
|
22
|
+
updateShownHeaders: (headers: TableVariableHeader[]) => void;
|
|
23
|
+
}) {
|
|
24
|
+
const updateVariableHeaders = (incoming: TableVariableHeader[]) => {
|
|
25
|
+
const incomingByField = new Map(
|
|
26
|
+
incoming.map((header) => [
|
|
27
|
+
header.field,
|
|
28
|
+
header,
|
|
29
|
+
]),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
const updatedHeaders = headers.value.flatMap((header) => {
|
|
33
|
+
if (!isVariableHeader(header))
|
|
34
|
+
return [
|
|
35
|
+
header,
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
const next = incomingByField.get(header.field);
|
|
39
|
+
if (!next) return [];
|
|
40
|
+
|
|
41
|
+
incomingByField.delete(header.field);
|
|
42
|
+
return [
|
|
43
|
+
{
|
|
44
|
+
...next,
|
|
45
|
+
show: header.show,
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
updateShownHeaders([
|
|
51
|
+
...updatedHeaders,
|
|
52
|
+
...incomingByField.values(),
|
|
53
|
+
]);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
updateVariableHeaders,
|
|
58
|
+
};
|
|
59
|
+
}
|
package/src/scripts/debounce.js
CHANGED
package/src/scripts/logger.js
CHANGED