@luizleon/sf.prefeiturasp.vuecomponents 4.1.0 → 4.1.1

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.
@@ -0,0 +1,34 @@
1
+ declare class Utilities {
2
+ /**
3
+ * https://www.w3.org/TR/mediaqueries-4/#valdef-media-pointer-coarse
4
+ * The primary input mechanism of the device includes a pointing device of limited accuracy. Examples include touchscreens and motion-detection sensors (like the Kinect peripheral for the Xbox.)
5
+ */
6
+ static get IsTouch(): boolean;
7
+ /**
8
+ * Retorna o valor do z-index mais alto da página, sendo o valor mínimo 100.
9
+ * Sempre busca em:
10
+ * - body > *:not(script):not(style)
11
+ *
12
+ * Para adicionar outros, informe um array com os seletores.
13
+ * @example ['div.mydiv']
14
+ * @param seletores
15
+ */
16
+ static GetMaxZindex(seletores?: string[]): number;
17
+ /**
18
+ * Ajusta a data para o fuso horário do usuário.
19
+ *
20
+ * @param dt Data a ser ajustada
21
+ */
22
+ static AjustarFuso(dt: Date): void;
23
+ /**
24
+ * Aplique uma máscara a uma string.
25
+ * @example Mask("12345678901", "###.###.###-##")
26
+ * @param value
27
+ * @param mask
28
+ * @returns
29
+ */
30
+ static Mask(value: string, mask: string): string;
31
+ static MaskCpf(value: string): string;
32
+ static MaskCnpj(value: string): string;
33
+ }
34
+ export { Utilities };
package/dist/index.d.ts CHANGED
@@ -14,9 +14,10 @@ import { AppResult } from './common/appResult';
14
14
  import { AxiosClient, UseAxiosClient } from './axios/axiosClient';
15
15
  import { default as Keycloak } from './keycloak';
16
16
  import { ApiClient, UseApiClient } from './http-client/apiClient';
17
+ import { Utilities } from './common/utilities';
17
18
  declare function RemovePreloader(): void;
18
19
  declare function ToggleTheme(): void;
19
20
  declare function EnableDarkMode(): void;
20
21
  declare function EnableLightMode(): void;
21
- export { SfLayout, SfIcon, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, SfTooltip, SfNavMenu, StartAuthService, UseAuthService, UseNavMenuService, UseConfirmService, UseAlertService, UseAxiosClient, RemovePreloader, AppResult, AxiosClient, ToggleTheme, EnableDarkMode, EnableLightMode, Keycloak, ApiClient, UseApiClient, };
22
+ export { SfLayout, SfIcon, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, SfTooltip, SfNavMenu, StartAuthService, UseAuthService, UseNavMenuService, UseConfirmService, UseAlertService, UseAxiosClient, RemovePreloader, AppResult, AxiosClient, ToggleTheme, EnableDarkMode, EnableLightMode, Keycloak, ApiClient, UseApiClient, Utilities, };
22
23
  export * from './types';