Compare commits
1 commit
master
...
master-day
| Author | SHA1 | Date | |
|---|---|---|---|
| e4662fe240 |
6 changed files with 31 additions and 31 deletions
|
|
@ -28,10 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
||||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
var dayjs_exports = {};
|
var dayjs_exports = {};
|
||||||
__export(dayjs_exports, {
|
__export(dayjs_exports, {
|
||||||
dayjsbr: () => dayjsbr
|
definirDayjsbr: () => definirDayjsbr
|
||||||
});
|
});
|
||||||
module.exports = __toCommonJS(dayjs_exports);
|
module.exports = __toCommonJS(dayjs_exports);
|
||||||
var import_dayjs = __toESM(require("dayjs"));
|
|
||||||
var import_duration = __toESM(require("dayjs/plugin/duration"));
|
var import_duration = __toESM(require("dayjs/plugin/duration"));
|
||||||
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter"));
|
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter"));
|
||||||
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
||||||
|
|
@ -41,17 +40,19 @@ var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
||||||
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
||||||
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
|
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
|
||||||
var import_pt_br = require("dayjs/locale/pt-br");
|
var import_pt_br = require("dayjs/locale/pt-br");
|
||||||
const dayjsbr = import_dayjs.default;
|
const definirDayjsbr = (dayjsEntrada) => {
|
||||||
dayjsbr.locale("pt-br");
|
dayjsEntrada.locale("pt-br");
|
||||||
dayjsbr.extend(import_utc.default);
|
dayjsEntrada.extend(import_utc.default);
|
||||||
dayjsbr.extend(import_timezone.default);
|
dayjsEntrada.extend(import_timezone.default);
|
||||||
dayjsbr.extend(import_weekOfYear.default);
|
dayjsEntrada.extend(import_weekOfYear.default);
|
||||||
dayjsbr.extend(import_isSameOrBefore.default);
|
dayjsEntrada.extend(import_isSameOrBefore.default);
|
||||||
dayjsbr.extend(import_isSameOrAfter.default);
|
dayjsEntrada.extend(import_isSameOrAfter.default);
|
||||||
dayjsbr.extend(import_minMax.default);
|
dayjsEntrada.extend(import_minMax.default);
|
||||||
dayjsbr.extend(import_relativeTime.default);
|
dayjsEntrada.extend(import_relativeTime.default);
|
||||||
dayjsbr.extend(import_duration.default);
|
dayjsEntrada.extend(import_duration.default);
|
||||||
|
return dayjsEntrada;
|
||||||
|
};
|
||||||
// Annotate the CommonJS export names for ESM import in node:
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
0 && (module.exports = {
|
0 && (module.exports = {
|
||||||
dayjsbr
|
definirDayjsbr
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ declare const zFiltro: z.ZodObject<{
|
||||||
ou: z.ZodOptional<z.ZodBoolean>;
|
ou: z.ZodOptional<z.ZodBoolean>;
|
||||||
}, z.core.$strip>;
|
}, z.core.$strip>;
|
||||||
|
|
||||||
declare const dayjsbr: typeof dayjs;
|
declare const definirDayjsbr: (dayjsEntrada: typeof dayjs) => typeof dayjs;
|
||||||
|
|
||||||
declare const link_paiol = "https://paiol.idz.one";
|
declare const link_paiol = "https://paiol.idz.one";
|
||||||
|
|
||||||
|
|
@ -467,4 +467,4 @@ declare const nomeVariavel: (v: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}) => string;
|
}) => string;
|
||||||
|
|
||||||
export { Produtos, TipagemRotas, agrupadores26, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, criarFiltro26, dayjsbr, erUuid, esperar, extensoes, type interfaceConsulta, link_paiol, localValor, nomeVariavel, objetoPg, operadores, operadores26, paraObjetoRegistroPg, pgObjeto, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, type tipoFiltro26, tipoUsuarioResiduos, tiposSituacoesElicencie, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zFiltro, zFiltro26, zOperadores };
|
export { Produtos, TipagemRotas, agrupadores26, aleatorio, cacheM, cacheMFixo, cacheMemoria, camposComuns, criarFiltro26, definirDayjsbr, erUuid, esperar, extensoes, type interfaceConsulta, link_paiol, localValor, nomeVariavel, objetoPg, operadores, operadores26, paraObjetoRegistroPg, pgObjeto, siglas_unidades_medida, texto_busca, tipoArquivo, type tipoFiltro, type tipoFiltro26, tipoUsuarioResiduos, tiposSituacoesElicencie, tx, umaFuncao, umaVariavel, unidades_medida, uuid, uuidV3, uuidV4, uuid_null, validarUuid, verCacheM, zFiltro, zFiltro26, zOperadores };
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-comuns",
|
"name": "p-comuns",
|
||||||
"version": "0.313.0",
|
"version": "0.314.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./dist-front/index.mjs",
|
"main": "./dist-front/index.mjs",
|
||||||
"module": "./dist-front/index.mjs",
|
"module": "./dist-front/index.mjs",
|
||||||
|
|
|
||||||
BIN
pacote.tgz
BIN
pacote.tgz
Binary file not shown.
27
src/dayjs.ts
27
src/dayjs.ts
|
|
@ -1,7 +1,5 @@
|
||||||
|
import type dayjs from "dayjs"
|
||||||
import type { Dayjs } from "dayjs"
|
import type { Dayjs } from "dayjs"
|
||||||
import dayjs from "dayjs"
|
|
||||||
|
|
||||||
const dayjsbr = dayjs
|
|
||||||
|
|
||||||
export type { ManipulateType } from "dayjs"
|
export type { ManipulateType } from "dayjs"
|
||||||
|
|
||||||
|
|
@ -14,17 +12,18 @@ import timezone from "dayjs/plugin/timezone"
|
||||||
import utc from "dayjs/plugin/utc"
|
import utc from "dayjs/plugin/utc"
|
||||||
import weekOfYear from "dayjs/plugin/weekOfYear"
|
import weekOfYear from "dayjs/plugin/weekOfYear"
|
||||||
import "dayjs/locale/pt-br"
|
import "dayjs/locale/pt-br"
|
||||||
dayjsbr.locale("pt-br")
|
|
||||||
|
|
||||||
dayjsbr.extend(utc)
|
export const definirDayjsbr = (dayjsEntrada: typeof dayjs) => {
|
||||||
dayjsbr.extend(timezone)
|
dayjsEntrada.locale("pt-br")
|
||||||
dayjsbr.extend(weekOfYear)
|
dayjsEntrada.extend(utc)
|
||||||
dayjsbr.extend(isSameOrBefore)
|
dayjsEntrada.extend(timezone)
|
||||||
dayjsbr.extend(isSameOrAfter)
|
dayjsEntrada.extend(weekOfYear)
|
||||||
dayjsbr.extend(minMax)
|
dayjsEntrada.extend(isSameOrBefore)
|
||||||
dayjsbr.extend(relativeTime)
|
dayjsEntrada.extend(isSameOrAfter)
|
||||||
dayjsbr.extend(duration)
|
dayjsEntrada.extend(minMax)
|
||||||
|
dayjsEntrada.extend(relativeTime)
|
||||||
export { dayjsbr }
|
dayjsEntrada.extend(duration)
|
||||||
|
return dayjsEntrada
|
||||||
|
}
|
||||||
|
|
||||||
export type { Dayjs }
|
export type { Dayjs }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue