@object-ui/fields 4.0.3 → 4.0.5
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/CHANGELOG.md +54 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +1933 -913
- package/package.json +7 -7
- package/dist/ImageCropperDialog-BYRMqcYm.js +0 -147
- package/dist/ImageCropperDialog-DXLQcwWZ.cjs +0 -1
- package/dist/LookupField-CRKvDPFG.cjs +0 -1
- package/dist/LookupField-XRxsGgLS.js +0 -938
- package/dist/chunk-D-qHiVGv.cjs +0 -1
- package/dist/dist-BoLAKgtw.cjs +0 -1
- package/dist/dist-qtNk7SzD.js +0 -32
- package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
- package/dist/useFieldTranslation-BYPwtuNZ.cjs +0 -1
- package/dist/useFieldTranslation-Bv3oUVgb.js +0 -9
package/dist/chunk-D-qHiVGv.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
package/dist/dist-BoLAKgtw.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);let e=require(`react`);require(`react/jsx-runtime`),(0,e.createContext)(null),(0,e.createContext)(null),(0,e.createContext)(null);var t=(0,e.createContext)(null);function n(){return{name:`object-url`,async upload(e){let t=e,n=`name`in t&&t.name||`upload`;return{url:URL.createObjectURL(e),name:n,size:e.size,mimeType:e.type||`application/octet-stream`}}}}function r(){let r=(0,e.useContext)(t),i=(0,e.useMemo)(()=>{let e=n();return{upload:(t,n)=>e.upload(t,n),adapter:e}},[]);return r??i}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
package/dist/dist-qtNk7SzD.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createContext as e, useContext as t, useMemo as n } from "react";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
e(null), e(null), e(null);
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region ../providers/dist/UploadProvider.js
|
|
6
|
-
var r = e(null);
|
|
7
|
-
function i() {
|
|
8
|
-
return {
|
|
9
|
-
name: "object-url",
|
|
10
|
-
async upload(e) {
|
|
11
|
-
let t = e, n = "name" in t && t.name || "upload";
|
|
12
|
-
return {
|
|
13
|
-
url: URL.createObjectURL(e),
|
|
14
|
-
name: n,
|
|
15
|
-
size: e.size,
|
|
16
|
-
mimeType: e.type || "application/octet-stream"
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function a() {
|
|
22
|
-
let e = t(r), a = n(() => {
|
|
23
|
-
let e = i();
|
|
24
|
-
return {
|
|
25
|
-
upload: (t, n) => e.upload(t, n),
|
|
26
|
-
adapter: e
|
|
27
|
-
};
|
|
28
|
-
}, []);
|
|
29
|
-
return e ?? a;
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
export { a as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.defineProperty, t = (t, n) => {
|
|
3
|
-
let r = {};
|
|
4
|
-
for (var i in t) e(r, i, {
|
|
5
|
-
get: t[i],
|
|
6
|
-
enumerable: !0
|
|
7
|
-
});
|
|
8
|
-
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);var e=(0,require(`@object-ui/i18n`).createSafeTranslation)({"common.selectOption":`Select an option`,"common.select":`Select...`,"common.search":`Search`,"table.selected":`{{count}} selected`},`common.selectOption`);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createSafeTranslation as e } from "@object-ui/i18n";
|
|
2
|
-
var t = e({
|
|
3
|
-
"common.selectOption": "Select an option",
|
|
4
|
-
"common.select": "Select...",
|
|
5
|
-
"common.search": "Search",
|
|
6
|
-
"table.selected": "{{count}} selected"
|
|
7
|
-
}, "common.selectOption");
|
|
8
|
-
//#endregion
|
|
9
|
-
export { t };
|