@procore/saved-views 1.1.0-alpha.2 → 1.1.0-alpha.3
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/legacy/index.d.mts +1 -1
- package/dist/legacy/index.d.ts +1 -1
- package/dist/legacy/index.js +157 -131
- package/dist/legacy/index.mjs +38 -12
- package/dist/modern/index.d.mts +1 -1
- package/dist/modern/index.d.ts +1 -1
- package/dist/modern/index.js +157 -131
- package/dist/modern/index.mjs +38 -12
- package/package.json +5 -7
package/dist/legacy/index.mjs
CHANGED
|
@@ -785,7 +785,7 @@ var require_lodash = __commonJS({
|
|
|
785
785
|
"use strict";
|
|
786
786
|
(function() {
|
|
787
787
|
var undefined2;
|
|
788
|
-
var VERSION = "4.17.
|
|
788
|
+
var VERSION = "4.17.23";
|
|
789
789
|
var LARGE_ARRAY_SIZE = 200;
|
|
790
790
|
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
791
791
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
@@ -1514,7 +1514,7 @@ var require_lodash = __commonJS({
|
|
|
1514
1514
|
}
|
|
1515
1515
|
return new LodashWrapper(value);
|
|
1516
1516
|
}
|
|
1517
|
-
var baseCreate =
|
|
1517
|
+
var baseCreate = function() {
|
|
1518
1518
|
function object3() {
|
|
1519
1519
|
}
|
|
1520
1520
|
return function(proto) {
|
|
@@ -2713,8 +2713,28 @@ var require_lodash = __commonJS({
|
|
|
2713
2713
|
}
|
|
2714
2714
|
function baseUnset(object3, path) {
|
|
2715
2715
|
path = castPath(path, object3);
|
|
2716
|
-
|
|
2717
|
-
|
|
2716
|
+
var index = -1, length = path.length;
|
|
2717
|
+
if (!length) {
|
|
2718
|
+
return true;
|
|
2719
|
+
}
|
|
2720
|
+
var isRootPrimitive = object3 == null || typeof object3 !== "object" && typeof object3 !== "function";
|
|
2721
|
+
while (++index < length) {
|
|
2722
|
+
var key = path[index];
|
|
2723
|
+
if (typeof key !== "string") {
|
|
2724
|
+
continue;
|
|
2725
|
+
}
|
|
2726
|
+
if (key === "__proto__" && !hasOwnProperty.call(object3, "__proto__")) {
|
|
2727
|
+
return false;
|
|
2728
|
+
}
|
|
2729
|
+
if (key === "constructor" && index + 1 < length && typeof path[index + 1] === "string" && path[index + 1] === "prototype") {
|
|
2730
|
+
if (isRootPrimitive && index === 0) {
|
|
2731
|
+
continue;
|
|
2732
|
+
}
|
|
2733
|
+
return false;
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
var obj = parent(object3, path);
|
|
2737
|
+
return obj == null || delete obj[toKey(last(path))];
|
|
2718
2738
|
}
|
|
2719
2739
|
function baseUpdate(object3, path, updater, customizer) {
|
|
2720
2740
|
return baseSet(object3, path, updater(baseGet(object3, path)), customizer);
|
|
@@ -4821,7 +4841,7 @@ var require_lodash = __commonJS({
|
|
|
4821
4841
|
var gte = createRelationalOperation(function(value, other) {
|
|
4822
4842
|
return value >= other;
|
|
4823
4843
|
});
|
|
4824
|
-
var isArguments = baseIsArguments(
|
|
4844
|
+
var isArguments = baseIsArguments(function() {
|
|
4825
4845
|
return arguments;
|
|
4826
4846
|
}()) ? baseIsArguments : function(value) {
|
|
4827
4847
|
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
@@ -8590,8 +8610,8 @@ function memoize(fn) {
|
|
|
8590
8610
|
};
|
|
8591
8611
|
}
|
|
8592
8612
|
|
|
8593
|
-
// node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
8594
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
8613
|
+
// ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
8614
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
8595
8615
|
var isPropValid = /* @__PURE__ */ memoize(
|
|
8596
8616
|
function(prop) {
|
|
8597
8617
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
@@ -8917,7 +8937,7 @@ var re = function() {
|
|
|
8917
8937
|
var oe = /^\s*\/\/.*$/gm;
|
|
8918
8938
|
var se = [":", "[", ".", "#"];
|
|
8919
8939
|
function ie(e2) {
|
|
8920
|
-
var t2, n2, r2, o2, s2 = void 0 === e2 ? S : e2, i2 = s2.options, a2 = void 0 === i2 ? S : i2, c2 = s2.plugins, u2 = void 0 === c2 ? g : c2, l2 = new stylis_esm_default(a2), h = [], p =
|
|
8940
|
+
var t2, n2, r2, o2, s2 = void 0 === e2 ? S : e2, i2 = s2.options, a2 = void 0 === i2 ? S : i2, c2 = s2.plugins, u2 = void 0 === c2 ? g : c2, l2 = new stylis_esm_default(a2), h = [], p = function(e3) {
|
|
8921
8941
|
function t3(t4) {
|
|
8922
8942
|
if (t4)
|
|
8923
8943
|
try {
|
|
@@ -9155,7 +9175,7 @@ function Fe(e2, t2, n2) {
|
|
|
9155
9175
|
return this._foldedDefaultProps;
|
|
9156
9176
|
}, set: function(t3) {
|
|
9157
9177
|
this._foldedDefaultProps = o2 ? ze({}, e2.defaultProps, t3) : t3;
|
|
9158
|
-
} }), "production" !== process.env.NODE_ENV && (Ie(y2, v2), A2.warnTooManyClasses =
|
|
9178
|
+
} }), "production" !== process.env.NODE_ENV && (Ie(y2, v2), A2.warnTooManyClasses = function(e3, t3) {
|
|
9159
9179
|
var n3 = {}, r2 = false;
|
|
9160
9180
|
return function(o3) {
|
|
9161
9181
|
if (!r2 && (n3[o3] = true, Object.keys(n3).length >= 200)) {
|
|
@@ -9585,7 +9605,9 @@ var useSavedViewsQuery = (props) => {
|
|
|
9585
9605
|
queryKey: ["savedViews", domain, tableName, companyId, projectId],
|
|
9586
9606
|
queryFn: async () => {
|
|
9587
9607
|
const getUrl = `${url}&per_page=${PAGE_SIZE}`;
|
|
9588
|
-
const response = await requestJSON2(getUrl
|
|
9608
|
+
const response = await requestJSON2(getUrl, {
|
|
9609
|
+
priority: "low"
|
|
9610
|
+
});
|
|
9589
9611
|
return response.data;
|
|
9590
9612
|
}
|
|
9591
9613
|
});
|
|
@@ -9597,7 +9619,9 @@ var useSavedViewsPermissions = (props) => {
|
|
|
9597
9619
|
return useQuery({
|
|
9598
9620
|
queryKey: ["savedViewsConfig", domain, companyId, projectId],
|
|
9599
9621
|
queryFn: async () => {
|
|
9600
|
-
const response = await requestJSON2(url
|
|
9622
|
+
const response = await requestJSON2(url, {
|
|
9623
|
+
priority: "low"
|
|
9624
|
+
});
|
|
9601
9625
|
return response.data;
|
|
9602
9626
|
}
|
|
9603
9627
|
});
|
|
@@ -9625,7 +9649,9 @@ var useFetchSavedViewById = (savedViewToken, queryInput, enabled = true) => {
|
|
|
9625
9649
|
queryKey: ["savedView", savedViewToken, companyId, projectId],
|
|
9626
9650
|
queryFn: async () => {
|
|
9627
9651
|
const url = `${basePath}/${savedViewToken}?permissions_domain=${domain}`;
|
|
9628
|
-
const response = await requestJSON2(url
|
|
9652
|
+
const response = await requestJSON2(url, {
|
|
9653
|
+
priority: "low"
|
|
9654
|
+
});
|
|
9629
9655
|
return response.data;
|
|
9630
9656
|
}
|
|
9631
9657
|
});
|
package/dist/modern/index.d.mts
CHANGED
|
@@ -188,4 +188,4 @@ interface IDataTableSavedViewsRef {
|
|
|
188
188
|
}
|
|
189
189
|
declare const DataTableSavedViews: React__default.ForwardRefExoticComponent<IDataTableSavedViewsExternalConsumerProps & React__default.RefAttributes<IDataTableSavedViewsRef>>;
|
|
190
190
|
|
|
191
|
-
export { DataTableSavedViews, ExpandedPanel, FormModal,
|
|
191
|
+
export { DataTableSavedViews, ExpandedPanel, FormModal, IDataTableDefaultViewConfig, IDataTableSavedViewsRef, ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, SmartGridSavedViews, getTranslations, useSavedViewsPanel };
|
package/dist/modern/index.d.ts
CHANGED
|
@@ -188,4 +188,4 @@ interface IDataTableSavedViewsRef {
|
|
|
188
188
|
}
|
|
189
189
|
declare const DataTableSavedViews: React__default.ForwardRefExoticComponent<IDataTableSavedViewsExternalConsumerProps & React__default.RefAttributes<IDataTableSavedViewsRef>>;
|
|
190
190
|
|
|
191
|
-
export { DataTableSavedViews, ExpandedPanel, FormModal,
|
|
191
|
+
export { DataTableSavedViews, ExpandedPanel, FormModal, IDataTableDefaultViewConfig, IDataTableSavedViewsRef, ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, SmartGridSavedViews, getTranslations, useSavedViewsPanel };
|