@orangelogic/design-system 2.129.0 → 2.131.0
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/library/assets/validation.worker-Dc_pkZlD.js +1 -0
- package/library/chunks/{color-swatch-group.DPaKBfvX.js → color-swatch-group.Cy-M_lbx.js} +1 -1
- package/library/chunks/{document-viewer.VVTf0dxG.js → document-viewer.Dn_vUYCW.js} +2 -2
- package/library/chunks/{image.CDrKFe1H.js → image.BC_hwk-b.js} +246 -215
- package/library/chunks/{list-editor.C8SaStOE.js → list-editor.CdMU7vNF.js} +8 -7
- package/library/chunks/{resizable-component.styles.DpK0TTP5.js → resizable-component.styles.BVhOesNE.js} +2 -1
- package/library/chunks/{table.Cf3C72Lv.js → table.C6YsaNOh.js} +2460 -2081
- package/library/components/atoms.js +3 -3
- package/library/components/audio.js +1 -1
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/document-viewer.js +3 -3
- package/library/components/image.js +4 -3
- package/library/components/list-editor.js +2 -2
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +1 -1
- package/library/components/table.js +52 -50
- package/library/components/types.js +5941 -5918
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +16 -8
- package/library/packages/atoms/src/components/table/table.d.ts +43 -0
- package/library/packages/base/src/highlightable-element.d.ts +2 -1
- package/library/packages/events/src/cx-table-validation-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +7 -6
- package/library/packages/hybrid/table-core/src/tabulator-tables/index.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Validate/Validate.d.ts +81 -13
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Validate/defaults/rule-functions.d.ts +20 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Validate/defaults/validators.d.ts +9 -18
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Validate/validation-worker-client.d.ts +13 -0
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +3 -2
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +6 -0
- package/library/packages/types/src/table.d.ts +55 -1
- package/library/react-web-component.d.ts +13 -5
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";function e(t){return t===""||t===null||t===void 0}function m(t){return Number.isFinite(Number(t))}function c(t,r){if(!r||typeof r!="object")return!0;const n=Number(t);return!(r.min!==void 0&&n<r.min||r.max!==void 0&&n>r.max)}function g(t){return t instanceof Date?t.getTime():typeof t=="number"?Number.isFinite(t)?t:NaN:typeof t=="string"?Date.parse(t):NaN}const p={alphanumeric(t){return e(t)?!0:/^[a-z0-9]+$/i.test(String(t))},boolean(t){return e(t)?!0:typeof t=="boolean"||t==="true"||t==="false"},date(t,r){if(e(t))return!0;const n=g(t);if(Number.isNaN(n))return!1;if(!r||typeof r!="object")return!0;if(r.starts!==void 0){const u=g(r.starts);if(Number.isNaN(u)||n<u)return!1}if(r.ends!==void 0){const u=g(r.ends);if(Number.isNaN(u)||n>u)return!1}return!0},ends(t,r){return e(t)?!0:String(t).toLowerCase().endsWith(String(r).toLowerCase())},float(t,r){if(e(t))return!0;const n=Number(t);return m(t)&&n%1!==0&&c(t,r)},in(t,r){if(e(t))return!0;const n=typeof r=="string"?r.split("|"):r;return Array.isArray(n)&&n.includes(t)},integer(t,r){if(e(t))return!0;const n=Number(t);return m(t)&&Math.floor(n)===n&&c(t,r)},max(t,r){return e(t)?!0:Number.parseFloat(String(t))<=Number(r)},maxLength(t,r){return e(t)?!0:String(t).length<=Number(r)},min(t,r){return e(t)?!0:Number.parseFloat(String(t))>=Number(r)},minLength(t,r){return e(t)?!0:String(t).length>=Number(r)},numeric(t,r){return e(t)?!0:!Number.isNaN(Number(t))&&c(t,r)},regex(t,r){if(e(t))return!0;let n;r instanceof RegExp?n=r:r===void 0?n="":n=String(r);try{return new RegExp(n).test(String(t))}catch{return!1}},required(t){return!e(t)},starts(t,r){return e(t)?!0:String(t).toLowerCase().startsWith(String(r).toLowerCase())},string(t,r){if(e(t))return!0;if(!Number.isNaN(Number(t)))return!1;if(!r||typeof r!="object")return!0;const n=String(t).length;return!(r.minLength!==void 0&&n<r.minLength||r.maxLength!==void 0&&n>r.maxLength)},unique(t,r,n){return e(t)||!n?.columnValues?!0:!n.columnValues.some(u=>u===t)}},y="cx-validation-request",S="cx-validation-response",a=1e3;function N(t){return t===""||t===null||t===void 0}function E(t){const r=new Map;return t.forEach(n=>{N(n)||r.set(n,(r.get(n)??0)+1)}),r}function L(t,r,n){const u=[];return r.forEach(s=>{let i;if(s.type==="unique")i=N(t)||(n.get(t)??0)<=1;else{const o=p[s.type];i=o?o(t,s.parameters):!0}i||u.push({message:s.message,parameters:s.parameters,type:s.type})}),u}globalThis.addEventListener("message",t=>{if(t.origin!==""||t.data?.type!==y)return;const{fields:r,id:n}=t.data.payload,u=r.map(i=>i.rules.some(o=>o.type==="unique")?E(i.values):new Map),s=r.reduce((i,o)=>Math.max(i,o.values.length),0);for(let i=0;i<s||i===0;i+=a){const o=Math.min(i+a,s),d=[];for(let f=i;f<o;f++)r.forEach((b,h)=>{const l=L(b.values[f],b.rules,u[h]);l.length&&d.push({failures:l,fieldIndex:h,rowIndex:f})});const V={done:o>=s,id:n,results:d};if(globalThis.postMessage({payload:V,type:S}),o>=s)break}})})();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
2
|
+
import { C as $ } from "./table.C6YsaNOh.js";
|
|
3
3
|
import { C as k } from "./typography.DJC_UXgs.js";
|
|
4
4
|
import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import { C, a as g } from "./color-swatch.U-wztpLf.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as resizableComponentStyles, R as ResizableElement, a as ResizeDirection, b as HeightMode } from "./resizable-component.styles.
|
|
1
|
+
import { r as resizableComponentStyles, R as ResizableElement, a as ResizeDirection, b as HeightMode } from "./resizable-component.styles.BVhOesNE.js";
|
|
2
2
|
import { C as CxButton } from "./button.DcInI7IV.js";
|
|
3
3
|
import CxDrawer from "../components/drawer.js";
|
|
4
4
|
import CxDropdown from "../components/dropdown.js";
|
|
@@ -33,7 +33,7 @@ import { a as ObjectFit } from "./index.Cpamj0jB.js";
|
|
|
33
33
|
import { r as r$1 } from "./state.CSDxrqLd.js";
|
|
34
34
|
import { e } from "./class-map.BiVq-cVR.js";
|
|
35
35
|
import { n as n$1 } from "./when.Dr1es41R.js";
|
|
36
|
-
import { C as CxImage } from "./image.
|
|
36
|
+
import { C as CxImage } from "./image.BC_hwk-b.js";
|
|
37
37
|
var BookReaderMode$1 = /* @__PURE__ */ ((l) => (l.Image = "Image", l.Pdf = "Pdf", l))(BookReaderMode$1 || {}), BookReaderViewMode = /* @__PURE__ */ ((l) => (l.FourPage = "FourPage", l.OnePage = "OnePage", l.TwoPage = "TwoPage", l))(BookReaderViewMode || {});
|
|
38
38
|
function commonjsRequire(l) {
|
|
39
39
|
throw new Error('Could not dynamically require "' + l + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|