onekijs-ui 0.19.11 → 0.19.13
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.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +14 -7
- package/dist/index.module.js.map +1 -1
- package/package.json +3 -3
- package/src/components/checkbox/FormCheckbox.tsx +9 -1
- package/src/components/grid/style.ts +2 -2
- package/src/components/select/components/ControlledSelectComponent.tsx +2 -0
- package/src/components/select/components/SelectInputComponent.tsx +1 -1
- package/src/components/table/components/filters/TableTextFilterComponent.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -1858,10 +1858,10 @@ const getColWidths = (gap, theme) => {
|
|
|
1858
1858
|
const content = `{ flex: 0 0 calc((100% / 12) * ${size} - ${gap}); max-width: calc((100% / 12) * ${size} - ${gap}); }`;
|
|
1859
1859
|
if (variant) {
|
|
1860
1860
|
const breakpoint = theme.breakpoints[variant];
|
|
1861
|
-
return `@media (min-width: ${breakpoint}) { .o-col-${variant}-${size} ${content} }`;
|
|
1861
|
+
return `@media (min-width: ${breakpoint}) { & > .o-col-${variant}-${size} ${content} }`;
|
|
1862
1862
|
}
|
|
1863
1863
|
else {
|
|
1864
|
-
return
|
|
1864
|
+
return `& > .o-col-${size} ${content}`;
|
|
1865
1865
|
}
|
|
1866
1866
|
};
|
|
1867
1867
|
const colWidths = [];
|
|
@@ -2388,7 +2388,14 @@ var SuccessIcon = styled(SuccessIconComponent) `
|
|
|
2388
2388
|
`;
|
|
2389
2389
|
|
|
2390
2390
|
const FormCheckboxValueDisplayer = ({ value }) => {
|
|
2391
|
-
|
|
2391
|
+
if (value) {
|
|
2392
|
+
return (React.createElement("div", { style: { display: 'flex', alignItems: 'center', marginTop: value ? '2px' : '4px' } },
|
|
2393
|
+
React.createElement(SuccessIcon, null),
|
|
2394
|
+
React.createElement("span", { style: { marginLeft: '5px' } }, "Yes")));
|
|
2395
|
+
}
|
|
2396
|
+
return (React.createElement("div", { style: { display: 'flex', alignItems: 'center', marginTop: value ? '2px' : '4px' } },
|
|
2397
|
+
React.createElement(RemoveIcon$1, { color: "red", width: "14px", height: "14px" }),
|
|
2398
|
+
React.createElement("span", { style: { marginLeft: '5px' } }, "No")));
|
|
2392
2399
|
};
|
|
2393
2400
|
const FormCheckbox = React.memo((props) => {
|
|
2394
2401
|
const [fieldLayoutProps, fieldComponentProps] = useFieldLayout(Object.assign({}, props, {
|
|
@@ -6580,7 +6587,7 @@ const SelectInputComponent = ({ setOpen, open, placeholder, loading, fetching, I
|
|
|
6580
6587
|
multiple && React.createElement(SelectTokensComponent$1, { tokens: tokens, onRemove: onRemove, maxDisplayTokens: maxDisplayTokens }),
|
|
6581
6588
|
React.createElement("div", { className: "o-select-input-wrapper" },
|
|
6582
6589
|
React.createElement("span", { ref: autoSizeRef, className: "o-select-input-auto-sizer" }),
|
|
6583
|
-
React.createElement("input", { ref: inputRef, placeholder: placeholder, className: "o-select-input", onFocus: onFocus, onBlur: onBlur, onChange: handleChange, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, value: searchable ? proxyValue : '', onClick: onClick, autoCapitalize: "none", autoComplete: "
|
|
6590
|
+
React.createElement("input", { ref: inputRef, placeholder: placeholder, className: "o-select-input", onFocus: onFocus, onBlur: onBlur, onChange: handleChange, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, value: searchable ? proxyValue : '', onClick: onClick, autoCapitalize: "none", autoComplete: "off", autoCorrect: "off", spellCheck: "false", disabled: disabled }),
|
|
6584
6591
|
!searchable && (React.createElement("span", { className: "o-select-input o-select-input-text", onClick: onClick }, multiple ? '' : proxyValue || '')))),
|
|
6585
6592
|
!multiple && nullable && value && !disabled && (React.createElement("div", { className: "o-select-remover", onClick: onNullify }, "\u2716")),
|
|
6586
6593
|
React.createElement(IconComponent, { onClick: onIconClick, open: open, loading: loading, fetching: fetching })));
|
|
@@ -7113,7 +7120,7 @@ const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '
|
|
|
7113
7120
|
React.createElement("div", { className: classNames, ref: containerRef, onMouseDown: () => (stateRef.current.keepFocus = true), onMouseUp: () => (stateRef.current.keepFocus = false) },
|
|
7114
7121
|
React.createElement(InputComponent, { placeholder: placeholder, setOpen: setOpen, open: open, loading: loading, fetching: fetching, onChange: onInputChange, value: autoCompleteSearch ? (proxyItem ? proxyItem.text : '') : controller.getSearch() || '', focus: focus, onFocus: onFocus, onBlur: onBlur, tokens: tokens, multiple: multiple, onRemove: onRemoveToken, autoFocus: autoFocus, style: style, nullable: nullable, IconComponent: IconComponent, searchable: searchable, clickable: clickable, minChars: minChars, ref: triggerRef, disabled: disabled, autoCompleteSearch: autoCompleteSearch, maxDisplayTokens: maxDisplayTokens }),
|
|
7115
7122
|
React.createElement(Dropdown, { attachToBody: attachDropdownToBody, open: open, distance: 0, animationTimeout: animationMs, onDropStart: onOpen, onCollapseDone: onClosed, placement: "bottom-start", widthModifier: dropdownWidthModifier, width: service.state.width ? `${service.state.width}px` : undefined, className: className, zIndex: attachDropdownToBody ? 2000 : undefined },
|
|
7116
|
-
React.createElement(ListComponent, { className: "o-select-options", height: height, ItemComponent: multiple ? MultiOptionsComponent : OptionComponent, ItemLoadingComponent: OptionLoadingComponent, ItemContentComponent: OptionContentComponent, NotFoundComponent: NotFoundComponent, onItemSelect: onSelect, onItemUnselect: onSelect, controller: controller, keyboardNavigable: true, multiSelect: multiple, onItemActivate: onActivate, optionsRef: optionsRef })))));
|
|
7123
|
+
React.createElement(ListComponent, { className: "o-select-options", height: height, ItemComponent: multiple ? MultiOptionsComponent : OptionComponent, ItemLoadingComponent: OptionLoadingComponent, ItemContentComponent: OptionContentComponent, NotFoundComponent: NotFoundComponent, onItemSelect: onSelect, onItemUnselect: onSelect, controller: controller, keyboardNavigable: true, multiSelect: multiple, onItemActivate: onActivate, optionsRef: optionsRef, preload: preload, increment: increment })))));
|
|
7117
7124
|
};
|
|
7118
7125
|
|
|
7119
7126
|
const ArraySelectComponent = (props) => {
|
|
@@ -9999,11 +10006,11 @@ const TableInputFilterComponent = ({ column, operators, }) => {
|
|
|
9999
10006
|
TableInputFilterComponent.displayName = 'TableInputFilterComponent';
|
|
10000
10007
|
|
|
10001
10008
|
const operators$2 = [
|
|
10002
|
-
{ text: 'contains', operator: '
|
|
10009
|
+
{ text: 'contains', operator: 'i_like', not: false },
|
|
10003
10010
|
{ text: 'ends with', operator: 'ew', not: false },
|
|
10004
10011
|
{ text: 'equals', operator: 'eq', not: false },
|
|
10005
10012
|
{ text: 'starts with', operator: 'sw', not: false },
|
|
10006
|
-
{ text: 'does not contain', operator: '
|
|
10013
|
+
{ text: 'does not contain', operator: 'i_like', not: true },
|
|
10007
10014
|
{ text: 'does not end with', operator: 'ew', not: true },
|
|
10008
10015
|
{ text: 'is not equal', operator: 'eq', not: true },
|
|
10009
10016
|
{ text: 'does not start with', operator: 'sw', not: true },
|