@sankhyalabs/sankhyablocks 5.10.0 → 5.10.2
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/snk-attach.cjs.entry.js +3 -2
- package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +2 -2
- package/dist/cjs/snk-entity-list.cjs.entry.js +2 -1
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +5 -3
- package/dist/cjs/snk-filter-modal.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
- package/dist/cjs/snk-grid.cjs.entry.js +7 -6
- package/dist/cjs/{snk-guides-viewer-b2d40bc4.js → snk-guides-viewer-0ab3746e.js} +1 -1
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-bar_2.cjs.entry.js +1 -0
- package/dist/collection/collection-manifest.json +2 -17
- package/dist/collection/components/snk-attach/snk-attach.js +3 -2
- package/dist/collection/components/snk-attach/structure/index.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +2 -2
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +2 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +2 -2
- package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js +1 -1
- package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js +1 -1
- package/dist/collection/components/snk-grid/snk-grid.js +7 -6
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js +3 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +15 -0
- package/dist/components/snk-attach2.js +3 -2
- package/dist/components/snk-data-exporter2.js +2 -2
- package/dist/components/snk-detail-view2.js +2 -2
- package/dist/components/snk-entity-list.js +2 -1
- package/dist/components/snk-filter-field-search2.js +2 -2
- package/dist/components/snk-filter-modal.js +2 -2
- package/dist/components/snk-filter-param-config2.js +3 -1
- package/dist/components/snk-form-view2.js +1 -1
- package/dist/components/snk-grid2.js +7 -6
- package/dist/components/snk-simple-crud2.js +1 -0
- package/dist/esm/snk-attach.entry.js +3 -2
- package/dist/esm/snk-data-exporter.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +2 -2
- package/dist/esm/snk-entity-list.entry.js +2 -1
- package/dist/esm/snk-filter-field-search_2.entry.js +5 -3
- package/dist/esm/snk-filter-modal.entry.js +2 -2
- package/dist/esm/snk-form-view.entry.js +1 -1
- package/dist/esm/snk-grid.entry.js +7 -6
- package/dist/esm/{snk-guides-viewer-11a02781.js → snk-guides-viewer-767f5a74.js} +1 -1
- package/dist/esm/snk-guides-viewer.entry.js +1 -1
- package/dist/esm/snk-simple-bar_2.entry.js +1 -0
- package/dist/sankhyablocks/{p-7f0afee1.js → p-551165d8.js} +1 -1
- package/dist/sankhyablocks/{p-71215dc2.entry.js → p-56d70073.entry.js} +1 -1
- package/dist/sankhyablocks/p-78de64fb.entry.js +1 -0
- package/dist/sankhyablocks/{p-8819be14.entry.js → p-7956b9dd.entry.js} +1 -1
- package/dist/sankhyablocks/p-9e50681c.entry.js +1 -0
- package/dist/sankhyablocks/p-ba511f48.entry.js +1 -0
- package/dist/sankhyablocks/p-c8095917.entry.js +1 -0
- package/dist/sankhyablocks/p-de9caf1e.entry.js +1 -0
- package/dist/sankhyablocks/{p-4eae2812.entry.js → p-ec1c64be.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1c836fad.entry.js → p-f3241ada.entry.js} +1 -1
- package/dist/sankhyablocks/{p-554e2f83.entry.js → p-f43629f3.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +259 -0
- package/dist/types/components/snk-attach/structure/crud-config-builder.d.ts +1 -1
- package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +1 -2
- package/dist/types/components/snk-attach/structure/index.d.ts +1 -1
- package/dist/types/components/snk-crud/snk-crud.d.ts +79 -0
- package/dist/types/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.d.ts +40 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +1 -1
- package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +2 -5
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +36 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +28 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +28 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +47 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +30 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +24 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +44 -0
- package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +74 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +97 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +68 -0
- package/dist/types/components.d.ts +4 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-83765829.entry.js +0 -1
- package/dist/sankhyablocks/p-c842c6f1.entry.js +0 -1
- package/dist/sankhyablocks/p-c93aab6a.entry.js +0 -1
- package/dist/sankhyablocks/p-d66bfdef.entry.js +0 -1
- package/dist/sankhyablocks/p-e9f42525.entry.js +0 -1
@@ -371,7 +371,7 @@ const SnkAttach = class {
|
|
371
371
|
this.entityName = undefined;
|
372
372
|
this.messagesBuilder = undefined;
|
373
373
|
this.dataUnit = undefined;
|
374
|
-
this.crudConfig =
|
374
|
+
this.crudConfig = undefined;
|
375
375
|
}
|
376
376
|
registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
377
377
|
var _a;
|
@@ -436,9 +436,10 @@ const SnkAttach = class {
|
|
436
436
|
this.loadAttachmentDataUnit();
|
437
437
|
}
|
438
438
|
render() {
|
439
|
+
var _a, _b;
|
439
440
|
if (!this.dataUnit)
|
440
441
|
return null;
|
441
|
-
return (index.h("main", null, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this.dataUnit, taskbarManager: buildTaskBarManager(), gridConfig: this.crudConfig.grid, formConfig: this.crudConfig.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
|
442
|
+
return (index.h("main", null, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this.dataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
|
442
443
|
}
|
443
444
|
static get watchers() { return {
|
444
445
|
"registerKey": ["registerKeyWatcher"]
|
@@ -309,12 +309,12 @@ const SnkDataExporter = class {
|
|
309
309
|
controlDropdown() {
|
310
310
|
this._showDropdown = !this._showDropdown;
|
311
311
|
}
|
312
|
-
resolveExporter(resolveProps, callbackResolver) {
|
312
|
+
async resolveExporter(resolveProps, callbackResolver) {
|
313
313
|
if (this.provider == undefined || resolveProps == undefined || callbackResolver == undefined) {
|
314
314
|
return;
|
315
315
|
}
|
316
316
|
const filters = this.provider.getFilters();
|
317
|
-
const columns = this.provider.getColumnsMetadata();
|
317
|
+
const columns = await this.provider.getColumnsMetadata();
|
318
318
|
const sort = this.provider.getOrders();
|
319
319
|
const resourceURI = this.provider.getResourceURI();
|
320
320
|
const selectedIDs = this.provider.getSelectedIDs();
|
@@ -11,7 +11,7 @@ require('@sankhyalabs/core');
|
|
11
11
|
const index$1 = require('./index-f400b1d6.js');
|
12
12
|
const taskbarElements = require('./taskbar-elements-bc2598f9.js');
|
13
13
|
const constants = require('./constants-3787fa32.js');
|
14
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
14
|
+
const snkGuidesViewer = require('./snk-guides-viewer-0ab3746e.js');
|
15
15
|
const SnkMessageBuilder = require('./SnkMessageBuilder-cf80308c.js');
|
16
16
|
require('./ConfigStorage-f68c3607.js');
|
17
17
|
require('./form-config-fetcher-92bc8fe7.js');
|
@@ -252,7 +252,7 @@ const SnkDetailView = class {
|
|
252
252
|
render() {
|
253
253
|
this.updateLabel();
|
254
254
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
255
|
-
return (index.h(index.Host, null, index.h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), messagesBuilder: this.messagesBuilder }, 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, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: evt => this.executeActionHandler(evt), presentationMode: index$1.PresentationMode.SECONDARY, isDetail: true }))), 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, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, 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 }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
255
|
+
return (index.h(index.Host, null, index.h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), messagesBuilder: this.messagesBuilder }, 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, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: index$1.PresentationMode.SECONDARY, isDetail: true }))), 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, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, 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 }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
256
256
|
}
|
257
257
|
static get watchers() { return {
|
258
258
|
"dataState": ["observerDataState"]
|
@@ -65,8 +65,9 @@ const SnkEntityList = class {
|
|
65
65
|
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
66
66
|
this.loadListSource();
|
67
67
|
}
|
68
|
-
optionLoader(
|
68
|
+
optionLoader(searchArgument) {
|
69
69
|
var _a, _b, _c, _d;
|
70
|
+
const { mode, argument } = searchArgument;
|
70
71
|
if (this._application === undefined) {
|
71
72
|
return;
|
72
73
|
}
|
@@ -28,7 +28,7 @@ const ICON_MODES = {
|
|
28
28
|
[core.UserInterface.PASSWORD]: 'email',
|
29
29
|
};
|
30
30
|
const ListItem = ({ userInterface, description }) => {
|
31
|
-
return (index.h("ez-icon", { iconName: ICON_MODES[userInterface],
|
31
|
+
return (index.h("ez-icon", { iconName: ICON_MODES[userInterface], class: "ez-padding-left--small", title: description }));
|
32
32
|
};
|
33
33
|
|
34
34
|
const snkFilterFieldSearchCss = ".sc-snk-filter-field-search-h{--snk-filter-field-search--container-width:468px;--snk-filter-field-search--container-height:322px}.snk-filter-field-search__container.sc-snk-filter-field-search{display:flex;flex-direction:column;padding:var(--space--medium);width:var(--snk-filter-field-search--container-width);height:var(--snk-filter-field-search--container-height)}.snk-filter-field-search__section.sc-snk-filter-field-search{display:grid;grid-template-columns:1fr 1fr;place-items:flex-start;overflow:hidden;gap:var(--space--small)}.snk-filter-field-search__input.sc-snk-filter-field-search{margin-bottom:var(--space--medium)}.snk-filter-field-search__list_container.sc-snk-filter-field-search{display:flex;flex-direction:column}.snk-filter-field-search__list.sc-snk-filter-field-search{overflow-y:auto}";
|
@@ -179,7 +179,7 @@ const SnkFilterFieldSearch = class {
|
|
179
179
|
render() {
|
180
180
|
var _a;
|
181
181
|
const searchLabelMessage = this.getMessage('snkFilterFieldSearch.searchLabel');
|
182
|
-
return (index.h("ez-popover", Object.assign({ ref: (el) => this._ezPopover = el, role: "dialog", overlayType: "none", "aria-hidden": !((_a = this._ezPopover) === null || _a === void 0 ? void 0 : _a.opened) }, this.getElementID('EzPopover')), index.h("div", { class: "snk-filter-field-search__container" }, index.h("header", { class: "snk-filter-field-search__header" }, this.searchable && !!searchLabelMessage && (index.h("ez-filter-input", Object.assign({ class: "snk-filter-field-search__input", label: searchLabelMessage, asyncSearch: true, canShowError: false, onEzSearching: (event) => this.handleFilterChange.bind(this)(event.detail), "aria-label": searchLabelMessage, "aria-required": "false", "aria-invalid": "false" }, this.getElementID('EzFilterInput')))), this.breadcrumbItems.length > 0 && (index.h("ez-breadcrumb", Object.assign({ items: this.breadcrumbItems, onSelectedItem: this.handleSelectLink.bind(this), role: "navigation", "aria-current": "step" }, this.getElementID('EzBreadcrumb')))), index.h("hr", { class: "ez-divider-horizontal ez-margin-vertical--medium" })), index.h("section", { class: "snk-filter-field-search__section" }, index.h("ez-list", Object.assign({ ref: (el) => this._ezLinkList = el, class: "snk-filter-field-search__list", id: "filterLinkList", useGroups: true, dataSource: this.linkItems, onEzSelectItem: this.handleSelectLink.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder:
|
182
|
+
return (index.h("ez-popover", Object.assign({ ref: (el) => this._ezPopover = el, role: "dialog", overlayType: "none", "aria-hidden": !((_a = this._ezPopover) === null || _a === void 0 ? void 0 : _a.opened) }, this.getElementID('EzPopover')), index.h("div", { class: "snk-filter-field-search__container" }, index.h("header", { class: "snk-filter-field-search__header" }, this.searchable && !!searchLabelMessage && (index.h("ez-filter-input", Object.assign({ class: "snk-filter-field-search__input", label: searchLabelMessage, asyncSearch: true, canShowError: false, onEzSearching: (event) => this.handleFilterChange.bind(this)(event.detail), "aria-label": searchLabelMessage, "aria-required": "false", "aria-invalid": "false" }, this.getElementID('EzFilterInput')))), this.breadcrumbItems.length > 0 && (index.h("ez-breadcrumb", Object.assign({ items: this.breadcrumbItems, onSelectedItem: this.handleSelectLink.bind(this), role: "navigation", "aria-current": "step" }, this.getElementID('EzBreadcrumb')))), index.h("hr", { class: "ez-divider-horizontal ez-margin-vertical--medium" })), index.h("section", { class: "snk-filter-field-search__section" }, index.h("ez-list", Object.assign({ ref: (el) => this._ezLinkList = el, class: "snk-filter-field-search__list", id: "filterLinkList", useGroups: true, dataSource: this.linkItems, onEzSelectItem: this.handleSelectLink.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder: listItem => index.h("ez-badge", { label: listItem.fieldCount }), "aria-describedby": "filterLinkLabel" }, this.getElementID('EzListLinks'))), index.h("ez-list", Object.assign({ ref: (el) => this._ezFieldList = el, class: "snk-filter-field-search__list", id: "filterFieldList", useGroups: true, dataSource: this.fieldItems, onEzSelectItem: this.handleSelectField.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder: ListItem, "aria-describedby": "filterFieldLabel" }, this.getElementID('EzListFields')))))));
|
183
183
|
}
|
184
184
|
};
|
185
185
|
SnkFilterFieldSearch.style = snkFilterFieldSearchCss;
|
@@ -399,7 +399,9 @@ const SnkFilterParamConfig = class {
|
|
399
399
|
criteria,
|
400
400
|
searchOptions
|
401
401
|
};
|
402
|
-
return
|
402
|
+
return new Promise((resolve) => {
|
403
|
+
this._application.executePreparedSearch(mode, argument, options).then(res => resolve(res));
|
404
|
+
});
|
403
405
|
}
|
404
406
|
getElementID(sufix) {
|
405
407
|
return {
|
@@ -102,8 +102,8 @@ const SnkFilterModal = class {
|
|
102
102
|
return null;
|
103
103
|
const appliedFilters = this.getIformedFiltersCount(listItems);
|
104
104
|
const lines = this.mountFiltersLines(listItems);
|
105
|
-
return (index.h("ez-collapsible-box", {
|
106
|
-
index.h("ez-badge", {
|
105
|
+
return (index.h("ez-collapsible-box", { class: "snk-filter__modal-collapsible-box", headerSize: "medium", value: true, label: label }, !!appliedFilters &&
|
106
|
+
index.h("ez-badge", { class: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() }), lines.map(this.renderFilterLine.bind(this)), index.h("div", { class: "ez-flex ez-flex--justify-end grow" }, index.h("ez-button", { class: "ez-button--tertiary", size: "medium", label: "Limpar", onClick: () => this.handleClearFilters(listItems) }))));
|
107
107
|
}
|
108
108
|
componentWillRender() {
|
109
109
|
this._modalTitle = this.getCustomMessage('title');
|
@@ -91,7 +91,7 @@ const SnkFormView = class {
|
|
91
91
|
?
|
92
92
|
index.h("snk-form-summary", { summary: this.getCardSummary() })
|
93
93
|
:
|
94
|
-
index.h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail)
|
94
|
+
index.h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail) })));
|
95
95
|
}
|
96
96
|
};
|
97
97
|
SnkFormView.style = snkFormViewCss;
|
@@ -114,7 +114,8 @@ const SnkGrid = class {
|
|
114
114
|
});
|
115
115
|
evt.stopPropagation();
|
116
116
|
}
|
117
|
-
buildColumnsMetadata(
|
117
|
+
buildColumnsMetadata(gridColumns) {
|
118
|
+
const columnsMetadata = [];
|
118
119
|
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach((column) => {
|
119
120
|
var _a, _b;
|
120
121
|
/**
|
@@ -162,17 +163,17 @@ const SnkGrid = class {
|
|
162
163
|
return offset;
|
163
164
|
}
|
164
165
|
async dataExporterProviderStore() {
|
165
|
-
var _a
|
166
|
-
const columnsMetadata = [];
|
166
|
+
var _a;
|
167
167
|
const selectedIDs = await ((_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecordsIDsInfo());
|
168
|
-
await ((_b = this._grid) === null || _b === void 0 ? void 0 : _b.getColumnsState().then(this.buildColumnsMetadata.bind(this, columnsMetadata)));
|
169
168
|
const dataExporterProvider = {
|
170
169
|
getFilters: () => {
|
171
170
|
var _a;
|
172
171
|
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getAppliedFilters();
|
173
172
|
},
|
174
|
-
getColumnsMetadata: () => {
|
175
|
-
|
173
|
+
getColumnsMetadata: async () => {
|
174
|
+
var _a;
|
175
|
+
const columnsState = await ((_a = this._grid) === null || _a === void 0 ? void 0 : _a.getColumnsState());
|
176
|
+
return this.buildColumnsMetadata(columnsState);
|
176
177
|
},
|
177
178
|
getOrders: () => {
|
178
179
|
var _a;
|
@@ -310,7 +310,7 @@ const SnkGuidesViewer = class {
|
|
310
310
|
const showGuides = this._guides && (this._guides.length > 1);
|
311
311
|
return (index.h("section", { class: "snk-guides-viewer" }, index.h("div", { class: "ez-row snk-guides-viewer__header" }, index.h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6 ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, index.h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), index.h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, index.h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
312
312
|
index.h("div", { class: "ez-margin-top--extra-small" }, index.h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != index$1.PresentationMode.SECONDARY && this.buildTaskBar()), index.h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
313
|
-
index.h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined,
|
313
|
+
index.h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
314
314
|
:
|
315
315
|
index.h("div", null), index.h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms(this.masterFormConfig, this._masterFormMetadata, (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.id, this.dataUnit, this.recordsValidator), this.getContent())), index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail) })));
|
316
316
|
}
|
@@ -2,7 +2,7 @@
|
|
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-0ab3746e.js');
|
6
6
|
require('./index-21bd01e1.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
8
|
require('./SnkFormConfigManager-69df3f74.js');
|
@@ -169,6 +169,7 @@ const SnkSimpleCrud = class {
|
|
169
169
|
index.registerInstance(this, hostRef);
|
170
170
|
this.dataStateChange = index.createEvent(this, "dataStateChange", 3);
|
171
171
|
this.dataUnitReady = index.createEvent(this, "dataUnitReady", 3);
|
172
|
+
this.actionClick = index.createEvent(this, "actionClick", 7);
|
172
173
|
this.REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER"];
|
173
174
|
this.REGULAR_SELECTED_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "DIVIDER"];
|
174
175
|
this._taskbarProcessor = new taskbarProcessor.TaskbarProcessor({
|
@@ -5,9 +5,7 @@
|
|
5
5
|
"./components/snk-data-unit/snk-data-unit.js",
|
6
6
|
"./components/snk-taskbar/snk-taskbar.js",
|
7
7
|
"./components/snk-filter-bar/filter-list/snk-filter-list.js",
|
8
|
-
"./components/snk-filter-bar/filter-modal/snk-filter-modal.js",
|
9
8
|
"./components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js",
|
10
|
-
"./components/snk-simple-crud/snk-simple-crud.js",
|
11
9
|
"./components/snk-attach/snk-attach.js",
|
12
10
|
"./components/snk-configurator/snk-configurator.js",
|
13
11
|
"./components/snk-crud/snk-crud.js",
|
@@ -27,6 +25,7 @@
|
|
27
25
|
"./components/snk-filter-bar/filter-item/editors/snk-filter-period.js",
|
28
26
|
"./components/snk-filter-bar/filter-item/editors/snk-filter-search.js",
|
29
27
|
"./components/snk-filter-bar/filter-item/editors/snk-filter-text.js",
|
28
|
+
"./components/snk-filter-bar/filter-modal/snk-filter-modal.js",
|
30
29
|
"./components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js",
|
31
30
|
"./components/snk-filter-field-search/snk-filter-field-search.js",
|
32
31
|
"./components/snk-form/snk-form.js",
|
@@ -41,6 +40,7 @@
|
|
41
40
|
"./components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js",
|
42
41
|
"./components/snk-pesquisa/snk-pesquisa.js",
|
43
42
|
"./components/snk-simple-bar/snk-simple-bar.js",
|
43
|
+
"./components/snk-simple-crud/snk-simple-crud.js",
|
44
44
|
"./components/teste-pesquisa/teste-pesquisa.js"
|
45
45
|
],
|
46
46
|
"compiler": {
|
@@ -140,26 +140,11 @@
|
|
140
140
|
"snk-filter-modal"
|
141
141
|
]
|
142
142
|
},
|
143
|
-
{
|
144
|
-
"components": [
|
145
|
-
"snk-config-options"
|
146
|
-
]
|
147
|
-
},
|
148
143
|
{
|
149
144
|
"components": [
|
150
145
|
"snk-field-config"
|
151
146
|
]
|
152
147
|
},
|
153
|
-
{
|
154
|
-
"components": [
|
155
|
-
"snk-form-config"
|
156
|
-
]
|
157
|
-
},
|
158
|
-
{
|
159
|
-
"components": [
|
160
|
-
"snk-tab-config"
|
161
|
-
]
|
162
|
-
},
|
163
148
|
{
|
164
149
|
"components": [
|
165
150
|
"snk-grid"
|
@@ -30,7 +30,7 @@ export class SnkAttach {
|
|
30
30
|
this.entityName = undefined;
|
31
31
|
this.messagesBuilder = undefined;
|
32
32
|
this.dataUnit = undefined;
|
33
|
-
this.crudConfig =
|
33
|
+
this.crudConfig = undefined;
|
34
34
|
}
|
35
35
|
registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
36
36
|
var _a;
|
@@ -95,9 +95,10 @@ export class SnkAttach {
|
|
95
95
|
this.loadAttachmentDataUnit();
|
96
96
|
}
|
97
97
|
render() {
|
98
|
+
var _a, _b;
|
98
99
|
if (!this.dataUnit)
|
99
100
|
return null;
|
100
|
-
return (h("main", null, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this.dataUnit, taskbarManager: buildTaskBarManager(), gridConfig: this.crudConfig.grid, formConfig: this.crudConfig.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
|
101
|
+
return (h("main", null, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this.dataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
|
101
102
|
}
|
102
103
|
static get is() { return "snk-attach"; }
|
103
104
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js
CHANGED
@@ -189,7 +189,7 @@ export class SnkDetailView {
|
|
189
189
|
render() {
|
190
190
|
this.updateLabel();
|
191
191
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
192
|
-
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), messagesBuilder: this.messagesBuilder }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: evt => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, isDetail: true }))), h("stack-item", null, 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 }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
192
|
+
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), messagesBuilder: this.messagesBuilder }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, isDetail: true }))), h("stack-item", null, 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 }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
193
193
|
}
|
194
194
|
static get is() { return "snk-detail-view"; }
|
195
195
|
static get encapsulation() { return "scoped"; }
|
@@ -82,7 +82,7 @@ export class SnkFormView {
|
|
82
82
|
?
|
83
83
|
h("snk-form-summary", { summary: this.getCardSummary() })
|
84
84
|
:
|
85
|
-
h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail)
|
85
|
+
h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail) })));
|
86
86
|
}
|
87
87
|
static get is() { return "snk-form-view"; }
|
88
88
|
static get encapsulation() { return "scoped"; }
|
@@ -300,7 +300,7 @@ export class SnkGuidesViewer {
|
|
300
300
|
const showGuides = this._guides && (this._guides.length > 1);
|
301
301
|
return (h("section", { class: "snk-guides-viewer" }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6 ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
302
302
|
h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
303
|
-
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined,
|
303
|
+
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
304
304
|
:
|
305
305
|
h("div", null), h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms(this.masterFormConfig, this._masterFormMetadata, (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.id, this.dataUnit, this.recordsValidator), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail) })));
|
306
306
|
}
|
@@ -90,12 +90,12 @@ export class SnkDataExporter {
|
|
90
90
|
controlDropdown() {
|
91
91
|
this._showDropdown = !this._showDropdown;
|
92
92
|
}
|
93
|
-
resolveExporter(resolveProps, callbackResolver) {
|
93
|
+
async resolveExporter(resolveProps, callbackResolver) {
|
94
94
|
if (this.provider == undefined || resolveProps == undefined || callbackResolver == undefined) {
|
95
95
|
return;
|
96
96
|
}
|
97
97
|
const filters = this.provider.getFilters();
|
98
|
-
const columns = this.provider.getColumnsMetadata();
|
98
|
+
const columns = await this.provider.getColumnsMetadata();
|
99
99
|
const sort = this.provider.getOrders();
|
100
100
|
const resourceURI = this.provider.getResourceURI();
|
101
101
|
const selectedIDs = this.provider.getSelectedIDs();
|
@@ -55,8 +55,9 @@ export class SnkEntityList {
|
|
55
55
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
56
56
|
this.loadListSource();
|
57
57
|
}
|
58
|
-
optionLoader(
|
58
|
+
optionLoader(searchArgument) {
|
59
59
|
var _a, _b, _c, _d;
|
60
|
+
const { mode, argument } = searchArgument;
|
60
61
|
if (this._application === undefined) {
|
61
62
|
return;
|
62
63
|
}
|
@@ -96,8 +96,8 @@ export class SnkFilterModal {
|
|
96
96
|
return null;
|
97
97
|
const appliedFilters = this.getIformedFiltersCount(listItems);
|
98
98
|
const lines = this.mountFiltersLines(listItems);
|
99
|
-
return (h("ez-collapsible-box", {
|
100
|
-
h("ez-badge", {
|
99
|
+
return (h("ez-collapsible-box", { class: "snk-filter__modal-collapsible-box", headerSize: "medium", value: true, label: label }, !!appliedFilters &&
|
100
|
+
h("ez-badge", { class: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() }), lines.map(this.renderFilterLine.bind(this)), h("div", { class: "ez-flex ez-flex--justify-end grow" }, h("ez-button", { class: "ez-button--tertiary", size: "medium", label: "Limpar", onClick: () => this.handleClearFilters(listItems) }))));
|
101
101
|
}
|
102
102
|
componentWillRender() {
|
103
103
|
this._modalTitle = this.getCustomMessage('title');
|
@@ -146,7 +146,7 @@ export class SnkFilterFieldSearch {
|
|
146
146
|
render() {
|
147
147
|
var _a;
|
148
148
|
const searchLabelMessage = this.getMessage('snkFilterFieldSearch.searchLabel');
|
149
|
-
return (h("ez-popover", Object.assign({ ref: (el) => this._ezPopover = el, role: "dialog", overlayType: "none", "aria-hidden": !((_a = this._ezPopover) === null || _a === void 0 ? void 0 : _a.opened) }, this.getElementID('EzPopover')), h("div", { class: "snk-filter-field-search__container" }, h("header", { class: "snk-filter-field-search__header" }, this.searchable && !!searchLabelMessage && (h("ez-filter-input", Object.assign({ class: "snk-filter-field-search__input", label: searchLabelMessage, asyncSearch: true, canShowError: false, onEzSearching: (event) => this.handleFilterChange.bind(this)(event.detail), "aria-label": searchLabelMessage, "aria-required": "false", "aria-invalid": "false" }, this.getElementID('EzFilterInput')))), this.breadcrumbItems.length > 0 && (h("ez-breadcrumb", Object.assign({ items: this.breadcrumbItems, onSelectedItem: this.handleSelectLink.bind(this), role: "navigation", "aria-current": "step" }, this.getElementID('EzBreadcrumb')))), h("hr", { class: "ez-divider-horizontal ez-margin-vertical--medium" })), h("section", { class: "snk-filter-field-search__section" }, h("ez-list", Object.assign({ ref: (el) => this._ezLinkList = el, class: "snk-filter-field-search__list", id: "filterLinkList", useGroups: true, dataSource: this.linkItems, onEzSelectItem: this.handleSelectLink.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder:
|
149
|
+
return (h("ez-popover", Object.assign({ ref: (el) => this._ezPopover = el, role: "dialog", overlayType: "none", "aria-hidden": !((_a = this._ezPopover) === null || _a === void 0 ? void 0 : _a.opened) }, this.getElementID('EzPopover')), h("div", { class: "snk-filter-field-search__container" }, h("header", { class: "snk-filter-field-search__header" }, this.searchable && !!searchLabelMessage && (h("ez-filter-input", Object.assign({ class: "snk-filter-field-search__input", label: searchLabelMessage, asyncSearch: true, canShowError: false, onEzSearching: (event) => this.handleFilterChange.bind(this)(event.detail), "aria-label": searchLabelMessage, "aria-required": "false", "aria-invalid": "false" }, this.getElementID('EzFilterInput')))), this.breadcrumbItems.length > 0 && (h("ez-breadcrumb", Object.assign({ items: this.breadcrumbItems, onSelectedItem: this.handleSelectLink.bind(this), role: "navigation", "aria-current": "step" }, this.getElementID('EzBreadcrumb')))), h("hr", { class: "ez-divider-horizontal ez-margin-vertical--medium" })), h("section", { class: "snk-filter-field-search__section" }, h("ez-list", Object.assign({ ref: (el) => this._ezLinkList = el, class: "snk-filter-field-search__list", id: "filterLinkList", useGroups: true, dataSource: this.linkItems, onEzSelectItem: this.handleSelectLink.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder: listItem => h("ez-badge", { label: listItem.fieldCount }), "aria-describedby": "filterLinkLabel" }, this.getElementID('EzListLinks'))), h("ez-list", Object.assign({ ref: (el) => this._ezFieldList = el, class: "snk-filter-field-search__list", id: "filterFieldList", useGroups: true, dataSource: this.fieldItems, onEzSelectItem: this.handleSelectField.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder: ListItem, "aria-describedby": "filterFieldLabel" }, this.getElementID('EzListFields')))))));
|
150
150
|
}
|
151
151
|
static get is() { return "snk-filter-field-search"; }
|
152
152
|
static get encapsulation() { return "scoped"; }
|
@@ -20,5 +20,5 @@ const ICON_MODES = {
|
|
20
20
|
[UserInterface.PASSWORD]: 'email',
|
21
21
|
};
|
22
22
|
export const ListItem = ({ userInterface, description }) => {
|
23
|
-
return (h("ez-icon", { iconName: ICON_MODES[userInterface],
|
23
|
+
return (h("ez-icon", { iconName: ICON_MODES[userInterface], class: "ez-padding-left--small", title: description }));
|
24
24
|
};
|
@@ -98,7 +98,8 @@ export class SnkGrid {
|
|
98
98
|
});
|
99
99
|
evt.stopPropagation();
|
100
100
|
}
|
101
|
-
buildColumnsMetadata(
|
101
|
+
buildColumnsMetadata(gridColumns) {
|
102
|
+
const columnsMetadata = [];
|
102
103
|
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach((column) => {
|
103
104
|
var _a, _b;
|
104
105
|
/**
|
@@ -146,17 +147,17 @@ export class SnkGrid {
|
|
146
147
|
return offset;
|
147
148
|
}
|
148
149
|
async dataExporterProviderStore() {
|
149
|
-
var _a
|
150
|
-
const columnsMetadata = [];
|
150
|
+
var _a;
|
151
151
|
const selectedIDs = await ((_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecordsIDsInfo());
|
152
|
-
await ((_b = this._grid) === null || _b === void 0 ? void 0 : _b.getColumnsState().then(this.buildColumnsMetadata.bind(this, columnsMetadata)));
|
153
152
|
const dataExporterProvider = {
|
154
153
|
getFilters: () => {
|
155
154
|
var _a;
|
156
155
|
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getAppliedFilters();
|
157
156
|
},
|
158
|
-
getColumnsMetadata: () => {
|
159
|
-
|
157
|
+
getColumnsMetadata: async () => {
|
158
|
+
var _a;
|
159
|
+
const columnsState = await ((_a = this._grid) === null || _a === void 0 ? void 0 : _a.getColumnsState());
|
160
|
+
return this.buildColumnsMetadata(columnsState);
|
160
161
|
},
|
161
162
|
getOrders: () => {
|
162
163
|
var _a;
|
@@ -160,7 +160,9 @@ export class SnkFilterParamConfig {
|
|
160
160
|
criteria,
|
161
161
|
searchOptions
|
162
162
|
};
|
163
|
-
return
|
163
|
+
return new Promise((resolve) => {
|
164
|
+
this._application.executePreparedSearch(mode, argument, options).then(res => resolve(res));
|
165
|
+
});
|
164
166
|
}
|
165
167
|
getElementID(sufix) {
|
166
168
|
return {
|
@@ -380,6 +380,21 @@ export class SnkSimpleCrud {
|
|
380
380
|
}
|
381
381
|
}
|
382
382
|
}
|
383
|
+
}, {
|
384
|
+
"method": "actionClick",
|
385
|
+
"name": "actionClick",
|
386
|
+
"bubbles": true,
|
387
|
+
"cancelable": true,
|
388
|
+
"composed": true,
|
389
|
+
"docs": {
|
390
|
+
"tags": [],
|
391
|
+
"text": "Emitido sempre que houver click de bot\u00E3o ou a\u00E7\u00E3o."
|
392
|
+
},
|
393
|
+
"complexType": {
|
394
|
+
"original": "string",
|
395
|
+
"resolved": "string",
|
396
|
+
"references": {}
|
397
|
+
}
|
383
398
|
}];
|
384
399
|
}
|
385
400
|
static get methods() {
|
@@ -370,7 +370,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
370
370
|
this.entityName = undefined;
|
371
371
|
this.messagesBuilder = undefined;
|
372
372
|
this.dataUnit = undefined;
|
373
|
-
this.crudConfig =
|
373
|
+
this.crudConfig = undefined;
|
374
374
|
}
|
375
375
|
registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
376
376
|
var _a;
|
@@ -435,9 +435,10 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
435
435
|
this.loadAttachmentDataUnit();
|
436
436
|
}
|
437
437
|
render() {
|
438
|
+
var _a, _b;
|
438
439
|
if (!this.dataUnit)
|
439
440
|
return null;
|
440
|
-
return (h("main", null, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this.dataUnit, taskbarManager: buildTaskBarManager(), gridConfig: this.crudConfig.grid, formConfig: this.crudConfig.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
|
441
|
+
return (h("main", null, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this.dataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
|
441
442
|
}
|
442
443
|
static get watchers() { return {
|
443
444
|
"registerKey": ["registerKeyWatcher"]
|
@@ -305,12 +305,12 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
305
305
|
controlDropdown() {
|
306
306
|
this._showDropdown = !this._showDropdown;
|
307
307
|
}
|
308
|
-
resolveExporter(resolveProps, callbackResolver) {
|
308
|
+
async resolveExporter(resolveProps, callbackResolver) {
|
309
309
|
if (this.provider == undefined || resolveProps == undefined || callbackResolver == undefined) {
|
310
310
|
return;
|
311
311
|
}
|
312
312
|
const filters = this.provider.getFilters();
|
313
|
-
const columns = this.provider.getColumnsMetadata();
|
313
|
+
const columns = await this.provider.getColumnsMetadata();
|
314
314
|
const sort = this.provider.getOrders();
|
315
315
|
const resourceURI = this.provider.getResourceURI();
|
316
316
|
const selectedIDs = this.provider.getSelectedIDs();
|
@@ -329,7 +329,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
329
329
|
const showGuides = this._guides && (this._guides.length > 1);
|
330
330
|
return (h("section", { class: "snk-guides-viewer" }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6 ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
331
331
|
h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
332
|
-
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined,
|
332
|
+
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
333
333
|
:
|
334
334
|
h("div", null), h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms(this.masterFormConfig, this._masterFormMetadata, (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.id, this.dataUnit, this.recordsValidator), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail) })));
|
335
335
|
}
|
@@ -708,7 +708,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
708
708
|
render() {
|
709
709
|
this.updateLabel();
|
710
710
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
711
|
-
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), messagesBuilder: this.messagesBuilder }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: evt => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, isDetail: true }))), h("stack-item", null, 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 }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
711
|
+
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), messagesBuilder: this.messagesBuilder }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, isDetail: true }))), h("stack-item", null, 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 }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
712
712
|
}
|
713
713
|
static get watchers() { return {
|
714
714
|
"dataState": ["observerDataState"]
|
@@ -62,8 +62,9 @@ const SnkEntityList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
62
62
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
63
63
|
this.loadListSource();
|
64
64
|
}
|
65
|
-
optionLoader(
|
65
|
+
optionLoader(searchArgument) {
|
66
66
|
var _a, _b, _c, _d;
|
67
|
+
const { mode, argument } = searchArgument;
|
67
68
|
if (this._application === undefined) {
|
68
69
|
return;
|
69
70
|
}
|
@@ -27,7 +27,7 @@ const ICON_MODES = {
|
|
27
27
|
[UserInterface.PASSWORD]: 'email',
|
28
28
|
};
|
29
29
|
const ListItem = ({ userInterface, description }) => {
|
30
|
-
return (h("ez-icon", { iconName: ICON_MODES[userInterface],
|
30
|
+
return (h("ez-icon", { iconName: ICON_MODES[userInterface], class: "ez-padding-left--small", title: description }));
|
31
31
|
};
|
32
32
|
|
33
33
|
const snkFilterFieldSearchCss = ".sc-snk-filter-field-search-h{--snk-filter-field-search--container-width:468px;--snk-filter-field-search--container-height:322px}.snk-filter-field-search__container.sc-snk-filter-field-search{display:flex;flex-direction:column;padding:var(--space--medium);width:var(--snk-filter-field-search--container-width);height:var(--snk-filter-field-search--container-height)}.snk-filter-field-search__section.sc-snk-filter-field-search{display:grid;grid-template-columns:1fr 1fr;place-items:flex-start;overflow:hidden;gap:var(--space--small)}.snk-filter-field-search__input.sc-snk-filter-field-search{margin-bottom:var(--space--medium)}.snk-filter-field-search__list_container.sc-snk-filter-field-search{display:flex;flex-direction:column}.snk-filter-field-search__list.sc-snk-filter-field-search{overflow-y:auto}";
|
@@ -179,7 +179,7 @@ const SnkFilterFieldSearch = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
179
179
|
render() {
|
180
180
|
var _a;
|
181
181
|
const searchLabelMessage = this.getMessage('snkFilterFieldSearch.searchLabel');
|
182
|
-
return (h("ez-popover", Object.assign({ ref: (el) => this._ezPopover = el, role: "dialog", overlayType: "none", "aria-hidden": !((_a = this._ezPopover) === null || _a === void 0 ? void 0 : _a.opened) }, this.getElementID('EzPopover')), h("div", { class: "snk-filter-field-search__container" }, h("header", { class: "snk-filter-field-search__header" }, this.searchable && !!searchLabelMessage && (h("ez-filter-input", Object.assign({ class: "snk-filter-field-search__input", label: searchLabelMessage, asyncSearch: true, canShowError: false, onEzSearching: (event) => this.handleFilterChange.bind(this)(event.detail), "aria-label": searchLabelMessage, "aria-required": "false", "aria-invalid": "false" }, this.getElementID('EzFilterInput')))), this.breadcrumbItems.length > 0 && (h("ez-breadcrumb", Object.assign({ items: this.breadcrumbItems, onSelectedItem: this.handleSelectLink.bind(this), role: "navigation", "aria-current": "step" }, this.getElementID('EzBreadcrumb')))), h("hr", { class: "ez-divider-horizontal ez-margin-vertical--medium" })), h("section", { class: "snk-filter-field-search__section" }, h("ez-list", Object.assign({ ref: (el) => this._ezLinkList = el, class: "snk-filter-field-search__list", id: "filterLinkList", useGroups: true, dataSource: this.linkItems, onEzSelectItem: this.handleSelectLink.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder:
|
182
|
+
return (h("ez-popover", Object.assign({ ref: (el) => this._ezPopover = el, role: "dialog", overlayType: "none", "aria-hidden": !((_a = this._ezPopover) === null || _a === void 0 ? void 0 : _a.opened) }, this.getElementID('EzPopover')), h("div", { class: "snk-filter-field-search__container" }, h("header", { class: "snk-filter-field-search__header" }, this.searchable && !!searchLabelMessage && (h("ez-filter-input", Object.assign({ class: "snk-filter-field-search__input", label: searchLabelMessage, asyncSearch: true, canShowError: false, onEzSearching: (event) => this.handleFilterChange.bind(this)(event.detail), "aria-label": searchLabelMessage, "aria-required": "false", "aria-invalid": "false" }, this.getElementID('EzFilterInput')))), this.breadcrumbItems.length > 0 && (h("ez-breadcrumb", Object.assign({ items: this.breadcrumbItems, onSelectedItem: this.handleSelectLink.bind(this), role: "navigation", "aria-current": "step" }, this.getElementID('EzBreadcrumb')))), h("hr", { class: "ez-divider-horizontal ez-margin-vertical--medium" })), h("section", { class: "snk-filter-field-search__section" }, h("ez-list", Object.assign({ ref: (el) => this._ezLinkList = el, class: "snk-filter-field-search__list", id: "filterLinkList", useGroups: true, dataSource: this.linkItems, onEzSelectItem: this.handleSelectLink.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder: listItem => h("ez-badge", { label: listItem.fieldCount }), "aria-describedby": "filterLinkLabel" }, this.getElementID('EzListLinks'))), h("ez-list", Object.assign({ ref: (el) => this._ezFieldList = el, class: "snk-filter-field-search__list", id: "filterFieldList", useGroups: true, dataSource: this.fieldItems, onEzSelectItem: this.handleSelectField.bind(this), hoverFeedback: true, ezSelectable: true, itemSlotBuilder: ListItem, "aria-describedby": "filterFieldLabel" }, this.getElementID('EzListFields')))))));
|
183
183
|
}
|
184
184
|
static get style() { return snkFilterFieldSearchCss; }
|
185
185
|
}, [2, "snk-filter-field-search", {
|
@@ -99,8 +99,8 @@ const SnkFilterModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
99
99
|
return null;
|
100
100
|
const appliedFilters = this.getIformedFiltersCount(listItems);
|
101
101
|
const lines = this.mountFiltersLines(listItems);
|
102
|
-
return (h("ez-collapsible-box", {
|
103
|
-
h("ez-badge", {
|
102
|
+
return (h("ez-collapsible-box", { class: "snk-filter__modal-collapsible-box", headerSize: "medium", value: true, label: label }, !!appliedFilters &&
|
103
|
+
h("ez-badge", { class: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() }), lines.map(this.renderFilterLine.bind(this)), h("div", { class: "ez-flex ez-flex--justify-end grow" }, h("ez-button", { class: "ez-button--tertiary", size: "medium", label: "Limpar", onClick: () => this.handleClearFilters(listItems) }))));
|
104
104
|
}
|
105
105
|
componentWillRender() {
|
106
106
|
this._modalTitle = this.getCustomMessage('title');
|