@zydon/common 2.9.33 → 2.9.34
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/README.md +49 -0
- package/dist/{chunk-KDPEIATK.js → chunk-3GERPUNO.js} +6 -6
- package/dist/{chunk-QSIIIIKG.js → chunk-4FRN4I7H.js} +2 -2
- package/dist/{chunk-Y5SAYYIA.js → chunk-5N6Y3FIM.js} +2 -2
- package/dist/{chunk-YE3UBL3Z.js → chunk-772DOKEN.js} +2 -2
- package/dist/{chunk-WRS6EB73.js → chunk-7CMID2IK.js} +5 -5
- package/dist/{chunk-PLYIMNOS.js → chunk-7IHZRIIU.js} +2 -2
- package/dist/chunk-7WUAJEER.js +6 -0
- package/dist/chunk-7WUAJEER.js.map +1 -0
- package/dist/{chunk-E6RRGP5Y.js → chunk-A2LPDSRW.js} +2 -2
- package/dist/{chunk-5B4FRLG6.js → chunk-ALVCWIRN.js} +3 -3
- package/dist/chunk-AZJ3VCNL.js +8 -0
- package/dist/chunk-AZJ3VCNL.js.map +1 -0
- package/dist/chunk-BBVOF2BY.js +6 -0
- package/dist/chunk-BBVOF2BY.js.map +1 -0
- package/dist/{chunk-PG76IVYS.js → chunk-BUDIH7D2.js} +2 -2
- package/dist/{chunk-IR7WWQME.js → chunk-C3JTGVAS.js} +2 -2
- package/dist/{chunk-PNLLFNVS.js → chunk-CK6Q4FGI.js} +2 -2
- package/dist/{chunk-GAAYQZRY.js → chunk-FCC5IEAW.js} +2 -2
- package/dist/chunk-GGJJ3II3.js +7 -0
- package/dist/chunk-GGJJ3II3.js.map +1 -0
- package/dist/chunk-HE2LUROB.js +8 -0
- package/dist/chunk-HE2LUROB.js.map +1 -0
- package/dist/chunk-HLJGNOJN.js +9 -0
- package/dist/chunk-HLJGNOJN.js.map +1 -0
- package/dist/{chunk-3L7PD6OE.js → chunk-HPBLOHGU.js} +2 -2
- package/dist/{chunk-YZTQD6VN.js → chunk-IFYEQTIR.js} +2 -2
- package/dist/{chunk-3U2WJUM4.js → chunk-IWNQZ4DU.js} +2 -2
- package/dist/{chunk-TAA5KCEG.js → chunk-K6O5RVKC.js} +3 -3
- package/dist/{chunk-P7525QZK.js → chunk-LKX2OZSP.js} +3 -3
- package/dist/chunk-PTIGK5PS.js +6 -0
- package/dist/chunk-PTIGK5PS.js.map +1 -0
- package/dist/chunk-QGXT2AUD.js +4 -0
- package/dist/chunk-QGXT2AUD.js.map +1 -0
- package/dist/{chunk-YX5SZL5S.js → chunk-QZVNKHIE.js} +2 -2
- package/dist/{chunk-XUD7JMEF.js → chunk-SB7J43ND.js} +2 -2
- package/dist/chunk-TQFKLNTU.js +8 -0
- package/dist/chunk-TQFKLNTU.js.map +1 -0
- package/dist/chunk-U2XWJMVE.js +11 -0
- package/dist/chunk-U2XWJMVE.js.map +1 -0
- package/dist/{chunk-YAS6LE4A.js → chunk-W6J37DOS.js} +2 -2
- package/dist/{chunk-ZEOLXISU.js → chunk-XA36N32L.js} +2 -2
- package/dist/{chunk-SE6SCSOB.js → chunk-XECFL7W6.js} +2 -2
- package/dist/{chunk-VJW7L44O.js → chunk-XT2AH5G2.js} +1 -1
- package/dist/{chunk-7UJSGCXL.js → chunk-ZYFY6BCA.js} +2 -2
- package/dist/components/Accordion/index.d.ts +37 -0
- package/dist/components/Accordion/index.js +4 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/ActionButton/index.js +2 -2
- package/dist/components/Analytics/OrderProjection/index.d.ts +96 -0
- package/dist/components/Analytics/OrderProjection/index.js +62 -0
- package/dist/components/Analytics/OrderProjection/index.js.map +1 -0
- package/dist/components/Analytics/OverviewAnalytics/index.js +13 -13
- package/dist/components/Analytics/PartnerAnalysis/index.js +11 -11
- package/dist/components/Analytics/index.js +7 -7
- package/dist/components/Autocomplete/index.js +2 -2
- package/dist/components/AvatarButton/index.js +4 -4
- package/dist/components/BuilderLayout/index.js +2 -2
- package/dist/components/BuilderSidebar/index.js +1 -1
- package/dist/components/BulkEditModal/index.js +4 -4
- package/dist/components/CardBrand/index.js +1 -1
- package/dist/components/ColorPickerInput/index.js +2 -2
- package/dist/components/ColoredLabel/index.js +1 -7
- package/dist/components/ColoredLabel/index.js.map +1 -1
- package/dist/components/ColumnResizeHandle/index.d.ts +11 -0
- package/dist/components/ColumnResizeHandle/index.js +2 -0
- package/dist/components/ColumnResizeHandle/index.js.map +1 -0
- package/dist/components/Common/index.js +4 -4
- package/dist/components/CopyButton/index.js +2 -2
- package/dist/components/DataCards/index.js +1 -1
- package/dist/components/DataGrid/index.js +2 -2
- package/dist/components/DataView/index.js +7 -7
- package/dist/components/DateCalendar/index.js +1 -7
- package/dist/components/DateCalendar/index.js.map +1 -1
- package/dist/components/DragButton/index.js +2 -2
- package/dist/components/Drawer/index.js +3 -3
- package/dist/components/DynamicDataView/index.js +11 -11
- package/dist/components/EasyCropModal/index.js +3 -3
- package/dist/components/Error/index.js +1 -1
- package/dist/components/ExpandableGroup/index.js +1 -1
- package/dist/components/FileUpload/index.js +8 -8
- package/dist/components/Filters/index.js +4 -4
- package/dist/components/FrameSkeleton/index.js +2 -2
- package/dist/components/HelpButton/index.js +2 -2
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/IconButton/index.js +2 -2
- package/dist/components/ImageCropModal/index.js +2 -2
- package/dist/components/Incrementer/index.js +2 -2
- package/dist/components/InfoCircle/index.js +2 -2
- package/dist/components/ListBundles/index.js +2 -2
- package/dist/components/MenuItem/index.js +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/MoreMenu/index.js +1 -1
- package/dist/components/NotFound/index.js +1 -1
- package/dist/components/PasswordRules/index.js +1 -1
- package/dist/components/PopoverSelect/index.js +1 -1
- package/dist/components/PortalBrandImage/index.js +1 -1
- package/dist/components/SearchInput/index.js +2 -2
- package/dist/components/SelectList/index.js +4 -4
- package/dist/components/SelectableCards/index.js +4 -4
- package/dist/components/SeoPreview/index.js +1 -1
- package/dist/components/StateDisplay/index.js +2 -2
- package/dist/components/StepUpDialog/index.js +2 -2
- package/dist/components/Steps/index.js +1 -1
- package/dist/components/StyledTab/index.js +1 -1
- package/dist/components/SwapList/index.js +3 -3
- package/dist/components/ToggleTheme/index.js +3 -3
- package/dist/components/WebhookCard/index.js +1 -1
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/form/Address/index.js +3 -3
- package/dist/components/form/Autocomplete/index.js +3 -3
- package/dist/components/form/ColorPicker/index.js +2 -2
- package/dist/components/form/FileUpload/index.js +8 -8
- package/dist/components/form/Incrementer/index.js +2 -2
- package/dist/components/form/Password/index.js +1 -1
- package/dist/components/form/SelectList/index.js +4 -4
- package/dist/components/form/SelectableCards/index.js +4 -4
- package/dist/components/form/Webhook/index.js +4 -4
- package/dist/components/lightbox/index.js +1 -1
- package/dist/components/table/index.js +2 -2
- package/dist/hooks/useAutocomplete.js +1 -6
- package/dist/hooks/useAutocomplete.js.map +1 -1
- package/dist/hooks/useOrderProjectionFilters.d.ts +60 -0
- package/dist/hooks/useOrderProjectionFilters.js +6 -0
- package/dist/hooks/useOrderProjectionFilters.js.map +1 -0
- package/dist/hooks/useResizableColumns.d.ts +11 -0
- package/dist/hooks/useResizableColumns.js +2 -0
- package/dist/hooks/useResizableColumns.js.map +1 -0
- package/dist/hooks/useThemeToggle.js +3 -3
- package/dist/index.js +3 -3
- package/dist/theme/theme-provider.js +3 -3
- package/dist/types/orderProjection.d.ts +126 -1
- package/dist/types/orderProjection.js +1 -3
- package/dist/types/orderProjection.js.map +1 -1
- package/dist/useResizableColumns.types-6611ee0b.d.ts +24 -0
- package/dist/utils/buildExportPayload.js +1 -1
- package/dist/utils/mask.js +2 -5
- package/dist/utils/mask.js.map +1 -1
- package/dist/utils/orderProjection.d.ts +27 -0
- package/dist/utils/orderProjection.js +4 -0
- package/dist/utils/orderProjection.js.map +1 -0
- package/package.json +7 -1
- /package/dist/{chunk-KDPEIATK.js.map → chunk-3GERPUNO.js.map} +0 -0
- /package/dist/{chunk-QSIIIIKG.js.map → chunk-4FRN4I7H.js.map} +0 -0
- /package/dist/{chunk-Y5SAYYIA.js.map → chunk-5N6Y3FIM.js.map} +0 -0
- /package/dist/{chunk-YE3UBL3Z.js.map → chunk-772DOKEN.js.map} +0 -0
- /package/dist/{chunk-WRS6EB73.js.map → chunk-7CMID2IK.js.map} +0 -0
- /package/dist/{chunk-PLYIMNOS.js.map → chunk-7IHZRIIU.js.map} +0 -0
- /package/dist/{chunk-E6RRGP5Y.js.map → chunk-A2LPDSRW.js.map} +0 -0
- /package/dist/{chunk-5B4FRLG6.js.map → chunk-ALVCWIRN.js.map} +0 -0
- /package/dist/{chunk-PG76IVYS.js.map → chunk-BUDIH7D2.js.map} +0 -0
- /package/dist/{chunk-IR7WWQME.js.map → chunk-C3JTGVAS.js.map} +0 -0
- /package/dist/{chunk-PNLLFNVS.js.map → chunk-CK6Q4FGI.js.map} +0 -0
- /package/dist/{chunk-GAAYQZRY.js.map → chunk-FCC5IEAW.js.map} +0 -0
- /package/dist/{chunk-3L7PD6OE.js.map → chunk-HPBLOHGU.js.map} +0 -0
- /package/dist/{chunk-YZTQD6VN.js.map → chunk-IFYEQTIR.js.map} +0 -0
- /package/dist/{chunk-3U2WJUM4.js.map → chunk-IWNQZ4DU.js.map} +0 -0
- /package/dist/{chunk-TAA5KCEG.js.map → chunk-K6O5RVKC.js.map} +0 -0
- /package/dist/{chunk-P7525QZK.js.map → chunk-LKX2OZSP.js.map} +0 -0
- /package/dist/{chunk-YX5SZL5S.js.map → chunk-QZVNKHIE.js.map} +0 -0
- /package/dist/{chunk-XUD7JMEF.js.map → chunk-SB7J43ND.js.map} +0 -0
- /package/dist/{chunk-YAS6LE4A.js.map → chunk-W6J37DOS.js.map} +0 -0
- /package/dist/{chunk-ZEOLXISU.js.map → chunk-XA36N32L.js.map} +0 -0
- /package/dist/{chunk-SE6SCSOB.js.map → chunk-XECFL7W6.js.map} +0 -0
- /package/dist/{chunk-VJW7L44O.js.map → chunk-XT2AH5G2.js.map} +0 -0
- /package/dist/{chunk-7UJSGCXL.js.map → chunk-ZYFY6BCA.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../chunk-P64QBDAO.js';
|
|
2
1
|
import '../chunk-4P2L7UJA.js';
|
|
2
|
+
import '../chunk-P64QBDAO.js';
|
|
3
3
|
|
|
4
4
|
var u=(t,e)=>{if(!(!t?.fields||!e))return t.fields.find(r=>r.name===e||r.filter_field_name===e)},i=(t,e)=>{if(!e)return;let r=u(t,e);return t?.fields?r?.filter_field_name||r?.name:e},f=(t,e)=>{if(!(!t?.fields||!e||e.length===0))return e.filter(r=>r!=="ACTIONS")},l=(t,e)=>{let r=e?.trim();if(!r)return;let n=i(t,t?.description_field_name)||i(t,"name");if(n)return {operator:"AND",groups:[{operator:"AND",conditionals:[{fieldName:n,conditional:"LIKE",value:[r]}]}]}},p=(t,e,r)=>{if(!e||!r)return;let n=i(t,e);if(n)return {fieldName:n,sortType:r==="desc"?"DESC":"ASC"}},c=({metadata:t,visibleFieldNames:e,search:r,sort:n,dir:s})=>{let o=f(t,e),d=l(t,r),a=p(t,n,s);return {...o&&{criteria:o},...d&&{filter:d},...a&&{sort:a}}},y=c;
|
|
5
5
|
|
package/dist/utils/mask.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var s=(t="",n)=>{let e="",r=0;return [...n].forEach(a=>{e+=a==="#"?t[r++]||"_":a;}),e},u=t=>s((t||"").replace(/\D/g,""),"###.###.###-##"),l=t=>s(d(t||""),"##.###.###/####-##"),i=[{mask:"000.000.000-00"}],g=[{mask:"@@.@@@.@@@/@@@@-00",definitions:{"@":/[0-9a-zA-Z]/},prepareChar:t=>t.toUpperCase()}],M=[...i,...g],m=t=>s((t||"").replace(/\D/g,""),"#####-###"),_=t=>{let e=(t||"").replace(/\D/g,"");return s(e,{10:"(##) ####-####",11:"(##) #####-####",12:"+## (##) ####-####",13:"+## (##) #####-####",14:"+### (##) #####-####"}[e.length]??e)},f=t=>{let n=t||"",e=n.replace(/\D/g,"");if(e.length===11)return u(e);let r=d(n);return r.length===14?l(r):null};
|
|
4
|
-
|
|
5
|
-
export { g as CNPJ_INPUT_MASK, M as CPF_CNPJ_INPUT_MASK, i as CPF_INPUT_MASK, s as applyMask, m as cepMask, l as cnpjMask, u as cpfMask, f as cpfMaskOrCnpjMask, _ as phoneMask };
|
|
1
|
+
export { e as CNPJ_INPUT_MASK, f as CPF_CNPJ_INPUT_MASK, d as CPF_INPUT_MASK, a as applyMask, g as cepMask, c as cnpjMask, b as cpfMask, i as cpfMaskOrCnpjMask, h as phoneMask } from '../chunk-BBVOF2BY.js';
|
|
2
|
+
import '../chunk-55XSPNSX.js';
|
|
6
3
|
//# sourceMappingURL=mask.js.map
|
package/dist/utils/mask.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import dayjs__default from 'dayjs';
|
|
2
|
+
import { FilterDateState } from '../types/analytics.js';
|
|
3
|
+
import { Recurrence, Period, EventType, EventStyles } from '../types/orderProjection.js';
|
|
4
|
+
import './analytics.js';
|
|
5
|
+
import './partnerAnalysis.js';
|
|
6
|
+
|
|
7
|
+
declare const SCROLL_END_THRESHOLD = 350;
|
|
8
|
+
declare const MAX_INDIVIDUAL_EVENTS = 2;
|
|
9
|
+
declare const MAX_VISIBLE_TOOLTIP_EVENTS = 3;
|
|
10
|
+
declare const PARTNER_COLUMN_KEY = "partner";
|
|
11
|
+
declare const PARTNER_COLUMN_DEFAULT_WIDTH = 216;
|
|
12
|
+
declare const PARTNER_COLUMN_MIN_WIDTH = 170;
|
|
13
|
+
declare const DAY_COLUMN_MIN_WIDTH = 160;
|
|
14
|
+
declare const getDayColumnKey: (index: number) => string;
|
|
15
|
+
declare const getDateRange: (referenceDate: dayjs__default.Dayjs, daysCount: number) => FilterDateState;
|
|
16
|
+
declare const getDaysInRange: (startDate: string, endDate: string) => dayjs__default.Dayjs[];
|
|
17
|
+
declare const getRecurrenceLabel: (recurrence?: Recurrence) => string;
|
|
18
|
+
declare const getPeriodInfo: (referenceDate: Date) => {
|
|
19
|
+
period: Period;
|
|
20
|
+
};
|
|
21
|
+
declare const getEventStyles: (type?: EventType, period?: Period) => EventStyles;
|
|
22
|
+
declare const EVENT_TYPE_OPTIONS: Record<EventType, {
|
|
23
|
+
label: string;
|
|
24
|
+
color: string;
|
|
25
|
+
}>;
|
|
26
|
+
|
|
27
|
+
export { DAY_COLUMN_MIN_WIDTH, EVENT_TYPE_OPTIONS, MAX_INDIVIDUAL_EVENTS, MAX_VISIBLE_TOOLTIP_EVENTS, PARTNER_COLUMN_DEFAULT_WIDTH, PARTNER_COLUMN_KEY, PARTNER_COLUMN_MIN_WIDTH, SCROLL_END_THRESHOLD, getDateRange, getDayColumnKey, getDaysInRange, getEventStyles, getPeriodInfo, getRecurrenceLabel };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { g as DAY_COLUMN_MIN_WIDTH, n as EVENT_TYPE_OPTIONS, b as MAX_INDIVIDUAL_EVENTS, c as MAX_VISIBLE_TOOLTIP_EVENTS, e as PARTNER_COLUMN_DEFAULT_WIDTH, d as PARTNER_COLUMN_KEY, f as PARTNER_COLUMN_MIN_WIDTH, a as SCROLL_END_THRESHOLD, i as getDateRange, h as getDayColumnKey, j as getDaysInRange, m as getEventStyles, l as getPeriodInfo, k as getRecurrenceLabel } from '../chunk-PTIGK5PS.js';
|
|
2
|
+
import '../chunk-QGXT2AUD.js';
|
|
3
|
+
import '../chunk-ERLI5GAP.js';
|
|
4
|
+
//# sourceMappingURL=orderProjection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zydon/common",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.34",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
"import": "./dist/components/Analytics/index.js",
|
|
47
47
|
"types": "./dist/components/Analytics/index.d.ts"
|
|
48
48
|
},
|
|
49
|
+
"./components/Analytics/OrderProjection": {
|
|
50
|
+
"import": "./dist/components/Analytics/OrderProjection/index.js",
|
|
51
|
+
"types": "./dist/components/Analytics/OrderProjection/index.d.ts"
|
|
52
|
+
},
|
|
49
53
|
"./components/Analytics/OverviewAnalytics": {
|
|
50
54
|
"import": "./dist/components/Analytics/OverviewAnalytics/index.js",
|
|
51
55
|
"types": "./dist/components/Analytics/OverviewAnalytics/index.d.ts"
|
|
@@ -118,6 +122,7 @@
|
|
|
118
122
|
"@mui/lab": "5.0.0-alpha.173",
|
|
119
123
|
"@mui/material": "^5.16.7",
|
|
120
124
|
"@mui/x-data-grid-premium": "^7.14.0",
|
|
125
|
+
"@mui/x-date-pickers": "^7.14.0",
|
|
121
126
|
"@mui/x-date-pickers-pro": "^7.14.0",
|
|
122
127
|
"@swc/core": "^1.15.24",
|
|
123
128
|
"@swc/jest": "^0.2.39",
|
|
@@ -201,6 +206,7 @@
|
|
|
201
206
|
"@mui/lab": "^5.0.0-alpha.173",
|
|
202
207
|
"@mui/material": "^5.16.7",
|
|
203
208
|
"@mui/x-data-grid-premium": "^7.14.0",
|
|
209
|
+
"@mui/x-date-pickers": "^7.14.0",
|
|
204
210
|
"@mui/x-date-pickers-pro": "^7.14.0",
|
|
205
211
|
"react": "^18.3.1",
|
|
206
212
|
"react-dom": "^18.3.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|