@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-75210.1 → 0.0.0-bugfix-dev-KB-76031.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/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
- package/dist/cjs/{DataBinder-b4ef826a.js → DataBinder-e92314c2.js} +2 -2
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +2 -3
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-dialog.cjs.entry.js +4 -5
- package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-form-view.cjs.entry.js +10 -10
- package/dist/cjs/ez-form.cjs.entry.js +2 -2
- package/dist/cjs/ez-grid.cjs.entry.js +89 -43
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-search.cjs.entry.js +5 -5
- package/dist/cjs/ez-split-item.cjs.entry.js +4 -2
- package/dist/cjs/ez-text-area.cjs.entry.js +2 -2
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-tree.cjs.entry.js +5 -4
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -20
- package/dist/collection/components/ez-date-input/ez-date-input.js +1 -20
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +1 -20
- package/dist/collection/components/ez-dialog/ez-dialog.js +5 -15
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +1 -20
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +4 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +34 -13
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +44 -26
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
- package/dist/collection/components/ez-grid/ez-grid.js +70 -9
- package/dist/collection/components/ez-icon/ez-icon.css +70 -68
- package/dist/collection/components/ez-list/ez-list.css +3 -3
- package/dist/collection/components/ez-number-input/ez-number-input.js +1 -20
- package/dist/collection/components/ez-search/ez-search.js +23 -24
- package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +3 -1
- package/dist/collection/components/ez-text-area/ez-text-area.css +5 -1
- package/dist/collection/components/ez-text-area/ez-text-area.js +2 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +1 -20
- package/dist/collection/components/ez-time-input/ez-time-input.js +1 -20
- package/dist/collection/components/ez-tree/ez-tree.js +21 -1
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
- package/dist/collection/utils/CSSVarsUtils.js +1 -0
- package/dist/collection/utils/form/DataBinder.js +2 -2
- package/dist/collection/utils/form/FormMetadata.js +1 -1
- package/dist/custom-elements/index.js +141 -99
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
- package/dist/esm/{DataBinder-d2ecbb0f.js → DataBinder-9c877244.js} +2 -2
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +2 -3
- package/dist/esm/ez-date-input.entry.js +2 -3
- package/dist/esm/ez-date-time-input.entry.js +2 -3
- package/dist/esm/ez-dialog.entry.js +5 -6
- package/dist/esm/ez-dropdown_2.entry.js +1 -1
- package/dist/esm/ez-filter-input.entry.js +2 -3
- package/dist/esm/ez-form-view.entry.js +10 -10
- package/dist/esm/ez-form.entry.js +2 -2
- package/dist/esm/ez-grid.entry.js +90 -44
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +2 -3
- package/dist/esm/ez-search.entry.js +5 -5
- package/dist/esm/ez-split-item.entry.js +4 -2
- package/dist/esm/ez-text-area.entry.js +2 -2
- package/dist/esm/ez-text-input.entry.js +1 -2
- package/dist/esm/ez-time-input.entry.js +2 -3
- package/dist/esm/ez-tree.entry.js +5 -4
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-0faf71c5.entry.js +1 -0
- package/dist/ezui/p-17de16e5.entry.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/p-2f45506d.entry.js +1 -0
- package/dist/ezui/p-3429080c.entry.js +1 -0
- package/dist/ezui/{p-d0ca26fe.entry.js → p-354abfe8.entry.js} +1 -1
- package/dist/ezui/{p-7ed30844.entry.js → p-420f97ff.entry.js} +1 -1
- package/dist/ezui/{p-ca6340a9.entry.js → p-556468d9.entry.js} +1 -1
- package/dist/ezui/p-7a171eae.entry.js +1 -0
- package/dist/ezui/{p-ceadecd9.js → p-acddfb2e.js} +1 -1
- package/dist/ezui/p-ae098837.entry.js +1 -0
- package/dist/ezui/p-b26f6c5b.entry.js +1 -0
- package/dist/ezui/{p-b46e9f59.entry.js → p-b6597f49.entry.js} +46 -46
- package/dist/ezui/p-c1527804.entry.js +1 -0
- package/dist/ezui/{p-d520839d.entry.js → p-cf87aacb.entry.js} +1 -1
- package/dist/ezui/p-d9548bdf.entry.js +1 -0
- package/dist/ezui/p-da1b4a38.entry.js +1 -0
- package/dist/ezui/p-e92b8a2c.entry.js +1 -0
- package/dist/ezui/p-ea54d056.entry.js +1 -0
- package/dist/ezui/p-ec7db713.js +1 -0
- package/dist/ezui/p-fd0a19d6.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -4
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +0 -4
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +0 -4
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +0 -1
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +0 -4
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +12 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +18 -6
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +0 -4
- package/dist/types/components/ez-search/ez-search.d.ts +5 -5
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +1 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +0 -4
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +0 -4
- package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
- package/dist/types/components.d.ts +44 -72
- package/package.json +1 -1
- package/dist/ezui/p-14b769d7.entry.js +0 -1
- package/dist/ezui/p-16e612fc.entry.js +0 -1
- package/dist/ezui/p-181b5ae8.entry.js +0 -1
- package/dist/ezui/p-2475fd6e.entry.js +0 -1
- package/dist/ezui/p-3175fe8c.entry.js +0 -1
- package/dist/ezui/p-3f2dd525.entry.js +0 -1
- package/dist/ezui/p-50d83a46.entry.js +0 -1
- package/dist/ezui/p-654b3f99.entry.js +0 -1
- package/dist/ezui/p-66924de6.entry.js +0 -1
- package/dist/ezui/p-6f22a385.entry.js +0 -1
- package/dist/ezui/p-8888d9ed.entry.js +0 -1
- package/dist/ezui/p-9e11fc7b.js +0 -1
- package/dist/ezui/p-b6a4e6de.entry.js +0 -1
- package/dist/ezui/p-c4320a39.entry.js +0 -1
- package/dist/ezui/p-e3e3fd7a.entry.js +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Action } from "@sankhyalabs/core";
|
|
2
2
|
import { DISTINCT_FILTER_NAME_PREFIX, EZ_GRID_LOADING_SOURCE } from "../../../../utils/constants";
|
|
3
|
+
import { DataUnit } from "@sankhyalabs/core";
|
|
3
4
|
export class DataSourceInterceptor {
|
|
4
5
|
constructor(controller) {
|
|
5
6
|
this._controller = controller;
|
|
@@ -11,7 +12,7 @@ export class DataSourceInterceptor {
|
|
|
11
12
|
interceptAction(action) {
|
|
12
13
|
var _a;
|
|
13
14
|
if (action.type === Action.LOADING_DATA) {
|
|
14
|
-
if (EZ_GRID_LOADING_SOURCE !== action.payload.source) {
|
|
15
|
+
if (EZ_GRID_LOADING_SOURCE !== action.payload.source && DataUnit.CHANGING_PAGE_LOADING_SOURCE !== action.payload.source) {
|
|
15
16
|
action.payload.filters = ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.filters) !== undefined ? this.clearColumnFilter(action.payload.filters) : action.payload.filters;
|
|
16
17
|
this._controller.clearFilter();
|
|
17
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementIDUtils, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, StringUtils, } from '@sankhyalabs/core';
|
|
1
|
+
import { ElementIDUtils, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, StringUtils, ApplicationContext, } from '@sankhyalabs/core';
|
|
2
2
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
3
3
|
import { Host, h } from '@stencil/core';
|
|
4
4
|
import { ApplicationUtils } from '../../utils';
|
|
@@ -25,6 +25,8 @@ export class EzGrid {
|
|
|
25
25
|
this._selectionCount = undefined;
|
|
26
26
|
this._hasLeftButtons = false;
|
|
27
27
|
this._customFormatters = new Map();
|
|
28
|
+
this.enableLockManagerLoadingComp = false;
|
|
29
|
+
this.enableLockManagerTaskbarClick = true;
|
|
28
30
|
this.multipleSelection = undefined;
|
|
29
31
|
this.config = undefined;
|
|
30
32
|
this.selectionToastConfig = undefined;
|
|
@@ -39,9 +41,10 @@ export class EzGrid {
|
|
|
39
41
|
this.paginationCounterMode = 'show';
|
|
40
42
|
this.enableGridInsert = false;
|
|
41
43
|
this.enableContinuousInsert = true;
|
|
42
|
-
this.
|
|
44
|
+
this.suppressCheckboxColumn = false;
|
|
43
45
|
this.outlineMode = false;
|
|
44
46
|
this.enableRowTableStriped = true;
|
|
47
|
+
this.compact = false;
|
|
45
48
|
}
|
|
46
49
|
/**
|
|
47
50
|
* Aplica a definição de colunas.
|
|
@@ -375,6 +378,8 @@ export class EzGrid {
|
|
|
375
378
|
return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.paginationCounterMode == 'show' && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.paginationCounterMode == 'show' && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
|
|
376
379
|
}
|
|
377
380
|
componentDidLoad() {
|
|
381
|
+
const _application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
382
|
+
this.enableLockManagerLoadingComp = (!_application || (_application === null || _application === void 0 ? void 0 : _application.enableLockManagerLoadingApp)) ? this.enableLockManagerLoadingComp : false;
|
|
378
383
|
this._gridController.initDatagrid(this._container, {
|
|
379
384
|
onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
|
|
380
385
|
onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
|
|
@@ -398,12 +403,14 @@ export class EzGrid {
|
|
|
398
403
|
autoFocus: this.autoFocus,
|
|
399
404
|
enableGridInsert: this.enableGridInsert,
|
|
400
405
|
enableContinuousInsert: this.enableContinuousInsert,
|
|
406
|
+
suppressCheckBoxCol: this.suppressCheckboxColumn,
|
|
401
407
|
onRefresh: () => {
|
|
402
408
|
if (this.dataUnit) {
|
|
403
409
|
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
404
410
|
}
|
|
405
411
|
},
|
|
406
|
-
|
|
412
|
+
enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
|
|
413
|
+
enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
|
|
407
414
|
enableRowTableStriped: this.enableRowTableStriped,
|
|
408
415
|
});
|
|
409
416
|
if (this.config) {
|
|
@@ -519,7 +526,7 @@ export class EzGrid {
|
|
|
519
526
|
}
|
|
520
527
|
render() {
|
|
521
528
|
var _a;
|
|
522
|
-
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ${this.outlineMode ? 'outline-mode' : 'shadow-mode'}
|
|
529
|
+
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ez-grid ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ${this.compact ? 'no-padding' : ""}`, ref: elem => (this._container = elem) }), h("div", { class: `ez-box ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-padding--small grid-header` }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
523
530
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
524
531
|
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
525
532
|
}
|
|
@@ -538,6 +545,42 @@ export class EzGrid {
|
|
|
538
545
|
static get assetsDirs() { return ["../assets"]; }
|
|
539
546
|
static get properties() {
|
|
540
547
|
return {
|
|
548
|
+
"enableLockManagerLoadingComp": {
|
|
549
|
+
"type": "boolean",
|
|
550
|
+
"mutable": false,
|
|
551
|
+
"complexType": {
|
|
552
|
+
"original": "boolean",
|
|
553
|
+
"resolved": "boolean",
|
|
554
|
+
"references": {}
|
|
555
|
+
},
|
|
556
|
+
"required": false,
|
|
557
|
+
"optional": true,
|
|
558
|
+
"docs": {
|
|
559
|
+
"tags": [],
|
|
560
|
+
"text": "Define se o componente deve usar o LockManager para controle de carregamento da aplica\u00E7\u00E3o"
|
|
561
|
+
},
|
|
562
|
+
"attribute": "enable-lock-manager-loading-comp",
|
|
563
|
+
"reflect": false,
|
|
564
|
+
"defaultValue": "false"
|
|
565
|
+
},
|
|
566
|
+
"enableLockManagerTaskbarClick": {
|
|
567
|
+
"type": "boolean",
|
|
568
|
+
"mutable": false,
|
|
569
|
+
"complexType": {
|
|
570
|
+
"original": "boolean",
|
|
571
|
+
"resolved": "boolean",
|
|
572
|
+
"references": {}
|
|
573
|
+
},
|
|
574
|
+
"required": false,
|
|
575
|
+
"optional": true,
|
|
576
|
+
"docs": {
|
|
577
|
+
"tags": [],
|
|
578
|
+
"text": "Ativa inser\u00E7\u00E3o de registros no modo grade pela Taskbar."
|
|
579
|
+
},
|
|
580
|
+
"attribute": "enable-lock-manager-taskbar-click",
|
|
581
|
+
"reflect": false,
|
|
582
|
+
"defaultValue": "true"
|
|
583
|
+
},
|
|
541
584
|
"multipleSelection": {
|
|
542
585
|
"type": "boolean",
|
|
543
586
|
"mutable": false,
|
|
@@ -804,7 +847,7 @@ export class EzGrid {
|
|
|
804
847
|
"reflect": false,
|
|
805
848
|
"defaultValue": "true"
|
|
806
849
|
},
|
|
807
|
-
"
|
|
850
|
+
"suppressCheckboxColumn": {
|
|
808
851
|
"type": "boolean",
|
|
809
852
|
"mutable": false,
|
|
810
853
|
"complexType": {
|
|
@@ -816,11 +859,11 @@ export class EzGrid {
|
|
|
816
859
|
"optional": true,
|
|
817
860
|
"docs": {
|
|
818
861
|
"tags": [],
|
|
819
|
-
"text": "
|
|
862
|
+
"text": "Informa se a coluna de chechbox deve ser suprimida"
|
|
820
863
|
},
|
|
821
|
-
"attribute": "
|
|
864
|
+
"attribute": "suppress-checkbox-column",
|
|
822
865
|
"reflect": false,
|
|
823
|
-
"defaultValue": "
|
|
866
|
+
"defaultValue": "false"
|
|
824
867
|
},
|
|
825
868
|
"outlineMode": {
|
|
826
869
|
"type": "boolean",
|
|
@@ -834,7 +877,7 @@ export class EzGrid {
|
|
|
834
877
|
"optional": true,
|
|
835
878
|
"docs": {
|
|
836
879
|
"tags": [],
|
|
837
|
-
"text": "Altera visualmente as sombras e bordas do componente\nQuando
|
|
880
|
+
"text": "Altera visualmente as sombras e bordas do componente\nQuando false, aplica o padr\u00E3o de sombras ao componente (Utilizar quando for o elemento principal do layout)\nQuando true, aplica o padr\u00E3o de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)"
|
|
838
881
|
},
|
|
839
882
|
"attribute": "outline-mode",
|
|
840
883
|
"reflect": false,
|
|
@@ -857,6 +900,24 @@ export class EzGrid {
|
|
|
857
900
|
"attribute": "enable-row-table-striped",
|
|
858
901
|
"reflect": false,
|
|
859
902
|
"defaultValue": "true"
|
|
903
|
+
},
|
|
904
|
+
"compact": {
|
|
905
|
+
"type": "boolean",
|
|
906
|
+
"mutable": false,
|
|
907
|
+
"complexType": {
|
|
908
|
+
"original": "boolean",
|
|
909
|
+
"resolved": "boolean",
|
|
910
|
+
"references": {}
|
|
911
|
+
},
|
|
912
|
+
"required": false,
|
|
913
|
+
"optional": true,
|
|
914
|
+
"docs": {
|
|
915
|
+
"tags": [],
|
|
916
|
+
"text": "Define se a grade deve ser exibida em modo compacto"
|
|
917
|
+
},
|
|
918
|
+
"attribute": "compact",
|
|
919
|
+
"reflect": false,
|
|
920
|
+
"defaultValue": "false"
|
|
860
921
|
}
|
|
861
922
|
};
|
|
862
923
|
}
|
|
@@ -145,74 +145,76 @@ svg {
|
|
|
145
145
|
.ez-icon-handshake:before { content: "\ea58"; }
|
|
146
146
|
.ez-icon-help-inverted:before { content: "\ea59"; }
|
|
147
147
|
.ez-icon-help:before { content: "\ea5a"; }
|
|
148
|
-
.ez-icon-
|
|
149
|
-
.ez-icon-
|
|
150
|
-
.ez-icon-
|
|
151
|
-
.ez-icon-
|
|
152
|
-
.ez-icon-
|
|
153
|
-
.ez-icon-
|
|
154
|
-
.ez-icon-
|
|
155
|
-
.ez-icon-
|
|
156
|
-
.ez-icon-
|
|
157
|
-
.ez-icon-lock:before { content: "\ea64"; }
|
|
158
|
-
.ez-icon-
|
|
159
|
-
.ez-icon-
|
|
160
|
-
.ez-icon-
|
|
161
|
-
.ez-icon-
|
|
162
|
-
.ez-icon-money:before { content: "\ea69"; }
|
|
163
|
-
.ez-icon-
|
|
164
|
-
.ez-icon-
|
|
165
|
-
.ez-icon-
|
|
166
|
-
.ez-icon-
|
|
167
|
-
.ez-icon-
|
|
168
|
-
.ez-icon-
|
|
169
|
-
.ez-icon-
|
|
170
|
-
.ez-icon-ordem-
|
|
171
|
-
.ez-icon-
|
|
172
|
-
.ez-icon-
|
|
173
|
-
.ez-icon-
|
|
174
|
-
.ez-icon-
|
|
175
|
-
.ez-icon-
|
|
176
|
-
.ez-icon-
|
|
177
|
-
.ez-icon-
|
|
178
|
-
.ez-icon-
|
|
179
|
-
.ez-icon-
|
|
180
|
-
.ez-icon-
|
|
181
|
-
.ez-icon-
|
|
182
|
-
.ez-icon-
|
|
183
|
-
.ez-icon-
|
|
184
|
-
.ez-icon-
|
|
185
|
-
.ez-icon-
|
|
186
|
-
.ez-icon-
|
|
187
|
-
.ez-icon-
|
|
188
|
-
.ez-icon-
|
|
189
|
-
.ez-icon-
|
|
190
|
-
.ez-icon-
|
|
191
|
-
.ez-icon-
|
|
192
|
-
.ez-icon-
|
|
193
|
-
.ez-icon-settings:before { content: "\ea88"; }
|
|
194
|
-
.ez-icon-
|
|
195
|
-
.ez-icon-
|
|
196
|
-
.ez-icon-
|
|
197
|
-
.ez-icon-
|
|
198
|
-
.ez-icon-
|
|
199
|
-
.ez-icon-
|
|
200
|
-
.ez-icon-
|
|
201
|
-
.ez-icon-
|
|
202
|
-
.ez-icon-
|
|
203
|
-
.ez-icon-
|
|
204
|
-
.ez-icon-
|
|
205
|
-
.ez-icon-
|
|
206
|
-
.ez-icon-
|
|
207
|
-
.ez-icon-
|
|
208
|
-
.ez-icon-
|
|
209
|
-
.ez-icon-
|
|
210
|
-
.ez-icon-
|
|
211
|
-
.ez-icon-
|
|
212
|
-
.ez-icon-
|
|
213
|
-
.ez-icon-
|
|
214
|
-
.ez-icon-
|
|
215
|
-
.ez-icon-
|
|
148
|
+
.ez-icon-hide-list:before { content: "\ea5b"; }
|
|
149
|
+
.ez-icon-hide_menu:before { content: "\ea5c"; }
|
|
150
|
+
.ez-icon-home:before { content: "\ea5d"; }
|
|
151
|
+
.ez-icon-icons104:before { content: "\ea5e"; }
|
|
152
|
+
.ez-icon-language:before { content: "\ea5f"; }
|
|
153
|
+
.ez-icon-launch:before { content: "\ea60"; }
|
|
154
|
+
.ez-icon-lightbulb:before { content: "\ea61"; }
|
|
155
|
+
.ez-icon-list:before { content: "\ea62"; }
|
|
156
|
+
.ez-icon-location:before { content: "\ea63"; }
|
|
157
|
+
.ez-icon-lock-outline:before { content: "\ea64"; }
|
|
158
|
+
.ez-icon-lock:before { content: "\ea65"; }
|
|
159
|
+
.ez-icon-menu:before { content: "\ea66"; }
|
|
160
|
+
.ez-icon-mid:before { content: "\ea67"; }
|
|
161
|
+
.ez-icon-minus:before { content: "\ea68"; }
|
|
162
|
+
.ez-icon-money-off:before { content: "\ea69"; }
|
|
163
|
+
.ez-icon-money:before { content: "\ea6a"; }
|
|
164
|
+
.ez-icon-more:before { content: "\ea6b"; }
|
|
165
|
+
.ez-icon-mp3:before { content: "\ea6c"; }
|
|
166
|
+
.ez-icon-mp4:before { content: "\ea6d"; }
|
|
167
|
+
.ez-icon-multiple-files:before { content: "\ea6e"; }
|
|
168
|
+
.ez-icon-north-west:before { content: "\ea6f"; }
|
|
169
|
+
.ez-icon-number:before { content: "\ea70"; }
|
|
170
|
+
.ez-icon-ordem-ascendente:before { content: "\ea71"; }
|
|
171
|
+
.ez-icon-ordem-descendente:before { content: "\ea72"; }
|
|
172
|
+
.ez-icon-parcelar:before { content: "\ea73"; }
|
|
173
|
+
.ez-icon-pause:before { content: "\ea74"; }
|
|
174
|
+
.ez-icon-payments:before { content: "\ea75"; }
|
|
175
|
+
.ez-icon-pdf:before { content: "\ea76"; }
|
|
176
|
+
.ez-icon-play:before { content: "\ea77"; }
|
|
177
|
+
.ez-icon-plus:before { content: "\ea78"; }
|
|
178
|
+
.ez-icon-png:before { content: "\ea79"; }
|
|
179
|
+
.ez-icon-power:before { content: "\ea7a"; }
|
|
180
|
+
.ez-icon-pptx:before { content: "\ea7b"; }
|
|
181
|
+
.ez-icon-preview:before { content: "\ea7c"; }
|
|
182
|
+
.ez-icon-print:before { content: "\ea7d"; }
|
|
183
|
+
.ez-icon-push-pin:before { content: "\ea7e"; }
|
|
184
|
+
.ez-icon-rateio:before { content: "\ea7f"; }
|
|
185
|
+
.ez-icon-receipt:before { content: "\ea80"; }
|
|
186
|
+
.ez-icon-recolher_card:before { content: "\ea81"; }
|
|
187
|
+
.ez-icon-remove-from-cart:before { content: "\ea82"; }
|
|
188
|
+
.ez-icon-restore:before { content: "\ea83"; }
|
|
189
|
+
.ez-icon-return:before { content: "\ea84"; }
|
|
190
|
+
.ez-icon-sankhya-place:before { content: "\ea85"; }
|
|
191
|
+
.ez-icon-save:before { content: "\ea86"; }
|
|
192
|
+
.ez-icon-search:before { content: "\ea87"; }
|
|
193
|
+
.ez-icon-settings-inverted:before { content: "\ea88"; }
|
|
194
|
+
.ez-icon-settings:before { content: "\ea89"; }
|
|
195
|
+
.ez-icon-share:before { content: "\ea8a"; }
|
|
196
|
+
.ez-icon-shield:before { content: "\ea8b"; }
|
|
197
|
+
.ez-icon-show-list:before { content: "\ea8c"; }
|
|
198
|
+
.ez-icon-show_menu:before { content: "\ea8d"; }
|
|
199
|
+
.ez-icon-south-east:before { content: "\ea8e"; }
|
|
200
|
+
.ez-icon-sync:before { content: "\ea8f"; }
|
|
201
|
+
.ez-icon-table:before { content: "\ea90"; }
|
|
202
|
+
.ez-icon-tag_code:before { content: "\ea91"; }
|
|
203
|
+
.ez-icon-text:before { content: "\ea92"; }
|
|
204
|
+
.ez-icon-timeline:before { content: "\ea93"; }
|
|
205
|
+
.ez-icon-timer-outline:before { content: "\ea94"; }
|
|
206
|
+
.ez-icon-trending-up:before { content: "\ea95"; }
|
|
207
|
+
.ez-icon-tune:before { content: "\ea96"; }
|
|
208
|
+
.ez-icon-txt:before { content: "\ea97"; }
|
|
209
|
+
.ez-icon-un-pin:before { content: "\ea98"; }
|
|
210
|
+
.ez-icon-unfold_less:before { content: "\ea99"; }
|
|
211
|
+
.ez-icon-unfold_more:before { content: "\ea9a"; }
|
|
212
|
+
.ez-icon-user-circle:before { content: "\ea9b"; }
|
|
213
|
+
.ez-icon-warning-outline:before { content: "\ea9c"; }
|
|
214
|
+
.ez-icon-warning_triangle:before { content: "\ea9d"; }
|
|
215
|
+
.ez-icon-whatshot:before { content: "\ea9e"; }
|
|
216
|
+
.ez-icon-xlsx:before { content: "\ea9f"; }
|
|
217
|
+
.ez-icon-zip:before { content: "\eaa0"; }
|
|
216
218
|
/*
|
|
217
219
|
END CSS GENERATED BY EZ-DESIGN ICONS
|
|
218
220
|
*/
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
--ez-list__item--color: var(--title--primary, #2b3a54);
|
|
22
22
|
|
|
23
23
|
/* @doc Define o estilo borda inferior do item da lista. */
|
|
24
|
-
--ez-list__item--border-bottom;
|
|
24
|
+
--ez-list__item--border-bottom: none;
|
|
25
25
|
|
|
26
26
|
/* @doc Define a cor da borda inferior do item da lista. */
|
|
27
|
-
--ez-list__item--border-bottom-color;
|
|
27
|
+
--ez-list__item--border-bottom-color: none;
|
|
28
28
|
|
|
29
29
|
/* @doc Define o estilo do texto do item da lista. */
|
|
30
30
|
--ez-list__item--font-family: var(--font-pattern, "Roboto");
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
/*@doc Define o raio da borda da barra de rolagem do componente.*/
|
|
90
90
|
--ez-list__scrollbar--border-radius: var(--border--radius-small, 6px);
|
|
91
91
|
/*@doc Define a largura da barra de rolagem do componente.*/
|
|
92
|
-
--ez-list__scrollbar--width: var(--space--
|
|
92
|
+
--ez-list__scrollbar--width: var(--space--2xs, 8px);
|
|
93
93
|
|
|
94
94
|
max-height: 100%;
|
|
95
95
|
width: 100%;
|
|
@@ -17,7 +17,6 @@ export class EzNumberInput {
|
|
|
17
17
|
this.prettyPrecision = undefined;
|
|
18
18
|
this.mode = "regular";
|
|
19
19
|
this.autoFocus = false;
|
|
20
|
-
this.noMargin = false;
|
|
21
20
|
}
|
|
22
21
|
/**
|
|
23
22
|
* Aplica o foco no campo.
|
|
@@ -176,7 +175,7 @@ export class EzNumberInput {
|
|
|
176
175
|
if (this.allowNegative) {
|
|
177
176
|
restrict += '-';
|
|
178
177
|
}
|
|
179
|
-
return (h("ez-text-input", { class: "number__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: restrict, enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, value: this._value
|
|
178
|
+
return (h("ez-text-input", { class: "number__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: restrict, enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, value: this._value }));
|
|
180
179
|
}
|
|
181
180
|
static get is() { return "ez-number-input"; }
|
|
182
181
|
static get encapsulation() { return "shadow"; }
|
|
@@ -366,24 +365,6 @@ export class EzNumberInput {
|
|
|
366
365
|
"attribute": "auto-focus",
|
|
367
366
|
"reflect": false,
|
|
368
367
|
"defaultValue": "false"
|
|
369
|
-
},
|
|
370
|
-
"noMargin": {
|
|
371
|
-
"type": "boolean",
|
|
372
|
-
"mutable": false,
|
|
373
|
-
"complexType": {
|
|
374
|
-
"original": "boolean",
|
|
375
|
-
"resolved": "boolean",
|
|
376
|
-
"references": {}
|
|
377
|
-
},
|
|
378
|
-
"required": false,
|
|
379
|
-
"optional": false,
|
|
380
|
-
"docs": {
|
|
381
|
-
"tags": [],
|
|
382
|
-
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
|
|
383
|
-
},
|
|
384
|
-
"attribute": "no-margin",
|
|
385
|
-
"reflect": false,
|
|
386
|
-
"defaultValue": "false"
|
|
387
368
|
}
|
|
388
369
|
};
|
|
389
370
|
}
|
|
@@ -25,6 +25,7 @@ export class EzSearch {
|
|
|
25
25
|
this.enabled = true;
|
|
26
26
|
this.errorMessage = undefined;
|
|
27
27
|
this.optionLoader = undefined;
|
|
28
|
+
this.contextProperties = undefined;
|
|
28
29
|
this.showSelectedValue = true;
|
|
29
30
|
this.showOptionValue = true;
|
|
30
31
|
this.suppressEmptyOption = false;
|
|
@@ -35,7 +36,6 @@ export class EzSearch {
|
|
|
35
36
|
this.listOptionsPosition = undefined;
|
|
36
37
|
this.isTextSearch = false;
|
|
37
38
|
this.ignoreLimitCharsToSearch = false;
|
|
38
|
-
this.noMargin = false;
|
|
39
39
|
this.options = undefined;
|
|
40
40
|
this.suppressSearch = false;
|
|
41
41
|
this.ensureClearButtonVisible = false;
|
|
@@ -416,7 +416,7 @@ export class EzSearch {
|
|
|
416
416
|
this._startLoading = true;
|
|
417
417
|
if (this.optionLoader) {
|
|
418
418
|
const searchArgument = { mode, argument };
|
|
419
|
-
this.updateSource(this.optionLoader(searchArgument));
|
|
419
|
+
this.updateSource(this.optionLoader(searchArgument, this.contextProperties));
|
|
420
420
|
}
|
|
421
421
|
else {
|
|
422
422
|
this.updateSource(this.options);
|
|
@@ -483,7 +483,7 @@ export class EzSearch {
|
|
|
483
483
|
mode: SearchMode.PREDICTIVE,
|
|
484
484
|
argument
|
|
485
485
|
};
|
|
486
|
-
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
486
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument, this.contextProperties));
|
|
487
487
|
if (source == undefined) {
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
@@ -722,7 +722,7 @@ export class EzSearch {
|
|
|
722
722
|
render() {
|
|
723
723
|
var _a;
|
|
724
724
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
725
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode
|
|
725
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
726
726
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
727
727
|
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
728
728
|
&& this._visibleOptions.length === 0
|
|
@@ -820,8 +820,8 @@ export class EzSearch {
|
|
|
820
820
|
"type": "unknown",
|
|
821
821
|
"mutable": false,
|
|
822
822
|
"complexType": {
|
|
823
|
-
"original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
|
|
824
|
-
"resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
|
|
823
|
+
"original": "(argument: ISearchArgument, ctxProperties?: any) => Promise<Array<IOption>> | Array<IOption> | IOption",
|
|
824
|
+
"resolved": "(argument: ISearchArgument, ctxProperties?: any) => IOption | IOption[] | Promise<IOption[]>",
|
|
825
825
|
"references": {
|
|
826
826
|
"ISearchArgument": {
|
|
827
827
|
"location": "local"
|
|
@@ -844,6 +844,23 @@ export class EzSearch {
|
|
|
844
844
|
"text": "Carrega as op\u00E7\u00F5es dinamicamente."
|
|
845
845
|
}
|
|
846
846
|
},
|
|
847
|
+
"contextProperties": {
|
|
848
|
+
"type": "any",
|
|
849
|
+
"mutable": false,
|
|
850
|
+
"complexType": {
|
|
851
|
+
"original": "any",
|
|
852
|
+
"resolved": "any",
|
|
853
|
+
"references": {}
|
|
854
|
+
},
|
|
855
|
+
"required": false,
|
|
856
|
+
"optional": true,
|
|
857
|
+
"docs": {
|
|
858
|
+
"tags": [],
|
|
859
|
+
"text": "Propriedades de contexto da aplica\u00E7\u00E3o."
|
|
860
|
+
},
|
|
861
|
+
"attribute": "context-properties",
|
|
862
|
+
"reflect": false
|
|
863
|
+
},
|
|
847
864
|
"showSelectedValue": {
|
|
848
865
|
"type": "boolean",
|
|
849
866
|
"mutable": false,
|
|
@@ -1026,24 +1043,6 @@ export class EzSearch {
|
|
|
1026
1043
|
"reflect": false,
|
|
1027
1044
|
"defaultValue": "false"
|
|
1028
1045
|
},
|
|
1029
|
-
"noMargin": {
|
|
1030
|
-
"type": "boolean",
|
|
1031
|
-
"mutable": false,
|
|
1032
|
-
"complexType": {
|
|
1033
|
-
"original": "boolean",
|
|
1034
|
-
"resolved": "boolean",
|
|
1035
|
-
"references": {}
|
|
1036
|
-
},
|
|
1037
|
-
"required": false,
|
|
1038
|
-
"optional": false,
|
|
1039
|
-
"docs": {
|
|
1040
|
-
"tags": [],
|
|
1041
|
-
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
|
|
1042
|
-
},
|
|
1043
|
-
"attribute": "no-margin",
|
|
1044
|
-
"reflect": false,
|
|
1045
|
-
"defaultValue": "false"
|
|
1046
|
-
},
|
|
1047
1046
|
"options": {
|
|
1048
1047
|
"type": "unknown",
|
|
1049
1048
|
"mutable": true,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
.skeleton {
|
|
2
|
-
|
|
3
|
-
outline: none;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
position: relative;
|
|
6
|
-
|
|
7
|
-
background:var(--skeleton-background, #eff1f6) no-repeat;
|
|
2
|
+
background: var(--skeleton-background, #eff1f6) no-repeat;
|
|
8
3
|
|
|
9
4
|
border-radius: var(--skeleton-border-radius, 4px);
|
|
10
5
|
width: var(--skeleton-width, 100%);
|
|
11
6
|
height: var(--skeleton-height, 20px);
|
|
12
7
|
display: inline-block;
|
|
13
|
-
margin-bottom: var(--skeleton-margin-bottom, 0px);
|
|
8
|
+
margin-bottom: var(--skeleton-margin-bottom, 0px);
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
outline: none;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
position: relative;
|
|
13
|
+
-webkit-will-change: transform;
|
|
14
|
+
-moz-will-change: transform;
|
|
14
15
|
will-change: transform;
|
|
15
16
|
|
|
16
17
|
&:after,
|
|
@@ -31,29 +32,31 @@
|
|
|
31
32
|
|
|
32
33
|
&.progress,
|
|
33
34
|
&.progress-dark {
|
|
35
|
+
-webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
36
|
+
-moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
37
|
+
-ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
34
38
|
animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
35
39
|
background-size: 200px 100%;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
&.progress {
|
|
39
|
-
background-image: linear-gradient(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
rgba(255, 255, 255, 0)
|
|
44
|
-
);
|
|
43
|
+
background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
|
|
44
|
+
background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
|
|
45
|
+
background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
|
|
46
|
+
background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
&.progress-dark {
|
|
48
|
-
background-image: linear-gradient(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
transparent
|
|
53
|
-
);
|
|
50
|
+
background-image: -webkit-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
|
|
51
|
+
background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
|
|
52
|
+
background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
|
|
53
|
+
background-image: linear-gradient(90deg,transparent,rgba(0, 0, 0, 0.2),transparent);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&.pulse {
|
|
57
|
+
-webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
58
|
+
-moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
59
|
+
-ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
57
60
|
animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
58
61
|
animation-delay: 0.5s;
|
|
59
62
|
}
|
|
@@ -72,23 +75,40 @@
|
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
|
|
78
|
+
@-webkit-keyframes progress {
|
|
79
|
+
0% { background-position: -200px 0; }
|
|
80
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
81
|
+
}
|
|
82
|
+
@-moz-keyframes progress {
|
|
83
|
+
0% { background-position: -200px 0; }
|
|
84
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
85
|
+
}
|
|
86
|
+
@-ms-keyframes progress {
|
|
87
|
+
0% { background-position: -200px 0; }
|
|
88
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
89
|
+
}
|
|
75
90
|
@keyframes progress {
|
|
76
|
-
0% {
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
100% {
|
|
80
|
-
background-position: calc(200px + 100%) 0;
|
|
81
|
-
}
|
|
91
|
+
0% { background-position: -200px 0; }
|
|
92
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
82
93
|
}
|
|
83
94
|
|
|
95
|
+
@-webkit-keyframes pulse {
|
|
96
|
+
0% { opacity: 1; }
|
|
97
|
+
50% { opacity: 0.4; }
|
|
98
|
+
100% { opacity: 1; }
|
|
99
|
+
}
|
|
100
|
+
@-moz-keyframes pulse {
|
|
101
|
+
0% { opacity: 1; }
|
|
102
|
+
50% { opacity: 0.4; }
|
|
103
|
+
100% { opacity: 1; }
|
|
104
|
+
}
|
|
105
|
+
@-ms-keyframes pulse {
|
|
106
|
+
0% { opacity: 1; }
|
|
107
|
+
50% { opacity: 0.4; }
|
|
108
|
+
100% { opacity: 1; }
|
|
109
|
+
}
|
|
84
110
|
@keyframes pulse {
|
|
85
|
-
0% {
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
50% {
|
|
89
|
-
opacity: 0.4;
|
|
90
|
-
}
|
|
91
|
-
100% {
|
|
92
|
-
opacity: 1;
|
|
93
|
-
}
|
|
111
|
+
0% { opacity: 1; }
|
|
112
|
+
50% { opacity: 0.4; }
|
|
113
|
+
100% { opacity: 1; }
|
|
94
114
|
}
|
|
@@ -12,13 +12,15 @@ export class SplitItem {
|
|
|
12
12
|
* Alterna a visibilidade do painel.
|
|
13
13
|
*/
|
|
14
14
|
toggleExpandItem() {
|
|
15
|
+
var _a, _b;
|
|
15
16
|
this._expanded = !this._expanded;
|
|
17
|
+
(_b = (_a = this.expandButtonRef.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.blur();
|
|
16
18
|
}
|
|
17
19
|
componentDidLoad() {
|
|
18
20
|
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
19
21
|
}
|
|
20
22
|
render() {
|
|
21
|
-
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--small ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", { size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, h("slot", null))));
|
|
23
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--small ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", { ref: el => this.expandButtonRef = el, size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, h("slot", null))));
|
|
22
24
|
}
|
|
23
25
|
static get is() { return "ez-split-item"; }
|
|
24
26
|
static get originalStyleUrls() {
|