@veltra/utils 1.13.2 → 1.14.0
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/dist/dom/class-name.js +2 -2
- package/dist/dom/class-name.js.map +1 -1
- package/dist/dom/highlight.d.ts +1 -0
- package/dist/dom/position.d.ts +1 -0
- package/dist/helper/create-toggle.d.ts +1 -0
- package/dist/helper/overflow-nav.d.ts +1 -0
- package/dist/helper/vue.d.ts +1 -0
- package/dist/types/form-context.d.ts +1 -0
- package/dist/types/index.js +1 -2
- package/package.json +1 -1
package/dist/dom/class-name.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeBEM } from "../helper/make-bem.js";
|
|
2
|
-
import
|
|
2
|
+
import "../shared/constants.js";
|
|
3
3
|
//#region src/dom/class-name.ts
|
|
4
|
-
const bem = makeBEM(
|
|
4
|
+
const bem = makeBEM("u-");
|
|
5
5
|
function addClass(el, className) {
|
|
6
6
|
if (Array.isArray(className)) className.forEach((c) => el.classList.add(c));
|
|
7
7
|
else el.classList.add(className);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-name.js","names":[],"sources":["../../src/dom/class-name.ts"],"sourcesContent":["import { makeBEM, type BEMFactory } from '../helper/make-bem'\nimport { CLS_PREFIX } from '../shared/constants'\n\nexport const bem: BEMFactory<typeof CLS_PREFIX> = makeBEM(CLS_PREFIX)\n\nexport function addClass(el: HTMLElement, className: string | string[]): void {\n if (Array.isArray(className)) {\n className.forEach((c) => el.classList.add(c))\n } else {\n el.classList.add(className)\n }\n}\n\nexport function removeClass(el: HTMLElement, className: string | string[]): void {\n if (Array.isArray(className)) {\n className.forEach((c) => el.classList.remove(c))\n } else {\n el.classList.remove(className)\n }\n}\n"],"mappings":";;;AAGA,MAAa,MAAqC,
|
|
1
|
+
{"version":3,"file":"class-name.js","names":[],"sources":["../../src/dom/class-name.ts"],"sourcesContent":["import { makeBEM, type BEMFactory } from '../helper/make-bem'\nimport { CLS_PREFIX } from '../shared/constants'\n\nexport const bem: BEMFactory<typeof CLS_PREFIX> = makeBEM(CLS_PREFIX)\n\nexport function addClass(el: HTMLElement, className: string | string[]): void {\n if (Array.isArray(className)) {\n className.forEach((c) => el.classList.add(c))\n } else {\n el.classList.add(className)\n }\n}\n\nexport function removeClass(el: HTMLElement, className: string | string[]): void {\n if (Array.isArray(className)) {\n className.forEach((c) => el.classList.remove(c))\n } else {\n el.classList.remove(className)\n }\n}\n"],"mappings":";;;AAGA,MAAa,MAAqC,QAAA,IAAkB;AAEpE,SAAgB,SAAS,IAAiB,WAAoC;CAC5E,IAAI,MAAM,QAAQ,SAAS,GACzB,UAAU,SAAS,MAAM,GAAG,UAAU,IAAI,CAAC,CAAC;MAE5C,GAAG,UAAU,IAAI,SAAS;AAE9B;AAEA,SAAgB,YAAY,IAAiB,WAAoC;CAC/E,IAAI,MAAM,QAAQ,SAAS,GACzB,UAAU,SAAS,MAAM,GAAG,UAAU,OAAO,CAAC,CAAC;MAE/C,GAAG,UAAU,OAAO,SAAS;AAEjC"}
|
package/dist/dom/highlight.d.ts
CHANGED
package/dist/dom/position.d.ts
CHANGED
|
@@ -37,4 +37,5 @@ export declare function scrollElementIntoView(vp: HTMLElement, el: HTMLElement,
|
|
|
37
37
|
*/
|
|
38
38
|
export declare function applyWheelHorizontalScroll(e: WheelEvent, vp: HTMLElement, navActive: boolean): void;
|
|
39
39
|
//#endregion
|
|
40
|
+
export {};
|
|
40
41
|
//# sourceMappingURL=overflow-nav.d.ts.map
|
package/dist/helper/vue.d.ts
CHANGED
|
@@ -51,4 +51,5 @@ export declare function fieldKey(key: string | null | undefined, fallback: strin
|
|
|
51
51
|
export declare function renderLabelTemplate(template: string | undefined, row: Record<string, any> | undefined | null): string | undefined;
|
|
52
52
|
export declare function shallowComputed<T>(getter: () => T): ShallowRef<T>;
|
|
53
53
|
//#endregion
|
|
54
|
+
export {};
|
|
54
55
|
//# sourceMappingURL=vue.d.ts.map
|
package/dist/types/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { injectFormContext, provideFormContext };
|
|
1
|
+
export { injectFormContext, provideFormContext } from "./form-context.js";
|