react-autoql 8.39.0 → 8.40.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/README.md +0 -4
- package/dist/autoql-index-0d439755.esm.js +3 -0
- package/dist/autoql-index-0d439755.esm.js.gz +0 -0
- package/dist/autoql-index-a6bed2dd.cjs.js +3 -0
- package/dist/autoql-index-a6bed2dd.cjs.js.gz +0 -0
- package/dist/autoql-onDemandCode-a6ce9c69.cjs.js +1 -0
- package/dist/autoql-onDemandCode-a6ce9c69.cjs.js.gz +0 -0
- package/dist/autoql-onDemandCode-feaad31f.esm.js +1 -0
- package/dist/autoql-onDemandCode-feaad31f.esm.js.gz +0 -0
- package/dist/autoql.cjs.js +1 -1
- package/dist/autoql.cjs.js.gz +0 -0
- package/dist/autoql.esm.css +1 -1
- package/dist/autoql.esm.css.gz +0 -0
- package/dist/autoql.esm.js +1 -1
- package/dist/autoql.esm.js.gz +0 -0
- package/package.json +4 -2
- package/src/index.d.ts +40 -0
- package/dist/autoql-index-80032fcd.cjs.js +0 -3
- package/dist/autoql-index-80032fcd.cjs.js.gz +0 -0
- package/dist/autoql-index-eac24ca3.esm.js +0 -3
- package/dist/autoql-index-eac24ca3.esm.js.gz +0 -0
- package/dist/autoql-onDemandCode-36c0e33c.esm.js +0 -1
- package/dist/autoql-onDemandCode-36c0e33c.esm.js.gz +0 -0
- package/dist/autoql-onDemandCode-7e3eca90.cjs.js +0 -1
- package/dist/autoql-onDemandCode-7e3eca90.cjs.js.gz +0 -0
package/dist/autoql.esm.css.gz
CHANGED
|
Binary file
|
package/dist/autoql.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"autoql-fe-utils";export{
|
|
1
|
+
export*from"autoql-fe-utils";export{cf as AddToReportDialog,cB as AgentMessenger,c5 as AppearanceSection,ch as BREAKPOINTS,c3 as ChatContent,bY as ConditionBuilder,bV as CustomFilteredAlertModal,aV as Dashboard,cy as DashboardTile,bT as DataAlertDeleteDialog,bU as DataAlertListItem,bW as DataAlertModal,bS as DataAlertRow,bP as DataAlerts,bR as DataAlertsList,bQ as DataAlertsTabbed,cz as DataExplorer,cA as DataMessenger,cD as ExploreQueries,c2 as ExpressionBuilder,a6 as FilterLockPopover,F as Icon,b$ as JoinColumnSelectionTable,a1 as LoadingDots,M as MAGIC_WAND_BILLING_GATE_MESSAGES,b_ as NotificationFeed,bZ as NotificationIcon,c1 as NotificationItem,cC as OptionsToolbar,cY as PUSH_NOTIFICATION_STATUS,cW as PushNotificationsProvider,cZ as PushNotificationsToggle,cu as QueryInput,Z as QueryOutput,cE as QuerySuggestionList,cb as REPORT_DATA_STATUSES,cc as REPORT_ERROR_CODES,c9 as REPORT_SCHEMA_VERSION,c7 as ReportBuilder,c8 as Reports,aM as ReportsApiError,cF as ReverseTranslation,bX as ScheduleBuilder,c0 as SelectableTable,c4 as SimpleTable,c6 as SlicerChip,cG as SpeechToTextButton,cH as SpeechToTextButtonBrowser,ct as VizToolbar,cd as appendReportBlock,aq as captureQuestion,cg as captureReportBlock,cV as clearStoredBillingCustomerKey,b6 as createEmptyReport,aD as createReport,bz as createReportFolder,bI as createReportFromTemplate,by as createReportTag,bm as createTemplateCategory,bc as createTemplateFromReport,cQ as currencyInputFromMicros,bJ as deleteReport,bC as deleteReportFolder,bD as deleteReportTag,ce as deleteReports,bl as deleteTemplate,bo as deleteTemplateCategory,bk as discardTemplateDraft,bf as fetchManagedCategories,be as fetchManagedTemplate,bp as fetchManagedTemplates,aF as fetchReport,b1 as fetchReportCategories,bH as fetchReportDataStatus,bs as fetchReportFolders,bt as fetchReportTags,b2 as fetchReportTemplate,b5 as fetchReportTemplates,bL as fetchReports,cR as formatBillingPeriod,cO as formatMicrosAsCurrency,cS as getDefaultBillingHistoryRange,v as getMagicWandBillingErrorState,cT as getStoredBillingCustomerKey,bw as isFillingData,cj as isLandscape,cn as isLg,cm as isMd,cq as isMobile,cr as isMobileLandscape,cv as isResponseFailed,ci as isScreenSize,cl as isSm,cx as isTileDirty,cw as isTileFailed,co as isXl,ck as isXs,cp as isXxl,bh as keepsTemplateDrafts,cP as microsFromCurrencyInput,bE as organizeReports,bi as publishTemplate,cN as refreshBillingUsage,bA as renameReportFolder,bn as renameTemplateCategory,ca as rowsForCapture,aE as saveReport,bg as saveTemplateDraft,cU as setStoredBillingCustomerKey,cs as subscribeToScreenSize,bj as unpublishTemplate,bB as updateReportTag,bd as updateTemplate,cI as useBillingCustomerKey,cJ as useBillingHistory,cK as useBillingQuotaUpdate,cL as useBillingUsage,cM as useMagicWandBillingGate,cX as usePushNotifications}from"./autoql-index-0d439755.esm.js";import"react";import"prop-types";import"uuid";import"lodash.isequal";import"react-device-detect";import"@react-icons/all-files/ai/AiOutlineBook";import"@react-icons/all-files/ai/AiOutlineBulb";import"@react-icons/all-files/ai/AiOutlineDashboard";import"@react-icons/all-files/ai/AiOutlineEdit";import"@react-icons/all-files/ai/AiOutlineFileText";import"@react-icons/all-files/ai/AiOutlineMenu";import"@react-icons/all-files/ai/AiOutlineQuestionCircle";import"@react-icons/all-files/ai/AiOutlineTag";import"@react-icons/all-files/ai/AiOutlineFileSearch";import"@react-icons/all-files/ai/AiOutlineNumber";import"@react-icons/all-files/bi/BiLineChart";import"@react-icons/all-files/bi/BiSearchAlt";import"@react-icons/all-files/bi/BiBookmark";import"@react-icons/all-files/bi/BiBook";import"@react-icons/all-files/bi/BiNote";import"@react-icons/all-files/bi/BiAbacus";import"@react-icons/all-files/bi/BiEnvelope";import"@react-icons/all-files/bi/BiEnvelopeOpen";import"@react-icons/all-files/bi/BiLayerPlus";import"@react-icons/all-files/bi/BiSelectMultiple";import"@react-icons/all-files/bs/BsArrowBarUp";import"@react-icons/all-files/bs/BsArrowBarDown";import"@react-icons/all-files/bs/BsLightning";import"@react-icons/all-files/fa/FaMicrophoneAlt";import"@react-icons/all-files/fi/FiAlertTriangle";import"@react-icons/all-files/fi/FiArrowLeft";import"@react-icons/all-files/fi/FiBell";import"@react-icons/all-files/fi/FiBellOff";import"@react-icons/all-files/fi/FiCalendar";import"@react-icons/all-files/fi/FiCheck";import"@react-icons/all-files/fi/FiDatabase";import"@react-icons/all-files/fi/FiDownload";import"@react-icons/all-files/fi/FiEye";import"@react-icons/all-files/fi/FiLayers";import"@react-icons/all-files/fi/FiMoreHorizontal";import"@react-icons/all-files/fi/FiMoreVertical";import"@react-icons/all-files/fi/FiPauseCircle";import"@react-icons/all-files/fi/FiPlus";import"@react-icons/all-files/fi/FiArrowUp";import"@react-icons/all-files/fi/FiSettings";import"@react-icons/all-files/fi/FiTrash2";import"@react-icons/all-files/fi/FiMaximize";import"@react-icons/all-files/fi/FiMinimize";import"@react-icons/all-files/fi/FiRefreshCw";import"@react-icons/all-files/fi/FiTool";import"@react-icons/all-files/fi/FiMinus";import"react-icons/fi";import"@react-icons/all-files/ri/RiFilterLine";import"@react-icons/all-files/ri/RiFilterOffLine";import"@react-icons/all-files/ri/RiListSettingsLine";import"@react-icons/all-files/ri/RiBroadcastFill";import"@react-icons/all-files/ri/RiDivideFill";import"@react-icons/all-files/go/GoReport";import"react-icons/hi";import"@react-icons/all-files/io/IoIosCloseCircleOutline";import"@react-icons/all-files/io/IoIosGlobe";import"@react-icons/all-files/io/IoIosHourglass";import"@react-icons/all-files/io/IoIosSearch";import"@react-icons/all-files/io/IoIosArrowDown";import"@react-icons/all-files/io/IoIosArrowUp";import"@react-icons/all-files/io/IoIosArrowBack";import"@react-icons/all-files/io/IoIosArrowForward";import"@react-icons/all-files/md/MdClose";import"@react-icons/all-files/md/MdContentCopy";import"@react-icons/all-files/md/MdError";import"@react-icons/all-files/md/MdInfoOutline";import"@react-icons/all-files/md/MdLock";import"@react-icons/all-files/md/MdLockOpen";import"@react-icons/all-files/md/MdPlayCircleOutline";import"@react-icons/all-files/md/MdAttachMoney";import"@react-icons/all-files/md/MdFunctions";import"react-icons/md";import"react-icons/rx";import"react-icons/tfi";import"react-tiny-popover";import"react-dom";import"react-tooltip";import"axios";import"lodash.clonedeep";import"react-autosuggest";import"react-speech-recognition";import"dayjs";import"dayjs/plugin/advancedFormat";import"dayjs/plugin/localizedFormat";import"dayjs/plugin/utc";import"dayjs/plugin/timezone";import"dayjs/plugin/isBetween";import"dayjs/plugin/weekOfYear";import"dayjs/plugin/quarterOfYear";import"dayjs/plugin/customParseFormat";import"dayjs/plugin/isSameOrBefore";import"dayjs/plugin/isToday";import"dayjs/plugin/minMax";import"react-perfect-scrollbar";import"react-perfect-scrollbar/dist/css/styles.css";import"classnames";import"react/jsx-runtime";import"d3-array";import"react-localization";import"react-grid-layout";import"pako";import"react-splitter-layout";import"react-modal";import"lodash.isempty";import"react-dom/server";import"tabulator-tables";import"lodash.throttle";import"tabulator-tables/dist/css/tabulator.min.css";import"tabulator-tables/dist/css/tabulator_bootstrap3.min.css";import"d3-shape";import"d3-selection";import"d3-transition";import"d3-axis";import"d3-scale";import"react-slider";import"jstat";import"d3-force";import"d3-zoom";import"d3-sankey";import"d3-hierarchy";import"lodash.filter";import"sql-formatter";import"parse-num";import"react-toastify";import"react-toastify/dist/ReactToastify.css";import"react-markdown";import"remark-breaks";import"lodash.debounce";import"react-grid-layout/css/styles.css";import"react-splitter-layout/lib/index.css";import"rc-drawer";import"react-infinite-scroller";import"lodash.has";import"rc-drawer/assets/index.css";import"recordrtc";
|
package/dist/autoql.esm.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-autoql",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.40.0",
|
|
4
4
|
"description": "React Widget Library",
|
|
5
5
|
"main": "dist/autoql.cjs.js",
|
|
6
6
|
"module": "dist/autoql.esm.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@react-icons/all-files": "4.1.0",
|
|
62
|
-
"autoql-fe-utils": "1.14.
|
|
62
|
+
"autoql-fe-utils": "1.14.1",
|
|
63
63
|
"axios": "^1.16.0",
|
|
64
64
|
"caniuse-lite": "1.0.30001692",
|
|
65
65
|
"classnames": "2.5.1",
|
|
@@ -164,6 +164,8 @@
|
|
|
164
164
|
"npm-watch": "0.11.0",
|
|
165
165
|
"postcss": "^8.5.14",
|
|
166
166
|
"prettier": "2.7.1",
|
|
167
|
+
"react": "16.14.0",
|
|
168
|
+
"react-dom": "16.14.0",
|
|
167
169
|
"rimraf": "2.7.1",
|
|
168
170
|
"rollup": "^2.80.0",
|
|
169
171
|
"rollup-plugin-gzip": "3.0.0",
|
package/src/index.d.ts
CHANGED
|
@@ -334,6 +334,7 @@ export interface DataMessengerProps {
|
|
|
334
334
|
enableQueryQuickStartTopics?: boolean
|
|
335
335
|
enableQueryInputTopics?: boolean
|
|
336
336
|
enableQuerySuggestions?: boolean
|
|
337
|
+
enableQuerySuggestionsOnError?: boolean
|
|
337
338
|
disableColumnSelectionForDataExplorer?: boolean
|
|
338
339
|
enableMagicWand?: boolean
|
|
339
340
|
showMagicWandQuoteButton?: boolean
|
|
@@ -624,12 +625,23 @@ export interface ReportFilterLock {
|
|
|
624
625
|
show_message?: string
|
|
625
626
|
}
|
|
626
627
|
|
|
628
|
+
// Who approved a report and when (enableApproval, RW-372), and what they approved: `fingerprint` is the report's
|
|
629
|
+
// content as it was then, and its id. The approval holds only while both are the same.
|
|
630
|
+
export interface ReportApproval {
|
|
631
|
+
name: string
|
|
632
|
+
// ISO 8601.
|
|
633
|
+
at: string
|
|
634
|
+
fingerprint: string
|
|
635
|
+
}
|
|
636
|
+
|
|
627
637
|
export interface Report {
|
|
628
638
|
schemaVersion: number
|
|
629
639
|
title: string
|
|
630
640
|
page: ReportPageSetup
|
|
631
641
|
// What the report is for: a household, say, or several. None asks every question for everything.
|
|
632
642
|
sessionFilterLocks?: ReportFilterLock[]
|
|
643
|
+
// With enableApproval: the report's approval, kept in the report itself.
|
|
644
|
+
approval?: ReportApproval
|
|
633
645
|
blocks: ReportBlock[]
|
|
634
646
|
}
|
|
635
647
|
|
|
@@ -741,6 +753,17 @@ export interface ReportBuilderProps {
|
|
|
741
753
|
// opens. Without it, the picker searches AutoQL's values.
|
|
742
754
|
loadFilterLockSuggestions?: () => Promise<string[]>
|
|
743
755
|
filterLockLabels?: ReportFilterLockLabels
|
|
756
|
+
// Reports are approved before they go out (RW-372): until it's approved, a report prints with DRAFT across every
|
|
757
|
+
// page. Report options › Approve… (and Approve… in the preview) asks "I have reviewed and approved this report.", and
|
|
758
|
+
// an approved report prints "Prepared by {name}, {date}" at the foot of every page instead. It opens as it prints,
|
|
759
|
+
// locked: Edit… asks first, and returns it to draft. Off by default.
|
|
760
|
+
enableApproval?: boolean
|
|
761
|
+
// With enableApproval: the signed-in user's name, which approvals are made under. Without one, nothing can be
|
|
762
|
+
// approved.
|
|
763
|
+
approverName?: string
|
|
764
|
+
// With enableApproval: the report's id where you keep it. An approval holds for this report only, as it was
|
|
765
|
+
// approved: a copy of it, or the report changed anywhere, is a draft.
|
|
766
|
+
reportId?: string
|
|
744
767
|
className?: string
|
|
745
768
|
}
|
|
746
769
|
|
|
@@ -1096,6 +1119,8 @@ export declare function deleteReportTag(options: ReportsCall & { id: string }):
|
|
|
1096
1119
|
export interface ReportsNotice {
|
|
1097
1120
|
tone: 'error' | 'info'
|
|
1098
1121
|
text: string
|
|
1122
|
+
// A batch being made from a template (RW-371) says how it's going with Stop.
|
|
1123
|
+
action?: { label: string; onClick: () => void }
|
|
1099
1124
|
}
|
|
1100
1125
|
|
|
1101
1126
|
// What renderHome draws the home page from.
|
|
@@ -1190,6 +1215,15 @@ export interface ReportsProps {
|
|
|
1190
1215
|
enableFilterLocks?: boolean
|
|
1191
1216
|
loadFilterLockSuggestions?: () => Promise<string[]>
|
|
1192
1217
|
filterLockLabels?: ReportFilterLockLabels
|
|
1218
|
+
// Reports are approved before they go out (RW-372; see ReportBuilder's enableApproval), under approverName, the
|
|
1219
|
+
// signed-in user's name. Templates, and reports started from them, start as drafts. Off by default.
|
|
1220
|
+
enableApproval?: boolean
|
|
1221
|
+
approverName?: string
|
|
1222
|
+
// With enableFilterLocks: the most reports one batch from a template may make (a report for each household), so it
|
|
1223
|
+
// can differ by role; null for no limit. 50 by default (RW-371).
|
|
1224
|
+
batchLimit?: number | null
|
|
1225
|
+
// Told when a batch of reports starts (true) and once it's over (false): ask before leaving while one runs.
|
|
1226
|
+
onBatchRunningChange?: (running: boolean) => void
|
|
1193
1227
|
// Passed on to each report's ReportBuilder.
|
|
1194
1228
|
branding?: ReportBranding
|
|
1195
1229
|
enableBranding?: boolean
|
|
@@ -1212,6 +1246,10 @@ export declare class Reports extends React.Component<ReportsProps> {
|
|
|
1212
1246
|
hasUnsavedChanges(): boolean
|
|
1213
1247
|
// Saves the report shown, now.
|
|
1214
1248
|
saveNow(): void
|
|
1249
|
+
// Whether a batch of reports is being made from a template here (RW-371).
|
|
1250
|
+
isBatchRunning(): boolean
|
|
1251
|
+
// Stops it: the reports under way are finished, and no more are started.
|
|
1252
|
+
stopBatch(): void
|
|
1215
1253
|
// Lists the reports again.
|
|
1216
1254
|
reload(): void
|
|
1217
1255
|
}
|
|
@@ -1248,6 +1286,8 @@ export interface AddToReportDialogProps {
|
|
|
1248
1286
|
onClose: () => void
|
|
1249
1287
|
// After it's added (before onClose): which report, and whether it was made for this.
|
|
1250
1288
|
onAdded?: (added: { id: string; title: string; created: boolean }) => void
|
|
1289
|
+
// With Reports' enableApproval: a report chosen that's approved says adding to it returns it to draft.
|
|
1290
|
+
enableApproval?: boolean
|
|
1251
1291
|
}
|
|
1252
1292
|
|
|
1253
1293
|
// "Add to Report…": adds a block to the end of one of the user's reports, or to a new one.
|