@ukic/canary-web-components 2.0.0-canary.24 → 2.0.0-canary.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-85c5ca15.js → helpers-6817cfbb.js} +20 -31
- package/dist/cjs/helpers-6817cfbb.js.map +1 -0
- package/dist/cjs/ic-alert.cjs.entry.js +9 -4
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +2 -2
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +200 -51
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +3 -2
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +3 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +2 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select-with-multi.cjs.entry.js +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.css +31 -7
- package/dist/collection/components/ic-data-table/ic-data-table.js +298 -56
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +143 -54
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.js +20 -1
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +9 -0
- package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +20 -0
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +10 -0
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -1
- package/dist/collection/utils/helpers.js +22 -0
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers2.js +18 -29
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-alert2.js +11 -5
- package/dist/components/ic-alert2.js.map +1 -1
- package/dist/components/ic-badge.js +2 -2
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-data-table.js +207 -52
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +3 -1
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +3 -0
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-text-field2.js +3 -1
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-401d0c66.entry.js → p-20997691.entry.js} +2 -2
- package/dist/core/p-297e99cf.js +2 -0
- package/dist/core/p-297e99cf.js.map +1 -0
- package/dist/core/p-40e5fa80.entry.js +2 -0
- package/dist/core/p-40e5fa80.entry.js.map +1 -0
- package/dist/core/p-673a4a62.entry.js.map +1 -1
- package/dist/core/p-6af080d3.entry.js +2 -0
- package/dist/core/p-6af080d3.entry.js.map +1 -0
- package/dist/core/p-74abc3bb.entry.js +2 -0
- package/dist/core/p-74abc3bb.entry.js.map +1 -0
- package/dist/core/{p-4309460f.entry.js → p-80d6a6b5.entry.js} +2 -2
- package/dist/core/{p-06732eaf.entry.js → p-92f701e7.entry.js} +2 -2
- package/dist/core/{p-ec9edecf.entry.js → p-989310a8.entry.js} +2 -2
- package/dist/core/p-989310a8.entry.js.map +1 -0
- package/dist/core/{p-ede631c5.entry.js → p-9b34989b.entry.js} +2 -2
- package/dist/core/p-bd1f8741.entry.js +2 -0
- package/dist/core/p-bd1f8741.entry.js.map +1 -0
- package/dist/core/{p-57043b1e.entry.js → p-c6bdbe69.entry.js} +2 -2
- package/dist/core/{p-a052bb95.entry.js → p-c98ce508.entry.js} +2 -2
- package/dist/core/{p-b29e96b5.entry.js → p-d362992d.entry.js} +2 -2
- package/dist/core/{p-b97eba08.entry.js → p-ee8a3de6.entry.js} +2 -2
- package/dist/core/p-ee8a3de6.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-f543bc77.js → helpers-5bd2012a.js} +19 -30
- package/dist/esm/helpers-5bd2012a.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +10 -5
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +2 -2
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
- package/dist/esm/ic-data-table.entry.js +201 -52
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +3 -2
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +3 -1
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-empty-state_2.entry.js +1 -1
- package/dist/esm/ic-menu-with-multi.entry.js +1 -1
- package/dist/esm/ic-pagination_4.entry.js +2 -1
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-select-with-multi.entry.js +1 -1
- package/dist/esm/ic-tree-item.entry.js +1 -1
- package/dist/esm/ic-tree-view.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +32 -9
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +12 -4
- package/dist/types/components/ic-data-table/story-data.d.ts +69 -8
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +4 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
- package/dist/types/components.d.ts +62 -6
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/utils/helpers.d.ts +6 -0
- package/hydrate/index.js +260 -102
- package/package.json +3 -3
- package/dist/cjs/helpers-85c5ca15.js.map +0 -1
- package/dist/core/p-1f9cb805.entry.js +0 -2
- package/dist/core/p-1f9cb805.entry.js.map +0 -1
- package/dist/core/p-3f2723aa.entry.js +0 -2
- package/dist/core/p-3f2723aa.entry.js.map +0 -1
- package/dist/core/p-59993f36.entry.js +0 -2
- package/dist/core/p-59993f36.entry.js.map +0 -1
- package/dist/core/p-91cf89c8.entry.js +0 -2
- package/dist/core/p-91cf89c8.entry.js.map +0 -1
- package/dist/core/p-adbe0d89.js +0 -2
- package/dist/core/p-adbe0d89.js.map +0 -1
- package/dist/core/p-b97eba08.entry.js.map +0 -1
- package/dist/core/p-ec9edecf.entry.js.map +0 -1
- package/dist/esm/helpers-f543bc77.js.map +0 -1
- /package/dist/core/{p-401d0c66.entry.js.map → p-20997691.entry.js.map} +0 -0
- /package/dist/core/{p-4309460f.entry.js.map → p-80d6a6b5.entry.js.map} +0 -0
- /package/dist/core/{p-06732eaf.entry.js.map → p-92f701e7.entry.js.map} +0 -0
- /package/dist/core/{p-ede631c5.entry.js.map → p-9b34989b.entry.js.map} +0 -0
- /package/dist/core/{p-57043b1e.entry.js.map → p-c6bdbe69.entry.js.map} +0 -0
- /package/dist/core/{p-a052bb95.entry.js.map → p-c98ce508.entry.js.map} +0 -0
- /package/dist/core/{p-b29e96b5.entry.js.map → p-d362992d.entry.js.map} +0 -0
@@ -6,14 +6,14 @@
|
|
6
6
|
*/
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
8
8
|
import { IcCardSizes } from "./components/ic-card-horizontal/ic-card-horizontal.types";
|
9
|
-
import { IcDataTableColumnObject, IcDataTableDensityOptions, IcDataTableRowHeights, IcDataTableSortOrderOptions, IcDataTableTruncationTypes, IcDensityUpdateEventDetail, IcSortEventDetail } from "./components/ic-data-table/ic-data-table.types";
|
9
|
+
import { IcDataTableColumnObject, IcDataTableDataType, IcDataTableDensityOptions, IcDataTableRowHeights, IcDataTableSortOrderOptions, IcDataTableTruncationTypes, IcDensityUpdateEventDetail, IcSortEventDetail } from "./components/ic-data-table/ic-data-table.types";
|
10
10
|
import { IcActivationTypes, IcMenuOption, IcThemeForegroundNoDefault } from "@ukic/web-components/dist/types/utils/types";
|
11
11
|
import { IcDateFormat, IcInformationStatusOrEmpty, IcPaginationBarOptions, IcSearchMatchPositions, IcSizes, IcThemeForegroundNoDefault as IcThemeForegroundNoDefault1, IcValueEventDetail, IcWeekDays } from "./utils/types";
|
12
12
|
import { IcMenuChangeEventDetail, IcMenuOptionIdEventDetail, IcOptionSelectEventDetail, IcSearchBarSearchModes } from "@ukic/web-components/dist/types/components";
|
13
13
|
import { IcPaginationAlignmentOptions, IcPaginationLabelTypes, IcPaginationTypes } from "@ukic/web-components/dist/types/components/ic-pagination/ic-pagination.types";
|
14
14
|
import { IcThemeForeground } from "@ukic/web-components/dist/types/interface";
|
15
15
|
export { IcCardSizes } from "./components/ic-card-horizontal/ic-card-horizontal.types";
|
16
|
-
export { IcDataTableColumnObject, IcDataTableDensityOptions, IcDataTableRowHeights, IcDataTableSortOrderOptions, IcDataTableTruncationTypes, IcDensityUpdateEventDetail, IcSortEventDetail } from "./components/ic-data-table/ic-data-table.types";
|
16
|
+
export { IcDataTableColumnObject, IcDataTableDataType, IcDataTableDensityOptions, IcDataTableRowHeights, IcDataTableSortOrderOptions, IcDataTableTruncationTypes, IcDensityUpdateEventDetail, IcSortEventDetail } from "./components/ic-data-table/ic-data-table.types";
|
17
17
|
export { IcActivationTypes, IcMenuOption, IcThemeForegroundNoDefault } from "@ukic/web-components/dist/types/utils/types";
|
18
18
|
export { IcDateFormat, IcInformationStatusOrEmpty, IcPaginationBarOptions, IcSearchMatchPositions, IcSizes, IcThemeForegroundNoDefault as IcThemeForegroundNoDefault1, IcValueEventDetail, IcWeekDays } from "./utils/types";
|
19
19
|
export { IcMenuChangeEventDetail, IcMenuOptionIdEventDetail, IcOptionSelectEventDetail, IcSearchBarSearchModes } from "@ukic/web-components/dist/types/components";
|
@@ -78,7 +78,7 @@ export namespace Components {
|
|
78
78
|
/**
|
79
79
|
* The row content for the table.
|
80
80
|
*/
|
81
|
-
"data":
|
81
|
+
"data": IcDataTableDataType[];
|
82
82
|
/**
|
83
83
|
* Set the density of the table including font and padding.
|
84
84
|
*/
|
@@ -91,6 +91,10 @@ export namespace Components {
|
|
91
91
|
* Sets the row height on all rows in the table that aren't set using the `variableRowHeight` method.
|
92
92
|
*/
|
93
93
|
"globalRowHeight"?: IcDataTableRowHeights;
|
94
|
+
/**
|
95
|
+
* Sets the table height. Can be set to `auto` or a specific value in `px`, `rem`, or `%`.
|
96
|
+
*/
|
97
|
+
"height"?: string;
|
94
98
|
/**
|
95
99
|
* If `true`, column headers will not be visible.
|
96
100
|
*/
|
@@ -112,6 +116,14 @@ export namespace Components {
|
|
112
116
|
progress?: number;
|
113
117
|
showBackground?: boolean;
|
114
118
|
};
|
119
|
+
/**
|
120
|
+
* Sets the maximum width of the data table. Can be set in `px`, `rem`, or `%`.
|
121
|
+
*/
|
122
|
+
"maxWidth"?: string;
|
123
|
+
/**
|
124
|
+
* Sets the minimum width of the data table. Can be set in `px`, `rem`, or `%`.
|
125
|
+
*/
|
126
|
+
"minWidth"?: string;
|
115
127
|
/**
|
116
128
|
* The minimum amount of time the `loading` state displays for before showing the data. Used to prevent flashing in the component.
|
117
129
|
*/
|
@@ -148,7 +160,11 @@ export namespace Components {
|
|
148
160
|
*/
|
149
161
|
"stickyRowHeaders"?: boolean;
|
150
162
|
/**
|
151
|
-
* Sets the
|
163
|
+
* Sets the layout of the table
|
164
|
+
*/
|
165
|
+
"tableLayout"?: "fixed" | "auto";
|
166
|
+
/**
|
167
|
+
* Sets the method used to truncate long text in cells where textWrap is `false`. The `tooltip` truncation pattern allows the overflowing text to be seen in a tooltip. The `show-hide` truncation pattern allows the overflowing text to be shown and hidden using the ic-typography "See more"/"See less" buttons.
|
152
168
|
*/
|
153
169
|
"truncationPattern"?: IcDataTableTruncationTypes;
|
154
170
|
/**
|
@@ -172,6 +188,10 @@ export namespace Components {
|
|
172
188
|
[key: string]: any;
|
173
189
|
index: number;
|
174
190
|
}) => IcDataTableRowHeights | null;
|
191
|
+
/**
|
192
|
+
* Sets the table width. Can be set to `auto` or a specific value in `px`, `rem`, or `%`.
|
193
|
+
*/
|
194
|
+
"width"?: string;
|
175
195
|
}
|
176
196
|
interface IcDataTableTitleBar {
|
177
197
|
/**
|
@@ -241,6 +261,10 @@ export namespace Components {
|
|
241
261
|
* The ID for the input.
|
242
262
|
*/
|
243
263
|
"inputId"?: string;
|
264
|
+
/**
|
265
|
+
* The text to display as the validation message when an invalid date is entered.
|
266
|
+
*/
|
267
|
+
"invalidDateMessage"?: string;
|
244
268
|
/**
|
245
269
|
* The label for the date input.
|
246
270
|
*/
|
@@ -331,6 +355,10 @@ export namespace Components {
|
|
331
355
|
* The ID for the input field. The default will be an automatically generated value.
|
332
356
|
*/
|
333
357
|
"inputId"?: string;
|
358
|
+
/**
|
359
|
+
* The text to display as the validation message when an invalid date is entered.
|
360
|
+
*/
|
361
|
+
"invalidDateMessage"?: string;
|
334
362
|
/**
|
335
363
|
* The label for the date input.
|
336
364
|
*/
|
@@ -987,7 +1015,7 @@ declare namespace LocalJSX {
|
|
987
1015
|
/**
|
988
1016
|
* The row content for the table.
|
989
1017
|
*/
|
990
|
-
"data"?:
|
1018
|
+
"data"?: IcDataTableDataType[];
|
991
1019
|
/**
|
992
1020
|
* Set the density of the table including font and padding.
|
993
1021
|
*/
|
@@ -1000,6 +1028,10 @@ declare namespace LocalJSX {
|
|
1000
1028
|
* Sets the row height on all rows in the table that aren't set using the `variableRowHeight` method.
|
1001
1029
|
*/
|
1002
1030
|
"globalRowHeight"?: IcDataTableRowHeights;
|
1031
|
+
/**
|
1032
|
+
* Sets the table height. Can be set to `auto` or a specific value in `px`, `rem`, or `%`.
|
1033
|
+
*/
|
1034
|
+
"height"?: string;
|
1003
1035
|
/**
|
1004
1036
|
* If `true`, column headers will not be visible.
|
1005
1037
|
*/
|
@@ -1021,6 +1053,14 @@ declare namespace LocalJSX {
|
|
1021
1053
|
progress?: number;
|
1022
1054
|
showBackground?: boolean;
|
1023
1055
|
};
|
1056
|
+
/**
|
1057
|
+
* Sets the maximum width of the data table. Can be set in `px`, `rem`, or `%`.
|
1058
|
+
*/
|
1059
|
+
"maxWidth"?: string;
|
1060
|
+
/**
|
1061
|
+
* Sets the minimum width of the data table. Can be set in `px`, `rem`, or `%`.
|
1062
|
+
*/
|
1063
|
+
"minWidth"?: string;
|
1024
1064
|
/**
|
1025
1065
|
* The minimum amount of time the `loading` state displays for before showing the data. Used to prevent flashing in the component.
|
1026
1066
|
*/
|
@@ -1061,7 +1101,11 @@ declare namespace LocalJSX {
|
|
1061
1101
|
*/
|
1062
1102
|
"stickyRowHeaders"?: boolean;
|
1063
1103
|
/**
|
1064
|
-
* Sets the
|
1104
|
+
* Sets the layout of the table
|
1105
|
+
*/
|
1106
|
+
"tableLayout"?: "fixed" | "auto";
|
1107
|
+
/**
|
1108
|
+
* Sets the method used to truncate long text in cells where textWrap is `false`. The `tooltip` truncation pattern allows the overflowing text to be seen in a tooltip. The `show-hide` truncation pattern allows the overflowing text to be shown and hidden using the ic-typography "See more"/"See less" buttons.
|
1065
1109
|
*/
|
1066
1110
|
"truncationPattern"?: IcDataTableTruncationTypes;
|
1067
1111
|
/**
|
@@ -1085,6 +1129,10 @@ declare namespace LocalJSX {
|
|
1085
1129
|
[key: string]: any;
|
1086
1130
|
index: number;
|
1087
1131
|
}) => IcDataTableRowHeights | null;
|
1132
|
+
/**
|
1133
|
+
* Sets the table width. Can be set to `auto` or a specific value in `px`, `rem`, or `%`.
|
1134
|
+
*/
|
1135
|
+
"width"?: string;
|
1088
1136
|
}
|
1089
1137
|
interface IcDataTableTitleBar {
|
1090
1138
|
/**
|
@@ -1153,6 +1201,10 @@ declare namespace LocalJSX {
|
|
1153
1201
|
* The ID for the input.
|
1154
1202
|
*/
|
1155
1203
|
"inputId"?: string;
|
1204
|
+
/**
|
1205
|
+
* The text to display as the validation message when an invalid date is entered.
|
1206
|
+
*/
|
1207
|
+
"invalidDateMessage"?: string;
|
1156
1208
|
/**
|
1157
1209
|
* The label for the date input.
|
1158
1210
|
*/
|
@@ -1251,6 +1303,10 @@ declare namespace LocalJSX {
|
|
1251
1303
|
* The ID for the input field. The default will be an automatically generated value.
|
1252
1304
|
*/
|
1253
1305
|
"inputId"?: string;
|
1306
|
+
/**
|
1307
|
+
* The text to display as the validation message when an invalid date is entered.
|
1308
|
+
*/
|
1309
|
+
"invalidDateMessage"?: string;
|
1254
1310
|
/**
|
1255
1311
|
* The label for the date input.
|
1256
1312
|
*/
|
@@ -6,6 +6,7 @@
|
|
6
6
|
import { IcCallbackFunctionNoReturn, IcInformationStatusOrEmpty, IcNavParentDetails, IcPropObject, IcSearchMatchPositions, IcColorRGBA } from "@ukic/web-components";
|
7
7
|
import { IcMenuOption, IcThemeForeground } from "./types";
|
8
8
|
import { EventEmitter } from "../stencil-public-runtime";
|
9
|
+
import { IcDataTableDataType } from "../interface";
|
9
10
|
/**
|
10
11
|
* converts an enum of strings into an array of strings
|
11
12
|
*/
|
@@ -22,6 +23,7 @@ export declare const inheritAttributes: (element: HTMLElement, attributes?: stri
|
|
22
23
|
};
|
23
24
|
export declare const debounceEvent: (event: EventEmitter, wait: number) => EventEmitter;
|
24
25
|
export declare const debounce: (func: (...args: unknown[]) => void, wait?: number) => unknown;
|
26
|
+
export declare const dynamicDebounce: (func: (...args: unknown[]) => void, getDelay: () => number) => unknown;
|
25
27
|
/**
|
26
28
|
* This method is used to add a hidden input to a host element that contains
|
27
29
|
* a Shadow DOM. It does not add the input inside of the Shadow root which
|
@@ -143,3 +145,7 @@ export declare const isMacDevice: () => boolean;
|
|
143
145
|
export declare function waitForHydration(): Promise<boolean>;
|
144
146
|
export declare const capitalize: (text: string) => string;
|
145
147
|
export declare const checkSlotInChildMutations: (addedNodes: NodeList, removedNodes: NodeList, slotName: string) => boolean;
|
148
|
+
export declare const addDataToPosition: (dataObject: IcDataTableDataType, newKeys: {
|
149
|
+
key: string;
|
150
|
+
index: number;
|
151
|
+
}[], newValue: unknown) => IcDataTableDataType;
|