@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.
Files changed (134) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-85c5ca15.js → helpers-6817cfbb.js} +20 -31
  3. package/dist/cjs/helpers-6817cfbb.js.map +1 -0
  4. package/dist/cjs/ic-alert.cjs.entry.js +9 -4
  5. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-badge.cjs.entry.js +2 -2
  7. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
  9. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-data-table.cjs.entry.js +200 -51
  11. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-date-input.cjs.entry.js +3 -2
  13. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-date-picker.cjs.entry.js +3 -1
  15. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-empty-state_2.cjs.entry.js +1 -1
  18. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +1 -1
  19. package/dist/cjs/ic-pagination_4.cjs.entry.js +2 -1
  20. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-select-with-multi.cjs.entry.js +1 -1
  22. package/dist/cjs/ic-tree-item.cjs.entry.js +1 -1
  23. package/dist/cjs/ic-tree-view.cjs.entry.js +1 -1
  24. package/dist/cjs/loader.cjs.js +1 -1
  25. package/dist/collection/components/ic-data-table/ic-data-table.css +31 -7
  26. package/dist/collection/components/ic-data-table/ic-data-table.js +298 -56
  27. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  28. package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
  29. package/dist/collection/components/ic-data-table/story-data.js +143 -54
  30. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  31. package/dist/collection/components/ic-date-input/ic-date-input.js +20 -1
  32. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  33. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +9 -0
  34. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -1
  35. package/dist/collection/components/ic-date-picker/ic-date-picker.js +20 -0
  36. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  37. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +10 -0
  38. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -1
  39. package/dist/collection/utils/helpers.js +22 -0
  40. package/dist/collection/utils/helpers.js.map +1 -1
  41. package/dist/components/helpers2.js +18 -29
  42. package/dist/components/helpers2.js.map +1 -1
  43. package/dist/components/ic-alert2.js +11 -5
  44. package/dist/components/ic-alert2.js.map +1 -1
  45. package/dist/components/ic-badge.js +2 -2
  46. package/dist/components/ic-badge.js.map +1 -1
  47. package/dist/components/ic-data-table.js +207 -52
  48. package/dist/components/ic-data-table.js.map +1 -1
  49. package/dist/components/ic-date-input2.js +3 -1
  50. package/dist/components/ic-date-input2.js.map +1 -1
  51. package/dist/components/ic-date-picker.js +3 -0
  52. package/dist/components/ic-date-picker.js.map +1 -1
  53. package/dist/components/ic-dialog.js.map +1 -1
  54. package/dist/components/ic-text-field2.js +3 -1
  55. package/dist/components/ic-text-field2.js.map +1 -1
  56. package/dist/core/core.esm.js +1 -1
  57. package/dist/core/core.esm.js.map +1 -1
  58. package/dist/core/{p-401d0c66.entry.js → p-20997691.entry.js} +2 -2
  59. package/dist/core/p-297e99cf.js +2 -0
  60. package/dist/core/p-297e99cf.js.map +1 -0
  61. package/dist/core/p-40e5fa80.entry.js +2 -0
  62. package/dist/core/p-40e5fa80.entry.js.map +1 -0
  63. package/dist/core/p-673a4a62.entry.js.map +1 -1
  64. package/dist/core/p-6af080d3.entry.js +2 -0
  65. package/dist/core/p-6af080d3.entry.js.map +1 -0
  66. package/dist/core/p-74abc3bb.entry.js +2 -0
  67. package/dist/core/p-74abc3bb.entry.js.map +1 -0
  68. package/dist/core/{p-4309460f.entry.js → p-80d6a6b5.entry.js} +2 -2
  69. package/dist/core/{p-06732eaf.entry.js → p-92f701e7.entry.js} +2 -2
  70. package/dist/core/{p-ec9edecf.entry.js → p-989310a8.entry.js} +2 -2
  71. package/dist/core/p-989310a8.entry.js.map +1 -0
  72. package/dist/core/{p-ede631c5.entry.js → p-9b34989b.entry.js} +2 -2
  73. package/dist/core/p-bd1f8741.entry.js +2 -0
  74. package/dist/core/p-bd1f8741.entry.js.map +1 -0
  75. package/dist/core/{p-57043b1e.entry.js → p-c6bdbe69.entry.js} +2 -2
  76. package/dist/core/{p-a052bb95.entry.js → p-c98ce508.entry.js} +2 -2
  77. package/dist/core/{p-b29e96b5.entry.js → p-d362992d.entry.js} +2 -2
  78. package/dist/core/{p-b97eba08.entry.js → p-ee8a3de6.entry.js} +2 -2
  79. package/dist/core/p-ee8a3de6.entry.js.map +1 -0
  80. package/dist/esm/core.js +1 -1
  81. package/dist/esm/{helpers-f543bc77.js → helpers-5bd2012a.js} +19 -30
  82. package/dist/esm/helpers-5bd2012a.js.map +1 -0
  83. package/dist/esm/ic-alert.entry.js +10 -5
  84. package/dist/esm/ic-alert.entry.js.map +1 -1
  85. package/dist/esm/ic-badge.entry.js +2 -2
  86. package/dist/esm/ic-badge.entry.js.map +1 -1
  87. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  88. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  89. package/dist/esm/ic-data-table.entry.js +201 -52
  90. package/dist/esm/ic-data-table.entry.js.map +1 -1
  91. package/dist/esm/ic-date-input.entry.js +3 -2
  92. package/dist/esm/ic-date-input.entry.js.map +1 -1
  93. package/dist/esm/ic-date-picker.entry.js +3 -1
  94. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  95. package/dist/esm/ic-dialog.entry.js.map +1 -1
  96. package/dist/esm/ic-empty-state_2.entry.js +1 -1
  97. package/dist/esm/ic-menu-with-multi.entry.js +1 -1
  98. package/dist/esm/ic-pagination_4.entry.js +2 -1
  99. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  100. package/dist/esm/ic-select-with-multi.entry.js +1 -1
  101. package/dist/esm/ic-tree-item.entry.js +1 -1
  102. package/dist/esm/ic-tree-view.entry.js +1 -1
  103. package/dist/esm/loader.js +1 -1
  104. package/dist/types/components/ic-data-table/ic-data-table.d.ts +32 -9
  105. package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +12 -4
  106. package/dist/types/components/ic-data-table/story-data.d.ts +69 -8
  107. package/dist/types/components/ic-date-input/ic-date-input.d.ts +4 -0
  108. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
  109. package/dist/types/components.d.ts +62 -6
  110. package/dist/types/interface.d.ts +1 -0
  111. package/dist/types/utils/helpers.d.ts +6 -0
  112. package/hydrate/index.js +260 -102
  113. package/package.json +3 -3
  114. package/dist/cjs/helpers-85c5ca15.js.map +0 -1
  115. package/dist/core/p-1f9cb805.entry.js +0 -2
  116. package/dist/core/p-1f9cb805.entry.js.map +0 -1
  117. package/dist/core/p-3f2723aa.entry.js +0 -2
  118. package/dist/core/p-3f2723aa.entry.js.map +0 -1
  119. package/dist/core/p-59993f36.entry.js +0 -2
  120. package/dist/core/p-59993f36.entry.js.map +0 -1
  121. package/dist/core/p-91cf89c8.entry.js +0 -2
  122. package/dist/core/p-91cf89c8.entry.js.map +0 -1
  123. package/dist/core/p-adbe0d89.js +0 -2
  124. package/dist/core/p-adbe0d89.js.map +0 -1
  125. package/dist/core/p-b97eba08.entry.js.map +0 -1
  126. package/dist/core/p-ec9edecf.entry.js.map +0 -1
  127. package/dist/esm/helpers-f543bc77.js.map +0 -1
  128. /package/dist/core/{p-401d0c66.entry.js.map → p-20997691.entry.js.map} +0 -0
  129. /package/dist/core/{p-4309460f.entry.js.map → p-80d6a6b5.entry.js.map} +0 -0
  130. /package/dist/core/{p-06732eaf.entry.js.map → p-92f701e7.entry.js.map} +0 -0
  131. /package/dist/core/{p-ede631c5.entry.js.map → p-9b34989b.entry.js.map} +0 -0
  132. /package/dist/core/{p-57043b1e.entry.js.map → p-c6bdbe69.entry.js.map} +0 -0
  133. /package/dist/core/{p-a052bb95.entry.js.map → p-c98ce508.entry.js.map} +0 -0
  134. /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": { [key: string]: any }[];
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 method used to truncate longer 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.
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"?: { [key: string]: any }[];
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 method used to truncate longer 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.
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
  */
@@ -1 +1,2 @@
1
1
  export * from "./components";
2
+ export * from "./components/ic-data-table/ic-data-table.types";
@@ -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;