@namba_one/ui-kit-2 1.5.7 → 1.6.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/index.d.ts +2 -0
- package/dist/index.es.js +12642 -12237
- package/dist/index.umd.js +41 -27
- package/dist/namba-one-uikit.css +1 -1
- package/dist/ui-kit.components.json +4 -4
- package/package.json +3 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-09-
|
|
3
|
+
"generatedAt": "2026-09-30T20:27:35.520Z",
|
|
4
4
|
"package": {
|
|
5
5
|
"name": "@namba_one/ui-kit-2",
|
|
6
|
-
"version": "1.5.
|
|
6
|
+
"version": "1.5.8",
|
|
7
7
|
"main": "dist/index.umd.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -1781,7 +1781,7 @@
|
|
|
1781
1781
|
]
|
|
1782
1782
|
},
|
|
1783
1783
|
"model": {
|
|
1784
|
-
"source": "export type FilterGroup_CheckboxListProps = {\n title: string\n titleMulti: string\n data: {\n id: string | number\n title: string\n description?: string\n }[]\n selectAllButton?: string\n minWidth?: number\n withHeader?: boolean\n withSearch?: boolean\n searchPlaceholder?: string\n isPaginating?: boolean\n}\n"
|
|
1784
|
+
"source": "export type FilterGroup_CheckboxListProps = {\n title: string\n titleMulti: string\n countFrom?: number\n data: {\n id: string | number\n title: string\n description?: string\n }[]\n selectAllButton?: string\n minWidth?: number\n withHeader?: boolean\n withSearch?: boolean\n searchPlaceholder?: string\n isPaginating?: boolean\n}\n"
|
|
1785
1785
|
},
|
|
1786
1786
|
"stories": {
|
|
1787
1787
|
"variants": [
|
|
@@ -4239,7 +4239,7 @@
|
|
|
4239
4239
|
]
|
|
4240
4240
|
},
|
|
4241
4241
|
"model": {
|
|
4242
|
-
"source": "export type TableSimpleProps<T> = {\n data: T[]\n columns: string[]\n sizes: number[]\n isDraggable?: boolean\n reRenderKey?: string\n scrollOffset?: number | string\n errorText?: string\n responseButtonText?: string\n}\n\nexport type TableSimpleEmits<T> = {\n (e: 'click', value: T): void\n (\n e: 'click-cell',\n value: {\n event: MouseEvent\n column: string\n item: T\n }\n ): void\n (e: 'update:data', value: T[]): void\n (e: 'reset'): void\n}\n\nexport function makeScrollToColumnIndex(\n scrollContainer: HTMLElement,\n columns: HTMLElement[]\n) {\n function getColMetrics(\n index: number\n ): { left: number; width: number } | null {\n const cell = columns[index]\n if (!cell) return null\n\n const containerRect = scrollContainer.getBoundingClientRect()\n const cellRect = cell.getBoundingClientRect()\n\n const left =\n cellRect.left - containerRect.left + scrollContainer.scrollLeft\n const width = cellRect.width\n\n return { left, width }\n }\n\n function clamp(n: number, min: number, max: number) {\n return Math.max(min, Math.min(max, n))\n }\n\n /**\n * Скролл к колонке.\n * align:\n * - start: колонка у левого края\n * - center: по центру\n * - end: у правого края\n *\n * offset: доп. смещение (например ширина кнопки навигации)\n */\n function scrollToColumnIndex(\n index: number,\n align: 'start' | 'center' | 'end' = 'start',\n additionalOffset = 0\n ) {\n const m = getColMetrics(index)\n if (!m) return\n\n let targetLeft = m.left\n\n if (align === 'center') {\n targetLeft = m.left - scrollContainer.clientWidth / 2 + m.width / 2\n } else if (align === 'end') {\n targetLeft = m.left - scrollContainer.clientWidth + m.width\n }\n\n const maxScroll =\n scrollContainer.scrollWidth - scrollContainer.clientWidth\n scrollContainer.scrollTo({\n left:\n clamp(targetLeft, 0, Math.max(0, maxScroll)) + additionalOffset,\n behavior: 'smooth',\n })\n }\n\n return scrollToColumnIndex\n}\n"
|
|
4242
|
+
"source": "export type TableSimpleProps<T> = {\n data: T[]\n columns: string[]\n sizes: number[]\n isDraggable?: boolean\n reRenderKey?: string\n scrollOffset?: number | string\n errorText?: string\n responseButtonText?: string\n isScrollbar?: boolean\n}\n\nexport type TableSimpleEmits<T> = {\n (e: 'click', value: T): void\n (\n e: 'click-cell',\n value: {\n event: MouseEvent\n column: string\n item: T\n }\n ): void\n (e: 'update:data', value: T[]): void\n (e: 'reset'): void\n}\n\nexport function makeScrollToColumnIndex(\n scrollContainer: HTMLElement,\n columns: HTMLElement[]\n) {\n function getColMetrics(\n index: number\n ): { left: number; width: number } | null {\n const cell = columns[index]\n if (!cell) return null\n\n const containerRect = scrollContainer.getBoundingClientRect()\n const cellRect = cell.getBoundingClientRect()\n\n const left =\n cellRect.left - containerRect.left + scrollContainer.scrollLeft\n const width = cellRect.width\n\n return { left, width }\n }\n\n function clamp(n: number, min: number, max: number) {\n return Math.max(min, Math.min(max, n))\n }\n\n /**\n * Скролл к колонке.\n * align:\n * - start: колонка у левого края\n * - center: по центру\n * - end: у правого края\n *\n * offset: доп. смещение (например ширина кнопки навигации)\n */\n function scrollToColumnIndex(\n index: number,\n align: 'start' | 'center' | 'end' = 'start',\n additionalOffset = 0\n ) {\n const m = getColMetrics(index)\n if (!m) return\n\n let targetLeft = m.left\n\n if (align === 'center') {\n targetLeft = m.left - scrollContainer.clientWidth / 2 + m.width / 2\n } else if (align === 'end') {\n targetLeft = m.left - scrollContainer.clientWidth + m.width\n }\n\n const maxScroll =\n scrollContainer.scrollWidth - scrollContainer.clientWidth\n scrollContainer.scrollTo({\n left:\n clamp(targetLeft, 0, Math.max(0, maxScroll)) + additionalOffset,\n behavior: 'smooth',\n })\n }\n\n return scrollToColumnIndex\n}\n"
|
|
4243
4243
|
},
|
|
4244
4244
|
"stories": {
|
|
4245
4245
|
"variants": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namba_one/ui-kit-2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"main": "dist/index.umd.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@ckpack/vue-color": "^1.6.0",
|
|
56
|
+
"@coreui/coreui-pro": "^5.27.1",
|
|
57
|
+
"@coreui/vue-pro": "^5.21.1",
|
|
56
58
|
"@editorjs/editorjs": "^2.31.0",
|
|
57
59
|
"@editorjs/header": "^2.8.8",
|
|
58
60
|
"@editorjs/list": "^2.0.8",
|