@ngx-smz/core 21.10.0-next.25 → 21.10.0-next.26
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/fesm2022/ngx-smz-core-accordion.entry-eJx4b8sc.mjs +207 -0
- package/fesm2022/ngx-smz-core-accordion.entry-eJx4b8sc.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-auto-complete.entry-Dae5b9RV.mjs +177 -0
- package/fesm2022/ngx-smz-core-auto-complete.entry-Dae5b9RV.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-badge.entry-B41_dpHY.mjs +161 -0
- package/fesm2022/ngx-smz-core-badge.entry-B41_dpHY.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-block-ui.entry-CIHcYs_K.mjs +216 -0
- package/fesm2022/ngx-smz-core-block-ui.entry-CIHcYs_K.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-button.entry-BnuvjYDb.mjs +115 -0
- package/fesm2022/ngx-smz-core-button.entry-BnuvjYDb.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-card.entry-y1HBCXvH.mjs +246 -0
- package/fesm2022/ngx-smz-core-card.entry-y1HBCXvH.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-checkbox.entry-BXep3014.mjs +150 -0
- package/fesm2022/ngx-smz-core-checkbox.entry-BXep3014.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-color-picker.entry-DFoq8VVR.mjs +104 -0
- package/fesm2022/ngx-smz-core-color-picker.entry-DFoq8VVR.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-data-view.entry-7a8EK3iw.mjs +269 -0
- package/fesm2022/ngx-smz-core-data-view.entry-7a8EK3iw.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-date-picker.entry-BkHkYYlp.mjs +283 -0
- package/fesm2022/ngx-smz-core-date-picker.entry-BkHkYYlp.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-dialog.entry-DTXyU2ec.mjs +160 -0
- package/fesm2022/ngx-smz-core-dialog.entry-DTXyU2ec.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-divider.entry-BA72_mSC.mjs +154 -0
- package/fesm2022/ngx-smz-core-divider.entry-BA72_mSC.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-drawer.entry-D-hukt8J.mjs +97 -0
- package/fesm2022/ngx-smz-core-drawer.entry-D-hukt8J.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-file-upload.entry-C0GT7-RQ.mjs +87 -0
- package/fesm2022/ngx-smz-core-file-upload.entry-C0GT7-RQ.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-float-label.entry-BVY4Wc8t.mjs +300 -0
- package/fesm2022/ngx-smz-core-float-label.entry-BVY4Wc8t.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-gallery-entry-host.component-BEFQ6Bo3.mjs +90 -0
- package/fesm2022/ngx-smz-core-gallery-entry-host.component-BEFQ6Bo3.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-gallery-index.component-DhvAR0zL.mjs +56 -0
- package/fesm2022/ngx-smz-core-gallery-index.component-DhvAR0zL.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-icon-field.entry-Da7XWGW4.mjs +180 -0
- package/fesm2022/ngx-smz-core-icon-field.entry-Da7XWGW4.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-icon.entry-C5ZyOSTK.mjs +162 -0
- package/fesm2022/ngx-smz-core-icon.entry-C5ZyOSTK.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-input-mask.entry-Dgebm0ZX.mjs +98 -0
- package/fesm2022/ngx-smz-core-input-mask.entry-Dgebm0ZX.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-input-number.entry-BklaVzvh.mjs +120 -0
- package/fesm2022/ngx-smz-core-input-number.entry-BklaVzvh.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-input.entry-CqTD4MoY.mjs +161 -0
- package/fesm2022/ngx-smz-core-input.entry-CqTD4MoY.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-listbox.entry-fDAZ9xHZ.mjs +189 -0
- package/fesm2022/ngx-smz-core-listbox.entry-fDAZ9xHZ.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-menu.entry-DpETH4gH.mjs +169 -0
- package/fesm2022/ngx-smz-core-menu.entry-DpETH4gH.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-message.entry-C0n3DQoP.mjs +117 -0
- package/fesm2022/ngx-smz-core-message.entry-C0n3DQoP.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-multi-select.entry-C-v_7eTj.mjs +185 -0
- package/fesm2022/ngx-smz-core-multi-select.entry-C-v_7eTj.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-paginator.entry-y8FSSbG1.mjs +294 -0
- package/fesm2022/ngx-smz-core-paginator.entry-y8FSSbG1.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-panel.entry-DNtKjOf3.mjs +264 -0
- package/fesm2022/ngx-smz-core-panel.entry-DNtKjOf3.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-password.entry-tqK4d6HI.mjs +111 -0
- package/fesm2022/ngx-smz-core-password.entry-tqK4d6HI.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-pick-list.entry-BTqJ2p0_.mjs +135 -0
- package/fesm2022/ngx-smz-core-pick-list.entry-BTqJ2p0_.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-popover.entry-P5gJ7hgR.mjs +102 -0
- package/fesm2022/ngx-smz-core-popover.entry-P5gJ7hgR.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-progress-bar.entry-BtYVsSBc.mjs +136 -0
- package/fesm2022/ngx-smz-core-progress-bar.entry-BtYVsSBc.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-progress-spinner.entry-Be-nry65.mjs +133 -0
- package/fesm2022/ngx-smz-core-progress-spinner.entry-Be-nry65.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-radio-button.entry-kq6y5-7C.mjs +157 -0
- package/fesm2022/ngx-smz-core-radio-button.entry-kq6y5-7C.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-select-button.entry-qL4LqSJy.mjs +137 -0
- package/fesm2022/ngx-smz-core-select-button.entry-qL4LqSJy.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-select.entry-B2EwkXCm.mjs +182 -0
- package/fesm2022/ngx-smz-core-select.entry-B2EwkXCm.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-skeleton.entry-DskIePCj.mjs +170 -0
- package/fesm2022/ngx-smz-core-skeleton.entry-DskIePCj.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-splitter.entry-DBpMsMiA.mjs +315 -0
- package/fesm2022/ngx-smz-core-splitter.entry-DBpMsMiA.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-tabs.entry-CDVgGwpr.mjs +320 -0
- package/fesm2022/ngx-smz-core-tabs.entry-CDVgGwpr.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-tag.entry-BILUwPN4.mjs +107 -0
- package/fesm2022/ngx-smz-core-tag.entry-BILUwPN4.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-timeline.entry-zGNVU6MT.mjs +281 -0
- package/fesm2022/ngx-smz-core-timeline.entry-zGNVU6MT.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-toast.entry-Bg84Dusm.mjs +173 -0
- package/fesm2022/ngx-smz-core-toast.entry-Bg84Dusm.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-toggle-switch.entry-BL6WW8tz.mjs +83 -0
- package/fesm2022/ngx-smz-core-toggle-switch.entry-BL6WW8tz.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-toolbar.entry-DapJhW_n.mjs +263 -0
- package/fesm2022/ngx-smz-core-toolbar.entry-DapJhW_n.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-tooltip.entry-7Fi6DNQW.mjs +186 -0
- package/fesm2022/ngx-smz-core-tooltip.entry-7Fi6DNQW.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-tree-select.entry-DNaXIQi9.mjs +176 -0
- package/fesm2022/ngx-smz-core-tree-select.entry-DNaXIQi9.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-tree-table.entry-B-0f2_5K.mjs +585 -0
- package/fesm2022/ngx-smz-core-tree-table.entry-B-0f2_5K.mjs.map +1 -0
- package/fesm2022/ngx-smz-core-tree.entry-DPnWM-HQ.mjs +380 -0
- package/fesm2022/ngx-smz-core-tree.entry-DPnWM-HQ.mjs.map +1 -0
- package/fesm2022/ngx-smz-core.mjs +266 -4
- package/fesm2022/ngx-smz-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-smz-core.d.ts +86 -4
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SmzBlockUiComponent, SmzButtonComponent, SmzProgressSpinnerComponent } from '@ngx-smz/ui-kit';
|
|
4
|
+
import { SmzGalleryCaseComponent, SmzGallerySectionComponent } from './ngx-smz-core.mjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Galeria: bloqueio de interação. A máscara é absoluta dentro do elemento bloqueado (o pai ou o `target`), nunca a
|
|
8
|
+
* página inteira, então os estados bloqueados ficam lado a lado na cena `default`.
|
|
9
|
+
*/
|
|
10
|
+
class BlockUiGalleryEntryComponent {
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: BlockUiGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: BlockUiGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-block-ui-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
13
|
+
<smz-gallery-section label="Bloqueando o próprio pai (sem target)" [columns]="2">
|
|
14
|
+
<smz-gallery-case label="desbloqueado">
|
|
15
|
+
<div class="flex w-full flex-col gap-3 bg-ui-surface-2 p-4">
|
|
16
|
+
<span class="text-ui-md text-ui-fg">Pedido nº 1042 · Maria Souza</span>
|
|
17
|
+
<span class="text-ui-sm text-ui-fg-muted">3 itens · R$ 248,90</span>
|
|
18
|
+
<div class="flex gap-2">
|
|
19
|
+
<button smzButton type="button" label="Aprovar"></button>
|
|
20
|
+
<button smzButton type="button" label="Recusar" variant="outlined" severity="danger"></button>
|
|
21
|
+
</div>
|
|
22
|
+
<ui-block-ui [blocked]="false"><i class="fa-solid fa-lock text-ui-xl" aria-hidden="true"></i></ui-block-ui>
|
|
23
|
+
</div>
|
|
24
|
+
</smz-gallery-case>
|
|
25
|
+
<smz-gallery-case label="bloqueado · sem conteúdo">
|
|
26
|
+
<div class="flex w-full flex-col gap-3 bg-ui-surface-2 p-4">
|
|
27
|
+
<span class="text-ui-md text-ui-fg">Pedido nº 1042 · Maria Souza</span>
|
|
28
|
+
<span class="text-ui-sm text-ui-fg-muted">3 itens · R$ 248,90</span>
|
|
29
|
+
<div class="flex gap-2">
|
|
30
|
+
<button smzButton type="button" label="Aprovar"></button>
|
|
31
|
+
<button smzButton type="button" label="Recusar" variant="outlined" severity="danger"></button>
|
|
32
|
+
</div>
|
|
33
|
+
<ui-block-ui blocked />
|
|
34
|
+
</div>
|
|
35
|
+
</smz-gallery-case>
|
|
36
|
+
<smz-gallery-case label="bloqueado · ícone">
|
|
37
|
+
<div class="flex w-full flex-col gap-3 bg-ui-surface-2 p-4">
|
|
38
|
+
<span class="text-ui-md text-ui-fg">Pedido nº 1042 · Maria Souza</span>
|
|
39
|
+
<span class="text-ui-sm text-ui-fg-muted">3 itens · R$ 248,90</span>
|
|
40
|
+
<div class="flex gap-2">
|
|
41
|
+
<button smzButton type="button" label="Aprovar"></button>
|
|
42
|
+
<button smzButton type="button" label="Recusar" variant="outlined" severity="danger"></button>
|
|
43
|
+
</div>
|
|
44
|
+
<ui-block-ui blocked><i class="fa-solid fa-lock text-ui-xl" aria-hidden="true"></i></ui-block-ui>
|
|
45
|
+
</div>
|
|
46
|
+
</smz-gallery-case>
|
|
47
|
+
<smz-gallery-case label="bloqueado · spinner e texto">
|
|
48
|
+
<div class="flex w-full flex-col gap-3 bg-ui-surface-2 p-4">
|
|
49
|
+
<span class="text-ui-md text-ui-fg">Pedido nº 1042 · Maria Souza</span>
|
|
50
|
+
<span class="text-ui-sm text-ui-fg-muted">3 itens · R$ 248,90</span>
|
|
51
|
+
<div class="flex gap-2">
|
|
52
|
+
<button smzButton type="button" label="Aprovar"></button>
|
|
53
|
+
<button smzButton type="button" label="Recusar" variant="outlined" severity="danger"></button>
|
|
54
|
+
</div>
|
|
55
|
+
<ui-block-ui blocked>
|
|
56
|
+
<span class="inline-flex items-center gap-2 text-ui-md">
|
|
57
|
+
<ui-progress-spinner class="h-6 w-6" />
|
|
58
|
+
Salvando...
|
|
59
|
+
</span>
|
|
60
|
+
</ui-block-ui>
|
|
61
|
+
</div>
|
|
62
|
+
</smz-gallery-case>
|
|
63
|
+
</smz-gallery-section>
|
|
64
|
+
|
|
65
|
+
<smz-gallery-section label="Bloqueando um alvo (target)" [columns]="2">
|
|
66
|
+
<smz-gallery-case label="target · desbloqueado">
|
|
67
|
+
<div class="flex w-full flex-col gap-3">
|
|
68
|
+
<div #freeTarget class="flex flex-col gap-2 bg-ui-surface-2 p-4">
|
|
69
|
+
<span class="text-ui-md text-ui-fg">Painel alvo</span>
|
|
70
|
+
<span class="text-ui-sm text-ui-fg-muted">Continua interativo.</span>
|
|
71
|
+
</div>
|
|
72
|
+
<span class="text-ui-sm text-ui-fg-muted">Área fora do alvo.</span>
|
|
73
|
+
<ui-block-ui [target]="freeTarget" [blocked]="false"><i class="fa-solid fa-lock text-ui-xl" aria-hidden="true"></i></ui-block-ui>
|
|
74
|
+
</div>
|
|
75
|
+
</smz-gallery-case>
|
|
76
|
+
<smz-gallery-case label="target · bloqueado (só o painel alvo)">
|
|
77
|
+
<div class="flex w-full flex-col gap-3">
|
|
78
|
+
<div #lockedTarget class="flex flex-col gap-2 bg-ui-surface-2 p-4">
|
|
79
|
+
<span class="text-ui-md text-ui-fg">Painel alvo</span>
|
|
80
|
+
<span class="text-ui-sm text-ui-fg-muted">Coberto pela máscara.</span>
|
|
81
|
+
</div>
|
|
82
|
+
<span class="text-ui-sm text-ui-fg-muted">Área fora do alvo, sem máscara.</span>
|
|
83
|
+
<ui-block-ui [target]="lockedTarget" blocked><i class="fa-solid fa-lock text-ui-xl" aria-hidden="true"></i></ui-block-ui>
|
|
84
|
+
</div>
|
|
85
|
+
</smz-gallery-case>
|
|
86
|
+
<smz-gallery-case label="target · bloqueado · área alta">
|
|
87
|
+
<div class="flex w-full flex-col gap-3">
|
|
88
|
+
<div #tallTarget class="flex h-48 flex-col gap-2 bg-ui-surface-2 p-4">
|
|
89
|
+
<span class="text-ui-md text-ui-fg">Relatório mensal</span>
|
|
90
|
+
<span class="text-ui-sm text-ui-fg-muted">A máscara cobre a altura inteira e centraliza o conteúdo.</span>
|
|
91
|
+
</div>
|
|
92
|
+
<ui-block-ui [target]="tallTarget" blocked>
|
|
93
|
+
<ui-progress-spinner class="h-12 w-12" />
|
|
94
|
+
</ui-block-ui>
|
|
95
|
+
</div>
|
|
96
|
+
</smz-gallery-case>
|
|
97
|
+
<smz-gallery-case label="target · bloqueado · sobre campo de formulário">
|
|
98
|
+
<div class="flex w-full flex-col gap-3">
|
|
99
|
+
<div #formTarget class="flex items-center gap-2 bg-ui-surface-2 p-4">
|
|
100
|
+
<button smzButton type="button" label="Enviar" icon="fa-solid fa-paper-plane"></button>
|
|
101
|
+
<button smzButton type="button" label="Cancelar" variant="text" severity="secondary"></button>
|
|
102
|
+
</div>
|
|
103
|
+
<ui-block-ui [target]="formTarget" blocked />
|
|
104
|
+
</div>
|
|
105
|
+
</smz-gallery-case>
|
|
106
|
+
</smz-gallery-section>
|
|
107
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmzBlockUiComponent, selector: "ui-block-ui", inputs: ["target", "blocked"] }, { kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "component", type: SmzProgressSpinnerComponent, selector: "ui-progress-spinner", inputs: ["strokeWidth"] }, { kind: "component", type: SmzGalleryCaseComponent, selector: "smz-gallery-case", inputs: ["label", "force", "target"] }, { kind: "component", type: SmzGallerySectionComponent, selector: "smz-gallery-section", inputs: ["label", "columns"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
108
|
+
}
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: BlockUiGalleryEntryComponent, decorators: [{
|
|
110
|
+
type: Component,
|
|
111
|
+
args: [{
|
|
112
|
+
selector: 'smz-gallery-block-ui-entry',
|
|
113
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
114
|
+
imports: [SmzBlockUiComponent, SmzButtonComponent, SmzProgressSpinnerComponent, SmzGalleryCaseComponent, SmzGallerySectionComponent],
|
|
115
|
+
host: { class: 'flex flex-col gap-8' },
|
|
116
|
+
template: `
|
|
117
|
+
<smz-gallery-section label="Bloqueando o próprio pai (sem target)" [columns]="2">
|
|
118
|
+
<smz-gallery-case label="desbloqueado">
|
|
119
|
+
<div class="flex w-full flex-col gap-3 bg-ui-surface-2 p-4">
|
|
120
|
+
<span class="text-ui-md text-ui-fg">Pedido nº 1042 · Maria Souza</span>
|
|
121
|
+
<span class="text-ui-sm text-ui-fg-muted">3 itens · R$ 248,90</span>
|
|
122
|
+
<div class="flex gap-2">
|
|
123
|
+
<button smzButton type="button" label="Aprovar"></button>
|
|
124
|
+
<button smzButton type="button" label="Recusar" variant="outlined" severity="danger"></button>
|
|
125
|
+
</div>
|
|
126
|
+
<ui-block-ui [blocked]="false"><i class="fa-solid fa-lock text-ui-xl" aria-hidden="true"></i></ui-block-ui>
|
|
127
|
+
</div>
|
|
128
|
+
</smz-gallery-case>
|
|
129
|
+
<smz-gallery-case label="bloqueado · sem conteúdo">
|
|
130
|
+
<div class="flex w-full flex-col gap-3 bg-ui-surface-2 p-4">
|
|
131
|
+
<span class="text-ui-md text-ui-fg">Pedido nº 1042 · Maria Souza</span>
|
|
132
|
+
<span class="text-ui-sm text-ui-fg-muted">3 itens · R$ 248,90</span>
|
|
133
|
+
<div class="flex gap-2">
|
|
134
|
+
<button smzButton type="button" label="Aprovar"></button>
|
|
135
|
+
<button smzButton type="button" label="Recusar" variant="outlined" severity="danger"></button>
|
|
136
|
+
</div>
|
|
137
|
+
<ui-block-ui blocked />
|
|
138
|
+
</div>
|
|
139
|
+
</smz-gallery-case>
|
|
140
|
+
<smz-gallery-case label="bloqueado · ícone">
|
|
141
|
+
<div class="flex w-full flex-col gap-3 bg-ui-surface-2 p-4">
|
|
142
|
+
<span class="text-ui-md text-ui-fg">Pedido nº 1042 · Maria Souza</span>
|
|
143
|
+
<span class="text-ui-sm text-ui-fg-muted">3 itens · R$ 248,90</span>
|
|
144
|
+
<div class="flex gap-2">
|
|
145
|
+
<button smzButton type="button" label="Aprovar"></button>
|
|
146
|
+
<button smzButton type="button" label="Recusar" variant="outlined" severity="danger"></button>
|
|
147
|
+
</div>
|
|
148
|
+
<ui-block-ui blocked><i class="fa-solid fa-lock text-ui-xl" aria-hidden="true"></i></ui-block-ui>
|
|
149
|
+
</div>
|
|
150
|
+
</smz-gallery-case>
|
|
151
|
+
<smz-gallery-case label="bloqueado · spinner e texto">
|
|
152
|
+
<div class="flex w-full flex-col gap-3 bg-ui-surface-2 p-4">
|
|
153
|
+
<span class="text-ui-md text-ui-fg">Pedido nº 1042 · Maria Souza</span>
|
|
154
|
+
<span class="text-ui-sm text-ui-fg-muted">3 itens · R$ 248,90</span>
|
|
155
|
+
<div class="flex gap-2">
|
|
156
|
+
<button smzButton type="button" label="Aprovar"></button>
|
|
157
|
+
<button smzButton type="button" label="Recusar" variant="outlined" severity="danger"></button>
|
|
158
|
+
</div>
|
|
159
|
+
<ui-block-ui blocked>
|
|
160
|
+
<span class="inline-flex items-center gap-2 text-ui-md">
|
|
161
|
+
<ui-progress-spinner class="h-6 w-6" />
|
|
162
|
+
Salvando...
|
|
163
|
+
</span>
|
|
164
|
+
</ui-block-ui>
|
|
165
|
+
</div>
|
|
166
|
+
</smz-gallery-case>
|
|
167
|
+
</smz-gallery-section>
|
|
168
|
+
|
|
169
|
+
<smz-gallery-section label="Bloqueando um alvo (target)" [columns]="2">
|
|
170
|
+
<smz-gallery-case label="target · desbloqueado">
|
|
171
|
+
<div class="flex w-full flex-col gap-3">
|
|
172
|
+
<div #freeTarget class="flex flex-col gap-2 bg-ui-surface-2 p-4">
|
|
173
|
+
<span class="text-ui-md text-ui-fg">Painel alvo</span>
|
|
174
|
+
<span class="text-ui-sm text-ui-fg-muted">Continua interativo.</span>
|
|
175
|
+
</div>
|
|
176
|
+
<span class="text-ui-sm text-ui-fg-muted">Área fora do alvo.</span>
|
|
177
|
+
<ui-block-ui [target]="freeTarget" [blocked]="false"><i class="fa-solid fa-lock text-ui-xl" aria-hidden="true"></i></ui-block-ui>
|
|
178
|
+
</div>
|
|
179
|
+
</smz-gallery-case>
|
|
180
|
+
<smz-gallery-case label="target · bloqueado (só o painel alvo)">
|
|
181
|
+
<div class="flex w-full flex-col gap-3">
|
|
182
|
+
<div #lockedTarget class="flex flex-col gap-2 bg-ui-surface-2 p-4">
|
|
183
|
+
<span class="text-ui-md text-ui-fg">Painel alvo</span>
|
|
184
|
+
<span class="text-ui-sm text-ui-fg-muted">Coberto pela máscara.</span>
|
|
185
|
+
</div>
|
|
186
|
+
<span class="text-ui-sm text-ui-fg-muted">Área fora do alvo, sem máscara.</span>
|
|
187
|
+
<ui-block-ui [target]="lockedTarget" blocked><i class="fa-solid fa-lock text-ui-xl" aria-hidden="true"></i></ui-block-ui>
|
|
188
|
+
</div>
|
|
189
|
+
</smz-gallery-case>
|
|
190
|
+
<smz-gallery-case label="target · bloqueado · área alta">
|
|
191
|
+
<div class="flex w-full flex-col gap-3">
|
|
192
|
+
<div #tallTarget class="flex h-48 flex-col gap-2 bg-ui-surface-2 p-4">
|
|
193
|
+
<span class="text-ui-md text-ui-fg">Relatório mensal</span>
|
|
194
|
+
<span class="text-ui-sm text-ui-fg-muted">A máscara cobre a altura inteira e centraliza o conteúdo.</span>
|
|
195
|
+
</div>
|
|
196
|
+
<ui-block-ui [target]="tallTarget" blocked>
|
|
197
|
+
<ui-progress-spinner class="h-12 w-12" />
|
|
198
|
+
</ui-block-ui>
|
|
199
|
+
</div>
|
|
200
|
+
</smz-gallery-case>
|
|
201
|
+
<smz-gallery-case label="target · bloqueado · sobre campo de formulário">
|
|
202
|
+
<div class="flex w-full flex-col gap-3">
|
|
203
|
+
<div #formTarget class="flex items-center gap-2 bg-ui-surface-2 p-4">
|
|
204
|
+
<button smzButton type="button" label="Enviar" icon="fa-solid fa-paper-plane"></button>
|
|
205
|
+
<button smzButton type="button" label="Cancelar" variant="text" severity="secondary"></button>
|
|
206
|
+
</div>
|
|
207
|
+
<ui-block-ui [target]="formTarget" blocked />
|
|
208
|
+
</div>
|
|
209
|
+
</smz-gallery-case>
|
|
210
|
+
</smz-gallery-section>
|
|
211
|
+
`,
|
|
212
|
+
}]
|
|
213
|
+
}] });
|
|
214
|
+
|
|
215
|
+
export { BlockUiGalleryEntryComponent };
|
|
216
|
+
//# sourceMappingURL=ngx-smz-core-block-ui.entry-CIHcYs_K.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-core-block-ui.entry-CIHcYs_K.mjs","sources":["../../../projects/ngx-smz-ui/src/lib/modules/smz-design-system/gallery/entries/kit/block-ui.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { SmzBlockUiComponent, SmzButtonComponent, SmzProgressSpinnerComponent } from '@ngx-smz/ui-kit';\nimport { SmzGalleryCaseComponent } from '../../gallery-case.component';\nimport { SmzGallerySectionComponent } from '../../gallery-section.component';\n\n/**\n * Galeria: bloqueio de interação. A máscara é absoluta dentro do elemento bloqueado (o pai ou o `target`), nunca a\n * página inteira, então os estados bloqueados ficam lado a lado na cena `default`.\n */\n@Component({\n selector: 'smz-gallery-block-ui-entry',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmzBlockUiComponent, SmzButtonComponent, SmzProgressSpinnerComponent, SmzGalleryCaseComponent, SmzGallerySectionComponent],\n host: { class: 'flex flex-col gap-8' },\n template: `\n <smz-gallery-section label=\"Bloqueando o próprio pai (sem target)\" [columns]=\"2\">\n <smz-gallery-case label=\"desbloqueado\">\n <div class=\"flex w-full flex-col gap-3 bg-ui-surface-2 p-4\">\n <span class=\"text-ui-md text-ui-fg\">Pedido nº 1042 · Maria Souza</span>\n <span class=\"text-ui-sm text-ui-fg-muted\">3 itens · R$ 248,90</span>\n <div class=\"flex gap-2\">\n <button smzButton type=\"button\" label=\"Aprovar\"></button>\n <button smzButton type=\"button\" label=\"Recusar\" variant=\"outlined\" severity=\"danger\"></button>\n </div>\n <ui-block-ui [blocked]=\"false\"><i class=\"fa-solid fa-lock text-ui-xl\" aria-hidden=\"true\"></i></ui-block-ui>\n </div>\n </smz-gallery-case>\n <smz-gallery-case label=\"bloqueado · sem conteúdo\">\n <div class=\"flex w-full flex-col gap-3 bg-ui-surface-2 p-4\">\n <span class=\"text-ui-md text-ui-fg\">Pedido nº 1042 · Maria Souza</span>\n <span class=\"text-ui-sm text-ui-fg-muted\">3 itens · R$ 248,90</span>\n <div class=\"flex gap-2\">\n <button smzButton type=\"button\" label=\"Aprovar\"></button>\n <button smzButton type=\"button\" label=\"Recusar\" variant=\"outlined\" severity=\"danger\"></button>\n </div>\n <ui-block-ui blocked />\n </div>\n </smz-gallery-case>\n <smz-gallery-case label=\"bloqueado · ícone\">\n <div class=\"flex w-full flex-col gap-3 bg-ui-surface-2 p-4\">\n <span class=\"text-ui-md text-ui-fg\">Pedido nº 1042 · Maria Souza</span>\n <span class=\"text-ui-sm text-ui-fg-muted\">3 itens · R$ 248,90</span>\n <div class=\"flex gap-2\">\n <button smzButton type=\"button\" label=\"Aprovar\"></button>\n <button smzButton type=\"button\" label=\"Recusar\" variant=\"outlined\" severity=\"danger\"></button>\n </div>\n <ui-block-ui blocked><i class=\"fa-solid fa-lock text-ui-xl\" aria-hidden=\"true\"></i></ui-block-ui>\n </div>\n </smz-gallery-case>\n <smz-gallery-case label=\"bloqueado · spinner e texto\">\n <div class=\"flex w-full flex-col gap-3 bg-ui-surface-2 p-4\">\n <span class=\"text-ui-md text-ui-fg\">Pedido nº 1042 · Maria Souza</span>\n <span class=\"text-ui-sm text-ui-fg-muted\">3 itens · R$ 248,90</span>\n <div class=\"flex gap-2\">\n <button smzButton type=\"button\" label=\"Aprovar\"></button>\n <button smzButton type=\"button\" label=\"Recusar\" variant=\"outlined\" severity=\"danger\"></button>\n </div>\n <ui-block-ui blocked>\n <span class=\"inline-flex items-center gap-2 text-ui-md\">\n <ui-progress-spinner class=\"h-6 w-6\" />\n Salvando...\n </span>\n </ui-block-ui>\n </div>\n </smz-gallery-case>\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Bloqueando um alvo (target)\" [columns]=\"2\">\n <smz-gallery-case label=\"target · desbloqueado\">\n <div class=\"flex w-full flex-col gap-3\">\n <div #freeTarget class=\"flex flex-col gap-2 bg-ui-surface-2 p-4\">\n <span class=\"text-ui-md text-ui-fg\">Painel alvo</span>\n <span class=\"text-ui-sm text-ui-fg-muted\">Continua interativo.</span>\n </div>\n <span class=\"text-ui-sm text-ui-fg-muted\">Área fora do alvo.</span>\n <ui-block-ui [target]=\"freeTarget\" [blocked]=\"false\"><i class=\"fa-solid fa-lock text-ui-xl\" aria-hidden=\"true\"></i></ui-block-ui>\n </div>\n </smz-gallery-case>\n <smz-gallery-case label=\"target · bloqueado (só o painel alvo)\">\n <div class=\"flex w-full flex-col gap-3\">\n <div #lockedTarget class=\"flex flex-col gap-2 bg-ui-surface-2 p-4\">\n <span class=\"text-ui-md text-ui-fg\">Painel alvo</span>\n <span class=\"text-ui-sm text-ui-fg-muted\">Coberto pela máscara.</span>\n </div>\n <span class=\"text-ui-sm text-ui-fg-muted\">Área fora do alvo, sem máscara.</span>\n <ui-block-ui [target]=\"lockedTarget\" blocked><i class=\"fa-solid fa-lock text-ui-xl\" aria-hidden=\"true\"></i></ui-block-ui>\n </div>\n </smz-gallery-case>\n <smz-gallery-case label=\"target · bloqueado · área alta\">\n <div class=\"flex w-full flex-col gap-3\">\n <div #tallTarget class=\"flex h-48 flex-col gap-2 bg-ui-surface-2 p-4\">\n <span class=\"text-ui-md text-ui-fg\">Relatório mensal</span>\n <span class=\"text-ui-sm text-ui-fg-muted\">A máscara cobre a altura inteira e centraliza o conteúdo.</span>\n </div>\n <ui-block-ui [target]=\"tallTarget\" blocked>\n <ui-progress-spinner class=\"h-12 w-12\" />\n </ui-block-ui>\n </div>\n </smz-gallery-case>\n <smz-gallery-case label=\"target · bloqueado · sobre campo de formulário\">\n <div class=\"flex w-full flex-col gap-3\">\n <div #formTarget class=\"flex items-center gap-2 bg-ui-surface-2 p-4\">\n <button smzButton type=\"button\" label=\"Enviar\" icon=\"fa-solid fa-paper-plane\"></button>\n <button smzButton type=\"button\" label=\"Cancelar\" variant=\"text\" severity=\"secondary\"></button>\n </div>\n <ui-block-ui [target]=\"formTarget\" blocked />\n </div>\n </smz-gallery-case>\n </smz-gallery-section>\n `,\n})\nexport class BlockUiGalleryEntryComponent {}\n"],"names":[],"mappings":";;;;;AAKA;;;AAGG;MAuGU,4BAA4B,CAAA;uGAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,qBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAjG7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FT,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAjGS,mBAAmB,uFAAE,kBAAkB,EAAA,QAAA,EAAA,iCAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,cAAA,EAAA,UAAA,EAAA,SAAA,EAAA,MAAA,EAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,SAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,2BAA2B,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,uBAAuB,mGAAE,0BAA0B,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAmGxH,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAtGxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;oBACtC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,0BAA0B,CAAC;AACpI,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;AACtC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FT,EAAA,CAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SmzButtonComponent } from '@ngx-smz/ui-kit';
|
|
4
|
+
import { SmzGalleryCaseComponent, SmzGallerySectionComponent } from './ngx-smz-core.mjs';
|
|
5
|
+
|
|
6
|
+
/** Galeria: botão em todas as variantes, severidades, tamanhos e estados. */
|
|
7
|
+
class ButtonGalleryEntryComponent {
|
|
8
|
+
variants = ['solid', 'outlined', 'text'];
|
|
9
|
+
severities = ['primary', 'secondary', 'success', 'warning', 'danger'];
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ButtonGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: ButtonGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-button-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
12
|
+
@for (variant of variants; track variant) {
|
|
13
|
+
<smz-gallery-section [label]="'Variante ' + variant" [columns]="5">
|
|
14
|
+
@for (severity of severities; track severity) {
|
|
15
|
+
<smz-gallery-case [label]="severity">
|
|
16
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity"></button>
|
|
17
|
+
</smz-gallery-case>
|
|
18
|
+
}
|
|
19
|
+
@for (severity of severities; track severity) {
|
|
20
|
+
<smz-gallery-case [label]="severity + ' · hover'" force="hover">
|
|
21
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity"></button>
|
|
22
|
+
</smz-gallery-case>
|
|
23
|
+
}
|
|
24
|
+
@for (severity of severities; track severity) {
|
|
25
|
+
<smz-gallery-case [label]="severity + ' · ativo'" force="hover active">
|
|
26
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity"></button>
|
|
27
|
+
</smz-gallery-case>
|
|
28
|
+
}
|
|
29
|
+
@for (severity of severities; track severity) {
|
|
30
|
+
<smz-gallery-case [label]="severity + ' · foco'" force="focus-visible">
|
|
31
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity"></button>
|
|
32
|
+
</smz-gallery-case>
|
|
33
|
+
}
|
|
34
|
+
@for (severity of severities; track severity) {
|
|
35
|
+
<smz-gallery-case [label]="severity + ' · desabilitado'">
|
|
36
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity" disabled></button>
|
|
37
|
+
</smz-gallery-case>
|
|
38
|
+
}
|
|
39
|
+
</smz-gallery-section>
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
<smz-gallery-section label="Tamanhos" [columns]="3">
|
|
43
|
+
<smz-gallery-case label="sm"><button smzButton type="button" label="Salvar" size="sm"></button></smz-gallery-case>
|
|
44
|
+
<smz-gallery-case label="md"><button smzButton type="button" label="Salvar" size="md"></button></smz-gallery-case>
|
|
45
|
+
<smz-gallery-case label="lg"><button smzButton type="button" label="Salvar" size="lg"></button></smz-gallery-case>
|
|
46
|
+
</smz-gallery-section>
|
|
47
|
+
|
|
48
|
+
<smz-gallery-section label="Ícone, arredondado e carregando" [columns]="6">
|
|
49
|
+
<smz-gallery-case label="ícone à esquerda"><button smzButton type="button" label="Excluir" icon="fa-solid fa-trash"></button></smz-gallery-case>
|
|
50
|
+
<smz-gallery-case label="ícone à direita"><button smzButton type="button" label="Avançar" icon="fa-solid fa-arrow-right" iconPosition="right"></button></smz-gallery-case>
|
|
51
|
+
<smz-gallery-case label="só ícone"><button smzButton type="button" icon="fa-solid fa-plus" aria-label="Adicionar"></button></smz-gallery-case>
|
|
52
|
+
<smz-gallery-case label="só ícone · texto"><button smzButton type="button" icon="fa-solid fa-xmark" variant="text" severity="secondary" aria-label="Fechar"></button></smz-gallery-case>
|
|
53
|
+
<smz-gallery-case label="arredondado"><button smzButton type="button" label="Salvar" rounded></button></smz-gallery-case>
|
|
54
|
+
<smz-gallery-case label="carregando"><button smzButton type="button" label="Salvar" loading></button></smz-gallery-case>
|
|
55
|
+
</smz-gallery-section>
|
|
56
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "component", type: SmzGalleryCaseComponent, selector: "smz-gallery-case", inputs: ["label", "force", "target"] }, { kind: "component", type: SmzGallerySectionComponent, selector: "smz-gallery-section", inputs: ["label", "columns"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: ButtonGalleryEntryComponent, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{
|
|
61
|
+
selector: 'smz-gallery-button-entry',
|
|
62
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
63
|
+
imports: [SmzButtonComponent, SmzGalleryCaseComponent, SmzGallerySectionComponent],
|
|
64
|
+
host: { class: 'flex flex-col gap-8' },
|
|
65
|
+
template: `
|
|
66
|
+
@for (variant of variants; track variant) {
|
|
67
|
+
<smz-gallery-section [label]="'Variante ' + variant" [columns]="5">
|
|
68
|
+
@for (severity of severities; track severity) {
|
|
69
|
+
<smz-gallery-case [label]="severity">
|
|
70
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity"></button>
|
|
71
|
+
</smz-gallery-case>
|
|
72
|
+
}
|
|
73
|
+
@for (severity of severities; track severity) {
|
|
74
|
+
<smz-gallery-case [label]="severity + ' · hover'" force="hover">
|
|
75
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity"></button>
|
|
76
|
+
</smz-gallery-case>
|
|
77
|
+
}
|
|
78
|
+
@for (severity of severities; track severity) {
|
|
79
|
+
<smz-gallery-case [label]="severity + ' · ativo'" force="hover active">
|
|
80
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity"></button>
|
|
81
|
+
</smz-gallery-case>
|
|
82
|
+
}
|
|
83
|
+
@for (severity of severities; track severity) {
|
|
84
|
+
<smz-gallery-case [label]="severity + ' · foco'" force="focus-visible">
|
|
85
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity"></button>
|
|
86
|
+
</smz-gallery-case>
|
|
87
|
+
}
|
|
88
|
+
@for (severity of severities; track severity) {
|
|
89
|
+
<smz-gallery-case [label]="severity + ' · desabilitado'">
|
|
90
|
+
<button smzButton type="button" label="Salvar" [variant]="variant" [severity]="severity" disabled></button>
|
|
91
|
+
</smz-gallery-case>
|
|
92
|
+
}
|
|
93
|
+
</smz-gallery-section>
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
<smz-gallery-section label="Tamanhos" [columns]="3">
|
|
97
|
+
<smz-gallery-case label="sm"><button smzButton type="button" label="Salvar" size="sm"></button></smz-gallery-case>
|
|
98
|
+
<smz-gallery-case label="md"><button smzButton type="button" label="Salvar" size="md"></button></smz-gallery-case>
|
|
99
|
+
<smz-gallery-case label="lg"><button smzButton type="button" label="Salvar" size="lg"></button></smz-gallery-case>
|
|
100
|
+
</smz-gallery-section>
|
|
101
|
+
|
|
102
|
+
<smz-gallery-section label="Ícone, arredondado e carregando" [columns]="6">
|
|
103
|
+
<smz-gallery-case label="ícone à esquerda"><button smzButton type="button" label="Excluir" icon="fa-solid fa-trash"></button></smz-gallery-case>
|
|
104
|
+
<smz-gallery-case label="ícone à direita"><button smzButton type="button" label="Avançar" icon="fa-solid fa-arrow-right" iconPosition="right"></button></smz-gallery-case>
|
|
105
|
+
<smz-gallery-case label="só ícone"><button smzButton type="button" icon="fa-solid fa-plus" aria-label="Adicionar"></button></smz-gallery-case>
|
|
106
|
+
<smz-gallery-case label="só ícone · texto"><button smzButton type="button" icon="fa-solid fa-xmark" variant="text" severity="secondary" aria-label="Fechar"></button></smz-gallery-case>
|
|
107
|
+
<smz-gallery-case label="arredondado"><button smzButton type="button" label="Salvar" rounded></button></smz-gallery-case>
|
|
108
|
+
<smz-gallery-case label="carregando"><button smzButton type="button" label="Salvar" loading></button></smz-gallery-case>
|
|
109
|
+
</smz-gallery-section>
|
|
110
|
+
`,
|
|
111
|
+
}]
|
|
112
|
+
}] });
|
|
113
|
+
|
|
114
|
+
export { ButtonGalleryEntryComponent };
|
|
115
|
+
//# sourceMappingURL=ngx-smz-core-button.entry-BnuvjYDb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-core-button.entry-BnuvjYDb.mjs","sources":["../../../projects/ngx-smz-ui/src/lib/modules/smz-design-system/gallery/entries/kit/button.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { SmzButtonComponent } from '@ngx-smz/ui-kit';\nimport { SmzGalleryCaseComponent } from '../../gallery-case.component';\nimport { SmzGallerySectionComponent } from '../../gallery-section.component';\n\ntype Severity = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';\ntype Variant = 'solid' | 'outlined' | 'text';\n\n/** Galeria: botão em todas as variantes, severidades, tamanhos e estados. */\n@Component({\n selector: 'smz-gallery-button-entry',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmzButtonComponent, SmzGalleryCaseComponent, SmzGallerySectionComponent],\n host: { class: 'flex flex-col gap-8' },\n template: `\n @for (variant of variants; track variant) {\n <smz-gallery-section [label]=\"'Variante ' + variant\" [columns]=\"5\">\n @for (severity of severities; track severity) {\n <smz-gallery-case [label]=\"severity\">\n <button smzButton type=\"button\" label=\"Salvar\" [variant]=\"variant\" [severity]=\"severity\"></button>\n </smz-gallery-case>\n }\n @for (severity of severities; track severity) {\n <smz-gallery-case [label]=\"severity + ' · hover'\" force=\"hover\">\n <button smzButton type=\"button\" label=\"Salvar\" [variant]=\"variant\" [severity]=\"severity\"></button>\n </smz-gallery-case>\n }\n @for (severity of severities; track severity) {\n <smz-gallery-case [label]=\"severity + ' · ativo'\" force=\"hover active\">\n <button smzButton type=\"button\" label=\"Salvar\" [variant]=\"variant\" [severity]=\"severity\"></button>\n </smz-gallery-case>\n }\n @for (severity of severities; track severity) {\n <smz-gallery-case [label]=\"severity + ' · foco'\" force=\"focus-visible\">\n <button smzButton type=\"button\" label=\"Salvar\" [variant]=\"variant\" [severity]=\"severity\"></button>\n </smz-gallery-case>\n }\n @for (severity of severities; track severity) {\n <smz-gallery-case [label]=\"severity + ' · desabilitado'\">\n <button smzButton type=\"button\" label=\"Salvar\" [variant]=\"variant\" [severity]=\"severity\" disabled></button>\n </smz-gallery-case>\n }\n </smz-gallery-section>\n }\n\n <smz-gallery-section label=\"Tamanhos\" [columns]=\"3\">\n <smz-gallery-case label=\"sm\"><button smzButton type=\"button\" label=\"Salvar\" size=\"sm\"></button></smz-gallery-case>\n <smz-gallery-case label=\"md\"><button smzButton type=\"button\" label=\"Salvar\" size=\"md\"></button></smz-gallery-case>\n <smz-gallery-case label=\"lg\"><button smzButton type=\"button\" label=\"Salvar\" size=\"lg\"></button></smz-gallery-case>\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Ícone, arredondado e carregando\" [columns]=\"6\">\n <smz-gallery-case label=\"ícone à esquerda\"><button smzButton type=\"button\" label=\"Excluir\" icon=\"fa-solid fa-trash\"></button></smz-gallery-case>\n <smz-gallery-case label=\"ícone à direita\"><button smzButton type=\"button\" label=\"Avançar\" icon=\"fa-solid fa-arrow-right\" iconPosition=\"right\"></button></smz-gallery-case>\n <smz-gallery-case label=\"só ícone\"><button smzButton type=\"button\" icon=\"fa-solid fa-plus\" aria-label=\"Adicionar\"></button></smz-gallery-case>\n <smz-gallery-case label=\"só ícone · texto\"><button smzButton type=\"button\" icon=\"fa-solid fa-xmark\" variant=\"text\" severity=\"secondary\" aria-label=\"Fechar\"></button></smz-gallery-case>\n <smz-gallery-case label=\"arredondado\"><button smzButton type=\"button\" label=\"Salvar\" rounded></button></smz-gallery-case>\n <smz-gallery-case label=\"carregando\"><button smzButton type=\"button\" label=\"Salvar\" loading></button></smz-gallery-case>\n </smz-gallery-section>\n `,\n})\nexport class ButtonGalleryEntryComponent {\n protected readonly variants: Variant[] = ['solid', 'outlined', 'text'];\n protected readonly severities: Severity[] = ['primary', 'secondary', 'success', 'warning', 'danger'];\n}\n"],"names":[],"mappings":";;;;;AAQA;MAqDa,2BAA2B,CAAA;IACnB,QAAQ,GAAc,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC;AACnD,IAAA,UAAU,GAAe,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;uGAFzF,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,qBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA/C5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EA/CS,kBAAkB,EAAA,QAAA,EAAA,iCAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,cAAA,EAAA,UAAA,EAAA,SAAA,EAAA,MAAA,EAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,SAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,uBAAuB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,0BAA0B,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAiDtE,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBApDvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;oBACpC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,0BAA0B,CAAC;AAClF,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;AACtC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CT,EAAA,CAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SmzButtonComponent, SmzCardComponent, SmzTemplateDirective } from '@ngx-smz/ui-kit';
|
|
4
|
+
import { SmzGalleryCaseComponent, SmzGallerySectionComponent } from './ngx-smz-core.mjs';
|
|
5
|
+
|
|
6
|
+
/** Galeria: card com título e subtítulo em texto ou template, área de cabeçalho, rodapé e conteúdos extremos. */
|
|
7
|
+
class CardGalleryEntryComponent {
|
|
8
|
+
resumo = 'Manutenção preventiva dos equipamentos da linha 2, com visitas mensais.';
|
|
9
|
+
campos = [
|
|
10
|
+
{ rotulo: 'Fornecedor', valor: 'Metalúrgica Aurora' },
|
|
11
|
+
{ rotulo: 'Valor mensal', valor: 'R$ 12.400,00' },
|
|
12
|
+
{ rotulo: 'Início', valor: '01/01/2024' },
|
|
13
|
+
{ rotulo: 'Término', valor: '31/12/2025' },
|
|
14
|
+
];
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: CardGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: CardGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-card-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
17
|
+
<smz-gallery-section label="Título e subtítulo" [columns]="4">
|
|
18
|
+
<smz-gallery-case label="só conteúdo">
|
|
19
|
+
<ui-card class="w-full">{{ resumo }}</ui-card>
|
|
20
|
+
</smz-gallery-case>
|
|
21
|
+
<smz-gallery-case label="título">
|
|
22
|
+
<ui-card class="w-full" header="Contrato 2024/018">{{ resumo }}</ui-card>
|
|
23
|
+
</smz-gallery-case>
|
|
24
|
+
<smz-gallery-case label="título e subtítulo">
|
|
25
|
+
<ui-card class="w-full" header="Contrato 2024/018" subheader="Vigente até 31/12/2025">{{ resumo }}</ui-card>
|
|
26
|
+
</smz-gallery-case>
|
|
27
|
+
<smz-gallery-case label="só subtítulo">
|
|
28
|
+
<ui-card class="w-full" subheader="Vigente até 31/12/2025">{{ resumo }}</ui-card>
|
|
29
|
+
</smz-gallery-case>
|
|
30
|
+
<smz-gallery-case label="título e subtítulo sem conteúdo">
|
|
31
|
+
<ui-card class="w-full" header="Contrato 2024/018" subheader="Vigente até 31/12/2025" />
|
|
32
|
+
</smz-gallery-case>
|
|
33
|
+
<smz-gallery-case label="vazio">
|
|
34
|
+
<ui-card class="w-full" />
|
|
35
|
+
</smz-gallery-case>
|
|
36
|
+
</smz-gallery-section>
|
|
37
|
+
|
|
38
|
+
<smz-gallery-section label="Templates" [columns]="4">
|
|
39
|
+
<smz-gallery-case label="template de título e subtítulo">
|
|
40
|
+
<ui-card class="w-full">
|
|
41
|
+
<ng-template smzTemplate="title">
|
|
42
|
+
<span class="flex items-center gap-2"><i class="fa-solid fa-file-contract" aria-hidden="true"></i><span>Contrato 2024/018</span></span>
|
|
43
|
+
</ng-template>
|
|
44
|
+
<ng-template smzTemplate="subtitle">
|
|
45
|
+
<span class="flex items-center justify-between gap-2"><span>Fornecedor: Metalúrgica Aurora</span><span>Ativo</span></span>
|
|
46
|
+
</ng-template>
|
|
47
|
+
{{ resumo }}
|
|
48
|
+
</ui-card>
|
|
49
|
+
</smz-gallery-case>
|
|
50
|
+
<smz-gallery-case label="área de cabeçalho">
|
|
51
|
+
<ui-card class="w-full" header="Contrato 2024/018" subheader="Vigente até 31/12/2025">
|
|
52
|
+
<ng-template smzTemplate="header">
|
|
53
|
+
<div class="flex h-24 w-full items-center justify-center bg-ui-surface-3 text-ui-fg-muted">
|
|
54
|
+
<i class="fa-solid fa-image" aria-hidden="true"></i>
|
|
55
|
+
</div>
|
|
56
|
+
</ng-template>
|
|
57
|
+
{{ resumo }}
|
|
58
|
+
</ui-card>
|
|
59
|
+
</smz-gallery-case>
|
|
60
|
+
<smz-gallery-case label="rodapé com ações">
|
|
61
|
+
<ui-card class="w-full" header="Contrato 2024/018" subheader="Vigente até 31/12/2025">
|
|
62
|
+
{{ resumo }}
|
|
63
|
+
<ng-template smzTemplate="footer">
|
|
64
|
+
<div class="flex justify-end gap-2">
|
|
65
|
+
<button smzButton type="button" label="Cancelar" variant="text" severity="secondary"></button>
|
|
66
|
+
<button smzButton type="button" label="Renovar"></button>
|
|
67
|
+
</div>
|
|
68
|
+
</ng-template>
|
|
69
|
+
</ui-card>
|
|
70
|
+
</smz-gallery-case>
|
|
71
|
+
<smz-gallery-case label="cabeçalho, título, subtítulo e rodapé">
|
|
72
|
+
<ui-card class="w-full">
|
|
73
|
+
<ng-template smzTemplate="header">
|
|
74
|
+
<div class="flex h-24 w-full items-center justify-center bg-ui-surface-3 text-ui-fg-muted">
|
|
75
|
+
<i class="fa-solid fa-image" aria-hidden="true"></i>
|
|
76
|
+
</div>
|
|
77
|
+
</ng-template>
|
|
78
|
+
<ng-template smzTemplate="title">Contrato 2024/018</ng-template>
|
|
79
|
+
<ng-template smzTemplate="subtitle">Vigente até 31/12/2025</ng-template>
|
|
80
|
+
{{ resumo }}
|
|
81
|
+
<ng-template smzTemplate="footer">
|
|
82
|
+
<div class="flex justify-end gap-2">
|
|
83
|
+
<button smzButton type="button" label="Detalhes" variant="outlined"></button>
|
|
84
|
+
</div>
|
|
85
|
+
</ng-template>
|
|
86
|
+
</ui-card>
|
|
87
|
+
</smz-gallery-case>
|
|
88
|
+
</smz-gallery-section>
|
|
89
|
+
|
|
90
|
+
<smz-gallery-section label="Conteúdo e altura" [columns]="4">
|
|
91
|
+
<smz-gallery-case label="título longo (quebra)">
|
|
92
|
+
<ui-card class="w-full" header="Contrato de prestação de serviços de manutenção preventiva e corretiva" subheader="Vigente até 31/12/2025, renovável por períodos iguais e sucessivos">
|
|
93
|
+
{{ resumo }}
|
|
94
|
+
</ui-card>
|
|
95
|
+
</smz-gallery-case>
|
|
96
|
+
<smz-gallery-case label="conteúdo longo">
|
|
97
|
+
<ui-card class="w-full" header="Observações">
|
|
98
|
+
<div class="flex flex-col gap-2">
|
|
99
|
+
<p>{{ resumo }}</p>
|
|
100
|
+
<p>O reajuste anual segue o índice definido na cláusula sétima, aplicado sobre o valor mensal vigente.</p>
|
|
101
|
+
<p>A rescisão antecipada exige aviso prévio de sessenta dias.</p>
|
|
102
|
+
</div>
|
|
103
|
+
</ui-card>
|
|
104
|
+
</smz-gallery-case>
|
|
105
|
+
<smz-gallery-case label="altura fixa · rodapé no fim">
|
|
106
|
+
<ui-card class="h-64 w-full" header="Indicador" subheader="Mês atual">
|
|
107
|
+
128 chamados
|
|
108
|
+
<ng-template smzTemplate="footer"><span class="text-ui-fg-muted">Atualizado às 08h00</span></ng-template>
|
|
109
|
+
</ui-card>
|
|
110
|
+
</smz-gallery-case>
|
|
111
|
+
<smz-gallery-case label="lista de campos">
|
|
112
|
+
<ui-card class="w-full" header="Resumo">
|
|
113
|
+
<div class="flex flex-col gap-2">
|
|
114
|
+
@for (campo of campos; track campo.rotulo) {
|
|
115
|
+
<div class="flex items-center justify-between gap-2">
|
|
116
|
+
<span class="text-ui-fg-muted">{{ campo.rotulo }}</span>
|
|
117
|
+
<span>{{ campo.valor }}</span>
|
|
118
|
+
</div>
|
|
119
|
+
}
|
|
120
|
+
</div>
|
|
121
|
+
</ui-card>
|
|
122
|
+
</smz-gallery-case>
|
|
123
|
+
</smz-gallery-section>
|
|
124
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmzButtonComponent, selector: "button[smzButton], a[smzButton]", inputs: ["label", "icon", "iconPosition", "severity", "variant", "size", "text", "outlined", "rounded", "loading", "styleClass"] }, { kind: "component", type: SmzCardComponent, selector: "ui-card", inputs: ["header", "subheader"] }, { kind: "directive", type: SmzTemplateDirective, selector: "ng-template[smzTemplate]", inputs: ["smzTemplate"] }, { kind: "component", type: SmzGalleryCaseComponent, selector: "smz-gallery-case", inputs: ["label", "force", "target"] }, { kind: "component", type: SmzGallerySectionComponent, selector: "smz-gallery-section", inputs: ["label", "columns"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
125
|
+
}
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: CardGalleryEntryComponent, decorators: [{
|
|
127
|
+
type: Component,
|
|
128
|
+
args: [{
|
|
129
|
+
selector: 'smz-gallery-card-entry',
|
|
130
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
131
|
+
imports: [SmzButtonComponent, SmzCardComponent, SmzTemplateDirective, SmzGalleryCaseComponent, SmzGallerySectionComponent],
|
|
132
|
+
host: { class: 'flex flex-col gap-8' },
|
|
133
|
+
template: `
|
|
134
|
+
<smz-gallery-section label="Título e subtítulo" [columns]="4">
|
|
135
|
+
<smz-gallery-case label="só conteúdo">
|
|
136
|
+
<ui-card class="w-full">{{ resumo }}</ui-card>
|
|
137
|
+
</smz-gallery-case>
|
|
138
|
+
<smz-gallery-case label="título">
|
|
139
|
+
<ui-card class="w-full" header="Contrato 2024/018">{{ resumo }}</ui-card>
|
|
140
|
+
</smz-gallery-case>
|
|
141
|
+
<smz-gallery-case label="título e subtítulo">
|
|
142
|
+
<ui-card class="w-full" header="Contrato 2024/018" subheader="Vigente até 31/12/2025">{{ resumo }}</ui-card>
|
|
143
|
+
</smz-gallery-case>
|
|
144
|
+
<smz-gallery-case label="só subtítulo">
|
|
145
|
+
<ui-card class="w-full" subheader="Vigente até 31/12/2025">{{ resumo }}</ui-card>
|
|
146
|
+
</smz-gallery-case>
|
|
147
|
+
<smz-gallery-case label="título e subtítulo sem conteúdo">
|
|
148
|
+
<ui-card class="w-full" header="Contrato 2024/018" subheader="Vigente até 31/12/2025" />
|
|
149
|
+
</smz-gallery-case>
|
|
150
|
+
<smz-gallery-case label="vazio">
|
|
151
|
+
<ui-card class="w-full" />
|
|
152
|
+
</smz-gallery-case>
|
|
153
|
+
</smz-gallery-section>
|
|
154
|
+
|
|
155
|
+
<smz-gallery-section label="Templates" [columns]="4">
|
|
156
|
+
<smz-gallery-case label="template de título e subtítulo">
|
|
157
|
+
<ui-card class="w-full">
|
|
158
|
+
<ng-template smzTemplate="title">
|
|
159
|
+
<span class="flex items-center gap-2"><i class="fa-solid fa-file-contract" aria-hidden="true"></i><span>Contrato 2024/018</span></span>
|
|
160
|
+
</ng-template>
|
|
161
|
+
<ng-template smzTemplate="subtitle">
|
|
162
|
+
<span class="flex items-center justify-between gap-2"><span>Fornecedor: Metalúrgica Aurora</span><span>Ativo</span></span>
|
|
163
|
+
</ng-template>
|
|
164
|
+
{{ resumo }}
|
|
165
|
+
</ui-card>
|
|
166
|
+
</smz-gallery-case>
|
|
167
|
+
<smz-gallery-case label="área de cabeçalho">
|
|
168
|
+
<ui-card class="w-full" header="Contrato 2024/018" subheader="Vigente até 31/12/2025">
|
|
169
|
+
<ng-template smzTemplate="header">
|
|
170
|
+
<div class="flex h-24 w-full items-center justify-center bg-ui-surface-3 text-ui-fg-muted">
|
|
171
|
+
<i class="fa-solid fa-image" aria-hidden="true"></i>
|
|
172
|
+
</div>
|
|
173
|
+
</ng-template>
|
|
174
|
+
{{ resumo }}
|
|
175
|
+
</ui-card>
|
|
176
|
+
</smz-gallery-case>
|
|
177
|
+
<smz-gallery-case label="rodapé com ações">
|
|
178
|
+
<ui-card class="w-full" header="Contrato 2024/018" subheader="Vigente até 31/12/2025">
|
|
179
|
+
{{ resumo }}
|
|
180
|
+
<ng-template smzTemplate="footer">
|
|
181
|
+
<div class="flex justify-end gap-2">
|
|
182
|
+
<button smzButton type="button" label="Cancelar" variant="text" severity="secondary"></button>
|
|
183
|
+
<button smzButton type="button" label="Renovar"></button>
|
|
184
|
+
</div>
|
|
185
|
+
</ng-template>
|
|
186
|
+
</ui-card>
|
|
187
|
+
</smz-gallery-case>
|
|
188
|
+
<smz-gallery-case label="cabeçalho, título, subtítulo e rodapé">
|
|
189
|
+
<ui-card class="w-full">
|
|
190
|
+
<ng-template smzTemplate="header">
|
|
191
|
+
<div class="flex h-24 w-full items-center justify-center bg-ui-surface-3 text-ui-fg-muted">
|
|
192
|
+
<i class="fa-solid fa-image" aria-hidden="true"></i>
|
|
193
|
+
</div>
|
|
194
|
+
</ng-template>
|
|
195
|
+
<ng-template smzTemplate="title">Contrato 2024/018</ng-template>
|
|
196
|
+
<ng-template smzTemplate="subtitle">Vigente até 31/12/2025</ng-template>
|
|
197
|
+
{{ resumo }}
|
|
198
|
+
<ng-template smzTemplate="footer">
|
|
199
|
+
<div class="flex justify-end gap-2">
|
|
200
|
+
<button smzButton type="button" label="Detalhes" variant="outlined"></button>
|
|
201
|
+
</div>
|
|
202
|
+
</ng-template>
|
|
203
|
+
</ui-card>
|
|
204
|
+
</smz-gallery-case>
|
|
205
|
+
</smz-gallery-section>
|
|
206
|
+
|
|
207
|
+
<smz-gallery-section label="Conteúdo e altura" [columns]="4">
|
|
208
|
+
<smz-gallery-case label="título longo (quebra)">
|
|
209
|
+
<ui-card class="w-full" header="Contrato de prestação de serviços de manutenção preventiva e corretiva" subheader="Vigente até 31/12/2025, renovável por períodos iguais e sucessivos">
|
|
210
|
+
{{ resumo }}
|
|
211
|
+
</ui-card>
|
|
212
|
+
</smz-gallery-case>
|
|
213
|
+
<smz-gallery-case label="conteúdo longo">
|
|
214
|
+
<ui-card class="w-full" header="Observações">
|
|
215
|
+
<div class="flex flex-col gap-2">
|
|
216
|
+
<p>{{ resumo }}</p>
|
|
217
|
+
<p>O reajuste anual segue o índice definido na cláusula sétima, aplicado sobre o valor mensal vigente.</p>
|
|
218
|
+
<p>A rescisão antecipada exige aviso prévio de sessenta dias.</p>
|
|
219
|
+
</div>
|
|
220
|
+
</ui-card>
|
|
221
|
+
</smz-gallery-case>
|
|
222
|
+
<smz-gallery-case label="altura fixa · rodapé no fim">
|
|
223
|
+
<ui-card class="h-64 w-full" header="Indicador" subheader="Mês atual">
|
|
224
|
+
128 chamados
|
|
225
|
+
<ng-template smzTemplate="footer"><span class="text-ui-fg-muted">Atualizado às 08h00</span></ng-template>
|
|
226
|
+
</ui-card>
|
|
227
|
+
</smz-gallery-case>
|
|
228
|
+
<smz-gallery-case label="lista de campos">
|
|
229
|
+
<ui-card class="w-full" header="Resumo">
|
|
230
|
+
<div class="flex flex-col gap-2">
|
|
231
|
+
@for (campo of campos; track campo.rotulo) {
|
|
232
|
+
<div class="flex items-center justify-between gap-2">
|
|
233
|
+
<span class="text-ui-fg-muted">{{ campo.rotulo }}</span>
|
|
234
|
+
<span>{{ campo.valor }}</span>
|
|
235
|
+
</div>
|
|
236
|
+
}
|
|
237
|
+
</div>
|
|
238
|
+
</ui-card>
|
|
239
|
+
</smz-gallery-case>
|
|
240
|
+
</smz-gallery-section>
|
|
241
|
+
`,
|
|
242
|
+
}]
|
|
243
|
+
}] });
|
|
244
|
+
|
|
245
|
+
export { CardGalleryEntryComponent };
|
|
246
|
+
//# sourceMappingURL=ngx-smz-core-card.entry-y1HBCXvH.mjs.map
|