@ngx-smz/ui-kit 21.9.0-next.5 → 21.9.0-next.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-smz/ui-kit",
3
- "version": "21.9.0-next.5",
3
+ "version": "21.9.0-next.7",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=21.0.0 <22.0.0",
6
6
  "@angular/common": ">=21.0.0 <22.0.0",
@@ -64,6 +64,8 @@ module.exports = {
64
64
  'control-x-sm': 'var(--smz-control-px-sm)',
65
65
  'control-x': 'var(--smz-control-px)',
66
66
  'control-x-lg': 'var(--smz-control-px-lg)',
67
+ 'input-x-sm': 'var(--smz-input-px-sm)',
68
+ 'input-x': 'var(--smz-input-px)',
67
69
  },
68
70
  borderRadius: {
69
71
  control: 'var(--smz-radius-control)',
@@ -52,6 +52,9 @@
52
52
  --smz-control-px-sm: 0.75rem;
53
53
  --smz-control-px: 1rem;
54
54
  --smz-control-px-lg: 1.5rem;
55
+ /* Padding horizontal de campos de formulario (padrao: o mesmo dos controles); ajuste so os campos com este token. */
56
+ --smz-input-px-sm: var(--smz-control-px-sm);
57
+ --smz-input-px: var(--smz-control-px);
55
58
 
56
59
  --smz-radius-control: 0.5rem;
57
60
  --smz-radius-card: 0.75rem;
@@ -958,7 +958,15 @@ interface SmzOptionConfig {
958
958
  optionDisabled?: string | null;
959
959
  dataKey?: string | null;
960
960
  }
961
+ /**
962
+ * Texto da opcao. Sem `optionLabel`, opcoes-objeto com `label` usam esse campo (como o `p-select` do PrimeNG);
963
+ * primitivos sao usados como estao.
964
+ */
961
965
  declare function optionLabel(option: any, config: SmzOptionConfig): string;
966
+ /**
967
+ * Valor da opcao. Sem `optionValue` (e sem `optionLabel`), opcoes-objeto com `value` usam esse campo
968
+ * (como o `p-select` do PrimeNG); caso contrario o proprio objeto e o valor.
969
+ */
962
970
  declare function optionValue(option: any, config: SmzOptionConfig): any;
963
971
  declare function optionDisabled(option: any, config: SmzOptionConfig): boolean;
964
972
  /** Igualdade de valores: por `dataKey` quando ha, senao comparacao profunda. */
@@ -1476,7 +1484,11 @@ declare class SmzDatePickerComponent extends SmzValueAccessor<SmzDatePickerValue
1476
1484
  private readonly fieldRef;
1477
1485
  private readonly panel;
1478
1486
  private readonly anchored;
1479
- writeValue(value: SmzDatePickerValue): void;
1487
+ /**
1488
+ * Aceita `Date`, string (ISO ou parseavel) e numero (timestamp), como o `p-datepicker`.
1489
+ * Valores invalidos viram `null` em vez de lancar. O modelo do formulario so muda quando o usuario escolhe uma data.
1490
+ */
1491
+ writeValue(value: SmzDatePickerValue | string | number): void;
1480
1492
  ngOnDestroy(): void;
1481
1493
  protected twoDigits(value: number): string;
1482
1494
  protected toggle(): void;