oolib 2.167.1 → 2.168.1

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.
@@ -69,7 +69,7 @@ var GalleryThumbnails = function (_a) {
69
69
  var imageThumbnailsData = __spreadArray(__spreadArray([], ((0, makeArrayFromLength_1.makeArrayFromLength)(noOfImagesUploading).map(function (d) { return undefined; })), true), (value || []), true);
70
70
  return (react_1.default.createElement("div", { ref: totThumbsSpaceRef, style: { display: 'flex', gap: '1rem' } },
71
71
  !readOnly && (react_1.default.createElement(styled_1.StyledAddMoreThumbnail, { ref: addMoreThumbnailRef, disabled: isLoading, noBorder: true, invert: invert },
72
- react_1.default.createElement(FileUploadShell_1.FileUploadShell, { disabled: isLoading, multiple: true, handleUpload: handleUpload, onChange: onChange, value: value, id: id },
72
+ react_1.default.createElement(FileUploadShell_1.FileUploadShell, { disabled: isLoading, multiple: true, mediaType: 'image', handleUpload: handleUpload, onChange: onChange, value: value, id: id },
73
73
  react_1.default.createElement("div", { style: {
74
74
  display: "grid",
75
75
  placeItems: "center",
@@ -4,6 +4,8 @@
4
4
  * - Should run a function that converts rich text to plain text and sends that out in onChange. (like how we do for TitleInput)
5
5
  * - for backwards compatibility, in the initValueSetting function, we should convert all plain text values to lexical shape & all draftjs shaped values also to lexical shape
6
6
  * - memoization of cell comps maybe? there is some commented code for the same below..
7
+ * - KNOWN ISSUE: when the number input block is used, the component is lagging like mad. might have something to
8
+ * do with the memoization issue
7
9
  */
8
10
  export function SimpleTable({ id, readOnly, config, value: _value, onChange, defaultColWidth, }: {
9
11
  id: any;
@@ -67,6 +67,7 @@ var convertColHeaderConfigToRowData_1 = require("./utils/convertColHeaderConfigT
67
67
  var convertRowHeaderConfigToCellData_1 = require("./utils/convertRowHeaderConfigToCellData");
68
68
  var prepInitValueFromConfigIfNoValue_1 = require("./utils/prepInitValueFromConfigIfNoValue");
69
69
  var DropdownSingle_1 = require("../Dropdowns/DropdownSingle");
70
+ var TextInputs_1 = require("../TextInputs");
70
71
  var greyColor100 = themes_1.colors.greyColor100;
71
72
  /**
72
73
  * PENDINGS
@@ -74,6 +75,8 @@ var greyColor100 = themes_1.colors.greyColor100;
74
75
  * - Should run a function that converts rich text to plain text and sends that out in onChange. (like how we do for TitleInput)
75
76
  * - for backwards compatibility, in the initValueSetting function, we should convert all plain text values to lexical shape & all draftjs shaped values also to lexical shape
76
77
  * - memoization of cell comps maybe? there is some commented code for the same below..
78
+ * - KNOWN ISSUE: when the number input block is used, the component is lagging like mad. might have something to
79
+ * do with the memoization issue
77
80
  */
78
81
  function SimpleTable(_a) {
79
82
  var id = _a.id, readOnly = _a.readOnly, _b = _a.config, config = _b === void 0 ? {
@@ -128,7 +131,8 @@ function SimpleTable(_a) {
128
131
  }, [colResizeState]);
129
132
  var CellContentBlocks = {
130
133
  RichTextEditor: RichTextEditor,
131
- DropdownSingle: DropdownSingle_1.DropdownSingle
134
+ DropdownSingle: DropdownSingle_1.DropdownSingle,
135
+ NumberInput: TextInputs_1.NumberInput,
132
136
  };
133
137
  var CellContentBlockDefaultProps = {
134
138
  RichTextEditor: {
@@ -144,6 +148,11 @@ function SimpleTable(_a) {
144
148
  backgroundColor: themes_1.colors.none,
145
149
  },
146
150
  popOutOfOverflowHiddenParent: true,
151
+ },
152
+ NumberInput: {
153
+ selectStyleOverride: {
154
+ backgroundColor: themes_1.colors.none,
155
+ },
147
156
  }
148
157
  };
149
158
  var CellValueGetters = {
@@ -99,6 +99,7 @@ var SimpleTable = function (args) {
99
99
  ],
100
100
  disableAddRow: args.disableAddRow,
101
101
  disableRowActionsMenu: args.disableRowActionsMenu,
102
+ // blockConfig: [undefined, { comp: 'NumberInput', props: {} }, { comp: 'NumberInput', props: {} }]
102
103
  },
103
104
  defaultColWidth: args.defaultColWidth,
104
105
  value: val,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.167.1",
3
+ "version": "2.168.1",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",