pjc-fields 0.0.65 → 0.0.67
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/pjc-fields.mjs +39 -6
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +16 -1
package/package.json
CHANGED
package/types/pjc-fields.d.ts
CHANGED
|
@@ -411,6 +411,8 @@ declare class PjcEnumFieldComponent implements ControlValueAccessor, OnInit {
|
|
|
411
411
|
filterPlaceholder: _angular_core.InputSignal<string>;
|
|
412
412
|
/** Whether to show a clear button to reset the selection. */
|
|
413
413
|
showClear: _angular_core.InputSignal<boolean>;
|
|
414
|
+
/** Whether to allow selecting multiple values. */
|
|
415
|
+
multiple: _angular_core.InputSignal<boolean>;
|
|
414
416
|
private readonly injector;
|
|
415
417
|
private readonly cdr;
|
|
416
418
|
private readonly destroyRef;
|
|
@@ -436,7 +438,7 @@ declare class PjcEnumFieldComponent implements ControlValueAccessor, OnInit {
|
|
|
436
438
|
onModelTouched(): void;
|
|
437
439
|
private fetchItems;
|
|
438
440
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcEnumFieldComponent, never>;
|
|
439
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcEnumFieldComponent, "pjc-enum-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "erros": { "alias": "erros"; "required": false; "isSignal": true; }; "url": { "alias": "url"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
441
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcEnumFieldComponent, "pjc-enum-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "erros": { "alias": "erros"; "required": false; "isSignal": true; }; "url": { "alias": "url"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
440
442
|
}
|
|
441
443
|
|
|
442
444
|
interface PjcEnumServiceContract {
|
|
@@ -925,6 +927,19 @@ declare class PjcUtils {
|
|
|
925
927
|
miligrama?: number;
|
|
926
928
|
centigrama?: number;
|
|
927
929
|
}): string;
|
|
930
|
+
/**
|
|
931
|
+
* Converte múltiplas unidades de volume para extenso em uma única string.
|
|
932
|
+
* Todos os parâmetros são opcionais. Os valores informados são convertidos
|
|
933
|
+
* para extenso e concatenados com vírgulas e "e" antes do último item.
|
|
934
|
+
*
|
|
935
|
+
* Exemplo:
|
|
936
|
+
* PjcUtils.volumePorExtenso({ litro: 2, mililitro: 500 })
|
|
937
|
+
* // => "dois litros e quinhentos mililitros"
|
|
938
|
+
*/
|
|
939
|
+
static volumePorExtenso(params: {
|
|
940
|
+
litro?: number;
|
|
941
|
+
mililitro?: number;
|
|
942
|
+
}): string;
|
|
928
943
|
}
|
|
929
944
|
|
|
930
945
|
export { ESTADOS, PJC_CIDADE_SERVICE, PJC_ENUM_SERVICE, PjcCepFieldComponent, PjcChassiFieldComponent, PjcChassiInputDirective, PjcCidadeFieldComponent, PjcCidadeService, PjcCnhFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcDataHoraFieldComponent, PjcDetalhesComponent, PjcEmailFieldComponent, PjcEnumFieldComponent, PjcEnumService, PjcErroValidacaoComponent, PjcFields, PjcHoraFieldComponent, PjcImeiFieldComponent, PjcIntegerFieldComponent, PjcMoedaFieldComponent, PjcNumeroCartaoFieldComponent, PjcPasswordFieldComponent, PjcPlacaFieldComponent, PjcRenavamFieldComponent, PjcTelefoneFieldComponent, PjcTipoPessoaFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcUtils, PjcValidators, TIPOS_PESSOA };
|