@sankhyalabs/sankhyablocks 8.15.0-dev.53 → 8.15.0-dev.54
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/cjs/{ConfigStorage-8d4e9d53.js → ConfigStorage-085c7117.js} +11 -12
- package/dist/cjs/{SnkMultiSelectionListDataSource-d15f7aac.js → IExporterProvider-955812ad.js} +52 -5
- package/dist/cjs/RecordIDUtils-3735135c.js +43 -0
- package/dist/cjs/{SnkFormConfigManager-33995e92.js → SnkFormConfigManager-8986431f.js} +2 -2
- package/dist/cjs/{auth-fetcher-bb8e9ae4.js → auth-fetcher-eddaf17f.js} +1 -1
- package/dist/cjs/{DataFetcher-99f0f6ed.js → form-config-fetcher-cdd644a7.js} +251 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-bdbbe9ac.js → pesquisa-fetcher-6e934fb5.js} +30 -16
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +8 -9
- package/dist/cjs/snk-application.cjs.entry.js +22 -23
- package/dist/cjs/snk-attach.cjs.entry.js +12 -13
- package/dist/cjs/snk-crud.cjs.entry.js +4 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +195 -78
- package/dist/cjs/{snk-data-unit-41c29713.js → snk-data-unit-abd2113f.js} +2 -37
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +6 -7
- package/dist/cjs/snk-filter-bar.cjs.entry.js +2 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +2 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +1 -2
- package/dist/cjs/snk-form.cjs.entry.js +3 -4
- package/dist/cjs/snk-grid.cjs.entry.js +65 -102
- package/dist/cjs/{snk-guides-viewer-a8dd24a3.js → snk-guides-viewer-4e8b517b.js} +4 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +6 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +2 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +115 -32
- package/dist/cjs/snk-taskbar.cjs.entry.js +3 -2
- package/dist/cjs/{taskbar-elements-3ecd1278.js → taskbar-elements-d9392685.js} +2 -2
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +90 -0
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +68 -0
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +48 -1
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +1 -0
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +53 -0
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +55 -0
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +35 -45
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +88 -0
- package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +38 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +3 -42
- package/dist/collection/components/snk-grid/snk-grid.js +3 -94
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +81 -9
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +2 -1
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +1 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +3 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +4 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +8 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +1 -0
- package/dist/components/ConfigStorage.js +1 -2
- package/dist/components/{field-search.js → IExporterProvider.js} +52 -7
- package/dist/components/ISave.js +42 -0
- package/dist/components/dataunit-fetcher.js +18 -4
- package/dist/components/form-config-fetcher.js +7022 -3
- package/dist/components/index2.js +198 -33
- package/dist/components/snk-actions-button2.js +3 -12
- package/dist/components/snk-application2.js +1 -1
- package/dist/components/snk-attach2.js +3 -4
- package/dist/components/snk-crud.js +3 -4
- package/dist/components/snk-data-exporter2.js +192 -79
- package/dist/components/snk-data-unit2.js +41 -39
- package/dist/components/snk-detail-view2.js +4 -5
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-form-config2.js +1 -1
- package/dist/components/snk-grid2.js +63 -100
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +101 -16
- package/dist/components/snk-taskbar2.js +6 -5
- package/dist/esm/{ConfigStorage-6e241cd7.js → ConfigStorage-cc3f3dd3.js} +1 -2
- package/dist/esm/{SnkMultiSelectionListDataSource-7084f3b3.js → IExporterProvider-6ebf47ab.js} +52 -6
- package/dist/esm/RecordIDUtils-87d02110.js +41 -0
- package/dist/esm/{SnkFormConfigManager-7a4e678f.js → SnkFormConfigManager-7edda7eb.js} +2 -2
- package/dist/esm/{auth-fetcher-8ec448b0.js → auth-fetcher-11dd9cae.js} +1 -1
- package/dist/esm/{DataFetcher-a650ae58.js → form-config-fetcher-13cd3285.js} +250 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-96d2f351.js → pesquisa-fetcher-4eed47c6.js} +18 -4
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +3 -4
- package/dist/esm/snk-application.entry.js +4 -5
- package/dist/esm/snk-attach.entry.js +4 -5
- package/dist/esm/snk-crud.entry.js +4 -5
- package/dist/esm/snk-data-exporter.entry.js +195 -78
- package/dist/esm/{snk-data-unit-de1d140d.js → snk-data-unit-29eba11a.js} +3 -38
- package/dist/esm/snk-data-unit.entry.js +2 -1
- package/dist/esm/snk-detail-view.entry.js +6 -7
- package/dist/esm/snk-filter-bar.entry.js +2 -3
- package/dist/esm/snk-filter-modal-item.entry.js +2 -3
- package/dist/esm/snk-form-config.entry.js +1 -2
- package/dist/esm/snk-form.entry.js +3 -4
- package/dist/esm/snk-grid.entry.js +63 -100
- package/dist/esm/{snk-guides-viewer-131e9660.js → snk-guides-viewer-2742a9db.js} +4 -5
- package/dist/esm/snk-guides-viewer.entry.js +6 -7
- package/dist/esm/snk-personalized-filter.entry.js +2 -3
- package/dist/esm/snk-simple-crud.entry.js +102 -19
- package/dist/esm/snk-taskbar.entry.js +3 -2
- package/dist/esm/{taskbar-elements-2473c8ac.js → taskbar-elements-ad766858.js} +2 -2
- package/dist/sankhyablocks/p-07825198.js +1 -0
- package/dist/sankhyablocks/p-1d9d07b4.entry.js +1 -0
- package/dist/sankhyablocks/p-201e5588.entry.js +1 -0
- package/dist/sankhyablocks/p-33a6728e.js +26 -0
- package/dist/sankhyablocks/p-37afb96a.js +1 -0
- package/dist/sankhyablocks/p-411fe937.entry.js +1 -0
- package/dist/sankhyablocks/p-44d52fc6.js +1 -0
- package/dist/sankhyablocks/p-4ddf7add.entry.js +1 -0
- package/dist/sankhyablocks/p-7b797d8f.entry.js +1 -0
- package/dist/sankhyablocks/p-87cb937d.js +65 -0
- package/dist/sankhyablocks/{p-0624f62d.js → p-8a4c4b54.js} +6 -6
- package/dist/sankhyablocks/p-9863d682.js +1 -0
- package/dist/sankhyablocks/{p-125bb902.js → p-99b51d06.js} +1 -1
- package/dist/sankhyablocks/p-9ee96756.entry.js +1 -0
- package/dist/sankhyablocks/p-a4c94582.entry.js +1 -0
- package/dist/sankhyablocks/p-bf209f48.entry.js +1 -0
- package/dist/sankhyablocks/p-c2f3ebf3.entry.js +1 -0
- package/dist/sankhyablocks/p-c3c0ad0b.entry.js +1 -0
- package/dist/sankhyablocks/{p-619c5f6f.entry.js → p-c801a38a.entry.js} +2 -2
- package/dist/sankhyablocks/p-cfb98f51.entry.js +1 -0
- package/dist/sankhyablocks/{p-efeca7ba.js → p-d24c9dc6.js} +1 -1
- package/dist/sankhyablocks/p-e4225e8b.entry.js +1 -0
- package/dist/sankhyablocks/p-edd9dd1c.entry.js +1 -0
- package/dist/sankhyablocks/p-fa84e72f.entry.js +1 -0
- package/dist/sankhyablocks/p-fd44c905.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +13 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +11 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +21 -4
- package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +5 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +3 -1
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +77 -0
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +3 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +0 -3
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +14 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components.d.ts +16 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/form-config-fetcher-d73f4449.js +0 -256
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +0 -34
- package/dist/components/DataFetcher.js +0 -7023
- package/dist/components/index3.js +0 -199
- package/dist/esm/form-config-fetcher-765b8498.js +0 -253
- package/dist/sankhyablocks/p-004c356e.js +0 -26
- package/dist/sankhyablocks/p-075bba4c.entry.js +0 -1
- package/dist/sankhyablocks/p-07a61550.entry.js +0 -1
- package/dist/sankhyablocks/p-103c5956.entry.js +0 -1
- package/dist/sankhyablocks/p-1048bd26.entry.js +0 -1
- package/dist/sankhyablocks/p-13ae1a89.entry.js +0 -1
- package/dist/sankhyablocks/p-24ed6ad6.entry.js +0 -1
- package/dist/sankhyablocks/p-34a7f2ab.js +0 -65
- package/dist/sankhyablocks/p-52c8e589.js +0 -1
- package/dist/sankhyablocks/p-5833cff9.js +0 -1
- package/dist/sankhyablocks/p-5a2e016a.entry.js +0 -1
- package/dist/sankhyablocks/p-6f560924.entry.js +0 -1
- package/dist/sankhyablocks/p-8967fa78.js +0 -1
- package/dist/sankhyablocks/p-9b1beac5.entry.js +0 -1
- package/dist/sankhyablocks/p-a87149e4.entry.js +0 -1
- package/dist/sankhyablocks/p-ac77949b.entry.js +0 -1
- package/dist/sankhyablocks/p-b10b9934.entry.js +0 -1
- package/dist/sankhyablocks/p-be75153c.js +0 -1
- package/dist/sankhyablocks/p-bf39bdb8.entry.js +0 -1
- package/dist/sankhyablocks/p-f7d0fab9.entry.js +0 -1
- package/dist/sankhyablocks/p-f7d9d148.entry.js +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +0 -3
- /package/dist/sankhyablocks/{p-ae4fc9a9.js → p-61dd89eb.js} +0 -0
@@ -1,34 +1,199 @@
|
|
1
|
-
|
2
|
-
(function (PresentationMode) {
|
3
|
-
PresentationMode["PRIMARY"] = "primary";
|
4
|
-
PresentationMode["SECONDARY"] = "secondary";
|
5
|
-
PresentationMode["SINGLE_TASKBAR"] = "singleTaskbar";
|
6
|
-
})(PresentationMode || (PresentationMode = {}));
|
7
|
-
var DataExporterOption;
|
8
|
-
(function (DataExporterOption) {
|
9
|
-
DataExporterOption["EXPORT_TO_PDF"] = "exportToPDF";
|
10
|
-
DataExporterOption["EXPORT_TO_XLS"] = "exportToXLS";
|
11
|
-
DataExporterOption["EXPORT_CURRENT_PAGE"] = "exportCurrentPage";
|
12
|
-
DataExporterOption["EXPORT_PAGE_TO_PDF"] = "exportPageToPDF";
|
13
|
-
DataExporterOption["EXPORT_PAGE_TO_XLS"] = "exportPageToXLS";
|
14
|
-
DataExporterOption["EXPORT_BY_EMAIL"] = "exportToEmail";
|
15
|
-
DataExporterOption["EXPORT_PDF_TO_EMAIL"] = "exportPDFToEmail";
|
16
|
-
DataExporterOption["EXPORT_XLS_TO_EMAIL"] = "exportXLSToEmail";
|
17
|
-
})(DataExporterOption || (DataExporterOption = {}));
|
18
|
-
var DataExporterFormat;
|
19
|
-
(function (DataExporterFormat) {
|
20
|
-
DataExporterFormat["PDF"] = "exportPDFToEmail";
|
21
|
-
DataExporterFormat["XLS"] = "exportXLSToEmail";
|
22
|
-
DataExporterFormat["XLSX"] = "exportXLSToEmail";
|
23
|
-
})(DataExporterFormat || (DataExporterFormat = {}));
|
24
|
-
var DataExporterType;
|
25
|
-
(function (DataExporterType) {
|
26
|
-
DataExporterType["EXPORT_TO_PDF"] = "PDF";
|
27
|
-
DataExporterType["EXPORT_TO_XLS"] = "XLS";
|
28
|
-
DataExporterType["EXPORT_PAGE_TO_PDF"] = "PDF";
|
29
|
-
DataExporterType["EXPORT_PAGE_TO_XLS"] = "XLS";
|
30
|
-
DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
|
31
|
-
DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
|
32
|
-
})(DataExporterType || (DataExporterType = {}));
|
1
|
+
import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';
|
33
2
|
|
34
|
-
|
3
|
+
const appendToMap = (map, propName, value) => {
|
4
|
+
const items = map.get(propName);
|
5
|
+
if (!items) {
|
6
|
+
map.set(propName, [value]);
|
7
|
+
}
|
8
|
+
else if (!items.includes(value)) {
|
9
|
+
items.push(value);
|
10
|
+
}
|
11
|
+
};
|
12
|
+
const debounce = (fn, ms) => {
|
13
|
+
let timeoutId;
|
14
|
+
return (...args) => {
|
15
|
+
if (timeoutId) {
|
16
|
+
clearTimeout(timeoutId);
|
17
|
+
}
|
18
|
+
timeoutId = setTimeout(() => {
|
19
|
+
timeoutId = 0;
|
20
|
+
fn(...args);
|
21
|
+
}, ms);
|
22
|
+
};
|
23
|
+
};
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Check if a possible element isConnected.
|
27
|
+
* The property might not be there, so we check for it.
|
28
|
+
*
|
29
|
+
* We want it to return true if isConnected is not a property,
|
30
|
+
* otherwise we would remove these elements and would not update.
|
31
|
+
*
|
32
|
+
* Better leak in Edge than to be useless.
|
33
|
+
*/
|
34
|
+
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
35
|
+
const cleanupElements = debounce((map) => {
|
36
|
+
for (let key of map.keys()) {
|
37
|
+
map.set(key, map.get(key).filter(isConnected));
|
38
|
+
}
|
39
|
+
}, 2000);
|
40
|
+
const stencilSubscription = () => {
|
41
|
+
if (typeof getRenderingRef !== 'function') {
|
42
|
+
// If we are not in a stencil project, we do nothing.
|
43
|
+
// This function is not really exported by @stencil/core.
|
44
|
+
return {};
|
45
|
+
}
|
46
|
+
const elmsToUpdate = new Map();
|
47
|
+
return {
|
48
|
+
dispose: () => elmsToUpdate.clear(),
|
49
|
+
get: (propName) => {
|
50
|
+
const elm = getRenderingRef();
|
51
|
+
if (elm) {
|
52
|
+
appendToMap(elmsToUpdate, propName, elm);
|
53
|
+
}
|
54
|
+
},
|
55
|
+
set: (propName) => {
|
56
|
+
const elements = elmsToUpdate.get(propName);
|
57
|
+
if (elements) {
|
58
|
+
elmsToUpdate.set(propName, elements.filter(forceUpdate));
|
59
|
+
}
|
60
|
+
cleanupElements(elmsToUpdate);
|
61
|
+
},
|
62
|
+
reset: () => {
|
63
|
+
elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
|
64
|
+
cleanupElements(elmsToUpdate);
|
65
|
+
},
|
66
|
+
};
|
67
|
+
};
|
68
|
+
|
69
|
+
const unwrap = (val) => (typeof val === 'function' ? val() : val);
|
70
|
+
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
71
|
+
const unwrappedState = unwrap(defaultState);
|
72
|
+
let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
|
73
|
+
const handlers = {
|
74
|
+
dispose: [],
|
75
|
+
get: [],
|
76
|
+
set: [],
|
77
|
+
reset: [],
|
78
|
+
};
|
79
|
+
const reset = () => {
|
80
|
+
var _a;
|
81
|
+
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
82
|
+
// otherwise, the state won't be properly reset
|
83
|
+
states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
|
84
|
+
handlers.reset.forEach((cb) => cb());
|
85
|
+
};
|
86
|
+
const dispose = () => {
|
87
|
+
// Call first dispose as resetting the state would
|
88
|
+
// cause less updates ;)
|
89
|
+
handlers.dispose.forEach((cb) => cb());
|
90
|
+
reset();
|
91
|
+
};
|
92
|
+
const get = (propName) => {
|
93
|
+
handlers.get.forEach((cb) => cb(propName));
|
94
|
+
return states.get(propName);
|
95
|
+
};
|
96
|
+
const set = (propName, value) => {
|
97
|
+
const oldValue = states.get(propName);
|
98
|
+
if (shouldUpdate(value, oldValue, propName)) {
|
99
|
+
states.set(propName, value);
|
100
|
+
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
101
|
+
}
|
102
|
+
};
|
103
|
+
const state = (typeof Proxy === 'undefined'
|
104
|
+
? {}
|
105
|
+
: new Proxy(unwrappedState, {
|
106
|
+
get(_, propName) {
|
107
|
+
return get(propName);
|
108
|
+
},
|
109
|
+
ownKeys(_) {
|
110
|
+
return Array.from(states.keys());
|
111
|
+
},
|
112
|
+
getOwnPropertyDescriptor() {
|
113
|
+
return {
|
114
|
+
enumerable: true,
|
115
|
+
configurable: true,
|
116
|
+
};
|
117
|
+
},
|
118
|
+
has(_, propName) {
|
119
|
+
return states.has(propName);
|
120
|
+
},
|
121
|
+
set(_, propName, value) {
|
122
|
+
set(propName, value);
|
123
|
+
return true;
|
124
|
+
},
|
125
|
+
}));
|
126
|
+
const on = (eventName, callback) => {
|
127
|
+
handlers[eventName].push(callback);
|
128
|
+
return () => {
|
129
|
+
removeFromArray(handlers[eventName], callback);
|
130
|
+
};
|
131
|
+
};
|
132
|
+
const onChange = (propName, cb) => {
|
133
|
+
const unSet = on('set', (key, newValue) => {
|
134
|
+
if (key === propName) {
|
135
|
+
cb(newValue);
|
136
|
+
}
|
137
|
+
});
|
138
|
+
// We need to unwrap the defaultState because it might be a function.
|
139
|
+
// Otherwise we might not be sending the right reset value.
|
140
|
+
const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
|
141
|
+
return () => {
|
142
|
+
unSet();
|
143
|
+
unReset();
|
144
|
+
};
|
145
|
+
};
|
146
|
+
const use = (...subscriptions) => {
|
147
|
+
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
148
|
+
if (subscription.set) {
|
149
|
+
unsubs.push(on('set', subscription.set));
|
150
|
+
}
|
151
|
+
if (subscription.get) {
|
152
|
+
unsubs.push(on('get', subscription.get));
|
153
|
+
}
|
154
|
+
if (subscription.reset) {
|
155
|
+
unsubs.push(on('reset', subscription.reset));
|
156
|
+
}
|
157
|
+
if (subscription.dispose) {
|
158
|
+
unsubs.push(on('dispose', subscription.dispose));
|
159
|
+
}
|
160
|
+
return unsubs;
|
161
|
+
}, []);
|
162
|
+
return () => unsubs.forEach((unsub) => unsub());
|
163
|
+
};
|
164
|
+
const forceUpdate = (key) => {
|
165
|
+
const oldValue = states.get(key);
|
166
|
+
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
167
|
+
};
|
168
|
+
return {
|
169
|
+
state,
|
170
|
+
get,
|
171
|
+
set,
|
172
|
+
on,
|
173
|
+
onChange,
|
174
|
+
use,
|
175
|
+
dispose,
|
176
|
+
reset,
|
177
|
+
forceUpdate,
|
178
|
+
};
|
179
|
+
};
|
180
|
+
const removeFromArray = (array, item) => {
|
181
|
+
const index = array.indexOf(item);
|
182
|
+
if (index >= 0) {
|
183
|
+
array[index] = array[array.length - 1];
|
184
|
+
array.length--;
|
185
|
+
}
|
186
|
+
};
|
187
|
+
|
188
|
+
const createStore = (defaultState, shouldUpdate) => {
|
189
|
+
const map = createObservableMap(defaultState, shouldUpdate);
|
190
|
+
map.use(stencilSubscription());
|
191
|
+
return map;
|
192
|
+
};
|
193
|
+
|
194
|
+
const store = createStore({
|
195
|
+
exporterProviders: {},
|
196
|
+
filterFieldsDataSource: undefined
|
197
|
+
});
|
198
|
+
|
199
|
+
export { store as s };
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { ApplicationContext, StringUtils, ErrorException, WarningException, ObjectUtils, DateUtils, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
|
3
|
-
import { D as DataFetcher } from './
|
3
|
+
import { D as DataFetcher } from './form-config-fetcher.js';
|
4
4
|
import { P as ParamType } from './ParamType.js';
|
5
5
|
import './dataunit-fetcher.js';
|
6
|
-
import './
|
6
|
+
import './ISave.js';
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
9
9
|
import './filter-item-type.enum.js';
|
10
|
-
import './form-config-fetcher.js';
|
11
10
|
import { R as ResourceIDUtils } from './ResourceIDUtils.js';
|
12
11
|
|
13
12
|
const SERVICE_ACTION_EXECUTE_JAVA = 'ActionButtonsSP.executeJava';
|
@@ -158,14 +157,6 @@ var RefreshType;
|
|
158
157
|
RefreshType["ALL"] = "ALL";
|
159
158
|
})(RefreshType || (RefreshType = {}));
|
160
159
|
|
161
|
-
var SaveErrorsEnum;
|
162
|
-
(function (SaveErrorsEnum) {
|
163
|
-
SaveErrorsEnum["LINK_AND_FILE_AT_THE_SAME_TIME"] = "LINK_AND_FILE_AT_THE_SAME_TIME";
|
164
|
-
SaveErrorsEnum["ANY_LINK_OR_FILE_FILLED"] = "ANY_LINK_OR_FILE_FILLED";
|
165
|
-
SaveErrorsEnum["UNKNOWN"] = "UNKNOWN";
|
166
|
-
SaveErrorsEnum["DESCRIPTION_CANNOT_BE_CHANGED"] = "DESCRIPTION_CANNOT_BE_CHANGED";
|
167
|
-
})(SaveErrorsEnum || (SaveErrorsEnum = {}));
|
168
|
-
|
169
160
|
const MASTER_ROW_PROPERTY = "__MASTER_ROW__";
|
170
161
|
const ENTITY_NAME_PROPERTY = '__ENTITY_NAME__';
|
171
162
|
const NUFIN_COLUMN = 'NUFIN';
|
@@ -735,4 +726,4 @@ function defineCustomElement() {
|
|
735
726
|
} });
|
736
727
|
}
|
737
728
|
|
738
|
-
export { SnkActionsButton as S,
|
729
|
+
export { SnkActionsButton as S, defineCustomElement as d };
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
2
2
|
import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, KeyboardManager, OnboardingUtils, DependencyType, ArrayUtils, SearchUtils, ElementIDUtils, ApplicationContext, DataType, ErrorTracking } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
4
|
import { C as ConfigStorage } from './ConfigStorage.js';
|
5
|
-
import { d as dist, D as DataFetcher, U as UrlUtils } from './
|
5
|
+
import { d as dist, D as DataFetcher, U as UrlUtils } from './form-config-fetcher.js';
|
6
6
|
import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher.js';
|
7
7
|
import { D as DataUnitFetcher, P as PesquisaFetcher } from './dataunit-fetcher.js';
|
8
8
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnit } from '@sankhyalabs/core';
|
3
|
-
import { D as DataFetcher } from './
|
3
|
+
import { D as DataFetcher } from './form-config-fetcher.js';
|
4
4
|
import { a as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher.js';
|
5
|
-
import './
|
6
|
-
import { a as SaveErrorsEnum, d as defineCustomElement$f } from './snk-actions-button2.js';
|
5
|
+
import { S as SaveErrorsEnum } from './ISave.js';
|
7
6
|
import './filter-item-type.enum.js';
|
8
|
-
import './form-config-fetcher.js';
|
9
7
|
import { V as VIEW_MODE } from './constants.js';
|
10
8
|
import { A as AutorizationType } from './auth-fetcher.js';
|
11
9
|
import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
|
10
|
+
import { d as defineCustomElement$f } from './snk-actions-button2.js';
|
12
11
|
import { d as defineCustomElement$e } from './snk-config-options2.js';
|
13
12
|
import { d as defineCustomElement$d } from './snk-configurator2.js';
|
14
13
|
import { d as defineCustomElement$c } from './snk-data-exporter2.js';
|
@@ -1,16 +1,15 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
3
3
|
import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
|
4
|
-
import './
|
4
|
+
import './form-config-fetcher.js';
|
5
5
|
import './dataunit-fetcher.js';
|
6
|
-
import { P as PresentationMode } from './
|
7
|
-
import { d as defineCustomElement$w } from './snk-actions-button2.js';
|
6
|
+
import { P as PresentationMode } from './ISave.js';
|
8
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
9
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
9
|
import './filter-item-type.enum.js';
|
11
|
-
import './form-config-fetcher.js';
|
12
10
|
import { V as VIEW_MODE } from './constants.js';
|
13
11
|
import { A as AutorizationType } from './auth-fetcher.js';
|
12
|
+
import { d as defineCustomElement$w } from './snk-actions-button2.js';
|
14
13
|
import { d as defineCustomElement$v } from './snk-attach2.js';
|
15
14
|
import { d as defineCustomElement$u } from './snk-config-options2.js';
|
16
15
|
import { d as defineCustomElement$t } from './snk-configurator2.js';
|