@sankhyalabs/sankhyablocks 4.0.2 → 4.1.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/dist/cjs/{SnkFormConfigManager-b1b19f62.js → SnkFormConfigManager-eb44235b.js} +14 -11
- package/dist/cjs/{SnkMessageBuilder-196c6528.js → SnkMessageBuilder-0a6f6459.js} +6 -2
- package/dist/cjs/{constants-450c0bb7.js → constants-3d09ebea.js} +2 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +1 -1
- package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +32 -8
- package/dist/cjs/snk-detail-view.cjs.entry.js +26 -16
- package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +5 -1
- package/dist/cjs/snk-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-grid-config.cjs.entry.js +4 -6
- package/dist/cjs/{snk-guides-viewer-eb764a6b.js → snk-guides-viewer-bfa51a35.js} +3 -11
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -3
- package/dist/cjs/snk-select-box.cjs.entry.js +1 -1
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view.css +6 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view.js +29 -33
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +41 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -9
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +31 -7
- package/dist/collection/components/snk-form/SnkFormConfigManager.js +14 -11
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +3 -5
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +6 -2
- package/dist/collection/lib/utils/constants.js +1 -0
- package/dist/components/SnkFormConfigManager.js +14 -11
- package/dist/components/SnkMessageBuilder.js +6 -2
- package/dist/components/constants.js +2 -1
- package/dist/components/snk-data-unit2.js +31 -7
- package/dist/components/snk-detail-view2.js +25 -24
- package/dist/components/snk-field-config2.js +1 -1
- package/dist/components/snk-form-config2.js +1 -1
- package/dist/components/snk-form-view2.js +7 -1
- package/dist/components/snk-grid-config2.js +3 -5
- package/dist/components/snk-tab-config2.js +1 -1
- package/dist/esm/{SnkFormConfigManager-3d21511e.js → SnkFormConfigManager-ca1dbe03.js} +14 -11
- package/dist/esm/{SnkMessageBuilder-acb1109f.js → SnkMessageBuilder-9473ae03.js} +6 -2
- package/dist/esm/{constants-e12d550a.js → constants-fb9721cc.js} +2 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-application.entry.js +1 -1
- package/dist/esm/snk-config-options.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +1 -1
- package/dist/esm/snk-data-unit.entry.js +32 -8
- package/dist/esm/snk-detail-view.entry.js +26 -16
- package/dist/esm/snk-field-config.entry.js +1 -1
- package/dist/esm/snk-form-config.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +5 -1
- package/dist/esm/snk-form.entry.js +1 -1
- package/dist/esm/snk-grid-config.entry.js +4 -6
- package/dist/esm/{snk-guides-viewer-5513f260.js → snk-guides-viewer-cfde258d.js} +3 -11
- package/dist/esm/snk-guides-viewer.entry.js +3 -3
- package/dist/esm/snk-select-box.entry.js +1 -1
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/sankhyablocks/p-080e7651.js +1 -0
- package/dist/sankhyablocks/{p-3fa1a1a6.entry.js → p-093c611a.entry.js} +1 -1
- package/dist/sankhyablocks/p-214c6e3b.entry.js +1 -0
- package/dist/sankhyablocks/p-3d0b130c.entry.js +1 -0
- package/dist/sankhyablocks/{p-743b2987.entry.js → p-43d8d388.entry.js} +1 -1
- package/dist/sankhyablocks/p-644ee06b.js +1 -0
- package/dist/sankhyablocks/{p-a9ff94e4.entry.js → p-6e6ef989.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bba73eb1.entry.js → p-73aa9bd4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-03c390a3.entry.js → p-79bf9da2.entry.js} +1 -1
- package/dist/sankhyablocks/p-82be7302.entry.js +1 -0
- package/dist/sankhyablocks/{p-18271554.entry.js → p-8fb3156e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d4e7dcdf.entry.js → p-99742169.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3b56228a.entry.js → p-9d62bbca.entry.js} +1 -1
- package/dist/sankhyablocks/p-9ebb164d.entry.js +1 -0
- package/dist/sankhyablocks/p-c4483cb2.js +1 -0
- package/dist/sankhyablocks/p-dd36931c.entry.js +1 -0
- package/dist/sankhyablocks/{p-05973fd0.entry.js → p-ed7ffabd.entry.js} +1 -1
- package/dist/sankhyablocks/p-f5d3ecb3.js +1 -0
- package/dist/sankhyablocks/{p-36263907.entry.js → p-fc86a31e.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view.d.ts +5 -7
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +8 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +0 -1
- package/dist/types/components.d.ts +20 -12
- package/dist/types/lib/utils/constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-0da84eaf.entry.js +0 -1
- package/dist/sankhyablocks/p-1151781b.entry.js +0 -1
- package/dist/sankhyablocks/p-1305e673.js +0 -1
- package/dist/sankhyablocks/p-6d9b7544.entry.js +0 -1
- package/dist/sankhyablocks/p-7610b125.entry.js +0 -1
- package/dist/sankhyablocks/p-86f10dfc.js +0 -1
- package/dist/sankhyablocks/p-976282de.entry.js +0 -1
- package/dist/sankhyablocks/p-eaafcafb.js +0 -1
- package/dist/sankhyablocks/p-ebca169e.js +0 -1
@@ -38,9 +38,10 @@ class SnkFormConfigManager {
|
|
38
38
|
return new Promise(resolve => {
|
39
39
|
var _a;
|
40
40
|
const cardsState = ((_a = this._config) === null || _a === void 0 ? void 0 : _a.cardsState) || new Map;
|
41
|
-
this.updateFixSequence(cardConfig, cardsState);
|
42
41
|
const currentConfig = cardsState.get(cardId);
|
43
|
-
cardsState.set(cardId,
|
42
|
+
cardsState.set(cardId, propertyChanged === "fixed" ?
|
43
|
+
this.updateFixSequence(Object.assign(Object.assign({}, currentConfig), { fixed: cardConfig.fixed }), cardsState)
|
44
|
+
: Object.assign(Object.assign({}, currentConfig), { [propertyChanged]: cardConfig[propertyChanged] }));
|
44
45
|
ConfigStorage.ConfigStorage.saveCardState(cardsState, this._configName)
|
45
46
|
.then(savedCardConfig => {
|
46
47
|
this._config = Object.assign(Object.assign({}, this._config), { cardsState });
|
@@ -48,21 +49,23 @@ class SnkFormConfigManager {
|
|
48
49
|
});
|
49
50
|
});
|
50
51
|
}
|
51
|
-
updateFixSequence(
|
52
|
-
if (!cardConfig.fixed) {
|
53
|
-
delete cardConfig.fixSequence;
|
54
|
-
return;
|
55
|
-
}
|
56
|
-
if (cardConfig.fixSequence != undefined) {
|
57
|
-
return;
|
58
|
-
}
|
52
|
+
updateFixSequence(updatingCardConfig, cardsState) {
|
59
53
|
let maxSequence = -1;
|
60
54
|
Array.from(cardsState.values()).forEach(cardConfig => {
|
55
|
+
if (!cardConfig.fixed) {
|
56
|
+
delete updatingCardConfig.fixSequence;
|
57
|
+
}
|
61
58
|
if (cardConfig.fixSequence != undefined) {
|
62
59
|
maxSequence = Math.max(maxSequence, cardConfig.fixSequence);
|
63
60
|
}
|
64
61
|
});
|
65
|
-
|
62
|
+
if (updatingCardConfig.fixed) {
|
63
|
+
updatingCardConfig.fixSequence = maxSequence + 1;
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
delete updatingCardConfig.fixSequence;
|
67
|
+
}
|
68
|
+
return updatingCardConfig;
|
66
69
|
}
|
67
70
|
getFieldsList(dataUnit) {
|
68
71
|
var _a;
|
@@ -33,7 +33,9 @@ const snkDataUnitMessages = {
|
|
33
33
|
},
|
34
34
|
confirm: {
|
35
35
|
cancel: "Cancelar",
|
36
|
-
delete: "Excluir"
|
36
|
+
delete: "Excluir",
|
37
|
+
yes: "Sim",
|
38
|
+
no: "Não"
|
37
39
|
},
|
38
40
|
removeInfo: "Registro removido com sucesso!",
|
39
41
|
cancelConfirmationTitle: "Aviso",
|
@@ -44,7 +46,9 @@ const snkDataUnitMessages = {
|
|
44
46
|
forbiddenUpdate: "Não é possível fazer alterações. Verifique as permissões de acesso.",
|
45
47
|
forbiddenInsert: "Não é possível incluir. Verifique as permissões de acesso.",
|
46
48
|
forbiddenClone: "Não é possível duplicar. Verifique as permissões de acesso.",
|
47
|
-
forbiddenRemove: "Não é possível remover. Verifique as permissões de acesso."
|
49
|
+
forbiddenRemove: "Não é possível remover. Verifique as permissões de acesso.",
|
50
|
+
removeAllConfirmation: "Os <strong>{{size}} registros selecionados</strong> serão excluídos.<br/><br/><strong>Você realmente gostaria de continuar?</strong>",
|
51
|
+
removeAllInfo: "Os {{size}} registros foram removidos com sucesso!",
|
48
52
|
};
|
49
53
|
|
50
54
|
const snkFilterBarMessages = {
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
const REPORT_LAUNCHER_RESOURCE_ID = "br.com.sankhya.controls.ReportLauncher";
|
4
4
|
const KEY_PORT_EXPORT = "global.porta.app.impressao";
|
5
|
+
const ALL_RECORD = "ALL_RECORD";
|
5
6
|
exports.VIEW_MODE = void 0;
|
6
7
|
(function (VIEW_MODE) {
|
7
8
|
VIEW_MODE[VIEW_MODE["GRID"] = 0] = "GRID";
|
@@ -96,6 +97,7 @@ const WEB_CONNECTION = {
|
|
96
97
|
};
|
97
98
|
|
98
99
|
exports.ACTION_CONFIG = ACTION_CONFIG;
|
100
|
+
exports.ALL_RECORD = ALL_RECORD;
|
99
101
|
exports.CONFIG_EVENTS = CONFIG_EVENTS;
|
100
102
|
exports.DEFAULT_TYPE = DEFAULT_TYPE;
|
101
103
|
exports.KEY_EVENTS = KEY_EVENTS;
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
16
16
|
return patchEsm().then(() => {
|
17
|
-
return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-param-config.cjs",[[2,"snk-filter-param-config",{"_opened":[32],"_configType":[32],"_expressionItem":[32],"_informedInstance":[32],"_canSave":[32],"open":[64],"close":[64]}]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-detail-view.cjs",[[2,"snk-detail-view",{"formConfigManager":[1040],"dataUnitName":[1,"data-unit-name"],"
|
17
|
+
return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-param-config.cjs",[[2,"snk-filter-param-config",{"_opened":[32],"_configType":[32],"_expressionItem":[32],"_informedInstance":[32],"_canSave":[32],"open":[64],"close":[64]}]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-detail-view.cjs",[[2,"snk-detail-view",{"formConfigManager":[1040],"dataUnitName":[1,"data-unit-name"],"guideItemPath":[16],"entityName":[1,"entity-name"],"label":[1],"dataUnit":[1040],"selectedForm":[1025,"selected-form"],"dataState":[1040],"changeViewMode":[64],"configGrid":[64],"showUp":[64]},[[0,"snkContentCardChanged","onContentCardChanged"]]]]],["snk-configurator.cjs",[[2,"snk-configurator",{"configName":[1,"config-name"],"viewMode":[2,"view-mode"],"_opened":[32],"_permissions":[32],"open":[64],"close":[64]}]]],["snk-pesquisa.cjs",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-data-unit.cjs",[[2,"snk-data-unit",{"dataState":[1040],"dataUnitName":[1,"data-unit-name"],"entityName":[1,"entity-name"],"pageSize":[2,"page-size"],"dataUnit":[1040],"beforeSave":[16],"afterSave":[16],"getDataUnit":[64],"getSelectedRecordsIDsInfo":[64]}]]],["snk-taskbar.cjs",[[6,"snk-taskbar",{"configName":[1,"config-name"],"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"presentationMode":[1537,"presentation-mode"],"_permissions":[32]}]]],["snk-grid-config.cjs",[[2,"snk-grid-config",{"selectedIndex":[1026,"selected-index"],"application":[16],"columns":[1040],"config":[1040],"configName":[1,"config-name"]}]]],["snk-field-config.cjs",[[2,"snk-field-config",{"isConfigActive":[16],"fieldConfig":[16],"modeInsertion":[516,"mode-insertion"],"dataUnit":[16]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-filter-item.cjs",[[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[64],"hideDetail":[64]},[[2,"click","clickListener"],[2,"mousedown","mouseDownListener"],[0,"filterChange","filterChangeListener"]]]]],["snk-filter-list.cjs",[[4,"snk-filter-list",{"label":[1],"iconName":[1,"icon-name"],"items":[16],"getMessage":[16],"emptyText":[1,"empty-text"],"findFilterText":[1,"find-filter-text"],"buttonClass":[1,"button-class"],"_filterArgument":[32],"_showAll":[32],"hideDetail":[64]},[[2,"keydown","keyDownHandler"]]]]],["snk-filter-bar.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32],"scrollerLocked":[32]},[[0,"filterChange","filterChangeListener"]]]]],["snk-grid.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_gridConfig":[32],"_popUpGridConfig":[32],"showConfig":[64],"hideConfig":[64],"setConfig":[64]}]]],["snk-config-options.cjs",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config.cjs",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-form-config.cjs",[[2,"snk-form-config",{"dataUnit":[16],"configManager":[16],"_formConfigOptions":[32],"_fieldConfigSelected":[32],"_layoutFormConfig":[32],"_fieldsAvailable":[32],"_formConfig":[32],"_formConfigChanged":[32],"_optionFormConfigSelected":[32],"_optionFormConfigChanged":[32],"_tempGroups":[32]}]]],["snk-exporter-email-sender.cjs",[[0,"snk-exporter-email-sender",{"getMessage":[16],"_config":[32],"_opened":[32],"_currentStep":[32],"open":[64],"close":[64]}]]],["snk-data-exporter.cjs",[[2,"snk-data-exporter",{"provider":[16],"_items":[32],"_showDropdown":[32],"_releasedToExport":[32]}]]],["snk-guides-viewer.cjs",[[2,"snk-guides-viewer",{"dataUnit":[16],"dataState":[16],"configName":[1,"config-name"],"entityPath":[1,"entity-path"],"actionsList":[16],"recordsValidator":[16],"masterFormConfig":[1040],"selectedGuide":[16],"taskbarManager":[16],"presentationMode":[1,"presentation-mode"],"_breadcrumbItems":[32],"_guides":[32],"_formEditorConfigManager":[32],"_formEditorDataUnit":[32],"showFormConfig":[64]},[[2,"actionClick","onActionClick"],[0,"snkContentCardChanged","onContentCardChanged"]]]]],["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_currentViewMode":[32],"goToView":[64]}]]],["snk-form.cjs",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"_dataUnit":[32],"_dataState":[32],"_showFormConfig":[32],"_configManager":[32],"showConfig":[64],"hideConfig":[64]}]]],["snk-application.cjs",[[2,"snk-application",{"messagesBuilder":[1040],"configName":[1,"config-name"],"isUserSup":[64],"hasAccess":[64],"getAllAccess":[64],"getStringParam":[64],"getIntParam":[64],"getFloatParam":[64],"getBooleanParam":[64],"getDateParam":[64],"showPopUp":[64],"showModal":[64],"closeModal":[64],"closePopUp":[64],"temOpcional":[64],"getConfig":[64],"saveConfig":[64],"getAttributeFromHTMLWrapper":[64],"openApp":[64],"webConnection":[64],"createDataunit":[64],"updateDataunitCache":[64],"getDataUnit":[64],"getResourceID":[64],"getUserID":[64],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadGridConfig":[64],"loadTotals":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64],"getAppLabel":[64]}]]],["snk-form-summary.cjs",[[2,"snk-form-summary",{"fixed":[1540],"contracted":[1540],"summary":[16]}]]],["snk-form-view.cjs",[[6,"snk-form-view",{"levelPath":[1,"level-path"],"label":[1],"name":[1],"fields":[16],"formMetadata":[8,"form-metadata"],"dataUnit":[16],"contracted":[4],"fixed":[1540],"summaryFields":[16],"canExpand":[4,"can-expand"],"canFix":[4,"can-fix"],"recordsValidator":[16],"showUp":[64]}]]],["snk-filter-modal.cjs",[[0,"snk-filter-modal",{"getMessage":[16],"items":[1040],"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"infoText":[1,"info-text"],"useSearch":[4,"use-search"],"processModalAction":[16],"_filterArgument":[32]}]]],["snk-select-box.cjs",[[1,"snk-select-box",{"selectedOption":[1,"selected-option"]}]]]], options);
|
18
18
|
});
|
19
19
|
};
|
20
20
|
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
17
17
|
};
|
18
18
|
|
19
19
|
patchBrowser().then(options => {
|
20
|
-
return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-param-config.cjs",[[2,"snk-filter-param-config",{"_opened":[32],"_configType":[32],"_expressionItem":[32],"_informedInstance":[32],"_canSave":[32],"open":[64],"close":[64]}]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-detail-view.cjs",[[2,"snk-detail-view",{"formConfigManager":[1040],"dataUnitName":[1,"data-unit-name"],"
|
20
|
+
return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-param-config.cjs",[[2,"snk-filter-param-config",{"_opened":[32],"_configType":[32],"_expressionItem":[32],"_informedInstance":[32],"_canSave":[32],"open":[64],"close":[64]}]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-detail-view.cjs",[[2,"snk-detail-view",{"formConfigManager":[1040],"dataUnitName":[1,"data-unit-name"],"guideItemPath":[16],"entityName":[1,"entity-name"],"label":[1],"dataUnit":[1040],"selectedForm":[1025,"selected-form"],"dataState":[1040],"changeViewMode":[64],"configGrid":[64],"showUp":[64]},[[0,"snkContentCardChanged","onContentCardChanged"]]]]],["snk-configurator.cjs",[[2,"snk-configurator",{"configName":[1,"config-name"],"viewMode":[2,"view-mode"],"_opened":[32],"_permissions":[32],"open":[64],"close":[64]}]]],["snk-pesquisa.cjs",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-data-unit.cjs",[[2,"snk-data-unit",{"dataState":[1040],"dataUnitName":[1,"data-unit-name"],"entityName":[1,"entity-name"],"pageSize":[2,"page-size"],"dataUnit":[1040],"beforeSave":[16],"afterSave":[16],"getDataUnit":[64],"getSelectedRecordsIDsInfo":[64]}]]],["snk-taskbar.cjs",[[6,"snk-taskbar",{"configName":[1,"config-name"],"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"presentationMode":[1537,"presentation-mode"],"_permissions":[32]}]]],["snk-grid-config.cjs",[[2,"snk-grid-config",{"selectedIndex":[1026,"selected-index"],"application":[16],"columns":[1040],"config":[1040],"configName":[1,"config-name"]}]]],["snk-field-config.cjs",[[2,"snk-field-config",{"isConfigActive":[16],"fieldConfig":[16],"modeInsertion":[516,"mode-insertion"],"dataUnit":[16]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-filter-item.cjs",[[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[64],"hideDetail":[64]},[[2,"click","clickListener"],[2,"mousedown","mouseDownListener"],[0,"filterChange","filterChangeListener"]]]]],["snk-filter-list.cjs",[[4,"snk-filter-list",{"label":[1],"iconName":[1,"icon-name"],"items":[16],"getMessage":[16],"emptyText":[1,"empty-text"],"findFilterText":[1,"find-filter-text"],"buttonClass":[1,"button-class"],"_filterArgument":[32],"_showAll":[32],"hideDetail":[64]},[[2,"keydown","keyDownHandler"]]]]],["snk-filter-bar.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32],"scrollerLocked":[32]},[[0,"filterChange","filterChangeListener"]]]]],["snk-grid.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_gridConfig":[32],"_popUpGridConfig":[32],"showConfig":[64],"hideConfig":[64],"setConfig":[64]}]]],["snk-config-options.cjs",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config.cjs",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-form-config.cjs",[[2,"snk-form-config",{"dataUnit":[16],"configManager":[16],"_formConfigOptions":[32],"_fieldConfigSelected":[32],"_layoutFormConfig":[32],"_fieldsAvailable":[32],"_formConfig":[32],"_formConfigChanged":[32],"_optionFormConfigSelected":[32],"_optionFormConfigChanged":[32],"_tempGroups":[32]}]]],["snk-exporter-email-sender.cjs",[[0,"snk-exporter-email-sender",{"getMessage":[16],"_config":[32],"_opened":[32],"_currentStep":[32],"open":[64],"close":[64]}]]],["snk-data-exporter.cjs",[[2,"snk-data-exporter",{"provider":[16],"_items":[32],"_showDropdown":[32],"_releasedToExport":[32]}]]],["snk-guides-viewer.cjs",[[2,"snk-guides-viewer",{"dataUnit":[16],"dataState":[16],"configName":[1,"config-name"],"entityPath":[1,"entity-path"],"actionsList":[16],"recordsValidator":[16],"masterFormConfig":[1040],"selectedGuide":[16],"taskbarManager":[16],"presentationMode":[1,"presentation-mode"],"_breadcrumbItems":[32],"_guides":[32],"_formEditorConfigManager":[32],"_formEditorDataUnit":[32],"showFormConfig":[64]},[[2,"actionClick","onActionClick"],[0,"snkContentCardChanged","onContentCardChanged"]]]]],["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_currentViewMode":[32],"goToView":[64]}]]],["snk-form.cjs",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"_dataUnit":[32],"_dataState":[32],"_showFormConfig":[32],"_configManager":[32],"showConfig":[64],"hideConfig":[64]}]]],["snk-application.cjs",[[2,"snk-application",{"messagesBuilder":[1040],"configName":[1,"config-name"],"isUserSup":[64],"hasAccess":[64],"getAllAccess":[64],"getStringParam":[64],"getIntParam":[64],"getFloatParam":[64],"getBooleanParam":[64],"getDateParam":[64],"showPopUp":[64],"showModal":[64],"closeModal":[64],"closePopUp":[64],"temOpcional":[64],"getConfig":[64],"saveConfig":[64],"getAttributeFromHTMLWrapper":[64],"openApp":[64],"webConnection":[64],"createDataunit":[64],"updateDataunitCache":[64],"getDataUnit":[64],"getResourceID":[64],"getUserID":[64],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadGridConfig":[64],"loadTotals":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64],"getAppLabel":[64]}]]],["snk-form-summary.cjs",[[2,"snk-form-summary",{"fixed":[1540],"contracted":[1540],"summary":[16]}]]],["snk-form-view.cjs",[[6,"snk-form-view",{"levelPath":[1,"level-path"],"label":[1],"name":[1],"fields":[16],"formMetadata":[8,"form-metadata"],"dataUnit":[16],"contracted":[4],"fixed":[1540],"summaryFields":[16],"canExpand":[4,"can-expand"],"canFix":[4,"can-fix"],"recordsValidator":[16],"showUp":[64]}]]],["snk-filter-modal.cjs",[[0,"snk-filter-modal",{"getMessage":[16],"items":[1040],"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"infoText":[1,"info-text"],"useSearch":[4,"use-search"],"processModalAction":[16],"_filterArgument":[32]}]]],["snk-select-box.cjs",[[1,"snk-select-box",{"selectedOption":[1,"selected-option"]}]]]], options);
|
21
21
|
});
|
22
22
|
|
23
23
|
exports.setNonce = index.setNonce;
|
@@ -6,7 +6,7 @@ const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const DataFetcher = require('./DataFetcher-bceeaf2d.js');
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
9
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
9
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-0a6f6459.js');
|
10
10
|
const ConfigStorage = require('./ConfigStorage-b47fb254.js');
|
11
11
|
const formConfigFetcher = require('./form-config-fetcher-0c6628d5.js');
|
12
12
|
require('./_commonjsHelpers-537d719a.js');
|
@@ -6,7 +6,7 @@ const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
9
|
-
const constants = require('./constants-
|
9
|
+
const constants = require('./constants-3d09ebea.js');
|
10
10
|
|
11
11
|
const snkConfigOptionsCss = ".sc-snk-config-options-h{--snk-config-options--border:2px solid var(--color--secondary-200, #D2D3DA);width:100%;border-radius:15px;border:var(--snk-config-options--border)}.config-options__switch-row.sc-snk-config-options{margin-top:-30px}";
|
12
12
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-21bd01e1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
8
|
-
const constants = require('./constants-
|
8
|
+
const constants = require('./constants-3d09ebea.js');
|
9
9
|
|
10
10
|
const snkConfiguratorCss = ".sc-snk-configurator-h{--snk-configurator__button-close--padding-left:var(--space--medium, 12px);--snk-configurator__title--color:var(--title--primary, #2B3A54);--snk-configurator__title--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__title--font-size:var(--title--large, 20px);--snk-configurator__title--font-weight:var(--text-weight--extra-large, 700);--snk-configurator__subtitle--color:var(--title--primary, #2B3A54);--snk-configurator__subtitle--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__subtitle--font-size:var(--text--medium, 14px);--snk-configurator__subtitle--font-weight:var(--text-weight--large, 600);--snk-configurator__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-configurator__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-configurator__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-configurator__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-configurator__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-configurator__scrollbar--width:var(--space--medium, 12px)}.snk-configurator.sc-snk-configurator{display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}@media screen and (min-width: 480px){.snk-configurator.sc-snk-configurator{width:359px;max-width:359px}}.snk-configurator__button-config.sc-snk-configurator{--ez-button--min-width:100%}.snk-configurator__header.sc-snk-configurator{display:flex;justify-content:space-between;align-items:center;width:100%}.snk-configurator__title.sc-snk-configurator{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-configurator__title--color);font-size:var(--snk-configurator__title--font-size);font-family:var(--snk-configurator__title--font-family);font-weight:var(--snk-configurator__title--font-weight)}.snk-configurator__subtitle.sc-snk-configurator{display:flex;margin:0;padding-top:var(--space--medium);padding-bottom:var(--space--small);color:var(--snk-configurator__subtitle--color);font-size:var(--snk-configurator__subtitle--font-size);font-family:var(--snk-configurator__subtitle--font-family);font-weight:var(--snk-configurator__subtitle--font-weight)}.snk-configurator__button-close.sc-snk-configurator{padding-left:var(--snk-configurator__button-close--padding-left)}.snk-configurator__main.sc-snk-configurator{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-configurator__scrollbar--color-clicked) var(--snk-configurator__scrollbar--color-background)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar{background-color:var(--snk-configurator__scrollbar--color-background);width:var(--snk-configurator__scrollbar--width);max-width:var(--snk-configurator__scrollbar--width);min-width:var(--snk-configurator__scrollbar--width)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-track{background-color:var(--snk-configurator__scrollbar--color-background);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb{background-color:var(--snk-configurator__scrollbar--color-default);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:hover,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-configurator__scrollbar--color-hover)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:active,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-configurator__scrollbar--color-clicked)}";
|
11
11
|
|
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
|
|
7
7
|
const taskbarElements = require('./taskbar-elements-5e87cf44.js');
|
8
8
|
require('./DataFetcher-bceeaf2d.js');
|
9
9
|
const index$1 = require('./index-f400b1d6.js');
|
10
|
-
const constants = require('./constants-
|
10
|
+
const constants = require('./constants-3d09ebea.js');
|
11
11
|
require('./index-fc7ca86c.js');
|
12
12
|
require('./_commonjsHelpers-537d719a.js');
|
13
13
|
|
@@ -6,7 +6,7 @@ const index$1 = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
8
|
const index = require('./index-f400b1d6.js');
|
9
|
-
const constants = require('./constants-
|
9
|
+
const constants = require('./constants-3d09ebea.js');
|
10
10
|
const DataFetcher = require('./DataFetcher-bceeaf2d.js');
|
11
11
|
require('./_commonjsHelpers-537d719a.js');
|
12
12
|
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-21bd01e1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
8
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-0a6f6459.js');
|
9
|
+
const constants = require('./constants-3d09ebea.js');
|
9
10
|
|
10
11
|
const snkDataUnitCss = ".sc-snk-data-unit-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
11
12
|
|
@@ -18,6 +19,7 @@ const SnkDataUnit = class {
|
|
18
19
|
this.cancelEdition = index.createEvent(this, "cancelEdition", 3);
|
19
20
|
this._onDataUnitResolve = [];
|
20
21
|
this._dataUnitObserver = (action) => {
|
22
|
+
var _a, _b;
|
21
23
|
const duState = this.buildDataState();
|
22
24
|
this.dataState = duState;
|
23
25
|
if (action.type === core.Action.DATA_SAVED) {
|
@@ -33,7 +35,18 @@ const SnkDataUnit = class {
|
|
33
35
|
this.cancelEdition.emit();
|
34
36
|
}
|
35
37
|
if (action.type === core.Action.RECORDS_REMOVED) {
|
36
|
-
|
38
|
+
let removeFinishMsg;
|
39
|
+
const cachedRecords = action.payload.cachedRecords;
|
40
|
+
if ((cachedRecords === null || cachedRecords === void 0 ? void 0 : cachedRecords.length) > 1) {
|
41
|
+
removeFinishMsg = this.getMessage("snkDataUnit.removeAllInfo", { size: cachedRecords.length });
|
42
|
+
}
|
43
|
+
else if (cachedRecords === null || cachedRecords === void 0 ? void 0 : cachedRecords.some((record) => record.__record__id__ === constants.ALL_RECORD)) {
|
44
|
+
const size = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo()) === null || _b === void 0 ? void 0 : _b.total;
|
45
|
+
removeFinishMsg = this.getMessage("snkDataUnit.removeAllInfo", { size });
|
46
|
+
}
|
47
|
+
else {
|
48
|
+
removeFinishMsg = this.getMessage("snkDataUnit.removeInfo", cachedRecords === null || cachedRecords === void 0 ? void 0 : cachedRecords[0]);
|
49
|
+
}
|
37
50
|
if (removeFinishMsg != undefined) {
|
38
51
|
this.showSuccessMessage(removeFinishMsg);
|
39
52
|
}
|
@@ -99,7 +112,7 @@ const SnkDataUnit = class {
|
|
99
112
|
async getSelectedRecordsIDsInfo() {
|
100
113
|
var _a;
|
101
114
|
const selectedRecordsIDsInfo = [];
|
102
|
-
const selectedRecords = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.
|
115
|
+
const selectedRecords = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getAllSelection();
|
103
116
|
if ((selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.length) > 0) {
|
104
117
|
selectedRecords.forEach(({ __record__id__ }) => {
|
105
118
|
if (!this.dataUnit.isNewRecord(__record__id__)) {
|
@@ -133,7 +146,7 @@ const SnkDataUnit = class {
|
|
133
146
|
}
|
134
147
|
async interceptAction(action) {
|
135
148
|
return new Promise(resolve => {
|
136
|
-
var _a;
|
149
|
+
var _a, _b, _c, _d;
|
137
150
|
switch (action.type) {
|
138
151
|
case core.Action.RECORDS_ADDED:
|
139
152
|
if (this.isAllowed("INSERT")) {
|
@@ -209,15 +222,26 @@ const SnkDataUnit = class {
|
|
209
222
|
break;
|
210
223
|
case core.Action.REMOVING_RECORDS:
|
211
224
|
if (this.isAllowed("REMOVE")) {
|
212
|
-
|
225
|
+
let multipleSelection = false;
|
226
|
+
let removeConfirmation = this.getMessage("snkDataUnit.removeConfirmation");
|
227
|
+
const selectedRecords = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.getAllSelection();
|
228
|
+
if ((selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.length) > 1) {
|
229
|
+
removeConfirmation = this.getMessage("snkDataUnit.removeAllConfirmation", { size: selectedRecords.length });
|
230
|
+
multipleSelection = true;
|
231
|
+
}
|
232
|
+
else if (selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.some((record) => record.__record__id__ === constants.ALL_RECORD)) {
|
233
|
+
const size = (_d = (_c = this.dataUnit) === null || _c === void 0 ? void 0 : _c.getPaginationInfo()) === null || _d === void 0 ? void 0 : _d.total;
|
234
|
+
removeConfirmation = this.getMessage("snkDataUnit.removeAllConfirmation", { size });
|
235
|
+
multipleSelection = true;
|
236
|
+
}
|
213
237
|
if (removeConfirmation == undefined) {
|
214
238
|
resolve(action);
|
215
239
|
}
|
216
240
|
else {
|
217
241
|
const options = {
|
218
242
|
canClose: false,
|
219
|
-
labelCancel: this.getMessage(
|
220
|
-
labelConfirm: this.getMessage(
|
243
|
+
labelCancel: this.getMessage(`snkDataUnit.confirm.${multipleSelection ? "no" : "cancel"}`),
|
244
|
+
labelConfirm: this.getMessage(`snkDataUnit.confirm.${multipleSelection ? "yes" : "delete"}`),
|
221
245
|
btnConfirmDanger: false
|
222
246
|
};
|
223
247
|
const removeConfirmationTitle = this.getMessage("snkDataUnit.removeConfirmationTitle");
|
@@ -248,7 +272,7 @@ const SnkDataUnit = class {
|
|
248
272
|
copyMode: this.dataUnit.hasCopiedRecord(),
|
249
273
|
isDirty: this.dataUnit.isDirty(),
|
250
274
|
hasDirtyRecords: this.dataUnit.hasDirtyRecords(),
|
251
|
-
selectedRecords: this.dataUnit.
|
275
|
+
selectedRecords: this.dataUnit.getAllSelection(),
|
252
276
|
selectedRecord: this.dataUnit.getSelectedRecord()
|
253
277
|
};
|
254
278
|
}
|
@@ -3,21 +3,21 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-21bd01e1.js');
|
6
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
6
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-eb44235b.js');
|
7
7
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
8
8
|
require('./DataFetcher-bceeaf2d.js');
|
9
9
|
require('@sankhyalabs/core');
|
10
10
|
const index$1 = require('./index-f400b1d6.js');
|
11
11
|
const taskbarElements = require('./taskbar-elements-5e87cf44.js');
|
12
|
-
const constants = require('./constants-
|
13
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
12
|
+
const constants = require('./constants-3d09ebea.js');
|
13
|
+
const snkGuidesViewer = require('./snk-guides-viewer-bfa51a35.js');
|
14
14
|
require('./ConfigStorage-b47fb254.js');
|
15
15
|
require('./form-config-fetcher-0c6628d5.js');
|
16
16
|
require('./_commonjsHelpers-537d719a.js');
|
17
17
|
require('./index-fc7ca86c.js');
|
18
18
|
require('./taskbar-processor-6f3d2a75.js');
|
19
19
|
|
20
|
-
const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px}.detail-header.sc-snk-detail-view{padding-bottom:0}";
|
20
|
+
const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px}.detail-header.sc-snk-detail-view{padding-bottom:0}";
|
21
21
|
|
22
22
|
const SnkDetailView = class {
|
23
23
|
constructor(hostRef) {
|
@@ -26,10 +26,9 @@ const SnkDetailView = class {
|
|
26
26
|
this.snkSwitchGuide = index.createEvent(this, "snkSwitchGuide", 7);
|
27
27
|
this.formConfigManager = undefined;
|
28
28
|
this.dataUnitName = undefined;
|
29
|
-
this.
|
29
|
+
this.guideItemPath = undefined;
|
30
30
|
this.entityName = undefined;
|
31
31
|
this.label = undefined;
|
32
|
-
this.levelPath = undefined;
|
33
32
|
this.dataUnit = undefined;
|
34
33
|
this.selectedForm = undefined;
|
35
34
|
this.dataState = undefined;
|
@@ -88,6 +87,20 @@ const SnkDetailView = class {
|
|
88
87
|
snkGuidesViewer.SnkGuidesViewer.updateContentCard(evt.detail.formName, evt.detail.cardConfig, evt.detail.propertyChanged, this.formConfigManager).then(() => index.forceUpdate(this));
|
89
88
|
evt.stopPropagation();
|
90
89
|
}
|
90
|
+
updateLabel() {
|
91
|
+
const guideItemPathSize = this.guideItemPath ? this.guideItemPath.length : 0;
|
92
|
+
if (guideItemPathSize > 0) {
|
93
|
+
const labels = guideItemPathSize > 0 ? this.guideItemPath.map(item => item.label) : undefined;
|
94
|
+
this.label = labels.pop();
|
95
|
+
this._levelPath = labels.length > 0 ? labels.join(" / ") : undefined;
|
96
|
+
this._guideId = this.guideItemPath[guideItemPathSize - 1].id;
|
97
|
+
}
|
98
|
+
else {
|
99
|
+
this.label = "";
|
100
|
+
this._levelPath = undefined;
|
101
|
+
this._guideId = undefined;
|
102
|
+
}
|
103
|
+
}
|
91
104
|
getNewGuideItem(currentRecord) {
|
92
105
|
if (currentRecord == undefined) {
|
93
106
|
return;
|
@@ -124,10 +137,10 @@ const SnkDetailView = class {
|
|
124
137
|
}
|
125
138
|
formName = forms[0];
|
126
139
|
}
|
127
|
-
return `${this.stripFormPattern(this.
|
140
|
+
return `${this.stripFormPattern(this._guideId)}__FORM:${formName}`;
|
128
141
|
}
|
129
142
|
getChildGuideId(child) {
|
130
|
-
return `${this.stripFormPattern(this.
|
143
|
+
return `${this.stripFormPattern(this._guideId)}::${child}`;
|
131
144
|
}
|
132
145
|
stripFormPattern(guideId) {
|
133
146
|
return guideId.replace(SnkDetailView.REGEX_FORM_ID, "");
|
@@ -141,7 +154,7 @@ const SnkDetailView = class {
|
|
141
154
|
return;
|
142
155
|
}
|
143
156
|
const formConfig = this.formConfigManager.getConfig((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.insertionMode, this.dataUnit);
|
144
|
-
this._cardsState = formConfig
|
157
|
+
//this._cardsState = formConfig?.cardsState;
|
145
158
|
this._formMetadata = form.buildFormMetadata(formConfig == undefined || formConfig.fields.length === 0 ? undefined : formConfig, this.dataUnit, true);
|
146
159
|
}
|
147
160
|
dataUnitReadyHandler(evt) {
|
@@ -158,7 +171,7 @@ const SnkDetailView = class {
|
|
158
171
|
return [];
|
159
172
|
}
|
160
173
|
emitSwitchEvent(mode) {
|
161
|
-
const guideId = mode === constants.VIEW_MODE.GRID ? this.stripFormPattern(this.
|
174
|
+
const guideId = mode === constants.VIEW_MODE.GRID ? this.stripFormPattern(this._guideId) : this.getFormGuideId();
|
162
175
|
if (guideId) {
|
163
176
|
this.snkSwitchGuide.emit(guideId);
|
164
177
|
}
|
@@ -179,12 +192,9 @@ const SnkDetailView = class {
|
|
179
192
|
this.formConfigManager.loadConfig();
|
180
193
|
}
|
181
194
|
render() {
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
}
|
186
|
-
const cardConfig = (_a = this._cardsState) === null || _a === void 0 ? void 0 : _a.get(this.selectedForm);
|
187
|
-
return (index.h(index.Host, null, snkGuidesViewer.SnkGuidesViewer.buildFixedForms(this.formConfigManager.getConfig((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.insertionMode, this.dataUnit), this._formMetadata, this.selectedForm, this.dataUnit, undefined, this.levelPath), index.h("snk-data-unit", { dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: evt => this.dataState = evt.detail }, index.h("ez-view-stack", { ref: ref => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-flex ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this.label)), index.h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: evt => this.executeActionHandler(evt), presentationMode: index$1.PresentationMode.SECONDARY }))), index.h("stack-item", null, index.h("snk-form-view", { ref: (ref) => this._snkFormView = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this.levelPath }, index.h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: index$1.PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit })))))));
|
195
|
+
this.updateLabel();
|
196
|
+
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
197
|
+
return (index.h(index.Host, null, index.h("snk-data-unit", { dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: evt => this.dataState = evt.detail }, index.h("ez-view-stack", { ref: ref => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-flex ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: evt => this.executeActionHandler(evt), presentationMode: index$1.PresentationMode.SECONDARY }))), index.h("stack-item", null, index.h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath }, index.h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: index$1.PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit })))))));
|
188
198
|
}
|
189
199
|
static get watchers() { return {
|
190
200
|
"dataState": ["observerDataState"]
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-21bd01e1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const constants = require('./constants-
|
7
|
+
const constants = require('./constants-3d09ebea.js');
|
8
8
|
|
9
9
|
const snkFieldConfigCss = ".sc-snk-field-config-h{--snk-field-config--height:42px;--snk-field-config--width:100%;--snk-field-config__icon--width:48px;--snk-field-config-slim--height:32px;--snk-field-config--border-radius:var(--border--radius-medium, 12px);--snk-field-config--font-size:var(--text--medium, 14px);--snk-field-config--font-family:var(--font-pattern, Arial);--snk-field-config--font-weight:var(--text-weight--medium, 400);--snk-field-config--color:var(--title--primary, #000);--snk-field-config--padding-left:var(--space--medium, 6px);--snk-field-config__input--background-color:var(--background--medium, #e0e0e0);--snk-field-config__input--border:var(--border--medium, 2px solid);--snk-field-config__input--border-color:var(--background--xlight, #fff);--snk-field-config__required--color:var(--color--error, #FF0000);--snk-field-config__label--gap:var(--space--extra-small, 3px);--snk-field-config__transition--visibility:var(--transition, 0.2s linear);--snk-field-config__transition--opacity:var(--transition, 0.15s linear);--snk-field-config__config-popover--z-index:var(--more-visible, 2);--snk-field-config__config-outer-arrow--background-color:var(--color--secondary-200, #D2D3DA);--snk-field-config__draggable--padding-right:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--snk-field-config--width)}.field-config.sc-snk-field-config{width:100%;box-sizing:border-box;display:flex;align-items:center;padding-left:var(--snk-field-config--padding-left);font-weight:var(--snk-field-config--font-weight);height:var(--snk-field-config--height);border-radius:var(--snk-field-config--border-radius);font-family:var(--snk-field-config--font-family);font-size:var(--snk-field-config--font-size);border:var(--snk-field-config__input--border);border-color:var(--snk-field-config__input--border-color);background-color:var(--snk-field-config__input--background-color);color:var(--snk-field-config--color)}.field-config__config-popover.sc-snk-field-config{width:40px;margin-left:auto;z-index:var(--snk-field-config__config-popover--z-index)}.field-config__label.sc-snk-field-config{display:flex;flex-direction:row-reverse;line-height:calc(var(--snk-field-config--font-size) + 2px);gap:var(--snk-field-config__label--gap)}.field-config__label-text.sc-snk-field-config{overflow:hidden;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;-o-text-overflow:ellipsis;text-overflow:ellipsis;word-break:break-word}.field-config__label-required.sc-snk-field-config{color:var(--snk-field-config__required--color)}.field-config__add.sc-snk-field-config{display:flex;margin-left:auto;visibility:hidden;opacity:0;transition:visibility var(--snk-field-config__transition--visibility), opacity var(--snk-field-config__transition--opacity)}.field-config__options.sc-snk-field-config{display:flex;margin-left:auto;visibility:hidden;opacity:0;transition:visibility var(--snk-field-config__transition--visibility), opacity var(--snk-field-config__transition--opacity)}.field-config__options--is-active.sc-snk-field-config{display:flex;visibility:visible;opacity:1}.field-config__remove-icon.sc-snk-field-config{margin-right:-15px}.field-config.sc-snk-field-config:hover .field-config__options.sc-snk-field-config{display:flex;visibility:visible;opacity:1}.field-config.sc-snk-field-config:hover .field-config__add.sc-snk-field-config{visibility:visible;opacity:1}.field-config__draggable.sc-snk-field-config{padding-right:var(--snk-field-config__draggable--padding-right)}.field-config__config-outer-arrow.sc-snk-field-config{clip-path:polygon(50% 0, 90% 100%, 10% 100%);border-radius:0.25em 0 0 0;width:30px;height:15px;padding-top:3px;border-bottom:1px solid #FFFFFF;background-color:var(--snk-field-config__config-outer-arrow--background-color)}.field-config__config-inner-arrow.sc-snk-field-config{background-color:#FFFFFF;clip-path:polygon(50% 0, 90% 100%, 10% 100%);border-radius:0.25em 0 0 0;width:30px;height:15px}.ez-box__container.sc-snk-field-config ez-collapsible-box.sc-snk-field-config{--snk-collapsible-box__header--padding-left:6px}ez-icon.sc-snk-field-config{--snk-icon--color:var(--snk-field-config--color)}ez-popover.sc-snk-field-config{--snk-popover__box--background-color:transparent;--snk-popover__box--box-shadow:none}.field-config__options.sc-snk-field-config ez-button.sc-snk-field-config{--snk-button--background-color:transparent;--snk-button--focus--border:none;--snk-button--focus--box-shadow:none}@media screen and (min-width: 1200px){.field-config__label.sc-snk-field-config{flex-direction:row}}";
|
10
10
|
|
@@ -6,7 +6,7 @@ const index = require('./index-21bd01e1.js');
|
|
6
6
|
const draggable_bundle = require('./draggable.bundle-82a25c06.js');
|
7
7
|
const core = require('@sankhyalabs/core');
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
9
|
-
const constants = require('./constants-
|
9
|
+
const constants = require('./constants-3d09ebea.js');
|
10
10
|
const formConfigFetcher = require('./form-config-fetcher-0c6628d5.js');
|
11
11
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
12
12
|
require('./_commonjsHelpers-537d719a.js');
|
@@ -21,6 +21,8 @@ const SnkFormView = class {
|
|
21
21
|
this.contracted = undefined;
|
22
22
|
this.fixed = false;
|
23
23
|
this.summaryFields = undefined;
|
24
|
+
this.canExpand = true;
|
25
|
+
this.canFix = true;
|
24
26
|
this.recordsValidator = undefined;
|
25
27
|
}
|
26
28
|
async showUp() {
|
@@ -83,7 +85,9 @@ const SnkFormView = class {
|
|
83
85
|
}
|
84
86
|
}
|
85
87
|
render() {
|
86
|
-
return (index.h(index.Host, { class: "ez-box__container" }, index.h("div", { class: "summary-header ez-flex ez-size-width--full" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? index.h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), index.h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" },
|
88
|
+
return (index.h(index.Host, { class: "ez-box__container" }, index.h("div", { class: "summary-header ez-flex ez-size-width--full" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? index.h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), index.h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
|
89
|
+
index.h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.fixed ? "un-pin" : "push-pin", "data-element-id": core.ElementIDUtils.getInternalIDInfo("toggleFixed_ezFormCard"), onClick: () => this.changeFix(), title: this.fixed ? "Desafixar" : "Fixar" }), this.canExpand &&
|
90
|
+
index.h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.contracted ? "expandir_card" : "recolher_card", "data-element-id": core.ElementIDUtils.getInternalIDInfo("toggleExpand_ezFormCard"), onClick: () => this.changeContracted(), title: this.contracted ? "Expandir" : "Resumir" }))), index.h("slot", null), this.contracted
|
87
91
|
?
|
88
92
|
index.h("snk-form-summary", { summary: this.getCardSummary() })
|
89
93
|
:
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-21bd01e1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-eb44235b.js');
|
8
8
|
require('./ConfigStorage-b47fb254.js');
|
9
9
|
require('./form-config-fetcher-0c6628d5.js');
|
10
10
|
require('./DataFetcher-bceeaf2d.js');
|
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
8
|
const CheckMode = require('@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode');
|
9
9
|
const ConfigStorage = require('./ConfigStorage-b47fb254.js');
|
10
|
-
const constants = require('./constants-
|
10
|
+
const constants = require('./constants-3d09ebea.js');
|
11
11
|
require('./form-config-fetcher-0c6628d5.js');
|
12
12
|
require('./DataFetcher-bceeaf2d.js');
|
13
13
|
require('./_commonjsHelpers-537d719a.js');
|
@@ -254,12 +254,10 @@ const SnkGridConfig = class {
|
|
254
254
|
}
|
255
255
|
_newConfig.columns = _newColumnConfigList;
|
256
256
|
ConfigStorage.ConfigStorage.saveGridConfig(_newConfig, this.configName)
|
257
|
-
.then((
|
257
|
+
.then((savedConfig) => {
|
258
|
+
this.configChange.emit(savedConfig);
|
259
|
+
this._orderList.clearHistory();
|
258
260
|
utils.ApplicationUtils.info(this.getMessage("snkGridConfig.info.successfullyConfigSaved"), { iconName: "check" });
|
259
|
-
if ((response === null || response === void 0 ? void 0 : response.resource) != undefined) {
|
260
|
-
this.configChange.emit(response === null || response === void 0 ? void 0 : response.resource);
|
261
|
-
this._orderList.clearHistory();
|
262
|
-
}
|
263
261
|
});
|
264
262
|
function adjustPriorityOrder(column, _newColumnConfig) {
|
265
263
|
if (orderArray) {
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
const index = require('./index-21bd01e1.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-eb44235b.js');
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
7
7
|
const taskbarProcessor = require('./taskbar-processor-6f3d2a75.js');
|
8
8
|
const taskbarElements = require('./taskbar-elements-5e87cf44.js');
|
9
|
-
const constants = require('./constants-
|
9
|
+
const constants = require('./constants-3d09ebea.js');
|
10
10
|
require('./DataFetcher-bceeaf2d.js');
|
11
11
|
const index$1 = require('./index-f400b1d6.js');
|
12
12
|
|
@@ -214,14 +214,6 @@ const SnkGuidesViewer = class {
|
|
214
214
|
}
|
215
215
|
return `${this.entityPath}/${entityName}`;
|
216
216
|
}
|
217
|
-
getLevelPath() {
|
218
|
-
const labels = this._breadcrumbItems && this._breadcrumbItems.length > 0 ? this._breadcrumbItems.map(item => item.label) : undefined;
|
219
|
-
if (labels && labels.length > 1) {
|
220
|
-
labels.pop();
|
221
|
-
return labels.join(" / ");
|
222
|
-
}
|
223
|
-
return undefined;
|
224
|
-
}
|
225
217
|
getContent() {
|
226
218
|
var _a, _b, _c, _d;
|
227
219
|
if (!this.selectedGuide) {
|
@@ -238,7 +230,7 @@ const SnkGuidesViewer = class {
|
|
238
230
|
if (guideId.includes(FORM_NAME_PREFIX)) {
|
239
231
|
[detailId, formName] = guideId.split(FORM_NAME_PREFIX);
|
240
232
|
}
|
241
|
-
content = this.wrapDetail(levels, index.h("snk-detail-view", {
|
233
|
+
content = this.wrapDetail(levels, index.h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(detailId, evt.detail), entityName: childEntityName, selectedForm: formName, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail) }));
|
242
234
|
}
|
243
235
|
else {
|
244
236
|
const cardId = this.selectedGuide.id;
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-bfa51a35.js');
|
6
6
|
require('./index-21bd01e1.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
|
-
require('./SnkFormConfigManager-
|
8
|
+
require('./SnkFormConfigManager-eb44235b.js');
|
9
9
|
require('./ConfigStorage-b47fb254.js');
|
10
10
|
require('./form-config-fetcher-0c6628d5.js');
|
11
11
|
require('./DataFetcher-bceeaf2d.js');
|
@@ -15,7 +15,7 @@ require('./taskbar-processor-6f3d2a75.js');
|
|
15
15
|
require('./taskbar-elements-5e87cf44.js');
|
16
16
|
require('./index-f400b1d6.js');
|
17
17
|
require('./index-fc7ca86c.js');
|
18
|
-
require('./constants-
|
18
|
+
require('./constants-3d09ebea.js');
|
19
19
|
|
20
20
|
|
21
21
|
|