@kong/kongponents 9.22.2 → 9.22.3-pr.2629.ea6a3cdf1.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.
@@ -12,7 +12,6 @@ import KDropdown from '../../components/KDropdown/KDropdown.vue';
12
12
  import KCheckbox from '../../components/KCheckbox/KCheckbox.vue';
13
13
  import BulkActionsDropdown from './BulkActionsDropdown.vue';
14
14
  declare const tableId: string;
15
- declare const headerRow: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
16
15
  declare const tableHeaders: import("vue").Ref<{
17
16
  key: string;
18
17
  label?: string | undefined;
@@ -51,14 +50,20 @@ declare const columnVisibilityDisabled: import("vue").ComputedRef<boolean>;
51
50
  declare const visibilityColumns: import("vue").ComputedRef<TableViewHeader[]>;
52
51
  declare const visibilityPreferences: import("vue").ComputedRef<Record<string, boolean>>;
53
52
  declare const columnVisibility: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
53
+ declare const tableWrapperHeight: import("vue").Ref<string, string>;
54
+ declare const isScrollableVertically: import("vue").Ref<boolean, boolean>;
54
55
  declare const isScrolledVertically: import("vue").Ref<boolean, boolean>;
56
+ declare const isScrolledHorizontally: import("vue").Ref<boolean, boolean>;
57
+ declare const isScrollableRight: import("vue").Ref<boolean, boolean>;
55
58
  declare const sortColumnKey: import("vue").Ref<string, string>;
56
59
  declare const sortColumnOrder: import("vue").Ref<SortColumnOrder, SortColumnOrder>;
57
60
  declare const isClickable: import("vue").Ref<boolean, boolean>;
58
61
  declare const hasToolbarSlot: import("vue").ComputedRef<boolean>;
59
62
  declare const isActionsDropdownHovered: import("vue").Ref<boolean, boolean>;
60
63
  declare const tableWrapperStyles: import("vue").ComputedRef<Record<string, string>>;
64
+ declare const scrollbarWidth: import("vue").ComputedRef<string>;
61
65
  declare const bulkActionsSelectedRows: import("vue").Ref<Record<string, any>[], Record<string, any>[] | TableViewData>;
66
+ declare const hasBulkActions: import("vue").ComputedRef<boolean>;
62
67
  declare const showBulkActionsToolbar: import("vue").ComputedRef<boolean>;
63
68
  declare const bulkActionsSelectedRowsCount: import("vue").ComputedRef<string>;
64
69
  declare const rowKeyMap: import("vue").Ref<WeakMap<Record<string, any>, string> & Omit<WeakMap<Record<string, any>, string>, keyof WeakMap<any, any>>, WeakMap<Record<string, any>, string> | (WeakMap<Record<string, any>, string> & Omit<WeakMap<Record<string, any>, string>, keyof WeakMap<any, any>>)>;
@@ -81,12 +86,15 @@ declare const getColumnTooltipSlotName: (columnKey: string) => TableColumnToolti
81
86
  */
82
87
  declare const getGeneric: (obj: Record<string, any>) => any;
83
88
  declare const tdlisteners: import("vue").ComputedRef<any>;
89
+ declare const DEFAULT_COLUMN_WIDTHS_PX: Record<string, string>;
84
90
  declare const columnStyles: import("vue").ComputedRef<Record<string, any>>;
85
91
  declare const getHeaderClasses: (column: TableViewHeader, index: number) => Record<string, boolean>;
86
92
  declare const onHeaderClick: (column: TableViewHeader) => void;
87
93
  declare const resizeHoverColumn: import("vue").ComputedRef<string>;
88
94
  declare const headerHeight: import("vue").ComputedRef<string>;
89
95
  declare const startResize: (evt: MouseEvent, colKey: string) => void;
96
+ declare const isLastStickyColumn: (columnKey: string) => boolean;
97
+ declare const showResizeHandle: (column: TableViewHeader, previous?: boolean) => boolean;
90
98
  declare const showPagination: import("vue").ComputedRef<boolean>;
91
99
  declare const scrollHandler: (event: any) => void;
92
100
  declare const getRowState: (row: Record<string, any>) => TableViewSelectState | undefined;
@@ -171,7 +179,6 @@ declare const __VLS_self: import("vue").DefineComponent<TableViewProps, {
171
179
  KCheckbox: typeof KCheckbox;
172
180
  BulkActionsDropdown: typeof BulkActionsDropdown;
173
181
  tableId: typeof tableId;
174
- headerRow: typeof headerRow;
175
182
  tableHeaders: typeof tableHeaders;
176
183
  visibleHeaders: typeof visibleHeaders;
177
184
  resizingColumn: typeof resizingColumn;
@@ -182,14 +189,20 @@ declare const __VLS_self: import("vue").DefineComponent<TableViewProps, {
182
189
  visibilityColumns: typeof visibilityColumns;
183
190
  visibilityPreferences: typeof visibilityPreferences;
184
191
  columnVisibility: typeof columnVisibility;
192
+ tableWrapperHeight: typeof tableWrapperHeight;
193
+ isScrollableVertically: typeof isScrollableVertically;
185
194
  isScrolledVertically: typeof isScrolledVertically;
195
+ isScrolledHorizontally: typeof isScrolledHorizontally;
196
+ isScrollableRight: typeof isScrollableRight;
186
197
  sortColumnKey: typeof sortColumnKey;
187
198
  sortColumnOrder: typeof sortColumnOrder;
188
199
  isClickable: typeof isClickable;
189
200
  hasToolbarSlot: typeof hasToolbarSlot;
190
201
  isActionsDropdownHovered: typeof isActionsDropdownHovered;
191
202
  tableWrapperStyles: typeof tableWrapperStyles;
203
+ scrollbarWidth: typeof scrollbarWidth;
192
204
  bulkActionsSelectedRows: typeof bulkActionsSelectedRows;
205
+ hasBulkActions: typeof hasBulkActions;
193
206
  showBulkActionsToolbar: typeof showBulkActionsToolbar;
194
207
  bulkActionsSelectedRowsCount: typeof bulkActionsSelectedRowsCount;
195
208
  rowKeyMap: typeof rowKeyMap;
@@ -197,12 +210,15 @@ declare const __VLS_self: import("vue").DefineComponent<TableViewProps, {
197
210
  getColumnTooltipSlotName: typeof getColumnTooltipSlotName;
198
211
  getGeneric: typeof getGeneric;
199
212
  tdlisteners: typeof tdlisteners;
213
+ DEFAULT_COLUMN_WIDTHS_PX: typeof DEFAULT_COLUMN_WIDTHS_PX;
200
214
  columnStyles: typeof columnStyles;
201
215
  getHeaderClasses: typeof getHeaderClasses;
202
216
  onHeaderClick: typeof onHeaderClick;
203
217
  resizeHoverColumn: typeof resizeHoverColumn;
204
218
  headerHeight: typeof headerHeight;
205
219
  startResize: typeof startResize;
220
+ isLastStickyColumn: typeof isLastStickyColumn;
221
+ showResizeHandle: typeof showResizeHandle;
206
222
  showPagination: typeof showPagination;
207
223
  scrollHandler: typeof scrollHandler;
208
224
  getRowState: typeof getRowState;
@@ -13,6 +13,7 @@ export interface DropdownItemRenderedComponent {
13
13
  tag: string | Component;
14
14
  onClick?: ((event: Event) => void);
15
15
  attrs: {
16
+ type?: 'button';
16
17
  class?: string;
17
18
  isRounded?: boolean;
18
19
  disabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong/kongponents",
3
- "version": "9.22.2",
3
+ "version": "9.22.3-pr.2629.ea6a3cdf1.0",
4
4
  "description": "Kong Component library",
5
5
  "type": "module",
6
6
  "repository": {
@@ -26,33 +26,6 @@
26
26
  "./package.json": "./package.json",
27
27
  "./dist/*": "./dist/*"
28
28
  },
29
- "scripts": {
30
- "build:cli": "rimraf ./bin && tsc --project ./cli/tsconfig.json && chmod u+x ./bin/index.js",
31
- "build:docs": "vitepress build docs",
32
- "build:kongponents": "pnpm typecheck && vite build && vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly && tsc-alias -p './tsconfig.build.json'",
33
- "build:visualize": "cross-env-shell BUILD_VISUALIZER=true vite build -m production",
34
- "build": "pnpm build:cli && pnpm stylelint && pnpm lint && pnpm build:kongponents && pnpm build:docs",
35
- "build:ci": "pnpm build:kongponents && pnpm build:docs",
36
- "commit": "cz",
37
- "create-kongponent": "node ./bin/index.js",
38
- "sandbox:dev": "cross-env USE_SANDBOX=true vite",
39
- "sandbox:build": "cross-env USE_SANDBOX=true vite build && shx cp sandbox/dist/index.html sandbox/dist/404.html",
40
- "sandbox:build:netlify": "cross-env USE_SANDBOX=true USE_NETLIFY=true vite build && shx cp sandbox/dist/index.html sandbox/dist/404.html",
41
- "sandbox:preview": "cross-env USE_SANDBOX=true vite preview",
42
- "docs:build": "vitepress build docs",
43
- "docs:dev": "vitepress dev docs",
44
- "docs:serve": "vitepress serve docs",
45
- "docs:preview": "vitepress preview docs --port 8080",
46
- "typecheck": "vue-tsc -p './tsconfig.build.json' --noEmit",
47
- "lint": "eslint",
48
- "lint:fix": "eslint --fix",
49
- "stylelint": "stylelint './src/**/*.{css,scss,sass,vue}'",
50
- "stylelint:fix": "stylelint './src/**/*.{css,scss,sass,vue}' --fix",
51
- "test": "cypress run --component -b chrome",
52
- "test:open": "cypress open --component -b chrome",
53
- "test:spec": "cypress run --component -b chrome --spec",
54
- "semantic-release": "semantic-release"
55
- },
56
29
  "dependencies": {
57
30
  "@floating-ui/vue": "^1.1.6",
58
31
  "@kong/icons": "^1.21.2",
@@ -183,7 +156,6 @@
183
156
  "engines": {
184
157
  "node": ">=v16.20.2 || >=18.12.1 || >=20.14.0"
185
158
  },
186
- "packageManager": "pnpm@9.11.0",
187
159
  "volta": {
188
160
  "node": "20.17.0",
189
161
  "pnpm": "9.11.0"
@@ -197,5 +169,32 @@
197
169
  "jiraPrepend": "[",
198
170
  "jiraAppend": "]"
199
171
  }
172
+ },
173
+ "scripts": {
174
+ "build:cli": "rimraf ./bin && tsc --project ./cli/tsconfig.json && chmod u+x ./bin/index.js",
175
+ "build:docs": "vitepress build docs",
176
+ "build:kongponents": "pnpm typecheck && vite build && vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly && tsc-alias -p './tsconfig.build.json'",
177
+ "build:visualize": "cross-env-shell BUILD_VISUALIZER=true vite build -m production",
178
+ "build": "pnpm build:cli && pnpm stylelint && pnpm lint && pnpm build:kongponents && pnpm build:docs",
179
+ "build:ci": "pnpm build:kongponents && pnpm build:docs",
180
+ "commit": "cz",
181
+ "create-kongponent": "node ./bin/index.js",
182
+ "sandbox:dev": "cross-env USE_SANDBOX=true vite",
183
+ "sandbox:build": "cross-env USE_SANDBOX=true vite build && shx cp sandbox/dist/index.html sandbox/dist/404.html",
184
+ "sandbox:build:netlify": "cross-env USE_SANDBOX=true USE_NETLIFY=true vite build && shx cp sandbox/dist/index.html sandbox/dist/404.html",
185
+ "sandbox:preview": "cross-env USE_SANDBOX=true vite preview",
186
+ "docs:build": "vitepress build docs",
187
+ "docs:dev": "vitepress dev docs",
188
+ "docs:serve": "vitepress serve docs",
189
+ "docs:preview": "vitepress preview docs --port 8080",
190
+ "typecheck": "vue-tsc -p './tsconfig.build.json' --noEmit",
191
+ "lint": "eslint",
192
+ "lint:fix": "eslint --fix",
193
+ "stylelint": "stylelint './src/**/*.{css,scss,sass,vue}'",
194
+ "stylelint:fix": "stylelint './src/**/*.{css,scss,sass,vue}' --fix",
195
+ "test": "cypress run --component -b chrome",
196
+ "test:open": "cypress open --component -b chrome",
197
+ "test:spec": "cypress run --component -b chrome --spec",
198
+ "semantic-release": "semantic-release"
200
199
  }
201
- }
200
+ }