@ngx-smz/core 21.10.0-next.22 → 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 +342 -94
- package/fesm2022/ngx-smz-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-smz-core.d.ts +120 -8
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SmzIconFieldComponent, SmzInputIconComponent, SmzInputGroupComponent, SmzInputGroupAddonComponent, SmzInputTextDirective } from '@ngx-smz/ui-kit';
|
|
4
|
+
import { SmzGalleryCaseComponent, SmzGallerySectionComponent } from './ngx-smz-core.mjs';
|
|
5
|
+
|
|
6
|
+
/** Galeria: campo com ícone (`ui-icon-field` + `ui-input-icon`) e grupo de input (`ui-input-group` + `ui-input-group-addon`). */
|
|
7
|
+
class IconFieldGalleryEntryComponent {
|
|
8
|
+
sizes = ['sm', 'md', 'lg'];
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: IconFieldGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: IconFieldGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-icon-field-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
11
|
+
<smz-gallery-section label="Campo com ícone · estados" [columns]="4">
|
|
12
|
+
<smz-gallery-case label="padrão">
|
|
13
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" aria-label="Pesquisar" /></ui-icon-field>
|
|
14
|
+
</smz-gallery-case>
|
|
15
|
+
<smz-gallery-case label="placeholder">
|
|
16
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" placeholder="Pesquisar" aria-label="Pesquisar" /></ui-icon-field>
|
|
17
|
+
</smz-gallery-case>
|
|
18
|
+
<smz-gallery-case label="preenchido">
|
|
19
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" aria-label="Pesquisar" /></ui-icon-field>
|
|
20
|
+
</smz-gallery-case>
|
|
21
|
+
<smz-gallery-case label="hover" force="hover">
|
|
22
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" aria-label="Pesquisar" /></ui-icon-field>
|
|
23
|
+
</smz-gallery-case>
|
|
24
|
+
<smz-gallery-case label="foco" force="focus">
|
|
25
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" aria-label="Pesquisar" /></ui-icon-field>
|
|
26
|
+
</smz-gallery-case>
|
|
27
|
+
<smz-gallery-case label="foco · vazio" force="focus">
|
|
28
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" placeholder="Pesquisar" aria-label="Pesquisar" /></ui-icon-field>
|
|
29
|
+
</smz-gallery-case>
|
|
30
|
+
<smz-gallery-case label="somente leitura">
|
|
31
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" readonly aria-label="Pesquisar" /></ui-icon-field>
|
|
32
|
+
</smz-gallery-case>
|
|
33
|
+
<smz-gallery-case label="inválido">
|
|
34
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" invalid aria-label="Pesquisar" /></ui-icon-field>
|
|
35
|
+
</smz-gallery-case>
|
|
36
|
+
<smz-gallery-case label="inválido · foco" force="focus">
|
|
37
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" invalid aria-label="Pesquisar" /></ui-icon-field>
|
|
38
|
+
</smz-gallery-case>
|
|
39
|
+
<smz-gallery-case label="desabilitado">
|
|
40
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" placeholder="Pesquisar" disabled aria-label="Pesquisar" /></ui-icon-field>
|
|
41
|
+
</smz-gallery-case>
|
|
42
|
+
<smz-gallery-case label="desabilitado · preenchido">
|
|
43
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" disabled aria-label="Pesquisar" /></ui-icon-field>
|
|
44
|
+
</smz-gallery-case>
|
|
45
|
+
<smz-gallery-case label="ícone projetado (sem styleClass)">
|
|
46
|
+
<ui-icon-field class="w-full"><ui-input-icon><i class="fa-solid fa-envelope" aria-hidden="true"></i></ui-input-icon><input smzInputText type="text" placeholder="E-mail" aria-label="E-mail" /></ui-icon-field>
|
|
47
|
+
</smz-gallery-case>
|
|
48
|
+
</smz-gallery-section>
|
|
49
|
+
|
|
50
|
+
<smz-gallery-section label="Campo com ícone · tamanhos do input" [columns]="3">
|
|
51
|
+
@for (size of sizes; track size) {
|
|
52
|
+
<smz-gallery-case [label]="size">
|
|
53
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" aria-label="Pesquisar" [size]="size" /></ui-icon-field>
|
|
54
|
+
</smz-gallery-case>
|
|
55
|
+
}
|
|
56
|
+
</smz-gallery-section>
|
|
57
|
+
|
|
58
|
+
<smz-gallery-section label="Grupo de input" [columns]="4">
|
|
59
|
+
<smz-gallery-case label="complemento à esquerda">
|
|
60
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" aria-label="Valor" /></ui-input-group>
|
|
61
|
+
</smz-gallery-case>
|
|
62
|
+
<smz-gallery-case label="complemento à direita">
|
|
63
|
+
<ui-input-group class="w-full"><input smzInputText type="text" value="75" aria-label="Peso" /><ui-input-group-addon>kg</ui-input-group-addon></ui-input-group>
|
|
64
|
+
</smz-gallery-case>
|
|
65
|
+
<smz-gallery-case label="dois complementos">
|
|
66
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250" aria-label="Valor" /><ui-input-group-addon>,00</ui-input-group-addon></ui-input-group>
|
|
67
|
+
</smz-gallery-case>
|
|
68
|
+
<smz-gallery-case label="complemento com ícone">
|
|
69
|
+
<ui-input-group class="w-full"><ui-input-group-addon><i class="fa-solid fa-user" aria-hidden="true"></i></ui-input-group-addon><input smzInputText type="text" placeholder="Usuário" aria-label="Usuário" /></ui-input-group>
|
|
70
|
+
</smz-gallery-case>
|
|
71
|
+
<smz-gallery-case label="hover" force="hover">
|
|
72
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" aria-label="Valor" /></ui-input-group>
|
|
73
|
+
</smz-gallery-case>
|
|
74
|
+
<smz-gallery-case label="foco" force="focus">
|
|
75
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" aria-label="Valor" /></ui-input-group>
|
|
76
|
+
</smz-gallery-case>
|
|
77
|
+
<smz-gallery-case label="inválido">
|
|
78
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" invalid aria-label="Valor" /></ui-input-group>
|
|
79
|
+
</smz-gallery-case>
|
|
80
|
+
<smz-gallery-case label="desabilitado">
|
|
81
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" disabled aria-label="Valor" /></ui-input-group>
|
|
82
|
+
</smz-gallery-case>
|
|
83
|
+
</smz-gallery-section>
|
|
84
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmzIconFieldComponent, selector: "ui-icon-field" }, { kind: "component", type: SmzInputIconComponent, selector: "ui-input-icon", inputs: ["styleClass"] }, { kind: "component", type: SmzInputGroupComponent, selector: "ui-input-group" }, { kind: "component", type: SmzInputGroupAddonComponent, selector: "ui-input-group-addon" }, { kind: "directive", type: SmzInputTextDirective, selector: "input[smzInputText]", inputs: ["size", "invalid"] }, { 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 });
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: IconFieldGalleryEntryComponent, decorators: [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{
|
|
89
|
+
selector: 'smz-gallery-icon-field-entry',
|
|
90
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
91
|
+
imports: [
|
|
92
|
+
SmzIconFieldComponent,
|
|
93
|
+
SmzInputIconComponent,
|
|
94
|
+
SmzInputGroupComponent,
|
|
95
|
+
SmzInputGroupAddonComponent,
|
|
96
|
+
SmzInputTextDirective,
|
|
97
|
+
SmzGalleryCaseComponent,
|
|
98
|
+
SmzGallerySectionComponent,
|
|
99
|
+
],
|
|
100
|
+
host: { class: 'flex flex-col gap-8' },
|
|
101
|
+
template: `
|
|
102
|
+
<smz-gallery-section label="Campo com ícone · estados" [columns]="4">
|
|
103
|
+
<smz-gallery-case label="padrão">
|
|
104
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" aria-label="Pesquisar" /></ui-icon-field>
|
|
105
|
+
</smz-gallery-case>
|
|
106
|
+
<smz-gallery-case label="placeholder">
|
|
107
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" placeholder="Pesquisar" aria-label="Pesquisar" /></ui-icon-field>
|
|
108
|
+
</smz-gallery-case>
|
|
109
|
+
<smz-gallery-case label="preenchido">
|
|
110
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" aria-label="Pesquisar" /></ui-icon-field>
|
|
111
|
+
</smz-gallery-case>
|
|
112
|
+
<smz-gallery-case label="hover" force="hover">
|
|
113
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" aria-label="Pesquisar" /></ui-icon-field>
|
|
114
|
+
</smz-gallery-case>
|
|
115
|
+
<smz-gallery-case label="foco" force="focus">
|
|
116
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" aria-label="Pesquisar" /></ui-icon-field>
|
|
117
|
+
</smz-gallery-case>
|
|
118
|
+
<smz-gallery-case label="foco · vazio" force="focus">
|
|
119
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" placeholder="Pesquisar" aria-label="Pesquisar" /></ui-icon-field>
|
|
120
|
+
</smz-gallery-case>
|
|
121
|
+
<smz-gallery-case label="somente leitura">
|
|
122
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" readonly aria-label="Pesquisar" /></ui-icon-field>
|
|
123
|
+
</smz-gallery-case>
|
|
124
|
+
<smz-gallery-case label="inválido">
|
|
125
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" invalid aria-label="Pesquisar" /></ui-icon-field>
|
|
126
|
+
</smz-gallery-case>
|
|
127
|
+
<smz-gallery-case label="inválido · foco" force="focus">
|
|
128
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" invalid aria-label="Pesquisar" /></ui-icon-field>
|
|
129
|
+
</smz-gallery-case>
|
|
130
|
+
<smz-gallery-case label="desabilitado">
|
|
131
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" placeholder="Pesquisar" disabled aria-label="Pesquisar" /></ui-icon-field>
|
|
132
|
+
</smz-gallery-case>
|
|
133
|
+
<smz-gallery-case label="desabilitado · preenchido">
|
|
134
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" disabled aria-label="Pesquisar" /></ui-icon-field>
|
|
135
|
+
</smz-gallery-case>
|
|
136
|
+
<smz-gallery-case label="ícone projetado (sem styleClass)">
|
|
137
|
+
<ui-icon-field class="w-full"><ui-input-icon><i class="fa-solid fa-envelope" aria-hidden="true"></i></ui-input-icon><input smzInputText type="text" placeholder="E-mail" aria-label="E-mail" /></ui-icon-field>
|
|
138
|
+
</smz-gallery-case>
|
|
139
|
+
</smz-gallery-section>
|
|
140
|
+
|
|
141
|
+
<smz-gallery-section label="Campo com ícone · tamanhos do input" [columns]="3">
|
|
142
|
+
@for (size of sizes; track size) {
|
|
143
|
+
<smz-gallery-case [label]="size">
|
|
144
|
+
<ui-icon-field class="w-full"><ui-input-icon styleClass="fa-solid fa-magnifying-glass" /><input smzInputText type="text" value="Contrato 2024" aria-label="Pesquisar" [size]="size" /></ui-icon-field>
|
|
145
|
+
</smz-gallery-case>
|
|
146
|
+
}
|
|
147
|
+
</smz-gallery-section>
|
|
148
|
+
|
|
149
|
+
<smz-gallery-section label="Grupo de input" [columns]="4">
|
|
150
|
+
<smz-gallery-case label="complemento à esquerda">
|
|
151
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" aria-label="Valor" /></ui-input-group>
|
|
152
|
+
</smz-gallery-case>
|
|
153
|
+
<smz-gallery-case label="complemento à direita">
|
|
154
|
+
<ui-input-group class="w-full"><input smzInputText type="text" value="75" aria-label="Peso" /><ui-input-group-addon>kg</ui-input-group-addon></ui-input-group>
|
|
155
|
+
</smz-gallery-case>
|
|
156
|
+
<smz-gallery-case label="dois complementos">
|
|
157
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250" aria-label="Valor" /><ui-input-group-addon>,00</ui-input-group-addon></ui-input-group>
|
|
158
|
+
</smz-gallery-case>
|
|
159
|
+
<smz-gallery-case label="complemento com ícone">
|
|
160
|
+
<ui-input-group class="w-full"><ui-input-group-addon><i class="fa-solid fa-user" aria-hidden="true"></i></ui-input-group-addon><input smzInputText type="text" placeholder="Usuário" aria-label="Usuário" /></ui-input-group>
|
|
161
|
+
</smz-gallery-case>
|
|
162
|
+
<smz-gallery-case label="hover" force="hover">
|
|
163
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" aria-label="Valor" /></ui-input-group>
|
|
164
|
+
</smz-gallery-case>
|
|
165
|
+
<smz-gallery-case label="foco" force="focus">
|
|
166
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" aria-label="Valor" /></ui-input-group>
|
|
167
|
+
</smz-gallery-case>
|
|
168
|
+
<smz-gallery-case label="inválido">
|
|
169
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" invalid aria-label="Valor" /></ui-input-group>
|
|
170
|
+
</smz-gallery-case>
|
|
171
|
+
<smz-gallery-case label="desabilitado">
|
|
172
|
+
<ui-input-group class="w-full"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type="text" value="1.250,00" disabled aria-label="Valor" /></ui-input-group>
|
|
173
|
+
</smz-gallery-case>
|
|
174
|
+
</smz-gallery-section>
|
|
175
|
+
`,
|
|
176
|
+
}]
|
|
177
|
+
}] });
|
|
178
|
+
|
|
179
|
+
export { IconFieldGalleryEntryComponent };
|
|
180
|
+
//# sourceMappingURL=ngx-smz-core-icon-field.entry-Da7XWGW4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-core-icon-field.entry-Da7XWGW4.mjs","sources":["../../../projects/ngx-smz-ui/src/lib/modules/smz-design-system/gallery/entries/kit/icon-field.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport {\n SmzIconFieldComponent,\n SmzInputGroupAddonComponent,\n SmzInputGroupComponent,\n SmzInputIconComponent,\n SmzInputSize,\n SmzInputTextDirective,\n} from '@ngx-smz/ui-kit';\nimport { SmzGalleryCaseComponent } from '../../gallery-case.component';\nimport { SmzGallerySectionComponent } from '../../gallery-section.component';\n\n/** Galeria: campo com ícone (`ui-icon-field` + `ui-input-icon`) e grupo de input (`ui-input-group` + `ui-input-group-addon`). */\n@Component({\n selector: 'smz-gallery-icon-field-entry',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n SmzIconFieldComponent,\n SmzInputIconComponent,\n SmzInputGroupComponent,\n SmzInputGroupAddonComponent,\n SmzInputTextDirective,\n SmzGalleryCaseComponent,\n SmzGallerySectionComponent,\n ],\n host: { class: 'flex flex-col gap-8' },\n template: `\n <smz-gallery-section label=\"Campo com ícone · estados\" [columns]=\"4\">\n <smz-gallery-case label=\"padrão\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"placeholder\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" placeholder=\"Pesquisar\" aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"preenchido\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" value=\"Contrato 2024\" aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"hover\" force=\"hover\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" value=\"Contrato 2024\" aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"foco\" force=\"focus\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" value=\"Contrato 2024\" aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"foco · vazio\" force=\"focus\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" placeholder=\"Pesquisar\" aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"somente leitura\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" value=\"Contrato 2024\" readonly aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"inválido\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" value=\"Contrato 2024\" invalid aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"inválido · foco\" force=\"focus\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" value=\"Contrato 2024\" invalid aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"desabilitado\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" placeholder=\"Pesquisar\" disabled aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"desabilitado · preenchido\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" value=\"Contrato 2024\" disabled aria-label=\"Pesquisar\" /></ui-icon-field>\n </smz-gallery-case>\n <smz-gallery-case label=\"ícone projetado (sem styleClass)\">\n <ui-icon-field class=\"w-full\"><ui-input-icon><i class=\"fa-solid fa-envelope\" aria-hidden=\"true\"></i></ui-input-icon><input smzInputText type=\"text\" placeholder=\"E-mail\" aria-label=\"E-mail\" /></ui-icon-field>\n </smz-gallery-case>\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Campo com ícone · tamanhos do input\" [columns]=\"3\">\n @for (size of sizes; track size) {\n <smz-gallery-case [label]=\"size\">\n <ui-icon-field class=\"w-full\"><ui-input-icon styleClass=\"fa-solid fa-magnifying-glass\" /><input smzInputText type=\"text\" value=\"Contrato 2024\" aria-label=\"Pesquisar\" [size]=\"size\" /></ui-icon-field>\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Grupo de input\" [columns]=\"4\">\n <smz-gallery-case label=\"complemento à esquerda\">\n <ui-input-group class=\"w-full\"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type=\"text\" value=\"1.250,00\" aria-label=\"Valor\" /></ui-input-group>\n </smz-gallery-case>\n <smz-gallery-case label=\"complemento à direita\">\n <ui-input-group class=\"w-full\"><input smzInputText type=\"text\" value=\"75\" aria-label=\"Peso\" /><ui-input-group-addon>kg</ui-input-group-addon></ui-input-group>\n </smz-gallery-case>\n <smz-gallery-case label=\"dois complementos\">\n <ui-input-group class=\"w-full\"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type=\"text\" value=\"1.250\" aria-label=\"Valor\" /><ui-input-group-addon>,00</ui-input-group-addon></ui-input-group>\n </smz-gallery-case>\n <smz-gallery-case label=\"complemento com ícone\">\n <ui-input-group class=\"w-full\"><ui-input-group-addon><i class=\"fa-solid fa-user\" aria-hidden=\"true\"></i></ui-input-group-addon><input smzInputText type=\"text\" placeholder=\"Usuário\" aria-label=\"Usuário\" /></ui-input-group>\n </smz-gallery-case>\n <smz-gallery-case label=\"hover\" force=\"hover\">\n <ui-input-group class=\"w-full\"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type=\"text\" value=\"1.250,00\" aria-label=\"Valor\" /></ui-input-group>\n </smz-gallery-case>\n <smz-gallery-case label=\"foco\" force=\"focus\">\n <ui-input-group class=\"w-full\"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type=\"text\" value=\"1.250,00\" aria-label=\"Valor\" /></ui-input-group>\n </smz-gallery-case>\n <smz-gallery-case label=\"inválido\">\n <ui-input-group class=\"w-full\"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type=\"text\" value=\"1.250,00\" invalid aria-label=\"Valor\" /></ui-input-group>\n </smz-gallery-case>\n <smz-gallery-case label=\"desabilitado\">\n <ui-input-group class=\"w-full\"><ui-input-group-addon>R$</ui-input-group-addon><input smzInputText type=\"text\" value=\"1.250,00\" disabled aria-label=\"Valor\" /></ui-input-group>\n </smz-gallery-case>\n </smz-gallery-section>\n `,\n})\nexport class IconFieldGalleryEntryComponent {\n protected readonly sizes: SmzInputSize[] = ['sm', 'md', 'lg'];\n}\n"],"names":[],"mappings":";;;;;AAYA;MA0Fa,8BAA8B,CAAA;IACtB,KAAK,G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AAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,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;;2FA+EjB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAzF1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,8BAA8B;oBACxC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,qBAAqB;wBACrB,sBAAsB;wBACtB,2BAA2B;wBAC3B,qBAAqB;wBACrB,uBAAuB;wBACvB,0BAA0B;AAC3B,qBAAA;AACD,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;AACtC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0ET,EAAA,CAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { SmzIconComponent } from '@ngx-smz/ui-kit';
|
|
4
|
+
import { SmzGalleryCaseComponent, SmzGallerySectionComponent } from './ngx-smz-core.mjs';
|
|
5
|
+
|
|
6
|
+
/** Galeria: ícone por classe de fonte. Tamanho e cor são herdados do texto do hospedeiro. */
|
|
7
|
+
class IconGalleryEntryComponent {
|
|
8
|
+
fontAwesome = [
|
|
9
|
+
{ label: 'check', name: 'fa-solid fa-check' },
|
|
10
|
+
{ label: 'xmark', name: 'fa-solid fa-xmark' },
|
|
11
|
+
{ label: 'plus', name: 'fa-solid fa-plus' },
|
|
12
|
+
{ label: 'trash', name: 'fa-solid fa-trash' },
|
|
13
|
+
{ label: 'pen', name: 'fa-solid fa-pen' },
|
|
14
|
+
{ label: 'magnifying-glass', name: 'fa-solid fa-magnifying-glass' },
|
|
15
|
+
{ label: 'bell', name: 'fa-solid fa-bell' },
|
|
16
|
+
{ label: 'user', name: 'fa-solid fa-user' },
|
|
17
|
+
{ label: 'gear', name: 'fa-solid fa-gear' },
|
|
18
|
+
{ label: 'triangle-exclamation', name: 'fa-solid fa-triangle-exclamation' },
|
|
19
|
+
{ label: 'bell (regular)', name: 'fa-regular fa-bell' },
|
|
20
|
+
{ label: 'user (regular)', name: 'fa-regular fa-user' },
|
|
21
|
+
];
|
|
22
|
+
primeIcons = [
|
|
23
|
+
{ label: 'pi-check', name: 'pi pi-check' },
|
|
24
|
+
{ label: 'pi-times', name: 'pi pi-times' },
|
|
25
|
+
{ label: 'pi-plus', name: 'pi pi-plus' },
|
|
26
|
+
{ label: 'pi-trash', name: 'pi pi-trash' },
|
|
27
|
+
{ label: 'pi-search', name: 'pi pi-search' },
|
|
28
|
+
{ label: 'pi-cog', name: 'pi pi-cog' },
|
|
29
|
+
];
|
|
30
|
+
sizes = [
|
|
31
|
+
{ label: 'text-ui-xs', classes: 'text-ui-xs text-ui-fg' },
|
|
32
|
+
{ label: 'text-ui-sm', classes: 'text-ui-sm text-ui-fg' },
|
|
33
|
+
{ label: 'text-ui-md', classes: 'text-ui-md text-ui-fg' },
|
|
34
|
+
{ label: 'text-ui-lg', classes: 'text-ui-lg text-ui-fg' },
|
|
35
|
+
{ label: 'text-ui-xl', classes: 'text-ui-xl text-ui-fg' },
|
|
36
|
+
];
|
|
37
|
+
tones = [
|
|
38
|
+
{ label: 'fg', classes: 'text-ui-lg text-ui-fg' },
|
|
39
|
+
{ label: 'fg-muted', classes: 'text-ui-lg text-ui-fg-muted' },
|
|
40
|
+
{ label: 'primary', classes: 'text-ui-lg text-ui-primary' },
|
|
41
|
+
{ label: 'success', classes: 'text-ui-lg text-ui-success' },
|
|
42
|
+
{ label: 'warning', classes: 'text-ui-lg text-ui-warning' },
|
|
43
|
+
{ label: 'danger', classes: 'text-ui-lg text-ui-danger' },
|
|
44
|
+
];
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: IconGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.5", type: IconGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-icon-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
47
|
+
<smz-gallery-section label="Font Awesome (sólido e regular)" [columns]="6">
|
|
48
|
+
@for (icon of fontAwesome; track icon.name) {
|
|
49
|
+
<smz-gallery-case [label]="icon.label">
|
|
50
|
+
<ui-icon class="text-ui-fg" [name]="icon.name" />
|
|
51
|
+
</smz-gallery-case>
|
|
52
|
+
}
|
|
53
|
+
</smz-gallery-section>
|
|
54
|
+
|
|
55
|
+
<smz-gallery-section label="PrimeIcons" [columns]="6">
|
|
56
|
+
@for (icon of primeIcons; track icon.name) {
|
|
57
|
+
<smz-gallery-case [label]="icon.label">
|
|
58
|
+
<ui-icon class="text-ui-fg" [name]="icon.name" />
|
|
59
|
+
</smz-gallery-case>
|
|
60
|
+
}
|
|
61
|
+
</smz-gallery-section>
|
|
62
|
+
|
|
63
|
+
<smz-gallery-section label="Tamanho herdado do texto" [columns]="5">
|
|
64
|
+
@for (size of sizes; track size.label) {
|
|
65
|
+
<smz-gallery-case [label]="size.label">
|
|
66
|
+
<ui-icon name="fa-solid fa-gear" [class]="size.classes" />
|
|
67
|
+
</smz-gallery-case>
|
|
68
|
+
}
|
|
69
|
+
</smz-gallery-section>
|
|
70
|
+
|
|
71
|
+
<smz-gallery-section label="Cor herdada do texto" [columns]="6">
|
|
72
|
+
@for (tone of tones; track tone.label) {
|
|
73
|
+
<smz-gallery-case [label]="tone.label">
|
|
74
|
+
<ui-icon name="fa-solid fa-circle-check" [class]="tone.classes" />
|
|
75
|
+
</smz-gallery-case>
|
|
76
|
+
}
|
|
77
|
+
</smz-gallery-section>
|
|
78
|
+
|
|
79
|
+
<smz-gallery-section label="Composição" [columns]="3">
|
|
80
|
+
<smz-gallery-case label="ao lado de texto">
|
|
81
|
+
<span class="inline-flex items-center gap-2 text-ui-md text-ui-fg">
|
|
82
|
+
<ui-icon name="fa-solid fa-calendar-days" />
|
|
83
|
+
Vencimento em 15/03/2025
|
|
84
|
+
</span>
|
|
85
|
+
</smz-gallery-case>
|
|
86
|
+
<smz-gallery-case label="largura fixa (fa-fw) em lista">
|
|
87
|
+
<div class="flex flex-col gap-2 text-ui-md text-ui-fg">
|
|
88
|
+
<span class="inline-flex items-center gap-2"><ui-icon name="fa-solid fa-fw fa-house" />Início</span>
|
|
89
|
+
<span class="inline-flex items-center gap-2"><ui-icon name="fa-solid fa-fw fa-users" />Clientes</span>
|
|
90
|
+
<span class="inline-flex items-center gap-2"><ui-icon name="fa-solid fa-fw fa-file-invoice" />Faturas</span>
|
|
91
|
+
</div>
|
|
92
|
+
</smz-gallery-case>
|
|
93
|
+
<smz-gallery-case label="classe inexistente (sem glifo)">
|
|
94
|
+
<ui-icon class="text-ui-fg" name="fa-solid fa-icone-inexistente" />
|
|
95
|
+
</smz-gallery-case>
|
|
96
|
+
</smz-gallery-section>
|
|
97
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmzIconComponent, selector: "ui-icon", inputs: ["name"] }, { 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 });
|
|
98
|
+
}
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: IconGalleryEntryComponent, decorators: [{
|
|
100
|
+
type: Component,
|
|
101
|
+
args: [{
|
|
102
|
+
selector: 'smz-gallery-icon-entry',
|
|
103
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
104
|
+
imports: [SmzIconComponent, SmzGalleryCaseComponent, SmzGallerySectionComponent],
|
|
105
|
+
host: { class: 'flex flex-col gap-8' },
|
|
106
|
+
template: `
|
|
107
|
+
<smz-gallery-section label="Font Awesome (sólido e regular)" [columns]="6">
|
|
108
|
+
@for (icon of fontAwesome; track icon.name) {
|
|
109
|
+
<smz-gallery-case [label]="icon.label">
|
|
110
|
+
<ui-icon class="text-ui-fg" [name]="icon.name" />
|
|
111
|
+
</smz-gallery-case>
|
|
112
|
+
}
|
|
113
|
+
</smz-gallery-section>
|
|
114
|
+
|
|
115
|
+
<smz-gallery-section label="PrimeIcons" [columns]="6">
|
|
116
|
+
@for (icon of primeIcons; track icon.name) {
|
|
117
|
+
<smz-gallery-case [label]="icon.label">
|
|
118
|
+
<ui-icon class="text-ui-fg" [name]="icon.name" />
|
|
119
|
+
</smz-gallery-case>
|
|
120
|
+
}
|
|
121
|
+
</smz-gallery-section>
|
|
122
|
+
|
|
123
|
+
<smz-gallery-section label="Tamanho herdado do texto" [columns]="5">
|
|
124
|
+
@for (size of sizes; track size.label) {
|
|
125
|
+
<smz-gallery-case [label]="size.label">
|
|
126
|
+
<ui-icon name="fa-solid fa-gear" [class]="size.classes" />
|
|
127
|
+
</smz-gallery-case>
|
|
128
|
+
}
|
|
129
|
+
</smz-gallery-section>
|
|
130
|
+
|
|
131
|
+
<smz-gallery-section label="Cor herdada do texto" [columns]="6">
|
|
132
|
+
@for (tone of tones; track tone.label) {
|
|
133
|
+
<smz-gallery-case [label]="tone.label">
|
|
134
|
+
<ui-icon name="fa-solid fa-circle-check" [class]="tone.classes" />
|
|
135
|
+
</smz-gallery-case>
|
|
136
|
+
}
|
|
137
|
+
</smz-gallery-section>
|
|
138
|
+
|
|
139
|
+
<smz-gallery-section label="Composição" [columns]="3">
|
|
140
|
+
<smz-gallery-case label="ao lado de texto">
|
|
141
|
+
<span class="inline-flex items-center gap-2 text-ui-md text-ui-fg">
|
|
142
|
+
<ui-icon name="fa-solid fa-calendar-days" />
|
|
143
|
+
Vencimento em 15/03/2025
|
|
144
|
+
</span>
|
|
145
|
+
</smz-gallery-case>
|
|
146
|
+
<smz-gallery-case label="largura fixa (fa-fw) em lista">
|
|
147
|
+
<div class="flex flex-col gap-2 text-ui-md text-ui-fg">
|
|
148
|
+
<span class="inline-flex items-center gap-2"><ui-icon name="fa-solid fa-fw fa-house" />Início</span>
|
|
149
|
+
<span class="inline-flex items-center gap-2"><ui-icon name="fa-solid fa-fw fa-users" />Clientes</span>
|
|
150
|
+
<span class="inline-flex items-center gap-2"><ui-icon name="fa-solid fa-fw fa-file-invoice" />Faturas</span>
|
|
151
|
+
</div>
|
|
152
|
+
</smz-gallery-case>
|
|
153
|
+
<smz-gallery-case label="classe inexistente (sem glifo)">
|
|
154
|
+
<ui-icon class="text-ui-fg" name="fa-solid fa-icone-inexistente" />
|
|
155
|
+
</smz-gallery-case>
|
|
156
|
+
</smz-gallery-section>
|
|
157
|
+
`,
|
|
158
|
+
}]
|
|
159
|
+
}] });
|
|
160
|
+
|
|
161
|
+
export { IconGalleryEntryComponent };
|
|
162
|
+
//# sourceMappingURL=ngx-smz-core-icon.entry-C5ZyOSTK.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-core-icon.entry-C5ZyOSTK.mjs","sources":["../../../projects/ngx-smz-ui/src/lib/modules/smz-design-system/gallery/entries/kit/icon.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { SmzIconComponent } from '@ngx-smz/ui-kit';\nimport { SmzGalleryCaseComponent } from '../../gallery-case.component';\nimport { SmzGallerySectionComponent } from '../../gallery-section.component';\n\ninterface IconSample {\n label: string;\n name: string;\n}\n\ninterface IconTone {\n label: string;\n classes: string;\n}\n\n/** Galeria: ícone por classe de fonte. Tamanho e cor são herdados do texto do hospedeiro. */\n@Component({\n selector: 'smz-gallery-icon-entry',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmzIconComponent, SmzGalleryCaseComponent, SmzGallerySectionComponent],\n host: { class: 'flex flex-col gap-8' },\n template: `\n <smz-gallery-section label=\"Font Awesome (sólido e regular)\" [columns]=\"6\">\n @for (icon of fontAwesome; track icon.name) {\n <smz-gallery-case [label]=\"icon.label\">\n <ui-icon class=\"text-ui-fg\" [name]=\"icon.name\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"PrimeIcons\" [columns]=\"6\">\n @for (icon of primeIcons; track icon.name) {\n <smz-gallery-case [label]=\"icon.label\">\n <ui-icon class=\"text-ui-fg\" [name]=\"icon.name\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Tamanho herdado do texto\" [columns]=\"5\">\n @for (size of sizes; track size.label) {\n <smz-gallery-case [label]=\"size.label\">\n <ui-icon name=\"fa-solid fa-gear\" [class]=\"size.classes\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Cor herdada do texto\" [columns]=\"6\">\n @for (tone of tones; track tone.label) {\n <smz-gallery-case [label]=\"tone.label\">\n <ui-icon name=\"fa-solid fa-circle-check\" [class]=\"tone.classes\" />\n </smz-gallery-case>\n }\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Composição\" [columns]=\"3\">\n <smz-gallery-case label=\"ao lado de texto\">\n <span class=\"inline-flex items-center gap-2 text-ui-md text-ui-fg\">\n <ui-icon name=\"fa-solid fa-calendar-days\" />\n Vencimento em 15/03/2025\n </span>\n </smz-gallery-case>\n <smz-gallery-case label=\"largura fixa (fa-fw) em lista\">\n <div class=\"flex flex-col gap-2 text-ui-md text-ui-fg\">\n <span class=\"inline-flex items-center gap-2\"><ui-icon name=\"fa-solid fa-fw fa-house\" />Início</span>\n <span class=\"inline-flex items-center gap-2\"><ui-icon name=\"fa-solid fa-fw fa-users\" />Clientes</span>\n <span class=\"inline-flex items-center gap-2\"><ui-icon name=\"fa-solid fa-fw fa-file-invoice\" />Faturas</span>\n </div>\n </smz-gallery-case>\n <smz-gallery-case label=\"classe inexistente (sem glifo)\">\n <ui-icon class=\"text-ui-fg\" name=\"fa-solid fa-icone-inexistente\" />\n </smz-gallery-case>\n </smz-gallery-section>\n `,\n})\nexport class IconGalleryEntryComponent {\n protected readonly fontAwesome: IconSample[] = [\n { label: 'check', name: 'fa-solid fa-check' },\n { label: 'xmark', name: 'fa-solid fa-xmark' },\n { label: 'plus', name: 'fa-solid fa-plus' },\n { label: 'trash', name: 'fa-solid fa-trash' },\n { label: 'pen', name: 'fa-solid fa-pen' },\n { label: 'magnifying-glass', name: 'fa-solid fa-magnifying-glass' },\n { label: 'bell', name: 'fa-solid fa-bell' },\n { label: 'user', name: 'fa-solid fa-user' },\n { label: 'gear', name: 'fa-solid fa-gear' },\n { label: 'triangle-exclamation', name: 'fa-solid fa-triangle-exclamation' },\n { label: 'bell (regular)', name: 'fa-regular fa-bell' },\n { label: 'user (regular)', name: 'fa-regular fa-user' },\n ];\n\n protected readonly primeIcons: IconSample[] = [\n { label: 'pi-check', name: 'pi pi-check' },\n { label: 'pi-times', name: 'pi pi-times' },\n { label: 'pi-plus', name: 'pi pi-plus' },\n { label: 'pi-trash', name: 'pi pi-trash' },\n { label: 'pi-search', name: 'pi pi-search' },\n { label: 'pi-cog', name: 'pi pi-cog' },\n ];\n\n protected readonly sizes: IconTone[] = [\n { label: 'text-ui-xs', classes: 'text-ui-xs text-ui-fg' },\n { label: 'text-ui-sm', classes: 'text-ui-sm text-ui-fg' },\n { label: 'text-ui-md', classes: 'text-ui-md text-ui-fg' },\n { label: 'text-ui-lg', classes: 'text-ui-lg text-ui-fg' },\n { label: 'text-ui-xl', classes: 'text-ui-xl text-ui-fg' },\n ];\n\n protected readonly tones: IconTone[] = [\n { label: 'fg', classes: 'text-ui-lg text-ui-fg' },\n { label: 'fg-muted', classes: 'text-ui-lg text-ui-fg-muted' },\n { label: 'primary', classes: 'text-ui-lg text-ui-primary' },\n { label: 'success', classes: 'text-ui-lg text-ui-success' },\n { label: 'warning', classes: 'text-ui-lg text-ui-warning' },\n { label: 'danger', classes: 'text-ui-lg text-ui-danger' },\n ];\n}\n"],"names":[],"mappings":";;;;;AAeA;MA2Da,yBAAyB,CAAA;AACjB,IAAA,WAAW,GAAiB;AAC7C,QAAA,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE;AAC7C,QAAA,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE;AAC7C,QAAA,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE;AAC3C,QAAA,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE;AAC7C,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE;AACzC,QAAA,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,8BAA8B,EAAE;AACnE,QAAA,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE;AAC3C,QAAA,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE;AAC3C,QAAA,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE;AAC3C,QAAA,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,kCAAkC,EAAE;AAC3E,QAAA,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,oBAAoB,EAAE;AACvD,QAAA,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,oBAAoB,EAAE;KACxD;AAEkB,IAAA,UAAU,GAAiB;AAC5C,QAAA,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE;AAC1C,QAAA,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDT,EAAA,CAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { SmzInputMaskComponent } from '@ngx-smz/ui-kit';
|
|
6
|
+
import { SmzGalleryCaseComponent, SmzGallerySectionComponent } from './ngx-smz-core.mjs';
|
|
7
|
+
|
|
8
|
+
function dirtyInvalidControl() {
|
|
9
|
+
const control = new FormControl(null, Validators.required);
|
|
10
|
+
control.markAsDirty();
|
|
11
|
+
return control;
|
|
12
|
+
}
|
|
13
|
+
/** Galeria: campo com máscara em todos os estados e formatos de máscara. */
|
|
14
|
+
class InputMaskGalleryEntryComponent {
|
|
15
|
+
phone = new FormControl('11987654321');
|
|
16
|
+
partialPhone = new FormControl('11987');
|
|
17
|
+
disabledPhone = new FormControl({ value: '11987654321', disabled: true });
|
|
18
|
+
invalidPhone = dirtyInvalidControl();
|
|
19
|
+
invalidPhoneFocus = dirtyInvalidControl();
|
|
20
|
+
cpf = new FormControl('12345678909');
|
|
21
|
+
cep = new FormControl('01310100');
|
|
22
|
+
date = new FormControl('15032024');
|
|
23
|
+
partialDate = new FormControl('1503');
|
|
24
|
+
plate = new FormControl('ABC1D23');
|
|
25
|
+
landline = new FormControl('1133445566');
|
|
26
|
+
pin = new FormControl('1234');
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: InputMaskGalleryEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.5", type: InputMaskGalleryEntryComponent, isStandalone: true, selector: "smz-gallery-input-mask-entry", host: { classAttribute: "flex flex-col gap-8" }, ngImport: i0, template: `
|
|
29
|
+
<smz-gallery-section label="Estados" [columns]="4">
|
|
30
|
+
<smz-gallery-case label="padrão"><ui-input-mask class="w-full" mask="(99) 99999-9999" /></smz-gallery-case>
|
|
31
|
+
<smz-gallery-case label="placeholder"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="(00) 00000-0000" /></smz-gallery-case>
|
|
32
|
+
<smz-gallery-case label="preenchido"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="phone" /></smz-gallery-case>
|
|
33
|
+
<smz-gallery-case label="preenchido parcialmente"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="partialPhone" /></smz-gallery-case>
|
|
34
|
+
<smz-gallery-case label="hover" force="hover"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="phone" /></smz-gallery-case>
|
|
35
|
+
<smz-gallery-case label="foco" force="focus"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="phone" /></smz-gallery-case>
|
|
36
|
+
<smz-gallery-case label="foco · vazio" force="focus"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="(00) 00000-0000" /></smz-gallery-case>
|
|
37
|
+
<smz-gallery-case label="somente leitura"><ui-input-mask class="w-full" mask="(99) 99999-9999" readonly [formControl]="phone" /></smz-gallery-case>
|
|
38
|
+
<smz-gallery-case label="somente leitura · foco" force="focus"><ui-input-mask class="w-full" mask="(99) 99999-9999" readonly [formControl]="phone" /></smz-gallery-case>
|
|
39
|
+
<smz-gallery-case label="desabilitado"><ui-input-mask class="w-full" mask="(99) 99999-9999" disabled /></smz-gallery-case>
|
|
40
|
+
<smz-gallery-case label="desabilitado · placeholder"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="(00) 00000-0000" disabled /></smz-gallery-case>
|
|
41
|
+
<smz-gallery-case label="desabilitado · preenchido"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="disabledPhone" /></smz-gallery-case>
|
|
42
|
+
<smz-gallery-case label="controle inválido e sujo"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="Obrigatório" [formControl]="invalidPhone" /></smz-gallery-case>
|
|
43
|
+
<smz-gallery-case label="controle inválido e sujo · foco" force="focus"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="Obrigatório" [formControl]="invalidPhoneFocus" /></smz-gallery-case>
|
|
44
|
+
</smz-gallery-section>
|
|
45
|
+
|
|
46
|
+
<smz-gallery-section label="Máscaras" [columns]="4">
|
|
47
|
+
<smz-gallery-case label="CPF · 999.999.999-99"><ui-input-mask class="w-full" mask="999.999.999-99" [formControl]="cpf" /></smz-gallery-case>
|
|
48
|
+
<smz-gallery-case label="CEP · 99999-999"><ui-input-mask class="w-full" mask="99999-999" [formControl]="cep" /></smz-gallery-case>
|
|
49
|
+
<smz-gallery-case label="data · 99/99/9999"><ui-input-mask class="w-full" mask="99/99/9999" [formControl]="date" /></smz-gallery-case>
|
|
50
|
+
<smz-gallery-case label="placa · aaa-9*99"><ui-input-mask class="w-full" mask="aaa-9*99" [formControl]="plate" /></smz-gallery-case>
|
|
51
|
+
<smz-gallery-case label="opcional · (99) 9999-9999?9"><ui-input-mask class="w-full" mask="(99) 9999-9999?9" [formControl]="landline" /></smz-gallery-case>
|
|
52
|
+
<smz-gallery-case label="slotChar · parcial"><ui-input-mask class="w-full" mask="99/99/9999" slotChar="#" [formControl]="partialDate" /></smz-gallery-case>
|
|
53
|
+
<smz-gallery-case label="unmask"><ui-input-mask class="w-full" mask="999.999.999-99" unmask [formControl]="cpf" /></smz-gallery-case>
|
|
54
|
+
<smz-gallery-case label="type password"><ui-input-mask class="w-full" mask="9999" type="password" [formControl]="pin" /></smz-gallery-case>
|
|
55
|
+
</smz-gallery-section>
|
|
56
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SmzInputMaskComponent, selector: "ui-input-mask", inputs: ["mask", "slotChar", "characterPattern", "unmask", "autoClear", "placeholder", "readonly", "inputId", "name", "type"], outputs: ["inputed", "blurred", "completed"] }, { 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: InputMaskGalleryEntryComponent, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{
|
|
61
|
+
selector: 'smz-gallery-input-mask-entry',
|
|
62
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
63
|
+
imports: [ReactiveFormsModule, SmzInputMaskComponent, SmzGalleryCaseComponent, SmzGallerySectionComponent],
|
|
64
|
+
host: { class: 'flex flex-col gap-8' },
|
|
65
|
+
template: `
|
|
66
|
+
<smz-gallery-section label="Estados" [columns]="4">
|
|
67
|
+
<smz-gallery-case label="padrão"><ui-input-mask class="w-full" mask="(99) 99999-9999" /></smz-gallery-case>
|
|
68
|
+
<smz-gallery-case label="placeholder"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="(00) 00000-0000" /></smz-gallery-case>
|
|
69
|
+
<smz-gallery-case label="preenchido"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="phone" /></smz-gallery-case>
|
|
70
|
+
<smz-gallery-case label="preenchido parcialmente"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="partialPhone" /></smz-gallery-case>
|
|
71
|
+
<smz-gallery-case label="hover" force="hover"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="phone" /></smz-gallery-case>
|
|
72
|
+
<smz-gallery-case label="foco" force="focus"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="phone" /></smz-gallery-case>
|
|
73
|
+
<smz-gallery-case label="foco · vazio" force="focus"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="(00) 00000-0000" /></smz-gallery-case>
|
|
74
|
+
<smz-gallery-case label="somente leitura"><ui-input-mask class="w-full" mask="(99) 99999-9999" readonly [formControl]="phone" /></smz-gallery-case>
|
|
75
|
+
<smz-gallery-case label="somente leitura · foco" force="focus"><ui-input-mask class="w-full" mask="(99) 99999-9999" readonly [formControl]="phone" /></smz-gallery-case>
|
|
76
|
+
<smz-gallery-case label="desabilitado"><ui-input-mask class="w-full" mask="(99) 99999-9999" disabled /></smz-gallery-case>
|
|
77
|
+
<smz-gallery-case label="desabilitado · placeholder"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="(00) 00000-0000" disabled /></smz-gallery-case>
|
|
78
|
+
<smz-gallery-case label="desabilitado · preenchido"><ui-input-mask class="w-full" mask="(99) 99999-9999" [formControl]="disabledPhone" /></smz-gallery-case>
|
|
79
|
+
<smz-gallery-case label="controle inválido e sujo"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="Obrigatório" [formControl]="invalidPhone" /></smz-gallery-case>
|
|
80
|
+
<smz-gallery-case label="controle inválido e sujo · foco" force="focus"><ui-input-mask class="w-full" mask="(99) 99999-9999" placeholder="Obrigatório" [formControl]="invalidPhoneFocus" /></smz-gallery-case>
|
|
81
|
+
</smz-gallery-section>
|
|
82
|
+
|
|
83
|
+
<smz-gallery-section label="Máscaras" [columns]="4">
|
|
84
|
+
<smz-gallery-case label="CPF · 999.999.999-99"><ui-input-mask class="w-full" mask="999.999.999-99" [formControl]="cpf" /></smz-gallery-case>
|
|
85
|
+
<smz-gallery-case label="CEP · 99999-999"><ui-input-mask class="w-full" mask="99999-999" [formControl]="cep" /></smz-gallery-case>
|
|
86
|
+
<smz-gallery-case label="data · 99/99/9999"><ui-input-mask class="w-full" mask="99/99/9999" [formControl]="date" /></smz-gallery-case>
|
|
87
|
+
<smz-gallery-case label="placa · aaa-9*99"><ui-input-mask class="w-full" mask="aaa-9*99" [formControl]="plate" /></smz-gallery-case>
|
|
88
|
+
<smz-gallery-case label="opcional · (99) 9999-9999?9"><ui-input-mask class="w-full" mask="(99) 9999-9999?9" [formControl]="landline" /></smz-gallery-case>
|
|
89
|
+
<smz-gallery-case label="slotChar · parcial"><ui-input-mask class="w-full" mask="99/99/9999" slotChar="#" [formControl]="partialDate" /></smz-gallery-case>
|
|
90
|
+
<smz-gallery-case label="unmask"><ui-input-mask class="w-full" mask="999.999.999-99" unmask [formControl]="cpf" /></smz-gallery-case>
|
|
91
|
+
<smz-gallery-case label="type password"><ui-input-mask class="w-full" mask="9999" type="password" [formControl]="pin" /></smz-gallery-case>
|
|
92
|
+
</smz-gallery-section>
|
|
93
|
+
`,
|
|
94
|
+
}]
|
|
95
|
+
}] });
|
|
96
|
+
|
|
97
|
+
export { InputMaskGalleryEntryComponent };
|
|
98
|
+
//# sourceMappingURL=ngx-smz-core-input-mask.entry-Dgebm0ZX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-smz-core-input-mask.entry-Dgebm0ZX.mjs","sources":["../../../projects/ngx-smz-ui/src/lib/modules/smz-design-system/gallery/entries/kit/input-mask.entry.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { SmzInputMaskComponent } from '@ngx-smz/ui-kit';\nimport { SmzGalleryCaseComponent } from '../../gallery-case.component';\nimport { SmzGallerySectionComponent } from '../../gallery-section.component';\n\nfunction dirtyInvalidControl(): FormControl<string | null> {\n const control = new FormControl<string | null>(null, Validators.required);\n control.markAsDirty();\n return control;\n}\n\n/** Galeria: campo com máscara em todos os estados e formatos de máscara. */\n@Component({\n selector: 'smz-gallery-input-mask-entry',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ReactiveFormsModule, SmzInputMaskComponent, SmzGalleryCaseComponent, SmzGallerySectionComponent],\n host: { class: 'flex flex-col gap-8' },\n template: `\n <smz-gallery-section label=\"Estados\" [columns]=\"4\">\n <smz-gallery-case label=\"padrão\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" /></smz-gallery-case>\n <smz-gallery-case label=\"placeholder\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" placeholder=\"(00) 00000-0000\" /></smz-gallery-case>\n <smz-gallery-case label=\"preenchido\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" [formControl]=\"phone\" /></smz-gallery-case>\n <smz-gallery-case label=\"preenchido parcialmente\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" [formControl]=\"partialPhone\" /></smz-gallery-case>\n <smz-gallery-case label=\"hover\" force=\"hover\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" [formControl]=\"phone\" /></smz-gallery-case>\n <smz-gallery-case label=\"foco\" force=\"focus\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" [formControl]=\"phone\" /></smz-gallery-case>\n <smz-gallery-case label=\"foco · vazio\" force=\"focus\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" placeholder=\"(00) 00000-0000\" /></smz-gallery-case>\n <smz-gallery-case label=\"somente leitura\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" readonly [formControl]=\"phone\" /></smz-gallery-case>\n <smz-gallery-case label=\"somente leitura · foco\" force=\"focus\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" readonly [formControl]=\"phone\" /></smz-gallery-case>\n <smz-gallery-case label=\"desabilitado\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" disabled /></smz-gallery-case>\n <smz-gallery-case label=\"desabilitado · placeholder\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" placeholder=\"(00) 00000-0000\" disabled /></smz-gallery-case>\n <smz-gallery-case label=\"desabilitado · preenchido\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" [formControl]=\"disabledPhone\" /></smz-gallery-case>\n <smz-gallery-case label=\"controle inválido e sujo\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" placeholder=\"Obrigatório\" [formControl]=\"invalidPhone\" /></smz-gallery-case>\n <smz-gallery-case label=\"controle inválido e sujo · foco\" force=\"focus\"><ui-input-mask class=\"w-full\" mask=\"(99) 99999-9999\" placeholder=\"Obrigatório\" [formControl]=\"invalidPhoneFocus\" /></smz-gallery-case>\n </smz-gallery-section>\n\n <smz-gallery-section label=\"Máscaras\" [columns]=\"4\">\n <smz-gallery-case label=\"CPF · 999.999.999-99\"><ui-input-mask class=\"w-full\" mask=\"999.999.999-99\" [formControl]=\"cpf\" /></smz-gallery-case>\n <smz-gallery-case label=\"CEP · 99999-999\"><ui-input-mask class=\"w-full\" mask=\"99999-999\" [formControl]=\"cep\" /></smz-gallery-case>\n <smz-gallery-case label=\"data · 99/99/9999\"><ui-input-mask class=\"w-full\" mask=\"99/99/9999\" [formControl]=\"date\" /></smz-gallery-case>\n <smz-gallery-case label=\"placa · aaa-9*99\"><ui-input-mask class=\"w-full\" mask=\"aaa-9*99\" [formControl]=\"plate\" /></smz-gallery-case>\n <smz-gallery-case label=\"opcional · (99) 9999-9999?9\"><ui-input-mask class=\"w-full\" mask=\"(99) 9999-9999?9\" [formControl]=\"landline\" /></smz-gallery-case>\n <smz-gallery-case label=\"slotChar · parcial\"><ui-input-mask class=\"w-full\" mask=\"99/99/9999\" slotChar=\"#\" [formControl]=\"partialDate\" /></smz-gallery-case>\n <smz-gallery-case label=\"unmask\"><ui-input-mask class=\"w-full\" mask=\"999.999.999-99\" unmask [formControl]=\"cpf\" /></smz-gallery-case>\n <smz-gallery-case label=\"type password\"><ui-input-mask class=\"w-full\" mask=\"9999\" type=\"password\" [formControl]=\"pin\" /></smz-gallery-case>\n </smz-gallery-section>\n `,\n})\nexport class InputMaskGalleryEntryComponent {\n protected readonly phone = new FormControl<string | null>('11987654321');\n protected readonly partialPhone = new FormControl<string | null>('11987');\n protected readonly disabledPhone = new FormControl<string | null>({ value: '11987654321', disabled: true });\n protected readonly invalidPhone = dirtyInvalidControl();\n protected readonly invalidPhoneFocus = dirtyInvalidControl();\n\n protected readonly cpf = new FormControl<string | null>('12345678909');\n protected readonly cep = new FormControl<string | null>('01310100');\n protected readonly date = new FormControl<string | null>('15032024');\n protected readonly partialDate = new FormControl<string | null>('1503');\n protected readonly plate = new FormControl<string | null>('ABC1D23');\n protected readonly landline = new FormControl<string | null>('1133445566');\n protected readonly pin = new FormControl<string | null>('1234');\n}\n"],"names":[],"mappings":";;;;;;;AAMA,SAAS,mBAAmB,GAAA;IAC1B,MAAM,OAAO,GAAG,IAAI,WAAW,CAAgB,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzE,OAAO,CAAC,WAAW,EAAE;AACrB,IAAA,OAAO,OAAO;AAChB;AAEA;MAoCa,8BAA8B,CAAA;AACtB,IAAA,KAAK,GAAG,IAAI,WAAW,CAAgB,aAAa,CAAC;AACrD,IAAA,YAAY,GAAG,IAAI,WAAW,CAAgB,OAAO,CAAC;AACtD,IAAA,aAAa,GAAG,IAAI,WAAW,CAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxF,YAAY,GAAG,mBAAmB,EAAE;IACpC,iBAAiB,GAAG,mBAAmB,EAAE;AAEzC,IAAA,GAAG,GAAG,IAAI,WAAW,CAAgB,aAAa,CAAC;AACnD,IAAA,GAAG,GAAG,IAAI,WAAW,CAAgB,UAAU,CAAC;AAChD,IAAA,IAAI,GAAG,IAAI,WAAW,CAAgB,UAAU,CAAC;AACjD,IAAA,WAAW,GAAG,IAAI,WAAW,CAAgB,MAAM,CAAC;AACpD,IAAA,KAAK,GAAG,IAAI,WAAW,CAAgB,SAAS,CAAC;AACjD,IAAA,QAAQ,GAAG,IAAI,W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