Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@geektech/geek-ui

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geektech/geek-ui - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

30

dist/index.d.ts

@@ -6,3 +6,2 @@ import { AllowedComponentProps } from 'vue';

import { DefineComponent } from 'vue';
import { Directive } from 'vue';
import { ExtractPropTypes } from 'vue';

@@ -36,2 +35,8 @@ import { PropType } from 'vue';

declare type __VLS_WithTemplateSlots_13<T, S> = T & {
new (): {
$slots: S;
};
};
declare type __VLS_WithTemplateSlots_2<T, S> = T & {

@@ -312,3 +317,17 @@ new (): {

export declare const GLoading: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
export declare const GLoading: __VLS_WithTemplateSlots_12<DefineComponent<{
loading: {
type: PropType<boolean>;
default: boolean;
};
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
loading: {
type: PropType<boolean>;
default: boolean;
};
}>>, {
loading: boolean;
}, {}>, {
default?(_: {}): any;
}>;

@@ -555,3 +574,3 @@ export declare const GModal: __VLS_WithTemplateSlots_6<DefineComponent<{

export declare const GTable: __VLS_WithTemplateSlots_12<DefineComponent<{
export declare const GTable: __VLS_WithTemplateSlots_13<DefineComponent<{
data: {

@@ -569,2 +588,3 @@ type: PropType<Record<string, unknown>[]>;

type: PropType<boolean>;
default: boolean;
};

@@ -592,2 +612,3 @@ headerSticky: {

type: PropType<boolean>;
default: boolean;
};

@@ -605,2 +626,3 @@ headerSticky: {

header: HeaderItem[];
loading: boolean;
headerSticky: boolean;

@@ -736,4 +758,2 @@ headerStickyTop: number;

export declare const loading: Directive;
export { }

4

dist/index.js

@@ -27,3 +27,2 @@ import { GCol as _sfc_main } from "./col.js";

import { GTable } from "./table.js";
import { loading } from "./v-loading.js";
import { _ as _sfc_main$2 } from "./button.vue_vue_type_style_index_0_lang.6881cd9a.js";

@@ -78,4 +77,3 @@ import { _ } from "./button.vue_vue_type_style_index_0_lang.6881cd9a.js";

GTimelineItem,
index as default,
loading
index as default
};

@@ -6,6 +6,27 @@ import { AllowedComponentProps } from 'vue';

import { ExtractPropTypes } from 'vue';
import { PropType } from 'vue';
import { VNodeProps } from 'vue';
export declare const GLoading: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
declare type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};
export declare const GLoading: __VLS_WithTemplateSlots<DefineComponent<{
loading: {
type: PropType<boolean>;
default: boolean;
};
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
loading: {
type: PropType<boolean>;
default: boolean;
};
}>>, {
loading: boolean;
}, {}>, {
default?(_: {}): any;
}>;
export { }

@@ -1,2 +0,2 @@

import { defineComponent, openBlock, createElementBlock, normalizeClass, createVNode, unref } from "vue";
import { defineComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, createVNode, unref, vShow, renderSlot } from "vue";
import "./icon.js";

@@ -7,2 +7,5 @@ import { _ as _sfc_main$1 } from "./icon.vue_vue_type_style_index_0_lang.1a5ad3f8.js";

__name: "loading",
props: {
loading: { type: Boolean, default: false }
},
setup(__props) {

@@ -13,6 +16,13 @@ return (_ctx, _cache) => {

}, [
createVNode(unref(_sfc_main$1), {
class: normalizeClass(`${COMPONENT}-icon`),
name: "loading"
}, null, 8, ["class"])
withDirectives(createElementVNode("div", {
class: normalizeClass(`${COMPONENT}-mask`)
}, [
createVNode(unref(_sfc_main$1), {
class: normalizeClass(`${COMPONENT}-icon`),
name: "loading"
}, null, 8, ["class"])
], 2), [
[vShow, _ctx.loading]
]),
renderSlot(_ctx.$slots, "default")
]);

@@ -19,0 +29,0 @@ };

@@ -28,2 +28,3 @@ import { AllowedComponentProps } from 'vue';

type: PropType<boolean>;
default: boolean;
};

@@ -51,2 +52,3 @@ headerSticky: {

type: PropType<boolean>;
default: boolean;
};

@@ -64,2 +66,3 @@ headerSticky: {

header: HeaderItem[];
loading: boolean;
headerSticky: boolean;

@@ -66,0 +69,0 @@ headerStickyTop: number;

@@ -1,7 +0,6 @@

import { onMounted, defineComponent, computed, ref, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, unref, withCtx, normalizeStyle, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
import { GScrollbarBox as _sfc_main$1 } from "./scrollbar-box.js";
import { onMounted, defineComponent, computed, ref, openBlock, createBlock, unref, normalizeClass, withCtx, createElementVNode, createVNode, normalizeStyle, createElementBlock, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
import { GScrollbarBox as _sfc_main$2 } from "./scrollbar-box.js";
import "./icon.js";
import { loading } from "./v-loading.js";
import { _ as _sfc_main$2 } from "./icon.vue_vue_type_style_index_0_lang.1a5ad3f8.js";
import "./loading.js";
import { GLoading as _sfc_main$1 } from "./loading.js";
import { _ as _sfc_main$3 } from "./icon.vue_vue_type_style_index_0_lang.1a5ad3f8.js";
function useResizeObserve(refEl, callback) {

@@ -50,4 +49,4 @@ const resizeObserver = new ResizeObserver(callback);

headerSticky: { type: Boolean, default: true },
loading: { type: Boolean },
headerStickyTop: { default: 0 }
headerStickyTop: { default: 0 },
loading: { type: Boolean, default: false }
},

@@ -163,76 +162,78 @@ setup(__props) {

return (_ctx, _cache) => {
return withDirectives((openBlock(), createElementBlock("div", {
class: normalizeClass(COMPONENT)
}, [
createElementVNode("div", {
class: normalizeClass(contentPositionClass.value)
}, [
createVNode(unref(_sfc_main$1), {
ref_key: "tableRef",
ref: tableRef,
onScroll: _cache[0] || (_cache[0] = (e) => onScroll(e.target))
}, {
default: withCtx(() => [
createElementVNode("table", null, [
createElementVNode("thead", {
class: normalizeClass(_ctx.headerSticky ? `${COMPONENT}-header-sticky` : ""),
style: normalizeStyle({ top: `${_ctx.headerStickyTop}px` })
}, [
(openBlock(true), createElementBlock(Fragment, null, renderList(headerRows.value, (cols, index) => {
return openBlock(), createElementBlock("tr", { key: index }, [
(openBlock(true), createElementBlock(Fragment, null, renderList(cols, (col) => {
return openBlock(), createElementBlock("th", {
key: col.key,
rowspan: Number(col.rowSpan),
colspan: Number(col.colSpan),
style: normalizeStyle({ minWidth: `${col.width}px` })
}, [
renderSlot(_ctx.$slots, "header-item", { item: col }, () => [
createTextVNode(toDisplayString(col.display), 1)
])
], 12, _hoisted_1);
}), 128))
]);
}), 128))
], 6),
createElementVNode("tbody", null, [
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (dataRow, rowIndex) => {
return openBlock(), createElementBlock("tr", { key: rowIndex }, [
(openBlock(true), createElementBlock(Fragment, null, renderList(headerKeys.value, (key, colIndex) => {
var _a, _b;
return openBlock(), createElementBlock(Fragment, null, [
!removedCells.value.includes(`${rowIndex}-${colIndex}`) ? (openBlock(), createElementBlock("td", {
key,
rowspan: Number((_a = dataRow[`${key}-row-span`]) != null ? _a : 1),
colspan: Number((_b = dataRow[`${key}-col-span`]) != null ? _b : 1)
return openBlock(), createBlock(unref(_sfc_main$1), {
class: normalizeClass(COMPONENT),
loading: _ctx.loading
}, {
default: withCtx(() => [
createElementVNode("div", {
class: normalizeClass(contentPositionClass.value)
}, [
createVNode(unref(_sfc_main$2), {
ref_key: "tableRef",
ref: tableRef,
onScroll: _cache[0] || (_cache[0] = (e) => onScroll(e.target))
}, {
default: withCtx(() => [
createElementVNode("table", null, [
createElementVNode("thead", {
class: normalizeClass(_ctx.headerSticky ? `${COMPONENT}-header-sticky` : ""),
style: normalizeStyle({ top: `${_ctx.headerStickyTop}px` })
}, [
(openBlock(true), createElementBlock(Fragment, null, renderList(headerRows.value, (cols, index) => {
return openBlock(), createElementBlock("tr", { key: index }, [
(openBlock(true), createElementBlock(Fragment, null, renderList(cols, (col) => {
return openBlock(), createElementBlock("th", {
key: col.key,
rowspan: Number(col.rowSpan),
colspan: Number(col.colSpan),
style: normalizeStyle({ minWidth: `${col.width}px` })
}, [
renderSlot(_ctx.$slots, "data-item", {
item: dataRow,
dataKey: key
}, () => [
createTextVNode(toDisplayString(dataRow[key]), 1)
renderSlot(_ctx.$slots, "header-item", { item: col }, () => [
createTextVNode(toDisplayString(col.display), 1)
])
], 8, _hoisted_2)) : createCommentVNode("", true)
], 64);
}), 256))
]);
}), 128))
], 12, _hoisted_1);
}), 128))
]);
}), 128))
], 6),
createElementVNode("tbody", null, [
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (dataRow, rowIndex) => {
return openBlock(), createElementBlock("tr", { key: rowIndex }, [
(openBlock(true), createElementBlock(Fragment, null, renderList(headerKeys.value, (key, colIndex) => {
var _a, _b;
return openBlock(), createElementBlock(Fragment, null, [
!removedCells.value.includes(`${rowIndex}-${colIndex}`) ? (openBlock(), createElementBlock("td", {
key,
rowspan: Number((_a = dataRow[`${key}-row-span`]) != null ? _a : 1),
colspan: Number((_b = dataRow[`${key}-col-span`]) != null ? _b : 1)
}, [
renderSlot(_ctx.$slots, "data-item", {
item: dataRow,
dataKey: key
}, () => [
createTextVNode(toDisplayString(dataRow[key]), 1)
])
], 8, _hoisted_2)) : createCommentVNode("", true)
], 64);
}), 256))
]);
}), 128))
])
])
])
]),
_: 3
}, 512)
], 2),
_ctx.data.length === 0 ? (openBlock(), createElementBlock("div", {
key: 0,
class: normalizeClass(`${COMPONENT}-empty`)
}, [
renderSlot(_ctx.$slots, "empty", {}, () => [
createVNode(unref(_sfc_main$2), { name: "empty" }),
createTextVNode(" \u6682\u65E0\u6570\u636E ")
])
], 2)) : createCommentVNode("", true)
])), [
[unref(loading), _ctx.loading]
]);
]),
_: 3
}, 512)
], 2),
_ctx.data.length === 0 ? (openBlock(), createElementBlock("div", {
key: 0,
class: normalizeClass(`${COMPONENT}-empty`)
}, [
renderSlot(_ctx.$slots, "empty", {}, () => [
createVNode(unref(_sfc_main$3), { name: "empty" }),
createTextVNode(" \u6682\u65E0\u6570\u636E ")
])
], 2)) : createCommentVNode("", true)
]),
_: 3
}, 8, ["loading"]);
};

@@ -239,0 +240,0 @@ }

{
"name": "@geektech/geek-ui",
"version": "1.2.2",
"version": "1.2.3",
"type": "module",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc