@zeedhi/teknisa-components-vuetify 1.114.0 → 3.0.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/.package.json +46 -0
- package/dist/teknisa-vuetify.css +1 -0
- package/dist/teknisa-vuetify.js +119 -0
- package/environments.json +16 -0
- package/package.json +18 -17
- package/src/components/index.ts +16 -0
- package/src/components/public.ts +45 -0
- package/src/components/tek-breadcrumb-header/TekBreadcrumbHeader.ts +34 -0
- package/src/components/tek-breadcrumb-header/TekBreadcrumbHeader.vue +75 -0
- package/src/index.ts +29 -0
- package/src/shims-vue.d.ts +6 -0
- package/src/styles/index.scss +0 -0
- package/types/components/index.d.ts +5 -3
- package/types/components/public.d.ts +1 -21
- package/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.d.ts +1137 -12
- package/types/components/tek-breadcrumb-header/TekBreadcrumbHeader.ts.d.ts +1138 -0
- package/types/index.d.ts +2 -2
- package/dist/tek-components-vuetify.esm.js +0 -8925
- package/dist/tek-components-vuetify.umd.js +0 -8950
- package/types/components/crud/TekCrudAddButton.d.ts +0 -14
- package/types/components/crud/TekCrudButton.d.ts +0 -12
- package/types/components/crud/TekCrudCancelButton.d.ts +0 -12
- package/types/components/crud/TekCrudDeleteButton.d.ts +0 -14
- package/types/components/crud/TekCrudForm.d.ts +0 -9
- package/types/components/crud/TekCrudSaveButton.d.ts +0 -11
- package/types/components/tek-card-title/TekCardTitle.d.ts +0 -16
- package/types/components/tek-drag-grid/TekDragGrid.d.ts +0 -20
- package/types/components/tek-grid/TekGrid.d.ts +0 -89
- package/types/components/tek-grid/TekGridColumnsButton.d.ts +0 -16
- package/types/components/tek-grid/TekGridColumnsOptionsController.d.ts +0 -67
- package/types/components/tek-grid/TekGridColumnsOptionsModal.d.ts +0 -10
- package/types/components/tek-grid/TekGridFilterButton.d.ts +0 -27
- package/types/components/tek-grid/TekGridLayoutOptions.d.ts +0 -19
- package/types/components/tek-grid/subcomponents/TekGridCellIdentation.d.ts +0 -9
- package/types/components/tek-grid/subcomponents/TekGridColumnFilter.d.ts +0 -16
- package/types/components/tek-grid/subcomponents/TekGridHeaderIndentation.d.ts +0 -5
- package/types/components/tek-image/TekImage.d.ts +0 -20
- package/types/components/tek-iterable-carousel/TekIterableCarousel.d.ts +0 -11
- package/types/components/tek-iterable-component-render/TekIterableComponentRender.d.ts +0 -9
- package/types/components/tek-loading/TekLoading.d.ts +0 -9
- package/types/components/tek-notifications/TekNotifications.d.ts +0 -12
- package/types/components/tek-product-card/TekProductCard.d.ts +0 -24
- package/types/components/tek-tree-grid/TekTreeGrid.d.ts +0 -72
- package/types/components/tek-user-info/TekUserInfo.d.ts +0 -12
- package/types/components/tek-user-info/TekUserInfoList.d.ts +0 -9
package/.package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zeedhi/teknisa-components-vuetify",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Teknisa Components based on Vuetify",
|
|
5
|
+
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"main": "src/index.ts",
|
|
8
|
+
"module": "dist/teknisa-vuetify.js",
|
|
9
|
+
"typings": "types/index.d.ts",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "rollup -c && npm run build:scss",
|
|
16
|
+
"build:scss": "rollup -c rollup.scss.config.js",
|
|
17
|
+
"docs": "typedoc --out docs src/",
|
|
18
|
+
"lint": "eslint . --ext .ts --fix",
|
|
19
|
+
"watch": "rollup -cw"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"lodash.clonedeep": "4.5.*",
|
|
23
|
+
"lodash.debounce": "4.0.*",
|
|
24
|
+
"lodash.merge": "4.6.*",
|
|
25
|
+
"sortablejs": "1.15.*",
|
|
26
|
+
"@zeedhi/vuetify": "^3.0.0",
|
|
27
|
+
"@zeedhi/teknisa-components-common": "^3.0.0",
|
|
28
|
+
"@zeedhi/zd-user-info-common": "^3.0.0",
|
|
29
|
+
"@zeedhi/zd-user-info-vue": "^3.0.0",
|
|
30
|
+
"vue": "^3.0.0",
|
|
31
|
+
"vuetify": "~3.9.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
35
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
36
|
+
"@rollup/plugin-typescript": "^11.1.1",
|
|
37
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
38
|
+
"@types/jest": "26.0.*",
|
|
39
|
+
"@types/lodash.clonedeep": "4.5.*",
|
|
40
|
+
"@types/lodash.debounce": "4.0.*",
|
|
41
|
+
"@types/lodash.merge": "4.6.*",
|
|
42
|
+
"@types/sortablejs": "1.15.*",
|
|
43
|
+
"ts-jest": "26.5.*"
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "072b436661242806245a2e5906466b1e800760bd"
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tek-breadcrumb-header .v-breadcrumbs-item{padding:0}.tek-breadcrumb-header .tek-breadcrumb-header-title-col{display:flex;padding-top:5px;padding-left:0}.tek-breadcrumb-header .tek-breadcrumb-header-title-col .tek-breadcrumb-header-slot-right{margin-left:auto}.tek-breadcrumb-header .zd-breadcrumbs{padding:0;font-size:var(--zd-font-body2-size)}.tek-breadcrumb-header .zd-breadcrumbs .v-breadcrumbs__item--disabled{color:#667080}.tek-breadcrumb-header .zd-text{color:#667080}.tek-breadcrumb-header .zd-text.tek-breadcrumb-header-title{font-size:32px;font-weight:bold;line-height:35px;margin-bottom:10px}.tek-breadcrumb-header .zd-text>p{margin:0}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Icons } from '@zeedhi/common';
|
|
2
|
+
import ZdUserInfoComponent from '@zeedhi/zd-user-info-vue';
|
|
3
|
+
import { BreadcrumbHeader } from '@zeedhi/teknisa-components-common';
|
|
4
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, mergeProps, withCtx, normalizeProps, guardReactiveProps, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot } from 'vue';
|
|
5
|
+
import { ZdComponentRenderProps, useCreateInstance } from '@zeedhi/vuetify';
|
|
6
|
+
|
|
7
|
+
const TekBreadcrumbHeaderProps$1 = Object.assign(Object.assign({}, ZdComponentRenderProps), { title: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: '',
|
|
10
|
+
}, breadcrumb: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: {},
|
|
13
|
+
}, rightSlot: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => [],
|
|
16
|
+
} });
|
|
17
|
+
const breadcrumbHeaderComponent$1 = defineComponent({
|
|
18
|
+
props: TekBreadcrumbHeaderProps$1,
|
|
19
|
+
inheritAttrs: false,
|
|
20
|
+
setup(props, ctx) {
|
|
21
|
+
const { instance, root } = useCreateInstance(props, ctx, BreadcrumbHeader);
|
|
22
|
+
return {
|
|
23
|
+
instance,
|
|
24
|
+
root,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const _hoisted_1 = ["id"];
|
|
30
|
+
const _hoisted_2 = { class: "tek-breadcrumb-header-slot-right" };
|
|
31
|
+
const _hoisted_3 = { key: 0 };
|
|
32
|
+
|
|
33
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34
|
+
const _component_zd_breadcrumbs = resolveComponent("zd-breadcrumbs");
|
|
35
|
+
const _component_zd_text = resolveComponent("zd-text");
|
|
36
|
+
const _component_v_col = resolveComponent("v-col");
|
|
37
|
+
|
|
38
|
+
return (openBlock(), createElementBlock("div", {
|
|
39
|
+
id: _ctx.instance.name,
|
|
40
|
+
class: "tek-breadcrumb-header"
|
|
41
|
+
}, [
|
|
42
|
+
createVNode(_component_zd_breadcrumbs, mergeProps(_ctx.instance.breadcrumb, {
|
|
43
|
+
theme: _ctx.instance.theme
|
|
44
|
+
}), null, 16 /* FULL_PROPS */, ["theme"]),
|
|
45
|
+
createVNode(_component_v_col, {
|
|
46
|
+
class: "tek-breadcrumb-header-title-col",
|
|
47
|
+
cols: "12"
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createVNode(_component_zd_text, normalizeProps(guardReactiveProps({
|
|
51
|
+
name: `${_ctx.instance.name}-title`,
|
|
52
|
+
cssClass: 'tek-breadcrumb-header-title',
|
|
53
|
+
text: _ctx.$t(_ctx.instance.title),
|
|
54
|
+
})), null, 16 /* FULL_PROPS */),
|
|
55
|
+
createElementVNode("span", _hoisted_2, [
|
|
56
|
+
(_ctx.instance.rightSlot.length)
|
|
57
|
+
? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
58
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.instance.rightSlot, (child, index) => {
|
|
59
|
+
return (openBlock(), createBlock(resolveDynamicComponent(child.component), mergeProps({ ref_for: true }, child, { key: index }), null, 16 /* FULL_PROPS */))
|
|
60
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
61
|
+
]))
|
|
62
|
+
: createCommentVNode("v-if", true),
|
|
63
|
+
renderSlot(_ctx.$slots, "rightSlot")
|
|
64
|
+
])
|
|
65
|
+
]),
|
|
66
|
+
_: 3 /* FORWARDED */
|
|
67
|
+
})
|
|
68
|
+
], 8 /* PROPS */, _hoisted_1))
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
breadcrumbHeaderComponent$1.render = render;
|
|
72
|
+
breadcrumbHeaderComponent$1.__file = "src/components/tek-breadcrumb-header/TekBreadcrumbHeader.vue";
|
|
73
|
+
|
|
74
|
+
const TekBreadcrumbHeaderProps = Object.assign(Object.assign({}, ZdComponentRenderProps), { title: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: '',
|
|
77
|
+
}, breadcrumb: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: {},
|
|
80
|
+
}, rightSlot: {
|
|
81
|
+
type: Array,
|
|
82
|
+
default: () => [],
|
|
83
|
+
} });
|
|
84
|
+
const breadcrumbHeaderComponent = defineComponent({
|
|
85
|
+
props: TekBreadcrumbHeaderProps,
|
|
86
|
+
inheritAttrs: false,
|
|
87
|
+
setup(props, ctx) {
|
|
88
|
+
const { instance, root } = useCreateInstance(props, ctx, BreadcrumbHeader);
|
|
89
|
+
return {
|
|
90
|
+
instance,
|
|
91
|
+
root,
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const components = {
|
|
97
|
+
TekBreadcrumbHeader: breadcrumbHeaderComponent$1,
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
Icons.addIcons({
|
|
101
|
+
add: 'mdi-plus-box',
|
|
102
|
+
delete: 'mdi-trash-can-outline',
|
|
103
|
+
refresh: 'mdi-refresh',
|
|
104
|
+
more: 'mdi-dots-vertical',
|
|
105
|
+
filter: 'mdi-filter',
|
|
106
|
+
confirmLayout: 'mdi-check',
|
|
107
|
+
updateLayout: 'mdi-square-edit-outline',
|
|
108
|
+
layout: 'mdi-table-star',
|
|
109
|
+
});
|
|
110
|
+
const TeknisaComponents = {
|
|
111
|
+
install(app) {
|
|
112
|
+
Object.keys(components).forEach((id) => {
|
|
113
|
+
app.component(id, components[id]);
|
|
114
|
+
});
|
|
115
|
+
app.component('ZdUserInfo', ZdUserInfoComponent);
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export { breadcrumbHeaderComponent as TekBreadcrumbHeader, TeknisaComponents as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"development": {
|
|
3
|
+
"dependencies": {
|
|
4
|
+
"@zeedhi/vuetify": "file:../../../zeedhi-vue/packages/vuetify",
|
|
5
|
+
"@zeedhi/zd-user-info-common": "file:../../../userinfo/packages/common",
|
|
6
|
+
"@zeedhi/zd-user-info-vue": "file:../../../userinfo/packages/vue"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"production": {
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@zeedhi/vuetify": "^3.0.0",
|
|
12
|
+
"@zeedhi/zd-user-info-common": "^3.0.0",
|
|
13
|
+
"@zeedhi/zd-user-info-vue": "^3.0.0"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-components-vuetify",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Teknisa Components based on Vuetify",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
7
|
-
"main": "
|
|
8
|
-
"module": "dist/
|
|
7
|
+
"main": "src/index.ts",
|
|
8
|
+
"module": "dist/teknisa-vuetify.js",
|
|
9
9
|
"typings": "types/index.d.ts",
|
|
10
|
+
"type": "module",
|
|
10
11
|
"publishConfig": {
|
|
11
12
|
"access": "public"
|
|
12
13
|
},
|
|
@@ -18,31 +19,31 @@
|
|
|
18
19
|
"watch": "rollup -cw"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@zeedhi/
|
|
22
|
-
"@zeedhi/
|
|
23
|
-
"@zeedhi/zd-user-info-common": "^
|
|
24
|
-
"@zeedhi/zd-user-info-vue": "^
|
|
22
|
+
"@zeedhi/teknisa-components-common": "^3.0.0",
|
|
23
|
+
"@zeedhi/vuetify": "^3.0.0",
|
|
24
|
+
"@zeedhi/zd-user-info-common": "^3.0.0",
|
|
25
|
+
"@zeedhi/zd-user-info-vue": "^3.0.0",
|
|
25
26
|
"lodash.clonedeep": "4.5.*",
|
|
26
27
|
"lodash.debounce": "4.0.*",
|
|
27
28
|
"lodash.merge": "4.6.*",
|
|
28
29
|
"sortablejs": "1.15.*",
|
|
29
|
-
"vue
|
|
30
|
-
"
|
|
31
|
-
"vuedraggable": "^2.24.3"
|
|
30
|
+
"vue": "^3.0.0",
|
|
31
|
+
"vuetify": "~3.9.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
35
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
36
|
+
"@rollup/plugin-typescript": "^11.1.1",
|
|
34
37
|
"@types/jest": "26.0.*",
|
|
35
38
|
"@types/lodash.clonedeep": "4.5.*",
|
|
36
39
|
"@types/lodash.debounce": "4.0.*",
|
|
37
40
|
"@types/lodash.merge": "4.6.*",
|
|
38
41
|
"@types/sortablejs": "1.15.*",
|
|
39
|
-
"
|
|
42
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
40
43
|
"ts-jest": "26.5.*"
|
|
41
44
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
"gitHead": "e17c5b68aa70bce1f5114e0094289b29343d9288"
|
|
45
|
+
"gitHead": "8f96c641dd2a27edfd63eadf165843c9499d32b0",
|
|
46
|
+
"env": {
|
|
47
|
+
"NODE_ENV": "production"
|
|
48
|
+
}
|
|
48
49
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { App, DefineComponent } from 'vue';
|
|
2
|
+
import type { IDictionary } from '@zeedhi/core';
|
|
3
|
+
|
|
4
|
+
import TekBreadcrumbHeader from './tek-breadcrumb-header/TekBreadcrumbHeader.vue';
|
|
5
|
+
|
|
6
|
+
export * from './tek-breadcrumb-header/TekBreadcrumbHeader';
|
|
7
|
+
|
|
8
|
+
export const components: IDictionary<DefineComponent<any, any, any>> = {
|
|
9
|
+
TekBreadcrumbHeader,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export function RegisterComponents(app: App) {
|
|
13
|
+
for (const name in components) {
|
|
14
|
+
app.component(name, components[name]);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import TekBreadcrumbHeader from './tek-breadcrumb-header/TekBreadcrumbHeader';
|
|
2
|
+
// import TekCardTitle from './tek-card-title/TekCardTitle';
|
|
3
|
+
// import TekCrudAddButton from './crud/TekCrudAddButton';
|
|
4
|
+
// import TekCrudCancelButton from './crud/TekCrudCancelButton';
|
|
5
|
+
// import TekCrudDeleteButton from './crud/TekCrudDeleteButton';
|
|
6
|
+
// import TekCrudForm from './crud/TekCrudForm';
|
|
7
|
+
// import TekCrudSaveButton from './crud/TekCrudSaveButton';
|
|
8
|
+
// import TekGrid from './tek-grid/TekGrid';
|
|
9
|
+
// import TekGridCellIdentation from './tek-grid/subcomponents/TekGridCellIdentation';
|
|
10
|
+
// import TekGridHeaderIndentation from './tek-grid/subcomponents/TekGridHeaderIndentation';
|
|
11
|
+
// import TekGridColumnFilter from './tek-grid/subcomponents/TekGridColumnFilter';
|
|
12
|
+
// import TekDragGrid from './tek-drag-grid/TekDragGrid';
|
|
13
|
+
// import TekGridColumnsButton from './tek-grid/TekGridColumnsButton';
|
|
14
|
+
// import TekGridFilterButton from './tek-grid/TekGridFilterButton';
|
|
15
|
+
// import TekGridLayoutOptions from './tek-grid/TekGridLayoutOptions';
|
|
16
|
+
// import TekImage from './tek-image/TekImage';
|
|
17
|
+
// import TekIterableComponentRender from './tek-iterable-component-render/TekIterableComponentRender';
|
|
18
|
+
// import TekProductCard from './tek-product-card/TekProductCard';
|
|
19
|
+
// import TekTreeGrid from './tek-tree-grid/TekTreeGrid';
|
|
20
|
+
// import TekUserInfo from './tek-user-info/TekUserInfo';
|
|
21
|
+
// import TekUserInfoList from './tek-user-info/TekUserInfoList';
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
TekBreadcrumbHeader,
|
|
25
|
+
// TekCardTitle,
|
|
26
|
+
// TekCrudAddButton,
|
|
27
|
+
// TekCrudCancelButton,
|
|
28
|
+
// TekCrudDeleteButton,
|
|
29
|
+
// TekCrudForm,
|
|
30
|
+
// TekCrudSaveButton,
|
|
31
|
+
// TekGrid,
|
|
32
|
+
// TekGridCellIdentation,
|
|
33
|
+
// TekGridHeaderIndentation,
|
|
34
|
+
// TekGridColumnFilter,
|
|
35
|
+
// TekDragGrid,
|
|
36
|
+
// TekGridColumnsButton,
|
|
37
|
+
// TekGridFilterButton,
|
|
38
|
+
// TekGridLayoutOptions,
|
|
39
|
+
// TekImage,
|
|
40
|
+
// TekProductCard,
|
|
41
|
+
// TekIterableComponentRender,
|
|
42
|
+
// TekTreeGrid,
|
|
43
|
+
// TekUserInfo,
|
|
44
|
+
// TekUserInfoList,
|
|
45
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BreadcrumbHeader } from '@zeedhi/teknisa-components-common';
|
|
2
|
+
import { defineComponent } from 'vue';
|
|
3
|
+
import { useCreateInstance, ZdComponentRenderProps } from '@zeedhi/vuetify';
|
|
4
|
+
|
|
5
|
+
export const TekBreadcrumbHeaderProps = {
|
|
6
|
+
...ZdComponentRenderProps,
|
|
7
|
+
title: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: '',
|
|
10
|
+
},
|
|
11
|
+
breadcrumb: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: {},
|
|
14
|
+
},
|
|
15
|
+
rightSlot: {
|
|
16
|
+
type: Array,
|
|
17
|
+
default: () => [],
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const breadcrumbHeaderComponent = defineComponent({
|
|
22
|
+
props: TekBreadcrumbHeaderProps,
|
|
23
|
+
inheritAttrs: false,
|
|
24
|
+
setup(props, ctx) {
|
|
25
|
+
const { instance, root } = useCreateInstance<BreadcrumbHeader>(props, ctx, BreadcrumbHeader);
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
instance,
|
|
29
|
+
root,
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export default breadcrumbHeaderComponent;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:id="instance.name"
|
|
4
|
+
class="tek-breadcrumb-header">
|
|
5
|
+
<zd-breadcrumbs
|
|
6
|
+
v-bind="instance.breadcrumb"
|
|
7
|
+
:theme="instance.theme"
|
|
8
|
+
/>
|
|
9
|
+
<v-col class="tek-breadcrumb-header-title-col" cols="12">
|
|
10
|
+
<zd-text
|
|
11
|
+
v-bind="{
|
|
12
|
+
name: `${instance.name}-title`,
|
|
13
|
+
cssClass: 'tek-breadcrumb-header-title',
|
|
14
|
+
text: $t(instance.title),
|
|
15
|
+
}"
|
|
16
|
+
/>
|
|
17
|
+
<span class="tek-breadcrumb-header-slot-right" >
|
|
18
|
+
<span v-if="instance.rightSlot.length">
|
|
19
|
+
<component
|
|
20
|
+
v-for="(child, index) in instance.rightSlot"
|
|
21
|
+
v-bind="child"
|
|
22
|
+
:is="child.component"
|
|
23
|
+
:key="index"
|
|
24
|
+
>
|
|
25
|
+
</component>
|
|
26
|
+
</span>
|
|
27
|
+
<slot name="rightSlot"></slot>
|
|
28
|
+
</span>
|
|
29
|
+
</v-col>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script lang="ts" src="./TekBreadcrumbHeader.ts"></script>
|
|
34
|
+
|
|
35
|
+
<style lang="scss">
|
|
36
|
+
.tek-breadcrumb-header {
|
|
37
|
+
.v-breadcrumbs-item {
|
|
38
|
+
padding: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.tek-breadcrumb-header-title-col {
|
|
42
|
+
display: flex;
|
|
43
|
+
padding-top: 5px;
|
|
44
|
+
padding-left: 0;
|
|
45
|
+
|
|
46
|
+
.tek-breadcrumb-header-slot-right {
|
|
47
|
+
margin-left: auto;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.zd-breadcrumbs {
|
|
52
|
+
padding: 0;
|
|
53
|
+
font-size: var(--zd-font-body2-size);
|
|
54
|
+
|
|
55
|
+
.v-breadcrumbs__item--disabled {
|
|
56
|
+
color: #667080;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.zd-text {
|
|
61
|
+
color: #667080;
|
|
62
|
+
|
|
63
|
+
&.tek-breadcrumb-header-title {
|
|
64
|
+
font-size: 32px;
|
|
65
|
+
font-weight: bold;
|
|
66
|
+
line-height: 35px;
|
|
67
|
+
margin-bottom: 10px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
> p {
|
|
71
|
+
margin: 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</style>
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import type { App } from 'vue';
|
|
3
|
+
import { Icons } from '@zeedhi/common';
|
|
4
|
+
import ZdUserInfoComponent from '@zeedhi/zd-user-info-vue';
|
|
5
|
+
import { components } from './components';
|
|
6
|
+
|
|
7
|
+
Icons.addIcons({
|
|
8
|
+
add: 'mdi-plus-box',
|
|
9
|
+
delete: 'mdi-trash-can-outline',
|
|
10
|
+
refresh: 'mdi-refresh',
|
|
11
|
+
more: 'mdi-dots-vertical',
|
|
12
|
+
filter: 'mdi-filter',
|
|
13
|
+
confirmLayout: 'mdi-check',
|
|
14
|
+
updateLayout: 'mdi-square-edit-outline',
|
|
15
|
+
layout: 'mdi-table-star',
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const TeknisaComponents = {
|
|
19
|
+
install(app: App): void {
|
|
20
|
+
Object.keys(components).forEach((id) => {
|
|
21
|
+
app.component(id, components[id]);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
app.component('ZdUserInfo', ZdUserInfoComponent);
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default TeknisaComponents;
|
|
29
|
+
export * from './components/public';
|
|
File without changes
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IDictionary } from '@zeedhi/core';
|
|
3
|
-
export
|
|
1
|
+
import type { App, DefineComponent } from 'vue';
|
|
2
|
+
import type { IDictionary } from '@zeedhi/core';
|
|
3
|
+
export * from './tek-breadcrumb-header/TekBreadcrumbHeader';
|
|
4
|
+
export declare const components: IDictionary<DefineComponent<any, any, any>>;
|
|
5
|
+
export declare function RegisterComponents(app: App): void;
|
|
@@ -1,22 +1,2 @@
|
|
|
1
1
|
import TekBreadcrumbHeader from './tek-breadcrumb-header/TekBreadcrumbHeader';
|
|
2
|
-
|
|
3
|
-
import TekCrudAddButton from './crud/TekCrudAddButton';
|
|
4
|
-
import TekCrudCancelButton from './crud/TekCrudCancelButton';
|
|
5
|
-
import TekCrudDeleteButton from './crud/TekCrudDeleteButton';
|
|
6
|
-
import TekCrudForm from './crud/TekCrudForm';
|
|
7
|
-
import TekCrudSaveButton from './crud/TekCrudSaveButton';
|
|
8
|
-
import TekGrid from './tek-grid/TekGrid';
|
|
9
|
-
import TekGridCellIdentation from './tek-grid/subcomponents/TekGridCellIdentation';
|
|
10
|
-
import TekGridHeaderIndentation from './tek-grid/subcomponents/TekGridHeaderIndentation';
|
|
11
|
-
import TekGridColumnFilter from './tek-grid/subcomponents/TekGridColumnFilter';
|
|
12
|
-
import TekDragGrid from './tek-drag-grid/TekDragGrid';
|
|
13
|
-
import TekGridColumnsButton from './tek-grid/TekGridColumnsButton';
|
|
14
|
-
import TekGridFilterButton from './tek-grid/TekGridFilterButton';
|
|
15
|
-
import TekGridLayoutOptions from './tek-grid/TekGridLayoutOptions';
|
|
16
|
-
import TekImage from './tek-image/TekImage';
|
|
17
|
-
import TekIterableComponentRender from './tek-iterable-component-render/TekIterableComponentRender';
|
|
18
|
-
import TekProductCard from './tek-product-card/TekProductCard';
|
|
19
|
-
import TekTreeGrid from './tek-tree-grid/TekTreeGrid';
|
|
20
|
-
import TekUserInfo from './tek-user-info/TekUserInfo';
|
|
21
|
-
import TekUserInfoList from './tek-user-info/TekUserInfoList';
|
|
22
|
-
export { TekBreadcrumbHeader, TekCardTitle, TekCrudAddButton, TekCrudCancelButton, TekCrudDeleteButton, TekCrudForm, TekCrudSaveButton, TekGrid, TekGridCellIdentation, TekGridHeaderIndentation, TekGridColumnFilter, TekDragGrid, TekGridColumnsButton, TekGridFilterButton, TekGridLayoutOptions, TekImage, TekProductCard, TekIterableComponentRender, TekTreeGrid, TekUserInfo, TekUserInfoList, };
|
|
2
|
+
export { TekBreadcrumbHeader, };
|