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.
@@ -1856,10 +1856,10 @@ const getColWidths = (gap, theme) => {
1856
1856
  const content = `{ flex: 0 0 calc((100% / 12) * ${size} - ${gap}); max-width: calc((100% / 12) * ${size} - ${gap}); }`;
1857
1857
  if (variant) {
1858
1858
  const breakpoint = theme.breakpoints[variant];
1859
- return `@media (min-width: ${breakpoint}) { .o-col-${variant}-${size} ${content} }`;
1859
+ return `@media (min-width: ${breakpoint}) { & > .o-col-${variant}-${size} ${content} }`;
1860
1860
  }
1861
1861
  else {
1862
- return `.o-col-${size} ${content}`;
1862
+ return `& > .o-col-${size} ${content}`;
1863
1863
  }
1864
1864
  };
1865
1865
  const colWidths = [];
@@ -2386,7 +2386,14 @@ var SuccessIcon = styled(SuccessIconComponent) `
2386
2386
  `;
2387
2387
 
2388
2388
  const FormCheckboxValueDisplayer = ({ value }) => {
2389
- return (React.createElement("div", { style: { display: 'flex', alignItems: 'center', marginTop: value ? '2px' : '4px' } }, value ? React.createElement(SuccessIcon, null) : React.createElement(RemoveIcon$1, { color: "red", width: "14px", height: "14px" })));
2389
+ if (value) {
2390
+ return (React.createElement("div", { style: { display: 'flex', alignItems: 'center', marginTop: value ? '2px' : '4px' } },
2391
+ React.createElement(SuccessIcon, null),
2392
+ React.createElement("span", { style: { marginLeft: '5px' } }, "Yes")));
2393
+ }
2394
+ return (React.createElement("div", { style: { display: 'flex', alignItems: 'center', marginTop: value ? '2px' : '4px' } },
2395
+ React.createElement(RemoveIcon$1, { color: "red", width: "14px", height: "14px" }),
2396
+ React.createElement("span", { style: { marginLeft: '5px' } }, "No")));
2390
2397
  };
2391
2398
  const FormCheckbox = React.memo((props) => {
2392
2399
  const [fieldLayoutProps, fieldComponentProps] = useFieldLayout(Object.assign({}, props, {
@@ -6578,7 +6585,7 @@ const SelectInputComponent = ({ setOpen, open, placeholder, loading, fetching, I
6578
6585
  multiple && React.createElement(SelectTokensComponent$1, { tokens: tokens, onRemove: onRemove, maxDisplayTokens: maxDisplayTokens }),
6579
6586
  React.createElement("div", { className: "o-select-input-wrapper" },
6580
6587
  React.createElement("span", { ref: autoSizeRef, className: "o-select-input-auto-sizer" }),
6581
- 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: "one-time-code", autoCorrect: "off", spellCheck: "false", disabled: disabled }),
6588
+ 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 }),
6582
6589
  !searchable && (React.createElement("span", { className: "o-select-input o-select-input-text", onClick: onClick }, multiple ? '' : proxyValue || '')))),
6583
6590
  !multiple && nullable && value && !disabled && (React.createElement("div", { className: "o-select-remover", onClick: onNullify }, "\u2716")),
6584
6591
  React.createElement(IconComponent, { onClick: onIconClick, open: open, loading: loading, fetching: fetching })));
@@ -7111,7 +7118,7 @@ const ControlledSelectComponent = ({ attachDropdownToBody = false, className = '
7111
7118
  React.createElement("div", { className: classNames, ref: containerRef, onMouseDown: () => (stateRef.current.keepFocus = true), onMouseUp: () => (stateRef.current.keepFocus = false) },
7112
7119
  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 }),
7113
7120
  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 },
7114
- 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 })))));
7121
+ 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 })))));
7115
7122
  };
7116
7123
 
7117
7124
  const ArraySelectComponent = (props) => {
@@ -9997,11 +10004,11 @@ const TableInputFilterComponent = ({ column, operators, }) => {
9997
10004
  TableInputFilterComponent.displayName = 'TableInputFilterComponent';
9998
10005
 
9999
10006
  const operators$2 = [
10000
- { text: 'contains', operator: 'like', not: false },
10007
+ { text: 'contains', operator: 'i_like', not: false },
10001
10008
  { text: 'ends with', operator: 'ew', not: false },
10002
10009
  { text: 'equals', operator: 'eq', not: false },
10003
10010
  { text: 'starts with', operator: 'sw', not: false },
10004
- { text: 'does not contain', operator: 'like', not: true },
10011
+ { text: 'does not contain', operator: 'i_like', not: true },
10005
10012
  { text: 'does not end with', operator: 'ew', not: true },
10006
10013
  { text: 'is not equal', operator: 'eq', not: true },
10007
10014
  { text: 'does not start with', operator: 'sw', not: true },