@sankhyalabs/ezui 5.20.0-rc.7 → 5.20.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/README.md +5 -4
- package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-b136a156.js} +0 -13
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +47 -108
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item.cjs.entry.js +52 -0
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +163 -20
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +4 -10
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +137 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +16 -35
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +34 -95
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +33 -612
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +3 -21
- package/dist/cjs/ez-split-panel.cjs.entry.js +13 -16
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +6 -17
- package/dist/cjs/{index-a7b0c73d.js → index-1064511f.js} +10 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -4
- package/dist/collection/components/ez-alert-list/ez-alert-list.css +2 -16
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +46 -109
- package/dist/collection/components/ez-card-item/ez-card-item.css +3 -52
- package/dist/collection/components/ez-card-item/ez-card-item.js +3 -22
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +0 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +179 -19
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +3 -32
- package/dist/collection/components/ez-form-view/ez-form-view.css +1 -17
- package/dist/collection/components/ez-form-view/ez-form-view.js +5 -22
- 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 +3 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +2 -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 +11 -8
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +8 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +3 -1
- package/dist/collection/components/ez-grid/ez-grid.css +1 -25
- package/dist/collection/components/ez-grid/ez-grid.js +10 -67
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +5 -16
- package/dist/collection/components/ez-icon/ez-icon.css +117 -119
- package/dist/collection/components/ez-popup/ez-popup.css +5 -2
- package/dist/collection/components/ez-search/ez-search.css +0 -331
- package/dist/collection/components/ez-search/ez-search.js +55 -688
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +7 -6
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +14 -35
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +12 -62
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +2 -82
- package/dist/collection/utils/CSSVarsUtils.js +0 -13
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +326 -1090
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-a97cfa29.js} +0 -13
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +47 -108
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item.entry.js +48 -0
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +164 -21
- package/dist/esm/ez-date-input.entry.js +2 -2
- package/dist/esm/ez-date-time-input.entry.js +2 -2
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +4 -10
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-filter-input_2.entry.js +132 -0
- package/dist/esm/ez-form-view.entry.js +16 -35
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +35 -96
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +34 -613
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +3 -21
- package/dist/esm/ez-split-panel.entry.js +13 -16
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-edit.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +6 -17
- package/dist/esm/{index-baa5e267.js → index-296b8458.js} +10 -12
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e85c48d7.entry.js → p-028f264f.entry.js} +1 -1
- package/dist/ezui/{p-9f1e89c9.entry.js → p-0843df02.entry.js} +1 -1
- package/dist/ezui/{p-77a4bd35.entry.js → p-0b902469.entry.js} +1 -1
- package/dist/ezui/{p-b567fa8c.entry.js → p-12526044.entry.js} +1 -1
- package/dist/ezui/{p-20ec22c0.entry.js → p-245a44ed.entry.js} +1 -1
- package/dist/ezui/{p-a80b1287.entry.js → p-2da09f70.entry.js} +1 -1
- package/dist/ezui/{p-b041333c.entry.js → p-32b4163f.entry.js} +1 -1
- package/dist/ezui/{p-9050d2cd.entry.js → p-391de0e4.entry.js} +1 -1
- package/dist/ezui/{p-99ead599.entry.js → p-3e7cc8a4.entry.js} +1 -1
- package/dist/ezui/p-47afb974.entry.js +1 -0
- package/dist/ezui/{p-5bd5e68f.entry.js → p-52dd8b4c.entry.js} +1 -1
- package/dist/ezui/p-59bcb27c.entry.js +1 -0
- package/dist/ezui/{p-0306dff7.entry.js → p-5cef0264.entry.js} +1 -1
- package/dist/ezui/{p-85c8baae.entry.js → p-5d6f2550.entry.js} +1 -1
- package/dist/ezui/{p-1f50fa05.entry.js → p-60ba28ea.entry.js} +1 -1
- package/dist/ezui/{p-5e1d036e.entry.js → p-62304715.entry.js} +1 -1
- package/dist/ezui/{p-49456b34.entry.js → p-7319c253.entry.js} +1 -1
- package/dist/ezui/p-74049254.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-7525e604.entry.js} +1 -1
- package/dist/ezui/p-76d16a24.entry.js +1 -0
- package/dist/ezui/{p-9e11fc7b.js → p-7eb3e1a5.js} +1 -1
- package/dist/ezui/p-7fd54841.entry.js +1 -0
- package/dist/ezui/{p-784fe207.entry.js → p-81cd05c8.entry.js} +1 -1
- package/dist/ezui/{p-2a1a0e04.entry.js → p-8252d9b5.entry.js} +1 -1
- package/dist/ezui/{p-cc2dc4f4.entry.js → p-83885b21.entry.js} +1 -1
- package/dist/ezui/{p-0447d17c.entry.js → p-871c1a07.entry.js} +1 -1
- package/dist/ezui/p-87e85160.entry.js +1 -0
- package/dist/ezui/{p-1e367a93.entry.js → p-8896338b.entry.js} +2 -2
- package/dist/ezui/{p-5d86cca9.entry.js → p-95426f93.entry.js} +1 -1
- package/dist/ezui/{p-abc23d6f.entry.js → p-99692afa.entry.js} +1 -1
- package/dist/ezui/{p-44caad9a.entry.js → p-9b347f04.entry.js} +1 -1
- package/dist/ezui/{p-5d692ed1.entry.js → p-a01068e1.entry.js} +1 -1
- package/dist/ezui/p-a42fe2ce.entry.js +1 -0
- package/dist/ezui/p-af285e68.entry.js +1 -0
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-b11f035c.entry.js} +1 -1
- package/dist/ezui/p-b6867f19.entry.js +1 -0
- package/dist/ezui/{p-650e4b6d.entry.js → p-c49dbf23.entry.js} +1 -1
- package/dist/ezui/{p-555c9018.entry.js → p-ccb4ccd9.entry.js} +1 -1
- package/dist/ezui/{p-1e7a8633.entry.js → p-cd19a6f8.entry.js} +1 -1
- package/dist/ezui/{p-07cbffce.entry.js → p-d20ed286.entry.js} +1 -1
- package/dist/ezui/{p-8defa6d3.entry.js → p-d3b5228e.entry.js} +1 -1
- package/dist/ezui/p-d51aa09b.entry.js +1 -0
- package/dist/ezui/{p-a08b309b.entry.js → p-d81917fd.entry.js} +1 -1
- package/dist/ezui/{p-23a36bb6.js → p-e318d280.js} +1 -1
- package/dist/ezui/{p-af95cd16.entry.js → p-e8f88361.entry.js} +1 -1
- package/dist/ezui/{p-17be134a.entry.js → p-f4208819.entry.js} +1 -1
- package/dist/ezui/{p-6e429cff.entry.js → p-f55d75e7.entry.js} +1 -1
- package/dist/ezui/p-f8653522.entry.js +1 -0
- package/dist/ezui/{p-8becebf8.entry.js → p-fa571a4e.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +4 -33
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +0 -4
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +15 -1
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +0 -5
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -3
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -15
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -4
- package/dist/types/components/ez-search/ez-search.d.ts +10 -100
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +0 -27
- package/dist/types/components.d.ts +14 -182
- package/dist/types/utils/CSSVarsUtils.d.ts +0 -1
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +1 -2
- package/dist/types/utils/interfaces/IAction.d.ts +1 -1
- package/package.json +5 -13
- package/react/components.d.ts +0 -1
- package/react/components.js +0 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
- package/dist/cjs/ez-split-button.cjs.entry.js +0 -147
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +0 -21
- package/dist/collection/components/ez-split-button/ez-split-button.css +0 -229
- package/dist/collection/components/ez-split-button/ez-split-button.js +0 -436
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +0 -42
- package/dist/collection/utils/form/test/DataBinder.test.js +0 -9
- package/dist/esm/ez-card-item_3.entry.js +0 -177
- package/dist/esm/ez-split-button.entry.js +0 -143
- package/dist/ezui/p-072e6347.entry.js +0 -1
- package/dist/ezui/p-2eb8f73b.entry.js +0 -1
- package/dist/ezui/p-3376ad44.entry.js +0 -1
- package/dist/ezui/p-7af81663.entry.js +0 -1
- package/dist/ezui/p-7bc07c31.entry.js +0 -1
- package/dist/ezui/p-8e7031a0.entry.js +0 -1
- package/dist/ezui/p-b9fbf4e7.entry.js +0 -1
- package/dist/ezui/p-bae3d0aa.entry.js +0 -1
- package/dist/ezui/p-baf80b13.entry.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
- package/dist/ezui/p-db77a984.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/DataSourceInterceptor.d.ts +0 -8
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +0 -89
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +0 -2
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +0 -23
- package/dist/types/utils/form/test/DataBinder.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -15,13 +15,13 @@ Esse projeto é constituído por um monorepo com a seguinte hierarquia:
|
|
|
15
15
|
-- .gitlab-ci.yml
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
Observe que na raiz do ez-ui temos um packege.json que define as configurações de storybook para todos os componentes filhos dentro da hierarquia.
|
|
18
|
+
Observe que na raiz do ez-ui temos um packege.json que define as configurações de storybook para todos os componentes filhos dentro da hierarquia.
|
|
19
19
|
Cada subpasta (component1, component2) são componentes [Stencil](https://stenciljs.com/).
|
|
20
20
|
|
|
21
21
|
#### O EzUI foi baseado no [UiKit](https://xd.adobe.com/view/d45d91bf-f5a8-4814-899f-e781732807d1-810e/grid) disponibilizado pela equipe de UX da Sankhya.
|
|
22
22
|
|
|
23
23
|
## Executando o projeto
|
|
24
|
-
Para iniciar o projeto, basta ir até a pasta do componente que deseja testar (ex: ez-ui/component1) e executar o comando: `npm install && npm run dev`
|
|
24
|
+
Para iniciar o projeto, basta ir até a pasta do componente que deseja testar (ex: ez-ui/component1) e executar o comando: `npm install && npm run dev`
|
|
25
25
|
Este procedimento irá iniciar um servidor do storybook para testar o componente. A porta que o servidor estará sendo executado é apresentada no console ao final do comando.
|
|
26
26
|
|
|
27
27
|
## Padrão de commit e merge request:
|
|
@@ -41,9 +41,10 @@ Hoje estamos utilizando o padrão de semantic release baseado no [angular](https
|
|
|
41
41
|
└─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|test
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
- Na solicitação de merge request deve ter um titulo com o seguinte padrão:
|
|
44
|
+
- Na solicitação de merge request deve ter um titulo com o seguinte padrão: SKA-111 - Titulo sugestivo da minha modificação, onde, SKA-111 é id do card do jira.
|
|
45
45
|
|
|
46
46
|
## Fontes notáveis
|
|
47
|
+
|
|
47
48
|
- **ez-ui/.storybook/***: Nessa pasta temos arquivos de configuração do storybook. Essa pasta é utilizada em ambiente de produção.
|
|
48
49
|
* **ez-ui/.storybook/preview-head.html**: Esse arquivo é responsável por fazer o import de módulos dos webcomponents e dos styles globais da aplicação. Esse arquivo é utilizado em ambiente de produção.
|
|
49
50
|
- **ez-ui/.storybook-dev/***: Nessa pasta temos arquivos de configuração do storybook. Porém essa pasta é utilizada apenas em ambiente de desenvolvimento.
|
|
@@ -74,4 +75,4 @@ o build do ezui, link do react-output e ezui, build do react-output e a disponib
|
|
|
74
75
|
- [Diretrizes de documentação](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Diretrizes-de-documenta%C3%A7%C3%A3o)
|
|
75
76
|
- [Link ente projetos](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Link-ente-projetos)
|
|
76
77
|
- [Definindo bons data-element-id de testabilidade no design system](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Definindo-bons-data-element-id-de-testabilidade-no-design-system)
|
|
77
|
-
- [Criando exemplos de componentes](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Criando-exemplos-de-componentes)
|
|
78
|
+
- [Criando exemplos de componentes](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Criando-exemplos-de-componentes)
|
|
@@ -66,19 +66,6 @@ class CSSVarsUtils {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
static applyVarsGrid(host, child) {
|
|
70
|
-
if (child) {
|
|
71
|
-
[
|
|
72
|
-
"--ez-grid--min-height",
|
|
73
|
-
"--snk-grid-min-height",
|
|
74
|
-
].forEach(prop => {
|
|
75
|
-
const propValue = getComputedStyle(host).getPropertyValue(prop);
|
|
76
|
-
if (propValue !== null && propValue !== undefined) {
|
|
77
|
-
child.style.setProperty(prop, propValue);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
69
|
static applyIfExists(host, element, varName) {
|
|
83
70
|
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
84
71
|
if (prop) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
require('./ApplicationUtils-c9d1205c.js');
|
|
8
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
8
|
+
const CSSVarsUtils = require('./CSSVarsUtils-b136a156.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
11
|
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
|
-
const ezAlertListCss = ":host
|
|
8
|
+
const ezAlertListCss = ":host{display:flex;--ez-alert-list__container--width:680px;--ez-alert-list__container--height:220px;--ez-alert-list__title--font-family:var(--font-pattern, \"Roboto\");--ez-alert-list__title--font-size:var(--title--large, 20px);--ez-alert-list__title--color:var(--title--primary, #2b3a54);--ez-alert-list__title--font-weight:var(--text-weight--extra-large, 700);--ez-list__item--border-bottom:var(--border--small, 1px solid);--ez-list__item--border-bottom-color:var(--color--strokes, #DCE0E8);--ez-list__item--white-space:break-space}.alert-list__content{display:flex;flex-direction:column;gap:var(--space--xs);margin:var(--space--large, 24px);width:100%}.alert-list__container{z-index:var(--more-visible--2x, 3);display:flex;height:var(--ez-alert-list__container--height);width:var(--ez-alert-list__container--width);border-radius:var(--border--radius-medium);background-color:var(--background--xlight);box-shadow:0px 8px 24px 0px rgba(0, 38, 111, 0.1)}.alert-list__header{width:100%;display:flex;align-items:center;justify-content:space-between}.alert-list__title{font-family:var(--ez-alert-list__title--font-family);font-size:var(--ez-alert-list__title--font-size);font-weight:var(--ez-alert-list__title--font-weight);color:var(--ez-alert-list__title--color)}.alert-list__header__buttons{display:flex;gap:var(--space--xs)}.alert-list__expandable-content{overflow-y:auto;scrollbar-width:thin}";
|
|
9
9
|
|
|
10
10
|
const EzAlertList = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.alerts = [];
|
|
14
14
|
this.enableDragAndDrop = undefined;
|
|
15
|
-
this.enableExpand =
|
|
15
|
+
this.enableExpand = undefined;
|
|
16
16
|
this.itemRightSlotBuilder = undefined;
|
|
17
17
|
this.opened = true;
|
|
18
18
|
this.expanded = false;
|
|
@@ -20,128 +20,67 @@ const EzAlertList = class {
|
|
|
20
20
|
observeOpened() {
|
|
21
21
|
this.manageOverlay();
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Retorna o id do alerta a partir do título e do índice.
|
|
25
|
-
*/
|
|
26
|
-
alertId(title, index) {
|
|
27
|
-
const concatTitle = (title) => { var _a; return (_a = title === null || title === void 0 ? void 0 : title.split(' ').join('-')) !== null && _a !== void 0 ? _a : ""; };
|
|
28
|
-
return `alert-${index}-${concatTitle(title)}`;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Retorna o título do alerta a partir do id.
|
|
32
|
-
*/
|
|
33
|
-
getAlertTitle(id) {
|
|
34
|
-
var _a;
|
|
35
|
-
return (_a = this.alerts.find((alert, index) => this.alertId(alert.title, index) === id)) === null || _a === void 0 ? void 0 : _a.title;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Retorna o texto do título do alerta.
|
|
39
|
-
*/
|
|
40
|
-
getTitleText(item) {
|
|
41
|
-
var _a;
|
|
42
|
-
const title = (_a = this.getAlertTitle(item.id)) !== null && _a !== void 0 ? _a : '';
|
|
43
|
-
return `${title}${(title && item.label) ? ':' : ''}`;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Gerencia a exibição do conteúdo expandido.
|
|
47
|
-
*/
|
|
48
|
-
toggleExpandContainer() {
|
|
49
|
-
if (!this.enableExpand) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
this.expanded = !this.expanded;
|
|
53
|
-
this._container.classList.toggle('expanded', this.expanded);
|
|
54
|
-
if (this.expanded) {
|
|
55
|
-
this.updatePosition(this.getBoundingRight(), this.getBoundingBottom());
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this.updatePosition(`10px`, `10px`);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
23
|
/**
|
|
62
24
|
* Gerencia a exibição do overlay usando FloatingManager do Core.
|
|
63
25
|
*/
|
|
64
|
-
manageOverlay() {
|
|
65
|
-
if (this.opened
|
|
66
|
-
this._overlayId = core.FloatingManager.float(this._container, this._overlayRef,
|
|
26
|
+
async manageOverlay() {
|
|
27
|
+
if (this.opened) {
|
|
28
|
+
this._overlayId = core.FloatingManager.float(this._container, this._overlayRef, {
|
|
29
|
+
autoClose: false,
|
|
30
|
+
isFixed: !this.enableDragAndDrop,
|
|
31
|
+
bottom: '10px',
|
|
32
|
+
right: '10px'
|
|
33
|
+
});
|
|
67
34
|
}
|
|
68
35
|
else {
|
|
69
|
-
if (this._overlayId === undefined)
|
|
70
|
-
return;
|
|
71
36
|
core.FloatingManager.close(this._overlayId);
|
|
72
37
|
this._overlayId = undefined;
|
|
73
38
|
}
|
|
74
39
|
}
|
|
75
|
-
|
|
76
|
-
* Atualiza a posição da lista.
|
|
77
|
-
*/
|
|
78
|
-
updatePosition(right, bottom) {
|
|
79
|
-
if (this.opened) {
|
|
80
|
-
core.FloatingManager.updateFloatPosition(this._container, this._overlayRef, Object.assign(Object.assign({}, this.getFloatOptions()), { right,
|
|
81
|
-
bottom }));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
;
|
|
85
|
-
/**
|
|
86
|
-
* Retorna valores padrões do componente
|
|
87
|
-
*/
|
|
88
|
-
getFloatOptions() {
|
|
89
|
-
return {
|
|
90
|
-
autoClose: false,
|
|
91
|
-
isFixed: true,
|
|
92
|
-
bottom: '10px',
|
|
93
|
-
right: '10px',
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
;
|
|
97
|
-
/**
|
|
98
|
-
* Retorna o valor para o alinhamento horizontal do componente.
|
|
99
|
-
*/
|
|
100
|
-
getBoundingRight() {
|
|
101
|
-
const docWidth = document.body.clientWidth;
|
|
102
|
-
const boxWidth = this._container.getBoundingClientRect().width;
|
|
103
|
-
return ((docWidth - boxWidth) / 2) + 'px';
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Retorna o valor para o alinhamento vertical do componente.
|
|
107
|
-
*/
|
|
108
|
-
getBoundingBottom() {
|
|
109
|
-
const docHeight = document.body.clientHeight;
|
|
110
|
-
const boxHeight = this._container.getBoundingClientRect().height;
|
|
111
|
-
return ((docHeight - boxHeight) / 2) + 'px';
|
|
112
|
-
}
|
|
113
|
-
componentDidLoad() {
|
|
40
|
+
componentDidRender() {
|
|
114
41
|
this.manageOverlay();
|
|
115
|
-
if (this.opened
|
|
42
|
+
if (this.opened) {
|
|
116
43
|
this._container.focus();
|
|
117
44
|
}
|
|
118
45
|
}
|
|
119
46
|
componentWillLoad() {
|
|
120
47
|
this.dataElementId = core.ElementIDUtils.addIDInfo(this._element, 'EzAlertList');
|
|
121
48
|
}
|
|
49
|
+
alertId(title, index) {
|
|
50
|
+
const concatTitle = (title) => { var _a; return (_a = title === null || title === void 0 ? void 0 : title.split(' ').join('-')) !== null && _a !== void 0 ? _a : ""; };
|
|
51
|
+
return `alert-${index}-${concatTitle(title)}`;
|
|
52
|
+
}
|
|
53
|
+
getAlertTitle(id) {
|
|
54
|
+
var _a;
|
|
55
|
+
return (_a = this.alerts.find((alert, index) => this.alertId(alert.title, index) === id)) === null || _a === void 0 ? void 0 : _a.title;
|
|
56
|
+
}
|
|
57
|
+
getTitleText(item) {
|
|
58
|
+
var _a;
|
|
59
|
+
const title = (_a = this.getAlertTitle(item.id)) !== null && _a !== void 0 ? _a : '';
|
|
60
|
+
return `${title}${(title && item.label) ? ':' : ''}`;
|
|
61
|
+
}
|
|
122
62
|
render() {
|
|
123
|
-
return (index.h(index.Host, Object.assign({}, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }), this.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}) })))))) : null));
|
|
63
|
+
return (index.h(index.Host, Object.assign({}, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }), index.h("div", { ref: elem => (this._overlayRef = elem) }, index.h("div", { class: "alert-list__container", ref: elem => (this._container = elem) }, index.h("div", { class: "alert-list__content" }, index.h("div", { class: "alert-list__header" }, index.h("div", { class: "alert-list__title" }, `Avisos (${this.alerts.length})`), index.h("div", { class: "alert-list__header__buttons" }, index.h("ez-button", { mode: "icon", size: "small", iconName: "expand", "data-element-id": core.ElementIDUtils.getInternalIDInfo('expandButton'), onClick: () => { }, title: this.expanded ? 'Resumir' : 'Expandir' }), index.h("ez-button", { mode: "icon", size: "small", iconName: "close", "data-element-id": core.ElementIDUtils.getInternalIDInfo('closeButton'), onClick: () => {
|
|
64
|
+
this.opened = false;
|
|
65
|
+
}, title: 'Fechar' }))), index.h("div", { class: "alert-list__expandable-content" }, index.h("ez-list", { hoverFeedback: true, itemLeftSlotBuilder: item => {
|
|
66
|
+
return (index.h("a", { href: "#", style: {
|
|
67
|
+
fontFamily: "var(--font-pattern, 'Roboto')",
|
|
68
|
+
fontSize: 'var(--text--medium, 14px)',
|
|
69
|
+
fontWeight: 'var(--text-weight--medium, 400)',
|
|
70
|
+
color: 'var(--color--primary, #008561)',
|
|
71
|
+
marginRight: '4px',
|
|
72
|
+
cursor: 'pointer',
|
|
73
|
+
display: 'flex',
|
|
74
|
+
width: 'max-content',
|
|
75
|
+
textDecoration: 'none'
|
|
76
|
+
} }, this.getTitleText(item)));
|
|
77
|
+
}, dataSource: this.alerts.map((alert, index) => {
|
|
78
|
+
var _a;
|
|
79
|
+
return {
|
|
80
|
+
id: this.alertId(alert.title, index),
|
|
81
|
+
label: (_a = alert.detail) !== null && _a !== void 0 ? _a : "",
|
|
82
|
+
};
|
|
83
|
+
}) })))))));
|
|
145
84
|
}
|
|
146
85
|
get _element() { return index.getElement(this); }
|
|
147
86
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezAlertCss = ":host{--ez-alert-alert-container--padding-up-down:var(--space--small, 6px);--ez-alert-alert-container--padding-right-left:var(--space--medium, 12px);--ez-alert-alert-container--gap:var(--space--medium, 12px);--ez-alert-alert-container--border-radius:var(--border--radius-medium, 12px);--ez-alert-alert-container--font-color-warn:var(--color--alert-warning-900, #8C6B00);--ez-alert-alert-container--icon-warn:var(--color--alert-warning-900, #8C6B00);--ez-alert-alert-container--background-color-warn:var(--color--alert-warning-200, #FFF7D5);--ez-alert-alert-container--font-color-critical:var(--color--alert-error, #BD0025);--ez-alert-alert-container--icon-critical:var(--color--alert-error, #BD0025);--ez-alert-alert-container--background-color-critical:var(--color--alert-error-200, #F7E0E5);--ez-alert-alert-container--font-color-success:var(--color--alert-success, #157A00);--ez-alert-alert-container--icon-success:var(--color--alert-success, #157A00);--ez-alert-alert-container--background-color-success:var(--color--alert-success-200, #E7F6E0);font-size:var(--text--small, 12px);font-family:var(--font-pattern, \"Roboto\");width:100%;hyphens:auto;display:block}.alert-container{display:flex;align-items:center;gap:var(--ez-alert-alert-container--gap);padding:var(--ez-alert-alert-container--padding-up-down) var(--ez-alert-alert-container--padding-right-left);border-radius:var(--ez-alert-alert-container--border-radius)}.warn{background-color:var(--ez-alert-alert-container--background-color-warn);color:var(--ez-alert-alert-container--font-color-warn)}.critical{background-color:var(--ez-alert-alert-container--background-color-critical);color:var(--ez-alert-alert-container--font-color-critical)}.success{background-color:var(--ez-alert-alert-container--background-color-success);color:var(--ez-alert-alert-container--font-color-success)}ez-icon{--ez-icon--color:inherit}.alert-container__icon-warn{--ez-icon--color:var(--ez-alert-alert-container--icon-warn)}.alert-container__icon-critical{--ez-icon--color:var(--ez-alert-alert-container--icon-critical)}.alert-container__icon-success{--ez-icon--color:var(--ez-alert-alert-container--icon-success)}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600);--ez-button--hover--background-color:var(--background--medium, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{display:flex;flex-direction:column;z-index:var(--more-visible, 2);background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:'';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset;color:var(--ez-calendar--color)}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;padding:0px;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto;scrollbar-width:none}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{display:flex;justify-content:space-between;padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
|
|
8
|
+
const ezCardItemCss = ":host{--ez-card-item--font-size:var(--text--medium, 14px);--ez-card-item--font-family:var(--font-pattern, Arial);--ez-card-item--font-weight:var(--text-weight--medium, 400);--ez-card-item--font-weight-large:var(--text-weight--large, 600);--ez-card-item--color:var(--title--primary, #2B3A54);--ez-card-item__key--color:var(--text--primary, #626e82);--ez-card-item__detail-label--color:var(--text--secondary, #A2ABB9);--ez-card-item__detail--padding-bottom:var(--space--extra-small, 3px);--ez-card-item__title--padding-bottom:var(--space--extra-small, 3px);--ez-card-item__highlight--color:var(--color--primary-300, #E2F4EF);width:100%;display:flex;cursor:pointer}.card-item{display:flex;flex-direction:column;width:100%;cursor:pointer;padding:12px;z-index:0;position:relative}.card-item:hover{background:#F0F3F7;border-radius:12px}.card-item__title{display:flex;align-items:center;line-height:18px;cursor:pointer;font-size:var(--ez-card-item--font-size);font-family:var(--ez-card-item--font-family);font-weight:var(--ez-card-item--font-weight-large);color:var(--ez-card-item--color);padding-bottom:var(--ez-card-item__title--padding-bottom);gap:var(--space--small, 6px)}.card-item__key{color:var(--ez-card-item__key--color)}.card-item__details{display:flex;cursor:pointer;justify-content:space-between;gap:var(--space--small, 6px)}.card-item__details-left{cursor:pointer;width:50%}.card-item__details-right{width:50%;cursor:pointer}.card-item__detail:not(:last-child){cursor:pointer;padding-bottom:var(--ez-card-item__detail--padding-bottom)}.card-item__detail-label{cursor:pointer;font-size:var(--ez-card-item--font-size);font-family:var(--ez-card-item--font-family);font-weight:var(--ez-card-item--font-weight);color:var(--ez-card-item__detail-label--color)}.card-item__detail-value{cursor:pointer;line-break:anywhere;font-size:var(--ez-card-item--font-size);font-family:var(--ez-card-item--font-family);font-weight:var(--ez-card-item--font-weight);color:var(--ez-card-item--color)}.card-item__highlight{position:relative;border-radius:8px;z-index:-1;background-color:var(--ez-card-item__highlight--color);outline:2px solid var(--ez-card-item__highlight--color);box-shadow:-4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color)}";
|
|
9
|
+
|
|
10
|
+
const EzCardItem = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.ezClick = index.createEvent(this, "ezClick", 7);
|
|
14
|
+
this.item = undefined;
|
|
15
|
+
}
|
|
16
|
+
componentWillRender() {
|
|
17
|
+
this.createDetailList();
|
|
18
|
+
}
|
|
19
|
+
componentDidLoad() {
|
|
20
|
+
var _a, _b;
|
|
21
|
+
const dataInfo = { id: core.StringUtils.toCamelCase(((_a = this.item) === null || _a === void 0 ? void 0 : _a.key) || ((_b = this.item) === null || _b === void 0 ? void 0 : _b.title) || "") };
|
|
22
|
+
core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
23
|
+
}
|
|
24
|
+
createDetailList() {
|
|
25
|
+
var _a, _b, _c;
|
|
26
|
+
this._details = { detailsLeft: [], detailsRight: [] };
|
|
27
|
+
let cont = 0;
|
|
28
|
+
if ((_a = this.item) === null || _a === void 0 ? void 0 : _a.details) {
|
|
29
|
+
for (const attribute in this.item.details) {
|
|
30
|
+
cont < 3 ?
|
|
31
|
+
this._details.detailsLeft.push({ label: attribute, value: (_b = this.item.details[attribute]) === null || _b === void 0 ? void 0 : _b.toString() }) :
|
|
32
|
+
this._details.detailsRight.push({ label: attribute, value: (_c = this.item.details[attribute]) === null || _c === void 0 ? void 0 : _c.toString() });
|
|
33
|
+
cont++;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
buildDetailContent(detail) {
|
|
38
|
+
return index.h("div", { class: "card-item__detail" }, index.h("label", { class: "card-item__detail-label" }, detail.label), ": ", index.h("label", { class: "card-item__detail-value", innerHTML: detail.value }));
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return (index.h(index.Host, null, this.item &&
|
|
42
|
+
index.h("div", { class: "card-item", onClick: () => { this.ezClick.emit(this.item); } }, index.h("label", { class: "card-item__title" }, index.h("span", { class: "card-item__key", innerHTML: this.item.key }), index.h("span", { innerHTML: this.item.title })), index.h("div", { class: "card-item__details" }, index.h("div", { class: "card-item__details-left" }, this._details.detailsLeft.map(detail => {
|
|
43
|
+
return this.buildDetailContent(detail);
|
|
44
|
+
})), index.h("div", { class: "card-item__details-right" }, this._details.detailsRight.map(detail => {
|
|
45
|
+
return this.buildDetailContent(detail);
|
|
46
|
+
}))))));
|
|
47
|
+
}
|
|
48
|
+
get _element() { return index.getElement(this); }
|
|
49
|
+
};
|
|
50
|
+
EzCardItem.style = ezCardItemCss;
|
|
51
|
+
|
|
52
|
+
exports.ez_card_item = EzCardItem;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezChipCss = ":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container:focus{outline:var(--border--medium) var(--ez-label-chip__label__container--default--border-color--active)}.label__container--disabled:hover{cursor:default;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__content__icon{display:flex;cursor:pointer;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--row-reverse{flex-direction:row-reverse}.label__container .btn-close{padding:0px 0px 0px 8px}.label__container--row-reverse .btn-close{padding:0px 8px 0px 0px}.cursor-disable{cursor:default}ez-icon{--ez-icon--color:inherit}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
|
|
8
8
|
require('./DialogType-2114c337.js');
|