ng-smn-ui 4.2.8 → 4.2.13
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/bundles/ng-smn-ui.umd.js +324 -50
- package/bundles/ng-smn-ui.umd.js.map +1 -1
- package/bundles/ng-smn-ui.umd.min.js +1 -1
- package/bundles/ng-smn-ui.umd.min.js.map +1 -1
- package/esm2015/lib/smn-ui.module.js +6 -2
- package/esm2015/lib/utils/masks/cnpj-novo/cnpj-novo.pipe.js +40 -0
- package/esm2015/lib/utils/masks/cnpj-novo/mask-cnpj-novo.directive.js +232 -0
- package/esm2015/ng-smn-ui.js +51 -50
- package/esm5/lib/smn-ui.module.js +6 -2
- package/esm5/lib/utils/masks/cnpj-novo/cnpj-novo.pipe.js +43 -0
- package/esm5/lib/utils/masks/cnpj-novo/mask-cnpj-novo.directive.js +236 -0
- package/esm5/ng-smn-ui.js +51 -50
- package/fesm2015/ng-smn-ui.js +266 -1
- package/fesm2015/ng-smn-ui.js.map +1 -1
- package/fesm5/ng-smn-ui.js +273 -1
- package/fesm5/ng-smn-ui.js.map +1 -1
- package/lib/smn-ui.module.d.ts +2 -1
- package/lib/utils/masks/cnpj-novo/cnpj-novo.pipe.d.ts +4 -0
- package/lib/utils/masks/cnpj-novo/mask-cnpj-novo.directive.d.ts +47 -0
- package/ng-smn-ui.d.ts +50 -49
- package/ng-smn-ui.metadata.json +1 -1
- package/package.json +1 -1
package/lib/smn-ui.module.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { UiToolbarService } from './toolbar/toolbar.service';
|
|
|
11
11
|
import { UiWindowRef } from './utils/providers/window.provider';
|
|
12
12
|
import { UiCpfPipe } from './utils/masks/cpf/cpf.pipe';
|
|
13
13
|
import { UiCnpjPipe } from './utils/masks/cnpj/cnpj.pipe';
|
|
14
|
+
import { UiCnpjNovoPipe } from './utils/masks/cnpj-novo/cnpj-novo.pipe';
|
|
14
15
|
import { UiCepPipe } from './utils/masks/cep/cep.pipe';
|
|
15
16
|
import { UiCepNovoPipe } from './utils/masks/cep-novo/cep-novo.pipe';
|
|
16
17
|
import { UiPhonePipe } from './utils/masks/phone/phone.pipe';
|
|
@@ -23,6 +24,6 @@ import { UiFilterPipe } from './utils/pipes/filter.pipe';
|
|
|
23
24
|
import { UiCreditCardPipe } from './utils/masks/credit-card/credit-card.pipe';
|
|
24
25
|
import { UiMaskCreditCard } from './utils/masks/credit-card/credit-card-mask.directive';
|
|
25
26
|
import { UiFloatPipe } from './utils/masks/float/float.pipe';
|
|
26
|
-
export { debounce, unaccent, UiColor, UiCookie, UiElement, UiElementRef, UiSnackbar, UiToolbarService, UiWindowRef, UiCpfPipe, UiCnpjPipe, UiCepPipe, UiCepNovoPipe, UiPhonePipe, UiInfiniteLoadService, UiDatetimeService, UiTimePipe, UiCurrencyPipe, UiMaskPhoneDirective, UiDialog, UiFilterPipe, UiCreditCardPipe, UiMaskCreditCard, UiFloatPipe, };
|
|
27
|
+
export { debounce, unaccent, UiColor, UiCookie, UiElement, UiElementRef, UiSnackbar, UiToolbarService, UiWindowRef, UiCpfPipe, UiCnpjPipe, UiCnpjNovoPipe, UiCepPipe, UiCepNovoPipe, UiPhonePipe, UiInfiniteLoadService, UiDatetimeService, UiTimePipe, UiCurrencyPipe, UiMaskPhoneDirective, UiDialog, UiFilterPipe, UiCreditCardPipe, UiMaskCreditCard, UiFloatPipe, };
|
|
27
28
|
export declare class SMNUIModule {
|
|
28
29
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, Validator } from '@angular/forms';
|
|
3
|
+
import { UiCnpjNovoPipe } from './cnpj-novo.pipe';
|
|
4
|
+
export declare class UiMaskCnpjNovoDirective implements ControlValueAccessor, Validator, AfterViewInit, OnChanges {
|
|
5
|
+
elementRef: ElementRef;
|
|
6
|
+
cnpjPipe: UiCnpjNovoPipe;
|
|
7
|
+
loaded: boolean;
|
|
8
|
+
input: boolean;
|
|
9
|
+
beforeSelIndex: any;
|
|
10
|
+
onChange: Function;
|
|
11
|
+
onTouched: Function;
|
|
12
|
+
control: FormControl;
|
|
13
|
+
symbolsPositions: number[];
|
|
14
|
+
ngModel: any;
|
|
15
|
+
padOnPaste: boolean;
|
|
16
|
+
uiMaskCnpjNovo: any;
|
|
17
|
+
ngModelChange: EventEmitter<any>;
|
|
18
|
+
constructor(elementRef: ElementRef, cnpjPipe: UiCnpjNovoPipe);
|
|
19
|
+
ngOnChanges(changes: any): void;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
writeValue(rawValue: any): void;
|
|
22
|
+
renderViaInput(rawValue: any): void;
|
|
23
|
+
registerOnChange(fn: any): void;
|
|
24
|
+
registerOnTouched(fn: any): void;
|
|
25
|
+
format(value: any): any;
|
|
26
|
+
validate(control: FormControl): {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
setDisabledState(isDisabled: boolean): void;
|
|
30
|
+
/**
|
|
31
|
+
* Converte um caractere para seu valor numérico.
|
|
32
|
+
* Usa código ASCII - 48 para todos os caracteres:
|
|
33
|
+
* - Dígitos 0-9 retornam 0-9
|
|
34
|
+
* - Letras A-Z retornam 17-42 (A=17, B=18, ..., Z=42)
|
|
35
|
+
* Referência: https://www.gov.br/receitafederal/pt-br/centrais-de-conteudo/publicacoes/perguntas-e-respostas/cnpj/cnpj-alfanumerico.pdf
|
|
36
|
+
*/
|
|
37
|
+
charToValue(char: string): number;
|
|
38
|
+
/**
|
|
39
|
+
* Valida CNPJ alfanumérico conforme especificação.
|
|
40
|
+
* Suporta tanto CNPJs numéricos tradicionais quanto os novos alfanuméricos.
|
|
41
|
+
* A conversão usa ASCII - 48 para todos os caracteres (A=17, B=18, ..., Z=42).
|
|
42
|
+
*/
|
|
43
|
+
cnpjIsValid(cnpj: string): boolean;
|
|
44
|
+
onKeydown(): void;
|
|
45
|
+
onInput($event: any): void;
|
|
46
|
+
padLeft(event: any): void;
|
|
47
|
+
}
|
package/ng-smn-ui.d.ts
CHANGED
|
@@ -2,84 +2,85 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
|
-
export { UiAutocompleteComponent as
|
|
6
|
-
export { UiAutocompleteDirective as
|
|
7
|
-
export { UiAvatarComponent as
|
|
8
|
-
export { UiBottomSheetComponent as
|
|
9
|
-
export { UiBottomSheetTriggerDirective as
|
|
5
|
+
export { UiAutocompleteComponent as ɵbr } from './lib/autocomplete/autocomplete.component';
|
|
6
|
+
export { UiAutocompleteDirective as ɵbq } from './lib/autocomplete/autocomplete.directive';
|
|
7
|
+
export { UiAvatarComponent as ɵco } from './lib/avatar/avatar.component';
|
|
8
|
+
export { UiBottomSheetComponent as ɵbx } from './lib/bottom-sheet/bottom-sheet.component';
|
|
9
|
+
export { UiBottomSheetTriggerDirective as ɵby } from './lib/bottom-sheet/bottom-sheet.directive';
|
|
10
10
|
export { UiAddCalendarDirective as ɵd } from './lib/calendar/add-calendar.directive';
|
|
11
11
|
export { UiCalendarContentComponent as ɵf } from './lib/calendar/calendar-content.component';
|
|
12
12
|
export { UiCalendarComponent as ɵe } from './lib/calendar/calendar.component';
|
|
13
|
-
export { UiChosenGroupComponent as
|
|
14
|
-
export { UiChosenOptionComponent as
|
|
15
|
-
export { UiChosenComponent as
|
|
16
|
-
export { UiClockComponent as
|
|
17
|
-
export { UiColorPickerComponent as
|
|
18
|
-
export { UiColorPickerDirective as
|
|
19
|
-
export { UiDataTableComponent as
|
|
13
|
+
export { UiChosenGroupComponent as ɵct } from './lib/chosen/chosen-group/chosen-group.component';
|
|
14
|
+
export { UiChosenOptionComponent as ɵcs } from './lib/chosen/chosen-option/chosen-option.component';
|
|
15
|
+
export { UiChosenComponent as ɵcr } from './lib/chosen/chosen.component';
|
|
16
|
+
export { UiClockComponent as ɵcf } from './lib/clock/clock.component';
|
|
17
|
+
export { UiColorPickerComponent as ɵcc } from './lib/color-picker/color-picker.component';
|
|
18
|
+
export { UiColorPickerDirective as ɵcd } from './lib/color-picker/color-picker.directive';
|
|
19
|
+
export { UiDataTableComponent as ɵbw } from './lib/data-table/data-table.component';
|
|
20
20
|
export { UiDataTableOrderByDirective as ɵh } from './lib/data-table/order-by.directive';
|
|
21
21
|
export { UiDatePickerCallerDirective as ɵi } from './lib/date-picker/date-picker-caller.directive';
|
|
22
22
|
export { UiDatePickerDirective as ɵk } from './lib/date-picker/date-picker.directive';
|
|
23
23
|
export { UiReferencesService as ɵj } from './lib/date-picker/references.service';
|
|
24
24
|
export { UiDialogTriggerDirective as ɵm } from './lib/dialog/dialog-trigger.directive';
|
|
25
25
|
export { UiDialogComponent as ɵl } from './lib/dialog/dialog.component';
|
|
26
|
-
export { UiEllipsisDirective as
|
|
27
|
-
export { ExpansionPanelComponent as
|
|
28
|
-
export { UiInputAutosizeDirective as
|
|
26
|
+
export { UiEllipsisDirective as ɵca } from './lib/ellipsis/ellipsis.directive';
|
|
27
|
+
export { ExpansionPanelComponent as ɵcu } from './lib/expansion-panel/expansion-panel.component';
|
|
28
|
+
export { UiInputAutosizeDirective as ɵce } from './lib/input/autosize.directive';
|
|
29
29
|
export { UiInputContainerComponent as ɵn } from './lib/input/input-container.component';
|
|
30
|
-
export { UiInputFileDirective as
|
|
30
|
+
export { UiInputFileDirective as ɵbz } from './lib/input/input-file.directive';
|
|
31
31
|
export { UiInputDirective as ɵo } from './lib/input/input.directive';
|
|
32
|
-
export { UiLabelContentComponent as
|
|
33
|
-
export { UiLazyLoadDirective as
|
|
34
|
-
export { UiListItemComponent as
|
|
35
|
-
export { UiListItemsComponent as
|
|
32
|
+
export { UiLabelContentComponent as ɵdc } from './lib/label-content/label-content.component';
|
|
33
|
+
export { UiLazyLoadDirective as ɵbv } from './lib/lazy-load/lazy-load.directive';
|
|
34
|
+
export { UiListItemComponent as ɵbm } from './lib/list/item/item.component';
|
|
35
|
+
export { UiListItemsComponent as ɵbl } from './lib/list/items/items.component';
|
|
36
36
|
export { UiListItemDirective as ɵbe } from './lib/list/list-item.directive';
|
|
37
|
-
export { UiListComponent as
|
|
37
|
+
export { UiListComponent as ɵbk } from './lib/list/list.component';
|
|
38
38
|
export { UiMenuTriggerDirective as ɵr } from './lib/menu/menu-trigger.directive';
|
|
39
39
|
export { UiMenuComponent as ɵq } from './lib/menu/menu.component';
|
|
40
40
|
export { UiNavDrawerComponent as ɵs } from './lib/nav-drawer/nav-drawer.component';
|
|
41
|
-
export { UiTabsPagesComponent as
|
|
42
|
-
export { UiTabsComponent as
|
|
41
|
+
export { UiTabsPagesComponent as ɵbu } from './lib/old-tabs/pages/tabs-pages.component';
|
|
42
|
+
export { UiTabsComponent as ɵbt } from './lib/old-tabs/tabs.component';
|
|
43
43
|
export { UiProgressRadialComponent as ɵu } from './lib/progress/radial/progress-radial.component';
|
|
44
44
|
export { UiRippleDirective as ɵv } from './lib/ripple/ripple.directive';
|
|
45
|
-
export { UiSelectOptionComponent as
|
|
46
|
-
export { UiSelectFilterPipe as
|
|
47
|
-
export { UiSelectComponent as
|
|
45
|
+
export { UiSelectOptionComponent as ɵcm } from './lib/select/option/option.component';
|
|
46
|
+
export { UiSelectFilterPipe as ɵcn } from './lib/select/select-filter.pipe';
|
|
47
|
+
export { UiSelectComponent as ɵcl } from './lib/select/select.component';
|
|
48
48
|
export { UiOptionComponent as ɵt } from './lib/selection-control/option/option.component';
|
|
49
49
|
export { UiSwitchComponent as ɵba } from './lib/selection-control/switch/switch.component';
|
|
50
|
-
export { UiSliderMultiHandleComponent as
|
|
51
|
-
export { UiSliderComponent as
|
|
50
|
+
export { UiSliderMultiHandleComponent as ɵbo } from './lib/slider/slider-multi-handle.component';
|
|
51
|
+
export { UiSliderComponent as ɵbn } from './lib/slider/slider.component';
|
|
52
52
|
export { UiSmartListItemComponent as ɵx } from './lib/smart-list/item/item.component';
|
|
53
53
|
export { UiSmartListComponent as ɵw } from './lib/smart-list/smart-list.component';
|
|
54
54
|
export { UiSnackbarContainerComponent as ɵz } from './lib/snackbar/snackbar-container.component';
|
|
55
55
|
export { UiSnackbarComponent as ɵy } from './lib/snackbar/snackbar.component';
|
|
56
|
-
export { tabFakeAnimation as
|
|
57
|
-
export { UiTabGroupComponent as
|
|
58
|
-
export { UiTabHeaderComponent as
|
|
59
|
-
export { UiTabContentDirective as
|
|
60
|
-
export { UiTabLabelDirective as
|
|
61
|
-
export { UiTabComponent as
|
|
62
|
-
export { UiTimePickerCallerDirective as
|
|
63
|
-
export { UiTimePickerDirective as
|
|
64
|
-
export { UiTimePickerService as
|
|
56
|
+
export { tabFakeAnimation as ɵcz, tabTransform as ɵda } from './lib/tab/group/tab-group.animation';
|
|
57
|
+
export { UiTabGroupComponent as ɵcy } from './lib/tab/group/tab-group.component';
|
|
58
|
+
export { UiTabHeaderComponent as ɵdb } from './lib/tab/header/tab-header.component';
|
|
59
|
+
export { UiTabContentDirective as ɵcw } from './lib/tab/tab-content.directive';
|
|
60
|
+
export { UiTabLabelDirective as ɵcx } from './lib/tab/tab-label.directive';
|
|
61
|
+
export { UiTabComponent as ɵcv } from './lib/tab/tab.component';
|
|
62
|
+
export { UiTimePickerCallerDirective as ɵci } from './lib/time-picker/time-picker-caller.directive';
|
|
63
|
+
export { UiTimePickerDirective as ɵcg } from './lib/time-picker/time-picker.directive';
|
|
64
|
+
export { UiTimePickerService as ɵch } from './lib/time-picker/time-picker.service';
|
|
65
65
|
export { UiToolbarComponent as ɵbb } from './lib/toolbar/toolbar.component';
|
|
66
|
-
export { TooltipDirective as
|
|
67
|
-
export { Upload as
|
|
68
|
-
export { UiUploadComponent as
|
|
69
|
-
export { enterLeaveViewAnimation as
|
|
70
|
-
export { UiInfiniteLoadDirective as
|
|
71
|
-
export { UiMaskCepNovoDirective as
|
|
72
|
-
export { UiMaskCepDirective as
|
|
66
|
+
export { TooltipDirective as ɵcq } from './lib/tooltip/tooltip.directive';
|
|
67
|
+
export { Upload as ɵde } from './lib/upload/upload';
|
|
68
|
+
export { UiUploadComponent as ɵdd } from './lib/upload/upload.component';
|
|
69
|
+
export { enterLeaveViewAnimation as ɵdf } from './lib/utils/animations/enter-leave-view.animations';
|
|
70
|
+
export { UiInfiniteLoadDirective as ɵbp } from './lib/utils/infinite-load/infinite-load.directive';
|
|
71
|
+
export { UiMaskCepNovoDirective as ɵbj } from './lib/utils/masks/cep-novo/mask-cep-novo.directive';
|
|
72
|
+
export { UiMaskCepDirective as ɵbi } from './lib/utils/masks/cep/mask-cep.directive';
|
|
73
|
+
export { UiMaskCnpjNovoDirective as ɵbh } from './lib/utils/masks/cnpj-novo/mask-cnpj-novo.directive';
|
|
73
74
|
export { UiMaskCnpjDirective as ɵbg } from './lib/utils/masks/cnpj/mask-cnpj.directive';
|
|
74
75
|
export { UiMaskCpfDirective as ɵbf } from './lib/utils/masks/cpf/mask-cpf.directive';
|
|
75
|
-
export { UiMaskCurrencyDirective as
|
|
76
|
+
export { UiMaskCurrencyDirective as ɵck } from './lib/utils/masks/currency/mask-currency.directive';
|
|
76
77
|
export { UiMaskDateDirective as ɵbc } from './lib/utils/masks/date/mask-date.directive';
|
|
77
|
-
export { UiMaskFloatDirective as
|
|
78
|
-
export { UiMaskIntegerDirective as
|
|
79
|
-
export { UiMaskTimeDirective as
|
|
78
|
+
export { UiMaskFloatDirective as ɵcp } from './lib/utils/masks/float/mask-float.directive';
|
|
79
|
+
export { UiMaskIntegerDirective as ɵbs } from './lib/utils/masks/integer/mask-integer.directive';
|
|
80
|
+
export { UiMaskTimeDirective as ɵcj } from './lib/utils/masks/time/mask-time.directive';
|
|
80
81
|
export { UiCapitalizePipe as ɵg } from './lib/utils/pipes/capitalize.pipe';
|
|
81
82
|
export { UiTimeAgoPipe as ɵbd } from './lib/utils/pipes/time-ago.pipe';
|
|
82
83
|
export { _hexToRgb as ɵb, _isBright as ɵa } from './lib/utils/providers/color.provider';
|
|
83
84
|
export { _window as ɵc } from './lib/utils/providers/window.provider';
|
|
84
85
|
export { UiMaxlengthDirective as ɵp } from './lib/utils/validators/maxlength.directive';
|
|
85
|
-
export { UiRequiredDirective as
|
|
86
|
+
export { UiRequiredDirective as ɵcb } from './lib/utils/validators/required.directive';
|