@react-querybuilder/bulma
Advanced tools
Comparing version
@@ -193,3 +193,3 @@ "use strict"; | ||
var _t9; | ||
if ($[13] !== props || $[14] !== values || $[15] !== _t8) { | ||
if ($[13] !== props || $[14] !== _t8 || $[15] !== values) { | ||
var t4; | ||
@@ -209,4 +209,4 @@ if ($[17] !== props) { | ||
$[13] = props; | ||
$[14] = values; | ||
$[15] = _t8; | ||
$[14] = _t8; | ||
$[15] = values; | ||
$[16] = _t9; | ||
@@ -267,11 +267,11 @@ } else { | ||
var t4; | ||
if ($[8] !== options || $[9] !== val || $[10] !== multiple || $[11] !== disabled || $[12] !== selectElementChangeHandler || $[13] !== title || $[14] !== t3) { | ||
if ($[8] !== disabled || $[9] !== multiple || $[10] !== options || $[11] !== selectElementChangeHandler || $[12] !== t3 || $[13] !== title || $[14] !== val) { | ||
t4 = (0, import_jsx_runtime3.jsx)("div", { title, className: t3, children: (0, import_jsx_runtime3.jsx)("select", { value: val, multiple, disabled, onChange: selectElementChangeHandler, children: (0, import_react_querybuilder2.toOptions)(options) }) }); | ||
$[8] = options; | ||
$[9] = val; | ||
$[10] = multiple; | ||
$[11] = disabled; | ||
$[12] = selectElementChangeHandler; | ||
$[8] = disabled; | ||
$[9] = multiple; | ||
$[10] = options; | ||
$[11] = selectElementChangeHandler; | ||
$[12] = t3; | ||
$[13] = title; | ||
$[14] = t3; | ||
$[14] = val; | ||
$[15] = t4; | ||
@@ -278,0 +278,0 @@ } else { |
@@ -1,2 +0,2 @@ | ||
"use strict";var G=Object.create;var S=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var J=(a,t)=>{for(var e in t)S(a,e,{get:t[e],enumerable:!0})},T=(a,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Q(t))!F.call(a,n)&&n!==e&&S(a,n,{get:()=>t[n],enumerable:!(r=M(t,n))||r.enumerable});return a};var U=(a,t,e)=>(e=a!=null?G(q(a)):{},T(t||!a||!a.__esModule?S(e,"default",{value:a,enumerable:!0}):e,a)),W=a=>T(S({},"__esModule",{value:!0}),a);var _={};J(_,{BulmaNotToggle:()=>p,BulmaValueEditor:()=>V,BulmaValueSelector:()=>H,QueryBuilderBulma:()=>z,bulmaControlClassnames:()=>K,bulmaControlElements:()=>R});module.exports=W(_);var L=require("react-querybuilder");var E=require("react/jsx-runtime"),p=function(t){var e=t.className,r=t.handleOnChange,n=t.label,c=t.checked,u=t.title,s=t.disabled;return(0,E.jsxs)("label",{className:"".concat(e," checkbox"),title:u,children:[(0,E.jsx)("input",{type:"checkbox",disabled:s,checked:c,onChange:function(l){return r(l.target.checked)}}),n]})};var $=U(require("react")),D=Symbol.for("react.memo_cache_sentinel");function P(a){return $.useMemo(function(){for(var t=Array.from({length:a}),e=0;e<a;e++)t[e]=D;return t[D]=!0,t},[])}var i=require("react/jsx-runtime"),N=require("react-querybuilder");function j(a){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(a)}function I(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),e.push.apply(e,r)}return e}function o(a){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?I(Object(e),!0).forEach(function(r){X(a,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(e)):I(Object(e)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(e,r))})}return a}function X(a,t,e){return(t=Y(t))in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}function Y(a){var t=Z(a,"string");return j(t)=="symbol"?t:t+""}function Z(a,t){if(j(a)!="object"||!a)return a;var e=a[Symbol.toPrimitive];if(e!==void 0){var r=e.call(a,t||"default");if(j(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}var V=function(t){var e=P(22),r=(0,N.useValueEditor)(t),n=r.valueListItemClassName;if(t.operator==="null"||t.operator==="notNull")return null;var c=t.values,u;e[0]!==c?(u=c===void 0?[]:c,e[0]=c,e[1]=u):u=e[1];var s=u;if((t.operator==="between"||t.operator==="notBetween")&&t.type==="text"){var m="".concat(n," input"),l;return e[2]!==t||e[3]!==m?(l=(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0,schema:o(o({},t.schema),{},{classNames:o(o({},t.schema.classNames),{},{valueListItem:m})})})),e[2]=t,e[3]=m,e[4]=l):l=e[4],l}switch(t.type){case"select":case"multiselect":{var f;return e[5]!==t?(f=(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0})),e[5]=t,e[6]=f):f=e[6],f}case"textarea":{var d="".concat(t.className," control"),O;return e[7]!==t||e[8]!==d?(O=(0,i.jsx)("div",{className:d,children:(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0,className:"textarea"}))}),e[7]=t,e[8]=d,e[9]=O):O=e[9],O}case"switch":case"checkbox":{var x="".concat(t.className," checkbox"),v;return e[10]!==t||e[11]!==x?(v=(0,i.jsx)("label",{title:t.title,className:x,children:(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0,title:"",className:""}))}),e[10]=t,e[11]=x,e[12]=v):v=e[12],v}case"radio":{var b="".concat(t.className," control"),h;if(e[13]!==t||e[14]!==s||e[15]!==b){var y;e[17]!==t?(y=function(C){return(0,i.jsxs)("label",{className:"radio",children:[(0,i.jsx)("input",{type:"radio",value:C.name,checked:t.value===C.name,onChange:function(){return t.handleOnChange(C.name)},disabled:t.disabled}),C.label]},C.name)},e[17]=t,e[18]=y):y=e[18],h=(0,i.jsx)("div",{className:b,title:t.title,children:s.map(y)}),e[13]=t,e[14]=s,e[15]=b,e[16]=h}else h=e[16];return h}}var g="".concat(t.className," control"),k;return e[19]!==t||e[20]!==g?(k=(0,i.jsx)("div",{className:g,children:(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0,disabled:t.disabled,className:"input"}))}),e[19]=t,e[20]=g,e[21]=k):k=e[21],k};var A=require("react/jsx-runtime"),B=require("react-querybuilder");var w=require("react-querybuilder");var H=function(t){var e=P(16),r=t.className,n=t.handleOnChange,c=t.options,u=t.value,s=t.title,m=t.disabled,l=t.multiple,f=t.listsAsArrays,d;e[0]!==n||e[1]!==f||e[2]!==l||e[3]!==u?(d={handleOnChange:n,listsAsArrays:f,multiple:l,value:u},e[0]=n,e[1]=f,e[2]=l,e[3]=u,e[4]=d):d=e[4];var O=(0,B.useValueSelector)(d),x=O.onChange,v=O.val,b;e[5]!==l||e[6]!==x?(b={multiple:l,onChange:x},e[5]=l,e[6]=x,e[7]=b):b=e[7];var h=(0,B.useSelectElementChangeHandler)(b),y="".concat(r," select").concat(l?" is-multiple":""),g;return e[8]!==c||e[9]!==v||e[10]!==l||e[11]!==m||e[12]!==h||e[13]!==s||e[14]!==y?(g=(0,A.jsx)("div",{title:s,className:y,children:(0,A.jsx)("select",{value:v,multiple:l,disabled:m,onChange:h,children:(0,w.toOptions)(c)})}),e[8]=c,e[9]=v,e[10]=l,e[11]=m,e[12]=h,e[13]=s,e[14]=y,e[15]=g):g=e[15],g};var K={actionElement:"button"},R={notToggle:p,valueEditor:V,valueSelector:H},z=(0,L.getCompatContextProvider)({controlElements:R,controlClassnames:K});0&&(module.exports={BulmaNotToggle,BulmaValueEditor,BulmaValueSelector,QueryBuilderBulma,bulmaControlClassnames,bulmaControlElements}); | ||
"use strict";var G=Object.create;var S=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var J=(a,t)=>{for(var e in t)S(a,e,{get:t[e],enumerable:!0})},T=(a,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Q(t))!F.call(a,n)&&n!==e&&S(a,n,{get:()=>t[n],enumerable:!(r=M(t,n))||r.enumerable});return a};var U=(a,t,e)=>(e=a!=null?G(q(a)):{},T(t||!a||!a.__esModule?S(e,"default",{value:a,enumerable:!0}):e,a)),W=a=>T(S({},"__esModule",{value:!0}),a);var _={};J(_,{BulmaNotToggle:()=>p,BulmaValueEditor:()=>V,BulmaValueSelector:()=>H,QueryBuilderBulma:()=>z,bulmaControlClassnames:()=>K,bulmaControlElements:()=>R});module.exports=W(_);var L=require("react-querybuilder");var E=require("react/jsx-runtime"),p=function(t){var e=t.className,r=t.handleOnChange,n=t.label,c=t.checked,u=t.title,s=t.disabled;return(0,E.jsxs)("label",{className:"".concat(e," checkbox"),title:u,children:[(0,E.jsx)("input",{type:"checkbox",disabled:s,checked:c,onChange:function(l){return r(l.target.checked)}}),n]})};var $=U(require("react")),D=Symbol.for("react.memo_cache_sentinel");function P(a){return $.useMemo(function(){for(var t=Array.from({length:a}),e=0;e<a;e++)t[e]=D;return t[D]=!0,t},[])}var i=require("react/jsx-runtime"),N=require("react-querybuilder");function j(a){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(a)}function I(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),e.push.apply(e,r)}return e}function o(a){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?I(Object(e),!0).forEach(function(r){X(a,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(e)):I(Object(e)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(e,r))})}return a}function X(a,t,e){return(t=Y(t))in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}function Y(a){var t=Z(a,"string");return j(t)=="symbol"?t:t+""}function Z(a,t){if(j(a)!="object"||!a)return a;var e=a[Symbol.toPrimitive];if(e!==void 0){var r=e.call(a,t||"default");if(j(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}var V=function(t){var e=P(22),r=(0,N.useValueEditor)(t),n=r.valueListItemClassName;if(t.operator==="null"||t.operator==="notNull")return null;var c=t.values,u;e[0]!==c?(u=c===void 0?[]:c,e[0]=c,e[1]=u):u=e[1];var s=u;if((t.operator==="between"||t.operator==="notBetween")&&t.type==="text"){var m="".concat(n," input"),l;return e[2]!==t||e[3]!==m?(l=(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0,schema:o(o({},t.schema),{},{classNames:o(o({},t.schema.classNames),{},{valueListItem:m})})})),e[2]=t,e[3]=m,e[4]=l):l=e[4],l}switch(t.type){case"select":case"multiselect":{var f;return e[5]!==t?(f=(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0})),e[5]=t,e[6]=f):f=e[6],f}case"textarea":{var d="".concat(t.className," control"),O;return e[7]!==t||e[8]!==d?(O=(0,i.jsx)("div",{className:d,children:(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0,className:"textarea"}))}),e[7]=t,e[8]=d,e[9]=O):O=e[9],O}case"switch":case"checkbox":{var x="".concat(t.className," checkbox"),v;return e[10]!==t||e[11]!==x?(v=(0,i.jsx)("label",{title:t.title,className:x,children:(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0,title:"",className:""}))}),e[10]=t,e[11]=x,e[12]=v):v=e[12],v}case"radio":{var b="".concat(t.className," control"),h;if(e[13]!==t||e[14]!==b||e[15]!==s){var y;e[17]!==t?(y=function(C){return(0,i.jsxs)("label",{className:"radio",children:[(0,i.jsx)("input",{type:"radio",value:C.name,checked:t.value===C.name,onChange:function(){return t.handleOnChange(C.name)},disabled:t.disabled}),C.label]},C.name)},e[17]=t,e[18]=y):y=e[18],h=(0,i.jsx)("div",{className:b,title:t.title,children:s.map(y)}),e[13]=t,e[14]=b,e[15]=s,e[16]=h}else h=e[16];return h}}var g="".concat(t.className," control"),k;return e[19]!==t||e[20]!==g?(k=(0,i.jsx)("div",{className:g,children:(0,i.jsx)(N.ValueEditor,o(o({},t),{},{skipHook:!0,disabled:t.disabled,className:"input"}))}),e[19]=t,e[20]=g,e[21]=k):k=e[21],k};var A=require("react/jsx-runtime"),B=require("react-querybuilder");var w=require("react-querybuilder");var H=function(t){var e=P(16),r=t.className,n=t.handleOnChange,c=t.options,u=t.value,s=t.title,m=t.disabled,l=t.multiple,f=t.listsAsArrays,d;e[0]!==n||e[1]!==f||e[2]!==l||e[3]!==u?(d={handleOnChange:n,listsAsArrays:f,multiple:l,value:u},e[0]=n,e[1]=f,e[2]=l,e[3]=u,e[4]=d):d=e[4];var O=(0,B.useValueSelector)(d),x=O.onChange,v=O.val,b;e[5]!==l||e[6]!==x?(b={multiple:l,onChange:x},e[5]=l,e[6]=x,e[7]=b):b=e[7];var h=(0,B.useSelectElementChangeHandler)(b),y="".concat(r," select").concat(l?" is-multiple":""),g;return e[8]!==m||e[9]!==l||e[10]!==c||e[11]!==h||e[12]!==y||e[13]!==s||e[14]!==v?(g=(0,A.jsx)("div",{title:s,className:y,children:(0,A.jsx)("select",{value:v,multiple:l,disabled:m,onChange:h,children:(0,w.toOptions)(c)})}),e[8]=m,e[9]=l,e[10]=c,e[11]=h,e[12]=y,e[13]=s,e[14]=v,e[15]=g):g=e[15],g};var K={actionElement:"button"},R={notToggle:p,valueEditor:V,valueSelector:H},z=(0,L.getCompatContextProvider)({controlElements:R,controlClassnames:K});0&&(module.exports={BulmaNotToggle,BulmaValueEditor,BulmaValueSelector,QueryBuilderBulma,bulmaControlClassnames,bulmaControlElements}); | ||
//# sourceMappingURL=react-querybuilder_bulma.cjs.production.js.map |
@@ -179,3 +179,3 @@ // src/index.ts | ||
var _t8; | ||
if ($[13] !== props || $[14] !== values || $[15] !== _t7) { | ||
if ($[13] !== props || $[14] !== _t7 || $[15] !== values) { | ||
var t4; | ||
@@ -195,4 +195,4 @@ if ($[17] !== props) { | ||
$[13] = props; | ||
$[14] = values; | ||
$[15] = _t7; | ||
$[14] = _t7; | ||
$[15] = values; | ||
$[16] = _t8; | ||
@@ -253,11 +253,11 @@ } else { | ||
var t4; | ||
if ($[8] !== options || $[9] !== val || $[10] !== multiple || $[11] !== disabled || $[12] !== selectElementChangeHandler || $[13] !== title || $[14] !== t3) { | ||
if ($[8] !== disabled || $[9] !== multiple || $[10] !== options || $[11] !== selectElementChangeHandler || $[12] !== t3 || $[13] !== title || $[14] !== val) { | ||
t4 = jsx3("div", { title, className: t3, children: jsx3("select", { value: val, multiple, disabled, onChange: selectElementChangeHandler, children: toOptions(options) }) }); | ||
$[8] = options; | ||
$[9] = val; | ||
$[10] = multiple; | ||
$[11] = disabled; | ||
$[12] = selectElementChangeHandler; | ||
$[8] = disabled; | ||
$[9] = multiple; | ||
$[10] = options; | ||
$[11] = selectElementChangeHandler; | ||
$[12] = t3; | ||
$[13] = title; | ||
$[14] = t3; | ||
$[14] = val; | ||
$[15] = t4; | ||
@@ -264,0 +264,0 @@ } else { |
import * as React from "react"; | ||
import { type ValueEditorProps } from "react-querybuilder"; | ||
import type { ValueEditorProps } from "react-querybuilder"; | ||
export declare const BulmaValueEditor: (props: ValueEditorProps) => React.JSX.Element | null; |
{ | ||
"name": "@react-querybuilder/bulma", | ||
"description": "Custom Bulma components for react-querybuilder", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"publishConfig": { | ||
@@ -48,4 +48,4 @@ "access": "public" | ||
"scripts": { | ||
"start": "bunx --bun vite", | ||
"build": "bunx --bun tsup", | ||
"start": "vite", | ||
"build": "bun --bun tsup", | ||
"typecheck": "tsc --noEmit", | ||
@@ -56,12 +56,12 @@ "typecheck:watch": "tsc --noEmit --watch" | ||
"@testing-library/dom": "^10.4.0", | ||
"@testing-library/react": "^16.0.1", | ||
"@types/react": "^18.3.12", | ||
"@vitejs/plugin-react": "^4.3.3", | ||
"bulma": "^1.0.2", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-querybuilder": "8.0.0", | ||
"rollup-plugin-visualizer": "^5.12.0", | ||
"typescript": "^5.6.3", | ||
"vite": "^5.4.10" | ||
"@testing-library/react": "^16.1.0", | ||
"@types/react": "^19.0.4", | ||
"@vitejs/plugin-react": "^4.3.4", | ||
"bulma": "^1.0.3", | ||
"react": "^19.0.0", | ||
"react-dom": "^19.0.0", | ||
"react-querybuilder": "8.1.0", | ||
"rollup-plugin-visualizer": "^5.14.0", | ||
"typescript": "^5.7.3", | ||
"vite": "^6.0.7" | ||
}, | ||
@@ -71,5 +71,5 @@ "peerDependencies": { | ||
"react": ">=18", | ||
"react-querybuilder": "8.0.0" | ||
"react-querybuilder": "8.1.0" | ||
}, | ||
"gitHead": "604b597904b3e1ef60da70af97ff7dd0b70a9bd8" | ||
"gitHead": "b0a9b58ceb51d06ab786e573da748b7babfebf96" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
124404
-0.01%