@seniorsistemas/angular-components 19.5.5 → 19.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/README.md +95 -59
- package/calendar-mask/lib/calendar-mask/calendar-mask.directive.d.ts +4 -0
- package/datepicker/README.md +175 -0
- package/datepicker/index.d.ts +5 -0
- package/datepicker/lib/datepicker/date.utils.d.ts +21 -0
- package/datepicker/lib/datepicker/datepicker.component.d.ts +254 -0
- package/datepicker/lib/datepicker/models/index.d.ts +16 -0
- package/datepicker/public-api.d.ts +2 -0
- package/dynamic-form/dynamic-form/components/lookup/lookup.component.d.ts +3 -1
- package/dynamic-form/dynamic-form/components/lookup/models/lookup-alert-config.d.ts +5 -0
- package/dynamic-form/dynamic-form/form-field/configurations/fields/calendar-field.d.ts +119 -24
- package/dynamic-form/dynamic-form/form-field/configurations/fields/lookup-field.d.ts +6 -0
- package/dynamic-form/dynamic-form/form-field/fields/calendar/calendar-field.component.d.ts +6 -23
- package/dynamic-form/public-api.d.ts +1 -0
- package/editor/README.md +229 -0
- package/editor/index.d.ts +5 -0
- package/editor/lib/editor/editor.component.d.ts +127 -0
- package/editor/lib/editor/link-dialog/link-dialog.component.d.ts +18 -0
- package/editor/lib/editor/models/index.d.ts +12 -0
- package/editor/lib/editor/toolbar-button/editor-toolbar-button.component.d.ts +10 -0
- package/editor/public-api.d.ts +2 -0
- package/esm2022/calendar-mask/lib/calendar-mask/calendar-mask.directive.mjs +5 -1
- package/esm2022/datepicker/lib/datepicker/date.utils.mjs +182 -0
- package/esm2022/datepicker/lib/datepicker/datepicker.component.mjs +1062 -0
- package/esm2022/datepicker/lib/datepicker/models/index.mjs +2 -0
- package/esm2022/datepicker/public-api.mjs +2 -0
- package/esm2022/datepicker/seniorsistemas-angular-components-datepicker.mjs +5 -0
- package/esm2022/dynamic-form/dynamic-form/components/lookup/lookup.component.mjs +11 -5
- package/esm2022/dynamic-form/dynamic-form/components/lookup/models/lookup-alert-config.mjs +2 -0
- package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/calendar-field.mjs +1 -1
- package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/lookup-field.mjs +1 -1
- package/esm2022/dynamic-form/dynamic-form/form-field/fields/autocomplete/autocomplete-field.component.mjs +2 -2
- package/esm2022/dynamic-form/dynamic-form/form-field/fields/calendar/calendar-field.component.mjs +23 -116
- package/esm2022/dynamic-form/dynamic-form/form-field/fields/lookup/lookup-field.component.mjs +3 -3
- package/esm2022/dynamic-form/public-api.mjs +1 -1
- package/esm2022/editor/lib/editor/editor.component.mjs +375 -0
- package/esm2022/editor/lib/editor/link-dialog/link-dialog.component.mjs +48 -0
- package/esm2022/editor/lib/editor/models/index.mjs +3 -0
- package/esm2022/editor/lib/editor/toolbar-button/editor-toolbar-button.component.mjs +17 -0
- package/esm2022/editor/public-api.mjs +3 -0
- package/esm2022/editor/seniorsistemas-angular-components-editor.mjs +5 -0
- package/esm2022/inline-edit/lib/inline-edit/components/fields/inline-edit-calendar/inline-edit-calendar.component.mjs +22 -12
- package/esm2022/inline-edit/lib/inline-edit/inline-edit.module.mjs +5 -5
- package/esm2022/lib/locale/fallback.mjs +82 -3
- package/esm2022/optional-fields/editor/editor-field/editor-field.component.mjs +5 -6
- package/esm2022/optional-fields/editor/editor-field.mjs +1 -1
- package/esm2022/panel/lib/panel/panel.component.mjs +7 -3
- package/esm2022/select/lib/select/select.component.mjs +4 -8
- package/esm2022/shared/lib/accessibility/datepicker-no-period-tab.directive.mjs +5 -1
- package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs +4 -0
- package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-datepicker.mjs +1250 -0
- package/fesm2022/seniorsistemas-angular-components-datepicker.mjs.map +1 -0
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +49 -135
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-editor.mjs +437 -0
- package/fesm2022/seniorsistemas-angular-components-editor.mjs.map +1 -0
- package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs +24 -15
- package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-optional-fields-editor.mjs +4 -5
- package/fesm2022/seniorsistemas-angular-components-optional-fields-editor.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-panel.mjs +6 -2
- package/fesm2022/seniorsistemas-angular-components-panel.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-select.mjs +3 -7
- package/fesm2022/seniorsistemas-angular-components-select.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-shared.mjs +4 -0
- package/fesm2022/seniorsistemas-angular-components-shared.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components.mjs +81 -2
- package/fesm2022/seniorsistemas-angular-components.mjs.map +1 -1
- package/inline-edit/lib/inline-edit/components/fields/inline-edit-calendar/inline-edit-calendar.component.d.ts +6 -4
- package/inline-edit/lib/inline-edit/inline-edit.module.d.ts +2 -2
- package/loading-state/README.md +57 -17
- package/optional-fields/editor/editor-field.d.ts +9 -6
- package/package.json +74 -8
- package/panel/README.md +12 -1
- package/panel/lib/panel/panel.component.d.ts +3 -1
- package/schematics/collection.json +4 -0
- package/schematics/migrations/migrate-p-datepicker/index.d.ts +2 -0
- package/schematics/migrations/migrate-p-datepicker/index.js +141 -0
- package/schematics/migrations/migrate-p-datepicker/index.js.map +1 -0
- package/schematics/migrations/migrate-p-datepicker/index.test.d.ts +1 -0
- package/schematics/migrations/migrate-p-datepicker/index.test.js +392 -0
- package/schematics/migrations/migrate-p-datepicker/index.test.js.map +1 -0
- package/schematics/migrations.json +10 -0
- package/schematics/utils/ast-utils.d.ts +28 -0
- package/schematics/utils/ast-utils.js +116 -0
- package/schematics/utils/ast-utils.js.map +1 -0
- package/schematics/utils/ast-utils.test.d.ts +1 -0
- package/schematics/utils/ast-utils.test.js +138 -0
- package/schematics/utils/ast-utils.test.js.map +1 -0
- package/schematics/utils/workspace-utils.d.ts +6 -0
- package/schematics/utils/workspace-utils.js +37 -0
- package/schematics/utils/workspace-utils.js.map +1 -0
- package/schematics/utils/workspace-utils.test.d.ts +1 -0
- package/schematics/utils/workspace-utils.test.js +152 -0
- package/schematics/utils/workspace-utils.test.js.map +1 -0
- package/shared/lib/accessibility/datepicker-no-period-tab.directive.d.ts +4 -0
- package/stats-card/README.md +80 -45
package/stats-card/README.md
CHANGED
|
@@ -29,10 +29,10 @@ export class MeuModule {}
|
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
31
|
<s-stats-card
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
label="Vendas"
|
|
33
|
+
value="1.234"
|
|
34
|
+
iconClass="fas fa-shopping-cart"
|
|
35
|
+
color="#3399ff"
|
|
36
36
|
/>
|
|
37
37
|
```
|
|
38
38
|
|
|
@@ -40,24 +40,25 @@ export class MeuModule {}
|
|
|
40
40
|
|
|
41
41
|
### Inputs
|
|
42
42
|
|
|
43
|
-
| Propriedade
|
|
44
|
-
|
|
45
|
-
| `label`
|
|
46
|
-
| `value`
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
54
|
-
| `
|
|
55
|
-
| `
|
|
43
|
+
| Propriedade | Tipo | Padrão | Obrigatório | Descrição |
|
|
44
|
+
| ------------------ | --------- | -------------------- | :---------: | ------------------------------------------------------------------------------------------- |
|
|
45
|
+
| `label` | `string` | — | Sim | Rótulo descritivo da estatística exibida |
|
|
46
|
+
| `value` | `string` | `'0'` | Não | Valor numérico exibido. Quando `animateNumbers` está ativo, a contagem é animada |
|
|
47
|
+
| `infoSignTooltip` | `string` | `undefined` | Não | Texto do tooltip exibido ao passar o mouse sobre o ícone de informação (ⓘ) ao lado do label |
|
|
48
|
+
| `iconClass` | `string` | `'fa fa-bar-chart'` | Não | Classe CSS do ícone (Font Awesome) |
|
|
49
|
+
| `color` | `string` | `'#339966'` | Não | Cor de destaque do card em formato CSS |
|
|
50
|
+
| `lightMode` | `boolean` | `true` | Não | Ativa o modo de cores claras (ícone com fundo colorido) |
|
|
51
|
+
| `lightVersion` | `boolean` | `false` | Não | Ativa a versão visual leve (sem sombra e com fundo claro) |
|
|
52
|
+
| `alwaysWithBorder` | `boolean` | `false` | Não | Exibe borda mesmo quando o card não está em destaque |
|
|
53
|
+
| `animateNumbers` | `boolean` | `true` | Não | Habilita a animação de contagem ao atualizar o valor |
|
|
54
|
+
| `clickable` | `boolean` | `false` | Não | Habilita o cursor de ponteiro e o evento de clique |
|
|
55
|
+
| `tooltip` | `string` | `''` | Não | Texto do tooltip exibido ao passar o mouse sobre o card |
|
|
56
|
+
| `id` | `string` | `'s-stats-card-{n}'` | Não | Identificador único do card no DOM |
|
|
56
57
|
|
|
57
58
|
### Outputs
|
|
58
59
|
|
|
59
|
-
| Evento
|
|
60
|
-
|
|
60
|
+
| Evento | Tipo | Descrição |
|
|
61
|
+
| --------- | -------------------------- | ------------------------------------------------------------------ |
|
|
61
62
|
| `clicked` | `EventEmitter<MouseEvent>` | Emitido quando o usuário clica no card (requer `clickable = true`) |
|
|
62
63
|
|
|
63
64
|
## Exemplos
|
|
@@ -66,11 +67,11 @@ export class MeuModule {}
|
|
|
66
67
|
|
|
67
68
|
```html
|
|
68
69
|
<s-stats-card
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
label="População"
|
|
71
|
+
value="214000000"
|
|
72
|
+
iconClass="fa fa-users"
|
|
73
|
+
color="#339966"
|
|
74
|
+
[lightMode]="true"
|
|
74
75
|
></s-stats-card>
|
|
75
76
|
```
|
|
76
77
|
|
|
@@ -78,26 +79,40 @@ export class MeuModule {}
|
|
|
78
79
|
|
|
79
80
|
```html
|
|
80
81
|
<s-stats-card
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
label="Área territorial"
|
|
83
|
+
value="8515767 km²"
|
|
84
|
+
iconClass="fa fa-map"
|
|
85
|
+
color="#F45B5B"
|
|
86
|
+
[lightMode]="false"
|
|
86
87
|
></s-stats-card>
|
|
87
88
|
```
|
|
88
89
|
|
|
90
|
+
### Com ícone de informação no label
|
|
91
|
+
|
|
92
|
+
O `infoSignTooltip` exibe um ícone de informação (ⓘ) ao lado do label. Útil para métricas com definição técnica ou critérios de cálculo que o usuário pode não conhecer.
|
|
93
|
+
|
|
94
|
+
```html
|
|
95
|
+
<s-stats-card
|
|
96
|
+
label="Taxa de conversão"
|
|
97
|
+
value="12,5%"
|
|
98
|
+
iconClass="fa fa-line-chart"
|
|
99
|
+
color="#4A90E2"
|
|
100
|
+
infoSignTooltip="Percentual de visitantes que realizaram uma compra no período selecionado"
|
|
101
|
+
/>
|
|
102
|
+
```
|
|
103
|
+
|
|
89
104
|
### Card clicável
|
|
90
105
|
|
|
91
106
|
```html
|
|
92
107
|
<s-stats-card
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
108
|
+
label="Estados"
|
|
109
|
+
value="27"
|
|
110
|
+
iconClass="fa fa-flag"
|
|
111
|
+
color="#4A90E2"
|
|
112
|
+
[clickable]="true"
|
|
113
|
+
[alwaysWithBorder]="true"
|
|
114
|
+
tooltip="Clique para ver detalhes"
|
|
115
|
+
(clicked)="onVerDetalhes($event)"
|
|
101
116
|
></s-stats-card>
|
|
102
117
|
```
|
|
103
118
|
|
|
@@ -105,9 +120,28 @@ export class MeuModule {}
|
|
|
105
120
|
|
|
106
121
|
```html
|
|
107
122
|
<div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem;">
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
123
|
+
<s-stats-card
|
|
124
|
+
label="Total de pedidos"
|
|
125
|
+
value="1.234"
|
|
126
|
+
iconClass="fa fa-shopping-cart"
|
|
127
|
+
color="#339966"
|
|
128
|
+
[lightMode]="true"
|
|
129
|
+
></s-stats-card>
|
|
130
|
+
<s-stats-card
|
|
131
|
+
label="Receita"
|
|
132
|
+
value="R$ 45.200"
|
|
133
|
+
iconClass="fa fa-dollar"
|
|
134
|
+
color="#4A90E2"
|
|
135
|
+
[lightMode]="false"
|
|
136
|
+
></s-stats-card>
|
|
137
|
+
<s-stats-card
|
|
138
|
+
label="Usuários ativos"
|
|
139
|
+
value="892"
|
|
140
|
+
iconClass="fa fa-users"
|
|
141
|
+
color="#9B59B6"
|
|
142
|
+
[lightMode]="true"
|
|
143
|
+
[lightVersion]="true"
|
|
144
|
+
></s-stats-card>
|
|
111
145
|
</div>
|
|
112
146
|
```
|
|
113
147
|
|
|
@@ -115,11 +149,11 @@ export class MeuModule {}
|
|
|
115
149
|
|
|
116
150
|
```html
|
|
117
151
|
<s-stats-card
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
152
|
+
label="Visitantes hoje"
|
|
153
|
+
[value]="visitantesHoje.toString()"
|
|
154
|
+
iconClass="fa fa-eye"
|
|
155
|
+
color="#339966"
|
|
156
|
+
[animateNumbers]="true"
|
|
123
157
|
></s-stats-card>
|
|
124
158
|
```
|
|
125
159
|
|
|
@@ -133,3 +167,4 @@ export class MeuModule {}
|
|
|
133
167
|
|
|
134
168
|
- [`Tile`](../tile/README.md) — card clicável para navegação
|
|
135
169
|
- [`Card`](../card/README.md) — container genérico de conteúdo
|
|
170
|
+
|