@vritti/quantum-ui 0.6.2 → 0.6.4
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/ActivePoints.js +1 -1
- package/dist/ActiveShapeUtils.js +1 -1
- package/dist/Alert.js +2 -1
- package/dist/Alert.js.map +1 -1
- package/dist/AreaChart.js +48 -19
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarChart.js +38 -10
- package/dist/BarChart.js.map +1 -1
- package/dist/CartesianChart.js +1 -1
- package/dist/ChartEmpty.js +8 -0
- package/dist/ChartEmpty.js.map +1 -0
- package/dist/{Chart.js → ChartFrame.js} +72 -2
- package/dist/ChartFrame.js.map +1 -0
- package/dist/CurrencyFieldFilter.js +2 -1
- package/dist/CurrencyFieldFilter.js.map +1 -1
- package/dist/DateRangePicker.js +2 -1
- package/dist/DateRangePicker.js.map +1 -1
- package/dist/IconSelect.js +1916 -1945
- package/dist/IconSelect.js.map +1 -1
- package/dist/LineChart.js +116 -107
- package/dist/LineChart.js.map +1 -1
- package/dist/PieChart.js +37 -15
- package/dist/PieChart.js.map +1 -1
- package/dist/PolarChart.js +1 -1
- package/dist/RadarChart.js +44 -17
- package/dist/RadarChart.js.map +1 -1
- package/dist/RadialChart.js +36 -11
- package/dist/RadialChart.js.map +1 -1
- package/dist/Select.js +48 -7
- package/dist/Select.js.map +1 -1
- package/dist/SelectFilter.js +80 -25
- package/dist/SelectFilter.js.map +1 -1
- package/dist/SingleSelect.js +82 -7
- package/dist/SingleSelect.js.map +1 -1
- package/dist/Sonner.js +2 -1
- package/dist/Sonner.js.map +1 -1
- package/dist/ValueFilter.js +22 -6
- package/dist/ValueFilter.js.map +1 -1
- package/dist/ViewTabs.js.map +1 -1
- package/dist/assets/quantum-ui.css +132 -17
- package/dist/bindFilters.js +37 -0
- package/dist/bindFilters.js.map +1 -0
- package/dist/components/Chart.js +125 -0
- package/dist/components/Chart.js.map +1 -0
- package/dist/components/ContextBar.js +16 -0
- package/dist/components/ContextBar.js.map +1 -0
- package/dist/components/DataTable.js +1 -1
- package/dist/components/DateFilter.js +2 -1
- package/dist/components/DateFilter.js.map +1 -1
- package/dist/conditions.js +651 -0
- package/dist/conditions.js.map +1 -0
- package/dist/contextAnchor.js +3 -2
- package/dist/contextAnchor.js.map +1 -1
- package/dist/getRadiusAndStrokeWidthFromDot.js +1 -1
- package/dist/getZIndexFromUnknown.js +1 -1
- package/dist/graphicalItemSelectors.js +1 -1
- package/dist/hooks/index.js +1 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index7.js +2 -1
- package/dist/index7.js.map +1 -1
- package/dist/info.js +19 -0
- package/dist/info.js.map +1 -0
- package/dist/lib/components/AreaChart/AreaChart.d.ts +12 -15
- package/dist/lib/components/AreaChart/AreaChart.d.ts.map +1 -1
- package/dist/lib/components/AreaChart/index.d.ts +0 -1
- package/dist/lib/components/AreaChart/index.d.ts.map +1 -1
- package/dist/lib/components/BarChart/BarChart.d.ts +11 -14
- package/dist/lib/components/BarChart/BarChart.d.ts.map +1 -1
- package/dist/lib/components/BarChart/index.d.ts +0 -1
- package/dist/lib/components/BarChart/index.d.ts.map +1 -1
- package/dist/lib/components/Chart/ChartEmpty.d.ts +3 -0
- package/dist/lib/components/Chart/ChartEmpty.d.ts.map +1 -0
- package/dist/lib/components/Chart/ChartFrame.d.ts +16 -0
- package/dist/lib/components/Chart/ChartFrame.d.ts.map +1 -0
- package/dist/lib/components/Chart/ChartKey.d.ts +11 -0
- package/dist/lib/components/Chart/ChartKey.d.ts.map +1 -0
- package/dist/lib/components/Chart/ChartStates.d.ts +12 -0
- package/dist/lib/components/Chart/ChartStates.d.ts.map +1 -0
- package/dist/lib/components/Chart/colorSeries.d.ts +6 -0
- package/dist/lib/components/Chart/colorSeries.d.ts.map +1 -0
- package/dist/lib/components/Chart/index.d.ts +5 -0
- package/dist/lib/components/Chart/index.d.ts.map +1 -0
- package/dist/lib/components/Chart/types.d.ts +36 -0
- package/dist/lib/components/Chart/types.d.ts.map +1 -0
- package/dist/lib/components/Chart/useChart.d.ts +23 -0
- package/dist/lib/components/Chart/useChart.d.ts.map +1 -0
- package/dist/lib/components/Chart/utils.d.ts +7 -0
- package/dist/lib/components/Chart/utils.d.ts.map +1 -0
- package/dist/lib/components/ContextBar/ContextBar.d.ts +10 -0
- package/dist/lib/components/ContextBar/ContextBar.d.ts.map +1 -0
- package/dist/lib/components/ContextBar/index.d.ts +3 -0
- package/dist/lib/components/ContextBar/index.d.ts.map +1 -0
- package/dist/lib/components/ContextBar/useContextSave.d.ts +15 -0
- package/dist/lib/components/ContextBar/useContextSave.d.ts.map +1 -0
- package/dist/lib/components/ContextBar/useContextState.d.ts +22 -0
- package/dist/lib/components/ContextBar/useContextState.d.ts.map +1 -0
- package/dist/lib/components/ContextBar/useSettlingFields.d.ts +5 -0
- package/dist/lib/components/ContextBar/useSettlingFields.d.ts.map +1 -0
- package/dist/lib/components/CurrencyField/CurrencyFieldFilter.d.ts +2 -1
- package/dist/lib/components/CurrencyField/CurrencyFieldFilter.d.ts.map +1 -1
- package/dist/lib/components/DataTable/DataTable.d.ts +1 -1
- package/dist/lib/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/lib/components/DataTable/cells/cells.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableColumnHeader.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableFilters.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableLoadStates.d.ts +9 -0
- package/dist/lib/components/DataTable/components/DataTableLoadStates.d.ts.map +1 -0
- package/dist/lib/components/DataTable/components/DataTablePagination.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableSearch.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableSelectionBar.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableViewOptions.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/DataTableViewsMenu.d.ts.map +1 -1
- package/dist/lib/components/DataTable/components/bindFilters.d.ts +16 -0
- package/dist/lib/components/DataTable/components/bindFilters.d.ts.map +1 -0
- package/dist/lib/components/DataTable/hooks/useAutoUpsert.d.ts +1 -2
- package/dist/lib/components/DataTable/hooks/useAutoUpsert.d.ts.map +1 -1
- package/dist/lib/components/DataTable/hooks/useDataTable.d.ts +17 -7
- package/dist/lib/components/DataTable/hooks/useDataTable.d.ts.map +1 -1
- package/dist/lib/components/DataTable/index.d.ts +3 -4
- package/dist/lib/components/DataTable/index.d.ts.map +1 -1
- package/dist/lib/components/DataTable/store/store.d.ts +13 -11
- package/dist/lib/components/DataTable/store/store.d.ts.map +1 -1
- package/dist/lib/components/DataTable/store/useTableSlice.d.ts +7 -5
- package/dist/lib/components/DataTable/store/useTableSlice.d.ts.map +1 -1
- package/dist/lib/components/DataTable/types.d.ts +31 -6
- package/dist/lib/components/DataTable/types.d.ts.map +1 -1
- package/dist/lib/components/DataTable/utils.d.ts +1 -1
- package/dist/lib/components/DataTable/utils.d.ts.map +1 -1
- package/dist/lib/components/DateFilter/DateFilter.d.ts +2 -1
- package/dist/lib/components/DateFilter/DateFilter.d.ts.map +1 -1
- package/dist/lib/components/DateRangePicker/DateRangeFilter.d.ts +2 -1
- package/dist/lib/components/DateRangePicker/DateRangeFilter.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/button.d.ts +1 -1
- package/dist/lib/components/LineChart/LineChart.d.ts +17 -22
- package/dist/lib/components/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/components/LineChart/LineChartEmpty.d.ts +2 -7
- package/dist/lib/components/LineChart/LineChartEmpty.d.ts.map +1 -1
- package/dist/lib/components/LineChart/index.d.ts +1 -3
- package/dist/lib/components/LineChart/index.d.ts.map +1 -1
- package/dist/lib/components/PieChart/PieChart.d.ts +9 -8
- package/dist/lib/components/PieChart/PieChart.d.ts.map +1 -1
- package/dist/lib/components/PieChart/index.d.ts +0 -1
- package/dist/lib/components/PieChart/index.d.ts.map +1 -1
- package/dist/lib/components/RadarChart/RadarChart.d.ts +10 -13
- package/dist/lib/components/RadarChart/RadarChart.d.ts.map +1 -1
- package/dist/lib/components/RadarChart/index.d.ts +0 -1
- package/dist/lib/components/RadarChart/index.d.ts.map +1 -1
- package/dist/lib/components/RadialChart/RadialChart.d.ts +11 -8
- package/dist/lib/components/RadialChart/RadialChart.d.ts.map +1 -1
- package/dist/lib/components/RadialChart/index.d.ts +0 -1
- package/dist/lib/components/RadialChart/index.d.ts.map +1 -1
- package/dist/lib/components/Select/Select.d.ts.map +1 -1
- package/dist/lib/components/Select/SelectFilter.d.ts +10 -0
- package/dist/lib/components/Select/SelectFilter.d.ts.map +1 -1
- package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts +1 -0
- package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts +2 -1
- package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts.map +1 -1
- package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts +1 -0
- package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts +1 -0
- package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts.map +1 -1
- package/dist/lib/components/Select/contextAnchor.d.ts +1 -0
- package/dist/lib/components/Select/contextAnchor.d.ts.map +1 -1
- package/dist/lib/components/Select/hooks/useSelect.d.ts +4 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/types.d.ts +1 -0
- package/dist/lib/components/Select/types.d.ts.map +1 -1
- package/dist/lib/components/ValueFilter/ValueFilter.d.ts +16 -4
- package/dist/lib/components/ValueFilter/ValueFilter.d.ts.map +1 -1
- package/dist/lib/components/ViewTabs/ViewTabs.d.ts +3 -3
- package/dist/lib/components/ViewTabs/ViewTabs.d.ts.map +1 -1
- package/dist/lib/config/index.d.ts +1 -0
- package/dist/lib/config/index.d.ts.map +1 -1
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/index.d.ts.map +1 -1
- package/dist/lib/hooks/useOrgCountryCode.d.ts +2 -0
- package/dist/lib/hooks/useOrgCountryCode.d.ts.map +1 -0
- package/dist/lib/selects/icon/IconSelect.d.ts.map +1 -1
- package/dist/lib/services/context-states.service.d.ts +4 -0
- package/dist/lib/services/context-states.service.d.ts.map +1 -0
- package/dist/lib/services/table-views.service.d.ts +7 -5
- package/dist/lib/services/table-views.service.d.ts.map +1 -1
- package/dist/lib/types/api-response.d.ts +2 -2
- package/dist/lib/types/api-response.d.ts.map +1 -1
- package/dist/lib/types/{table-filter.d.ts → conditions.d.ts} +1 -23
- package/dist/lib/types/conditions.d.ts.map +1 -0
- package/dist/lib/types/table-state.d.ts +28 -0
- package/dist/lib/types/table-state.d.ts.map +1 -0
- package/dist/lib/utils/axios.d.ts +1 -0
- package/dist/lib/utils/axios.d.ts.map +1 -1
- package/dist/lib/utils/conditions.d.ts +11 -0
- package/dist/lib/utils/conditions.d.ts.map +1 -0
- package/dist/lib/utils/country.d.ts +3 -0
- package/dist/lib/utils/country.d.ts.map +1 -0
- package/dist/lib/utils/filter.d.ts +22 -0
- package/dist/lib/utils/filter.d.ts.map +1 -0
- package/dist/lib/utils/timezone.d.ts +1 -0
- package/dist/lib/utils/timezone.d.ts.map +1 -1
- package/dist/polarScaleSelectors.js +1 -1
- package/dist/shadcn/optionKeys.d.ts +4 -0
- package/dist/shadcn/optionKeys.d.ts.map +1 -0
- package/dist/shadcn/shadcnBadge/Badge.d.ts +1 -1
- package/dist/shadcn/shadcnButton/Button.d.ts +2 -2
- package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts +1 -1
- package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts.map +1 -1
- package/dist/shadcn/shadcnSingleSelect/single-select.d.ts +1 -1
- package/dist/shadcn/shadcnSingleSelect/single-select.d.ts.map +1 -1
- package/dist/table-properties.js +64 -33
- package/dist/table-properties.js.map +1 -1
- package/dist/timezone.js +4 -1
- package/dist/timezone.js.map +1 -1
- package/dist/tooltipContext.js +1 -1
- package/dist/triangle-alert.js +1 -16
- package/dist/triangle-alert.js.map +1 -1
- package/dist/types/conditions.js +2 -0
- package/dist/types/conditions.js.map +1 -0
- package/dist/types/{table-filter.js → table-state.js} +2 -2
- package/dist/types/table-state.js.map +1 -0
- package/dist/useContextState.js +201 -0
- package/dist/useContextState.js.map +1 -0
- package/dist/useDataTable.js +627 -966
- package/dist/useDataTable.js.map +1 -1
- package/dist/useWorkspaceCurrency.js +27 -2
- package/dist/useWorkspaceCurrency.js.map +1 -1
- package/dist/useWorkspaceTimeZone.js +2 -2
- package/dist/useWorkspaceTimeZone.js.map +1 -1
- package/dist/utils/axios.js +5 -1
- package/dist/utils/axios.js.map +1 -1
- package/dist/utils/country.js +20 -0
- package/dist/utils/country.js.map +1 -0
- package/dist/utils/filter.js +21 -0
- package/dist/utils/filter.js.map +1 -0
- package/dist/utils/format.js +2 -2
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/timezone.js +1 -1
- package/dist/utils2.js +6 -0
- package/dist/utils2.js.map +1 -0
- package/package.json +26 -4
- package/dist/Chart.js.map +0 -1
- package/dist/lib/components/DataTable/components/FilterWrapper.d.ts +0 -21
- package/dist/lib/components/DataTable/components/FilterWrapper.d.ts.map +0 -1
- package/dist/lib/types/table-filter.d.ts.map +0 -1
- package/dist/types/table-filter.js.map +0 -1
- package/dist/useCategoricalColors.js +0 -20
- package/dist/useCategoricalColors.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions.js","sources":["../node_modules/.pnpm/fast-equals@6.0.0/node_modules/fast-equals/dist/es/index.mjs","../lib/utils/conditions.ts"],"sourcesContent":["const { getOwnPropertyNames, getOwnPropertySymbols } = Object;\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst { hasOwnProperty } = Object.prototype;\n/**\n * Combine two comparators into a single comparators.\n */\nfunction combineComparators(comparatorA, comparatorB) {\n return function isEqual(a, b, state) {\n return comparatorA(a, b, state) && comparatorB(a, b, state);\n };\n}\n/**\n * Wrap the provided `areItemsEqual` method to manage the circular state, allowing\n * for circular references to be safely included in the comparison without creating\n * stack overflows.\n */\nfunction createIsCircular(areItemsEqual) {\n return function isCircular(a, b, state) {\n if (!a || !b || typeof a !== 'object' || typeof b !== 'object') {\n return areItemsEqual(a, b, state);\n }\n const { cache } = state;\n const cachedA = cache.get(a);\n const cachedB = cache.get(b);\n if (cachedA && cachedB) {\n return cachedA === b && cachedB === a;\n }\n cache.set(a, b);\n cache.set(b, a);\n const result = areItemsEqual(a, b, state);\n cache.delete(a);\n cache.delete(b);\n return result;\n };\n}\n/**\n * Get the properties to strictly examine, which include both own properties that are\n * not enumerable and symbol properties.\n */\nfunction getStrictProperties(object) {\n return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));\n}\n/**\n * Whether the object contains the property passed as an own property.\n */\nconst hasOwn = \n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nObject.hasOwn || ((object, property) => hasOwnProperty.call(object, property));\n\nconst PREACT_VNODE = '__v';\nconst PREACT_OWNER = '__o';\nconst REACT_OWNER = '_owner';\nconst { getOwnPropertyDescriptor, keys } = Object;\n/**\n * Whether the values passed are equal based on a [SameValue](https://262.ecma-international.org/7.0/#sec-samevalue) basis.\n * Simplified, this maps to if the two values are referentially equal to one another (`a === b`) or both are `NaN`.\n *\n * @note\n * When available in the environment, this is just a re-export of the global\n * [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is) method.\n */\nconst sameValueEqual = \n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nObject.is\n || function sameValueEqual(a, b) {\n return a === b ? a !== 0 || 1 / a === 1 / b : a !== a && b !== b;\n };\n/**\n * Whether the values passed are equal based on a [SameValue](https://262.ecma-international.org/7.0/#sec-samevaluezero) basis.\n * Simplified, this maps to if the two values are referentially equal to one another (`a === b`), both are `NaN`, or both\n * are either positive or negative zero.\n */\nfunction sameValueZeroEqual(a, b) {\n return a === b || (a !== a && b !== b);\n}\n/**\n * Whether the values passed are equal based on a\n * [Strict Equality Comparison](https://262.ecma-international.org/7.0/#sec-strict-equality-comparison) basis.\n * Simplified, this maps to if the two values are referentially equal to one another (`a === b`).\n *\n * @note\n * This is mainly available as a convenience function, such as being a default when a function to determine equality between\n * two objects is used.\n */\nfunction strictEqual(a, b) {\n return a === b;\n}\n/**\n * Whether the array buffers are equal in value.\n */\nfunction areArrayBuffersEqual(a, b) {\n return a.byteLength === b.byteLength && areTypedArraysEqual(new Uint8Array(a), new Uint8Array(b));\n}\n/**\n * Whether the arrays are equal in value.\n */\nfunction areArraysEqual(a, b, state) {\n let index = a.length;\n if (b.length !== index) {\n return false;\n }\n while (index-- > 0) {\n if (!state.equals(a[index], b[index], index, index, a, b, state)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the dataviews are equal in value.\n */\nfunction areDataViewsEqual(a, b) {\n return (a.byteLength === b.byteLength\n && areTypedArraysEqual(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.byteLength)));\n}\n/**\n * Whether the dates passed are equal in value.\n */\nfunction areDatesEqual(a, b) {\n return sameValueEqual(a.getTime(), b.getTime());\n}\n/**\n * Whether the errors passed are equal in value.\n */\nfunction areErrorsEqual(a, b) {\n return a.name === b.name && a.message === b.message && a.cause === b.cause && a.stack === b.stack;\n}\n/**\n * Whether the `Map`s are equal in value.\n */\nfunction areMapsEqual(a, b, state) {\n const size = a.size;\n if (size !== b.size) {\n return false;\n }\n if (!size) {\n return true;\n }\n const matchedIndices = new Array(size);\n const aIterable = a.entries();\n let aResult;\n let bResult;\n let index = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((aResult = aIterable.next())) {\n if (aResult.done) {\n break;\n }\n const bIterable = b.entries();\n let hasMatch = false;\n let matchIndex = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((bResult = bIterable.next())) {\n if (bResult.done) {\n break;\n }\n if (matchedIndices[matchIndex]) {\n matchIndex++;\n continue;\n }\n const aEntry = aResult.value;\n const bEntry = bResult.value;\n if (state.equals(aEntry[0], bEntry[0], index, matchIndex, a, b, state)\n && state.equals(aEntry[1], bEntry[1], aEntry[0], bEntry[0], a, b, state)) {\n hasMatch = matchedIndices[matchIndex] = true;\n break;\n }\n matchIndex++;\n }\n if (!hasMatch) {\n return false;\n }\n index++;\n }\n return true;\n}\n/**\n * Whether the objects are equal in value.\n */\nfunction areObjectsEqual(a, b, state) {\n const properties = keys(a);\n let index = properties.length;\n if (keys(b).length !== index) {\n return false;\n }\n // Decrementing `while` showed faster results than either incrementing or\n // decrementing `for` loop and than an incrementing `while` loop. Declarative\n // methods like `some` / `every` were not used to avoid incurring the garbage\n // cost of anonymous callbacks.\n while (index-- > 0) {\n if (!isPropertyEqual(a, b, state, properties[index])) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the objects are equal in value with strict property checking.\n */\nfunction areObjectsEqualStrict(a, b, state) {\n const properties = getStrictProperties(a);\n let index = properties.length;\n if (getStrictProperties(b).length !== index) {\n return false;\n }\n let property;\n let descriptorA;\n let descriptorB;\n // Decrementing `while` showed faster results than either incrementing or\n // decrementing `for` loop and than an incrementing `while` loop. Declarative\n // methods like `some` / `every` were not used to avoid incurring the garbage\n // cost of anonymous callbacks.\n while (index-- > 0) {\n property = properties[index];\n if (!isPropertyEqual(a, b, state, property)) {\n return false;\n }\n descriptorA = getOwnPropertyDescriptor(a, property);\n descriptorB = getOwnPropertyDescriptor(b, property);\n if ((descriptorA || descriptorB)\n && (!descriptorA\n || !descriptorB\n || descriptorA.configurable !== descriptorB.configurable\n || descriptorA.enumerable !== descriptorB.enumerable\n || descriptorA.writable !== descriptorB.writable)) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the primitive wrappers passed are equal in value.\n */\nfunction arePrimitiveWrappersEqual(a, b) {\n return sameValueEqual(a.valueOf(), b.valueOf());\n}\n/**\n * Whether the regexps passed are equal in value.\n */\nfunction areRegExpsEqual(a, b) {\n return a.source === b.source && a.flags === b.flags;\n}\n/**\n * Whether the `Set`s are equal in value.\n */\nfunction areSetsEqual(a, b, state) {\n const size = a.size;\n if (size !== b.size) {\n return false;\n }\n if (!size) {\n return true;\n }\n const matchedIndices = new Array(size);\n const aIterable = a.values();\n let aResult;\n let bResult;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((aResult = aIterable.next())) {\n if (aResult.done) {\n break;\n }\n const bIterable = b.values();\n let hasMatch = false;\n let matchIndex = 0;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n while ((bResult = bIterable.next())) {\n if (bResult.done) {\n break;\n }\n if (!matchedIndices[matchIndex]\n && state.equals(aResult.value, bResult.value, aResult.value, bResult.value, a, b, state)) {\n hasMatch = matchedIndices[matchIndex] = true;\n break;\n }\n matchIndex++;\n }\n if (!hasMatch) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the TypedArray instances are equal in value.\n */\nfunction areTypedArraysEqual(a, b) {\n let index = a.byteLength;\n if (b.byteLength !== index || a.byteOffset !== b.byteOffset) {\n return false;\n }\n while (index-- > 0) {\n if (a[index] !== b[index]) {\n return false;\n }\n }\n return true;\n}\n/**\n * Whether the URL instances are equal in value.\n */\nfunction areUrlsEqual(a, b) {\n return (a.hostname === b.hostname\n && a.pathname === b.pathname\n && a.protocol === b.protocol\n && a.port === b.port\n && a.hash === b.hash\n && a.username === b.username\n && a.password === b.password);\n}\nfunction isPropertyEqual(a, b, state, property) {\n if ((property === REACT_OWNER || property === PREACT_OWNER || property === PREACT_VNODE)\n && (a.$$typeof || b.$$typeof)) {\n return true;\n }\n return hasOwn(b, property) && state.equals(a[property], b[property], property, property, a, b, state);\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst toString = Object.prototype.toString;\n/**\n * Create a comparator method based on the type-specific equality comparators passed.\n */\nfunction createEqualityComparator(config) {\n const supportedComparatorMap = createSupportedComparatorMap(config);\n const { areArraysEqual, areDatesEqual, areFunctionsEqual, areMapsEqual, areNumbersEqual, areObjectsEqual, areRegExpsEqual, areSetsEqual, getUnsupportedCustomComparator, } = config;\n /**\n * compare the value of the two objects and return true if they are equivalent in values\n */\n return function comparator(a, b, state) {\n // If the items are strictly equal, no need to do a value comparison.\n if (a === b) {\n return true;\n }\n // If either of the items are nullish and fail the strictly equal check\n // above, then they must be unequal.\n if (a == null || b == null) {\n return false;\n }\n const type = typeof a;\n if (type !== typeof b) {\n return false;\n }\n if (type !== 'object') {\n if (type === 'number' || type === 'bigint') {\n return areNumbersEqual(a, b, state);\n }\n if (type === 'function') {\n return areFunctionsEqual(a, b, state);\n }\n // If a primitive value that is not strictly equal, it must be unequal.\n return false;\n }\n const constructor = a.constructor;\n // Checks are listed in order of commonality of use-case:\n // 1. Common complex object types (plain object, array)\n // 2. Common data values (date, regexp)\n // 3. Less-common complex object types (map, set)\n // 4. Less-common data values (promise, primitive wrappers)\n // Inherently this is both subjective and assumptive, however\n // when reviewing comparable libraries in the wild this order\n // appears to be generally consistent.\n // Constructors should match, otherwise there is potential for false positives\n // between class and subclass or custom object and POJO.\n if (constructor !== b.constructor) {\n return false;\n }\n // Try to fast-path equality checks for other complex object types in the\n // same realm to avoid capturing the string tag. Strict equality is used\n // instead of `instanceof` because it is more performant for the common\n // use-case. If someone is creating a subclass from a native class, it will be\n // handled with the string tag comparison.\n if (constructor === Object) {\n return areObjectsEqual(a, b, state);\n }\n if (constructor === Array) {\n return areArraysEqual(a, b, state);\n }\n if (constructor === Date) {\n return areDatesEqual(a, b, state);\n }\n if (constructor === RegExp) {\n return areRegExpsEqual(a, b, state);\n }\n if (constructor === Map) {\n return areMapsEqual(a, b, state);\n }\n if (constructor === Set) {\n return areSetsEqual(a, b, state);\n }\n if (constructor === Promise) {\n // Avoid tag checks for promise values, since we know if they are not referentially equal\n // then they are not equal.\n return false;\n }\n // `isArray()` works on subclasses and is cross-realm, so we can avoid capturing\n // the string tag or doing an `instanceof` in edge cases.\n if (Array.isArray(a)) {\n return areArraysEqual(a, b, state);\n }\n // Since this is a custom object, capture the string tag to determining its type.\n // This is reasonably performant in modern environments like v8 and SpiderMonkey.\n const tag = toString.call(a);\n const supportedComparator = supportedComparatorMap[tag];\n if (supportedComparator) {\n return supportedComparator(a, b, state);\n }\n const unsupportedCustomComparator = getUnsupportedCustomComparator && getUnsupportedCustomComparator(a, b, state, tag);\n if (unsupportedCustomComparator) {\n return unsupportedCustomComparator(a, b, state);\n }\n // If not matching any tags that require a specific type of comparison, then we hard-code false because\n // the only thing remaining is strict equality, which has already been compared. This is for a few reasons:\n // - Certain types that cannot be introspected (e.g., `WeakMap`). For these types, this is the only\n // comparison that can be made.\n // - For types that can be introspected but do not have an objective definition of what\n // equality is (`Error`, etc.), the subjective decision is to be conservative and strictly compare.\n // In all cases, these decisions should be reevaluated based on changes to the language and\n // common development practices.\n return false;\n };\n}\n/**\n * Create the configuration object used for building comparators.\n */\nfunction createEqualityComparatorConfig({ circular, createCustomConfig, strict, }) {\n let config = {\n areArrayBuffersEqual,\n areArraysEqual: strict ? areObjectsEqualStrict : areArraysEqual,\n areDataViewsEqual,\n areDatesEqual: areDatesEqual,\n areErrorsEqual: areErrorsEqual,\n areFunctionsEqual: strictEqual,\n areMapsEqual: strict ? combineComparators(areMapsEqual, areObjectsEqualStrict) : areMapsEqual,\n areNumbersEqual: sameValueEqual,\n areObjectsEqual: strict ? areObjectsEqualStrict : areObjectsEqual,\n arePrimitiveWrappersEqual: arePrimitiveWrappersEqual,\n areRegExpsEqual: areRegExpsEqual,\n areSetsEqual: strict ? combineComparators(areSetsEqual, areObjectsEqualStrict) : areSetsEqual,\n areTypedArraysEqual: strict\n ? combineComparators(areTypedArraysEqual, areObjectsEqualStrict)\n : areTypedArraysEqual,\n areUrlsEqual: areUrlsEqual,\n getUnsupportedCustomComparator: undefined,\n };\n if (createCustomConfig) {\n config = Object.assign({}, config, createCustomConfig(config));\n }\n if (circular) {\n const areArraysEqual = createIsCircular(config.areArraysEqual);\n const areMapsEqual = createIsCircular(config.areMapsEqual);\n const areObjectsEqual = createIsCircular(config.areObjectsEqual);\n const areSetsEqual = createIsCircular(config.areSetsEqual);\n config = Object.assign({}, config, {\n areArraysEqual,\n areMapsEqual,\n areObjectsEqual,\n areSetsEqual,\n });\n }\n return config;\n}\n/**\n * Default equality comparator pass-through, used as the standard `isEqual` creator for\n * use inside the built comparator.\n */\nfunction createInternalEqualityComparator(compare) {\n return function (a, b, _indexOrKeyA, _indexOrKeyB, _parentA, _parentB, state) {\n return compare(a, b, state);\n };\n}\n/**\n * Create the `isEqual` function used by the consuming application.\n */\nfunction createIsEqual({ circular, comparator, createState, equals, strict }) {\n if (createState) {\n return function isEqual(a, b) {\n const { cache = circular ? new WeakMap() : undefined, meta } = createState();\n return comparator(a, b, {\n cache,\n equals,\n meta,\n strict,\n });\n };\n }\n if (circular) {\n return function isEqual(a, b) {\n return comparator(a, b, {\n cache: new WeakMap(),\n equals,\n meta: undefined,\n strict,\n });\n };\n }\n const state = {\n cache: undefined,\n equals,\n meta: undefined,\n strict,\n };\n return function isEqual(a, b) {\n return comparator(a, b, state);\n };\n}\n/**\n * Create a map of `toString()` values to their respective handlers for `tag`-based lookups.\n */\nfunction createSupportedComparatorMap({ areArrayBuffersEqual, areArraysEqual, areDataViewsEqual, areDatesEqual, areErrorsEqual, areFunctionsEqual, areMapsEqual, areNumbersEqual, areObjectsEqual, arePrimitiveWrappersEqual, areRegExpsEqual, areSetsEqual, areTypedArraysEqual, areUrlsEqual, }) {\n return {\n '[object Arguments]': areObjectsEqual,\n '[object Array]': areArraysEqual,\n '[object ArrayBuffer]': areArrayBuffersEqual,\n '[object AsyncGeneratorFunction]': areFunctionsEqual,\n '[object BigInt]': areNumbersEqual,\n '[object BigInt64Array]': areTypedArraysEqual,\n '[object BigUint64Array]': areTypedArraysEqual,\n '[object Boolean]': arePrimitiveWrappersEqual,\n '[object DataView]': areDataViewsEqual,\n '[object Date]': areDatesEqual,\n // If an error tag, it should be tested explicitly. Like RegExp, the properties are not\n // enumerable, and therefore will give false positives if tested like a standard object.\n '[object Error]': areErrorsEqual,\n '[object Float16Array]': areTypedArraysEqual,\n '[object Float32Array]': areTypedArraysEqual,\n '[object Float64Array]': areTypedArraysEqual,\n '[object Function]': areFunctionsEqual,\n '[object GeneratorFunction]': areFunctionsEqual,\n '[object Int8Array]': areTypedArraysEqual,\n '[object Int16Array]': areTypedArraysEqual,\n '[object Int32Array]': areTypedArraysEqual,\n '[object Map]': areMapsEqual,\n '[object Number]': arePrimitiveWrappersEqual,\n '[object Object]': (a, b, state) => \n // The exception for value comparison is custom `Promise`-like class instances. These should\n // be treated the same as standard `Promise` objects, which means strict equality, and if\n // it reaches this point then that strict equality comparison has already failed.\n typeof a.then !== 'function' && typeof b.then !== 'function' && areObjectsEqual(a, b, state),\n // For RegExp, the properties are not enumerable, and therefore will give false positives if\n // tested like a standard object.\n '[object RegExp]': areRegExpsEqual,\n '[object Set]': areSetsEqual,\n '[object String]': arePrimitiveWrappersEqual,\n '[object URL]': areUrlsEqual,\n '[object Uint8Array]': areTypedArraysEqual,\n '[object Uint8ClampedArray]': areTypedArraysEqual,\n '[object Uint16Array]': areTypedArraysEqual,\n '[object Uint32Array]': areTypedArraysEqual,\n };\n}\n\n/**\n * Whether the items passed are deeply-equal in value.\n */\nconst deepEqual = createCustomEqual();\n/**\n * Whether the items passed are deeply-equal in value based on strict comparison.\n */\nconst strictDeepEqual = createCustomEqual({ strict: true });\n/**\n * Whether the items passed are deeply-equal in value, including circular references.\n */\nconst circularDeepEqual = createCustomEqual({ circular: true });\n/**\n * Whether the items passed are deeply-equal in value, including circular references,\n * based on strict comparison.\n */\nconst strictCircularDeepEqual = createCustomEqual({\n circular: true,\n strict: true,\n});\n/**\n * Whether the items passed are shallowly-equal in value.\n */\nconst shallowEqual = createCustomEqual({\n createInternalComparator: () => sameValueEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value based on strict comparison\n */\nconst strictShallowEqual = createCustomEqual({\n strict: true,\n createInternalComparator: () => sameValueEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value, including circular references.\n */\nconst circularShallowEqual = createCustomEqual({\n circular: true,\n createInternalComparator: () => sameValueEqual,\n});\n/**\n * Whether the items passed are shallowly-equal in value, including circular references,\n * based on strict comparison.\n */\nconst strictCircularShallowEqual = createCustomEqual({\n circular: true,\n createInternalComparator: () => sameValueEqual,\n strict: true,\n});\n/**\n * Create a custom equality comparison method.\n *\n * This can be done to create very targeted comparisons in extreme hot-path scenarios\n * where the standard methods are not performant enough, but can also be used to provide\n * support for legacy environments that do not support expected features like\n * `RegExp.prototype.flags` out of the box.\n */\nfunction createCustomEqual(options = {}) {\n const { circular = false, createInternalComparator: createCustomInternalComparator, createState, strict = false, } = options;\n const config = createEqualityComparatorConfig(options);\n const comparator = createEqualityComparator(config);\n const equals = createCustomInternalComparator\n ? createCustomInternalComparator(comparator)\n : createInternalEqualityComparator(comparator);\n return createIsEqual({ circular, comparator, createState, equals, strict });\n}\n\nexport { circularDeepEqual, circularShallowEqual, createCustomEqual, deepEqual, sameValueEqual, sameValueZeroEqual, shallowEqual, strictCircularDeepEqual, strictCircularShallowEqual, strictDeepEqual, strictEqual, strictShallowEqual };\n","import { deepEqual } from 'fast-equals';\nimport type { FilterCondition } from '../types/conditions';\n\n// Fills every default the context is missing. When the view is opening, a reset-on-open default also replaces whatever\n// value was saved for its field.\nexport function withDefaults(\n context: FilterCondition[],\n defaults: FilterCondition[],\n { isOpening = false, resetOnOpen = [] }: { isOpening?: boolean; resetOnOpen?: string[] } = {},\n): FilterCondition[] {\n let next = context;\n for (const defaultCondition of defaults) {\n const current = next.find((condition) => condition.field === defaultCondition.field);\n const isMissing = !current;\n const resetsOnOpen =\n isOpening && resetOnOpen.includes(defaultCondition.field) && !deepEqual(current, defaultCondition);\n if (isMissing || resetsOnOpen) {\n next = [...next.filter((condition) => condition.field !== defaultCondition.field), defaultCondition];\n }\n }\n return next;\n}\n\n// Sets (or clears, with null) one field, and clears the fields that depend on it\nexport function withChange(\n context: FilterCondition[],\n field: string,\n condition: FilterCondition | null,\n dependentFields: string[],\n): FilterCondition[] {\n const cleared = new Set([field, ...dependentFields]);\n const kept = context.filter((existing) => !cleared.has(existing.field));\n return condition ? [...kept, condition] : kept;\n}\n\n// The single value set on a field; undefined when the field is absent or holds a list\nexport function readValue(context: FilterCondition[], field: string): string | undefined {\n const value = context.find((condition) => condition.field === field)?.value;\n return typeof value === 'string' ? value : undefined;\n}\n\n// Every value set on a field: a list as it is, a single value as a list of one, an absent field as none\nexport function readValues(context: FilterCondition[], field: string): string[] {\n const value = context.find((condition) => condition.field === field)?.value;\n if (Array.isArray(value)) return value.map(String);\n return typeof value === 'string' && value ? [value] : [];\n}\n\n// Whether a context has a value for every default's field\nexport function hasEveryDefault(context: FilterCondition[], defaults: FilterCondition[]): boolean {\n return defaults.every((defaultCondition) => context.some((condition) => condition.field === defaultCondition.field));\n}\n\n// Whether a context holds exactly the default on every reset-on-open field\nexport function holdsResetDefaults(\n context: FilterCondition[],\n defaults: FilterCondition[],\n resetOnOpen: string[],\n): boolean {\n return defaults\n .filter((defaultCondition) => resetOnOpen.includes(defaultCondition.field))\n .every((defaultCondition) =>\n deepEqual(\n context.find((condition) => condition.field === defaultCondition.field),\n defaultCondition,\n ),\n );\n}\n"],"names":[],"mappings":"AAAA,MAAM,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,GAAG,MAAM;AAC7D;AACA,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC,SAAS;AAC3C;AACA;AACA;AACA,SAAS,kBAAkB,CAAC,WAAW,EAAE,WAAW,EAAE;AACtD,IAAI,OAAO,SAAS,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE;AACzC,QAAQ,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,CAAA,EAAG,KAAA;AACtE,EAAA,OAAO,OAAO,KAAA,KAAU,QAAA,GAAW,KAAA,GAAQ,MAAA;AAC7C;AAGO,SAAS,UAAA,CAAW,SAA4B,KAAA,EAAyB;AAC9E,EAAA,MAAM,KAAA,GAAQ,QAAQ,IAAA,CAAK,CAAC,cAAc,SAAA,CAAU,KAAA,KAAU,KAAK,CAAA,EAAG,KAAA;AACtE,EAAA,IAAI,MAAM,OAAA,CAAQ,KAAK,GAAG,OAAO,KAAA,CAAM,IAAI,MAAM,CAAA;AACjD,EAAA,OAAO,OAAO,KAAA,KAAU,QAAA,IAAY,QAAQ,CAAC,KAAK,IAAI,EAAC;AACzD;AAGO,SAAS,eAAA,CAAgB,SAA4B,QAAA,EAAsC;AAChG,EAAA,OAAO,QAAA,CAAS,KAAA,CAAM,CAAC,gBAAA,KAAqB,OAAA,CAAQ,IAAA,CAAK,CAAC,SAAA,KAAc,SAAA,CAAU,KAAA,KAAU,gBAAA,CAAiB,KAAK,CAAC,CAAA;AACrH;AAGO,SAAS,kBAAA,CACd,OAAA,EACA,QAAA,EACA,WAAA,EACS;AACT,EAAA,OAAO,QAAA,CACJ,OAAO,CAAC,gBAAA,KAAqB,YAAY,QAAA,CAAS,gBAAA,CAAiB,KAAK,CAAC,CAAA,CACzE,KAAA;AAAA,IAAM,CAAC,gBAAA,KACN,SAAA;AAAA,MACE,QAAQ,IAAA,CAAK,CAAC,cAAc,SAAA,CAAU,KAAA,KAAU,iBAAiB,KAAK,CAAA;AAAA,MACtE;AAAA;AACF,GACF;AACJ;;;;","x_google_ignoreList":[0]}
|
package/dist/contextAnchor.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { c as cn } from './utils.js';
|
|
3
|
+
import { S as Skeleton } from './Skeleton.js';
|
|
3
4
|
|
|
4
5
|
const CONTEXT_ANCHOR_CLASS = "inline-flex h-9 items-center gap-2 rounded-md border border-input bg-background px-3 text-sm whitespace-nowrap shadow-xs outline-none transition-[color,box-shadow,border-color] hover:bg-accent/40 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-expanded:border-ring disabled:cursor-not-allowed disabled:opacity-50";
|
|
5
|
-
const ContextAnchorText = ({ label, value, placeholder }) => /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
6
|
+
const ContextAnchorText = ({ label, value, placeholder, loading = false }) => /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
6
7
|
label && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-[11px] font-medium uppercase tracking-wider text-muted-foreground", children: label }),
|
|
7
|
-
/* @__PURE__ */ jsx("span", { className: cn("truncate", value ? "font-medium text-foreground" : "text-muted-foreground"), children: value ?? placeholder })
|
|
8
|
+
loading ? /* @__PURE__ */ jsx(Skeleton, { className: "h-3.5 w-20 self-center" }) : /* @__PURE__ */ jsx("span", { className: cn("truncate", value ? "font-medium text-foreground" : "text-muted-foreground"), children: value ?? placeholder })
|
|
8
9
|
] });
|
|
9
10
|
|
|
10
11
|
export { ContextAnchorText as C, CONTEXT_ANCHOR_CLASS as a };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextAnchor.js","sources":["../lib/components/Select/contextAnchor.tsx"],"sourcesContent":["import type React from 'react';\nimport { cn } from '../../../shadcn/utils';\n\n// How a filter control presents itself: an applied filter chip, or a context selector naming what a table is about\nexport type FilterMode = 'filter' | 'context';\n\n// A context selector's trigger: quiet and outlined at the toolbar's height, so it reads as the table's frame rather than\n// as a filter narrowing it\nexport const CONTEXT_ANCHOR_CLASS =\n 'inline-flex h-9 items-center gap-2 rounded-md border border-input bg-background px-3 text-sm whitespace-nowrap shadow-xs outline-none transition-[color,box-shadow,border-color] hover:bg-accent/40 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-expanded:border-ring disabled:cursor-not-allowed disabled:opacity-50';\n\ninterface ContextAnchorTextProps {\n label?: string;\n value?: React.ReactNode;\n placeholder?: string;\n}\n\n// A context selector's label and value: a small uppercase caption, then the value it holds\nexport const ContextAnchorText: React.FC<ContextAnchorTextProps> = ({ label, value, placeholder }) => (\n <span className=\"flex min-w-0 items-baseline gap-2\">\n {label && (\n <span className=\"shrink-0 text-[11px] font-medium uppercase tracking-wider text-muted-foreground\">{label}</span>\n )}\n <span className={cn('truncate', value ? 'font-medium text-foreground' : 'text-muted-foreground')}>\n
|
|
1
|
+
{"version":3,"file":"contextAnchor.js","sources":["../lib/components/Select/contextAnchor.tsx"],"sourcesContent":["import type React from 'react';\nimport { cn } from '../../../shadcn/utils';\nimport { Skeleton } from '../Skeleton';\n\n// How a filter control presents itself: an applied filter chip, or a context selector naming what a table is about\nexport type FilterMode = 'filter' | 'context';\n\n// A context selector's trigger: quiet and outlined at the toolbar's height, so it reads as the table's frame rather than\n// as a filter narrowing it\nexport const CONTEXT_ANCHOR_CLASS =\n 'inline-flex h-9 items-center gap-2 rounded-md border border-input bg-background px-3 text-sm whitespace-nowrap shadow-xs outline-none transition-[color,box-shadow,border-color] hover:bg-accent/40 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-expanded:border-ring disabled:cursor-not-allowed disabled:opacity-50';\n\ninterface ContextAnchorTextProps {\n label?: string;\n value?: React.ReactNode;\n placeholder?: string;\n loading?: boolean;\n}\n\n// A context selector's label and value: a small uppercase caption, then the value it holds\nexport const ContextAnchorText: React.FC<ContextAnchorTextProps> = ({ label, value, placeholder, loading = false }) => (\n <span className=\"flex min-w-0 items-baseline gap-2\">\n {label && (\n <span className=\"shrink-0 text-[11px] font-medium uppercase tracking-wider text-muted-foreground\">{label}</span>\n )}\n {loading ? (\n <Skeleton className=\"h-3.5 w-20 self-center\" />\n ) : (\n <span className={cn('truncate', value ? 'font-medium text-foreground' : 'text-muted-foreground')}>\n {value ?? placeholder}\n </span>\n )}\n </span>\n);\n"],"names":[],"mappings":";;;;AASO,MAAM,oBAAA,GACX;AAUK,MAAM,iBAAA,GAAsD,CAAC,EAAE,KAAA,EAAO,KAAA,EAAO,WAAA,EAAa,OAAA,GAAU,KAAA,EAAM,qBAC/G,IAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,mCAAA,EACb,QAAA,EAAA;AAAA,EAAA,KAAA,oBACC,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,iFAAA,EAAmF,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,EAE1G,0BACC,GAAA,CAAC,QAAA,EAAA,EAAS,SAAA,EAAU,wBAAA,EAAyB,oBAE7C,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,EAAA,CAAG,YAAY,KAAA,GAAQ,6BAAA,GAAgC,uBAAuB,CAAA,EAC5F,mBAAS,WAAA,EACZ;AAAA,CAAA,EAEJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b9 as isStacked, E as isNullish, aX as getPercentValue, aC as isWellBehavedNumber, ab as getStackSeriesIdentifier } from './ChartFrame.js';
|
|
2
2
|
|
|
3
3
|
var getBarSize = (globalSize, totalSize, selfSize) => {
|
|
4
4
|
var barSize = selfSize !== null && selfSize !== void 0 ? selfSize : globalSize;
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { u as useBarcodeScanner, a as
|
|
2
|
-
export { u as useCategoricalColors } from '../useCategoricalColors.js';
|
|
1
|
+
export { u as useBarcodeScanner, a as useCategoricalColors, b as useOrgCountryCode, c as useSSE, d as useSlugParams, e as useTimer, f as useWorkspaceCurrency } from '../useWorkspaceCurrency.js';
|
|
3
2
|
export { u as useConfirm, a as useDialog } from '../useConfirm.js';
|
|
4
3
|
export { u as useFormatters } from '../useFormatters.js';
|
|
5
4
|
export { u as useIsMobile } from '../useIsMobile.js';
|
package/dist/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,7 @@ export { c as cn } from './utils.js';
|
|
|
2
2
|
export { c as configureQuantumUI, d as defineConfig, g as getConfig, r as resetConfig } from './index7.js';
|
|
3
3
|
export { L as LayoutModeProvider, O as OrgContextProvider, u as useLayoutMode, a as useOrgContext, b as useOrgService } from './OrgContext.js';
|
|
4
4
|
export { T as ThemeContext, a as ThemeProvider } from './ThemeContext.js';
|
|
5
|
-
export { u as useBarcodeScanner, a as
|
|
6
|
-
export { u as useCategoricalColors } from './useCategoricalColors.js';
|
|
5
|
+
export { u as useBarcodeScanner, a as useCategoricalColors, b as useOrgCountryCode, c as useSSE, d as useSlugParams, e as useTimer, f as useWorkspaceCurrency } from './useWorkspaceCurrency.js';
|
|
7
6
|
export { u as useConfirm, a as useDialog } from './useConfirm.js';
|
|
8
7
|
export { u as useFormatters } from './useFormatters.js';
|
|
9
8
|
export { u as useIsMobile } from './useIsMobile.js';
|
|
@@ -24,7 +23,7 @@ export { C as Checkbox } from './Checkbox.js';
|
|
|
24
23
|
export { C as CheckboxGroup } from './CheckboxGroup.js';
|
|
25
24
|
export { C as Collapsible } from './Collapsible.js';
|
|
26
25
|
export { C as CompactSwitch, S as Switch } from './Switch.js';
|
|
27
|
-
export { C as CompactTableSkeleton, a as CurrencyCell, D as DataTable, b as DataTableColumnHeader, c as DataTableEmpty, d as DataTableFilters, e as DataTablePagination, f as DataTableRowDensity, g as DataTableSearch, h as DataTableSelectionBar, i as DataTableViewOptions, j as DateCell, k as DateTimeCell, N as NumberCell, R as RowActions, S as StringCell, l as getSelectionColumn,
|
|
26
|
+
export { C as CompactTableSkeleton, a as CurrencyCell, D as DataTable, b as DataTableColumnHeader, c as DataTableEmpty, d as DataTableFilters, e as DataTablePagination, f as DataTableRowDensity, g as DataTableSearch, h as DataTableSelectionBar, i as DataTableViewOptions, j as DateCell, k as DateTimeCell, N as NumberCell, R as RowActions, S as StringCell, l as getSelectionColumn, s as setTableContext, u as useDataTable } from './useDataTable.js';
|
|
28
27
|
export { C as ConfirmHost } from './ConfirmHost.js';
|
|
29
28
|
export { C as Controller } from './index.esm.js';
|
|
30
29
|
export { C as CopyButton } from './CopyButton.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index7.js
CHANGED
package/dist/index7.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index7.js","sources":["../lib/config/index.ts"],"sourcesContent":["export interface CsrfConfig {\n endpoint: string;\n\n enabled: boolean;\n\n headerName: string;\n}\n\nexport interface AxiosConfig {\n baseURL: string;\n\n timeout: number;\n\n withCredentials: boolean;\n\n headers?: Record<string, string>;\n\n onRequest?: (config: import('axios').InternalAxiosRequestConfig) => void | Promise<void>;\n}\n\nexport interface AuthConfig {\n tokenHeaderName: string;\n\n tokenPrefix: string;\n\n tokenEndpoint: string;\n\n refreshEndpoint: string;\n\n sessionRecoveryEnabled: boolean;\n}\n\nexport interface ViewsConfig {\n viewsEndpoint: string;\n\n statesEndpoint: string;\n}\n\nexport interface TimeZoneConfig {\n resolveTimeZone?: () => string | null | undefined;\n}\n\nexport interface CurrencyConfig {\n // The host's currency for the active workspace, or for one site when `siteId` is given\n resolveCurrency?: (siteId?: string | null) => string | null | undefined;\n}\n\nexport interface SseConfig {\n // Rewrites an SSE URL before the EventSource opens — the counterpart to axios.onRequest. EventSource\n // cannot set request headers, so whatever an HTTP call carries in a header (workspace/tenant context)\n // has to ride the query string here instead. Returns the URL to connect to.\n onRequest?: (url: string) => string;\n}\n\nexport interface QuantumUIConfig {\n csrf?: Partial<CsrfConfig>;\n\n axios?: Partial<AxiosConfig>;\n\n auth?: Partial<AuthConfig>;\n\n timeZone?: TimeZoneConfig;\n\n currency?: CurrencyConfig;\n\n sse?: SseConfig;\n\n views: ViewsConfig;\n}\n\nconst defaultConfig: {\n csrf: CsrfConfig;\n axios: AxiosConfig;\n auth: AuthConfig;\n views: Required<ViewsConfig>;\n timeZone: TimeZoneConfig;\n currency: CurrencyConfig;\n sse: SseConfig;\n} = {\n csrf: {\n endpoint: 'csrf/token',\n enabled: true,\n headerName: 'x-csrf-token',\n },\n axios: {\n baseURL: '/api',\n timeout: 30000,\n withCredentials: true,\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n },\n },\n auth: {\n tokenHeaderName: 'Authorization',\n tokenPrefix: 'Bearer',\n tokenEndpoint: 'auth/access-token',\n refreshEndpoint: 'auth/refresh-tokens',\n sessionRecoveryEnabled: true,\n },\n timeZone: {\n resolveTimeZone: undefined,\n },\n currency: {\n resolveCurrency: undefined,\n },\n sse: {\n onRequest: undefined,\n },\n views: {\n viewsEndpoint: 'table-views',\n statesEndpoint: 'table-states',\n },\n};\n\nconst GLOBAL_CONFIG_KEY = '__QUANTUM_UI_CONFIG__';\n\ntype GlobalWindow = Window & typeof globalThis & { [GLOBAL_CONFIG_KEY]?: typeof defaultConfig };\n\n// Get the current config from global storage or initialize with defaults\nfunction getGlobalConfig(): typeof defaultConfig {\n if (typeof window !== 'undefined') {\n const globalWindow = window as GlobalWindow;\n if (!globalWindow[GLOBAL_CONFIG_KEY]) {\n globalWindow[GLOBAL_CONFIG_KEY] = { ...defaultConfig };\n }\n return globalWindow[GLOBAL_CONFIG_KEY] ?? { ...defaultConfig };\n }\n return { ...defaultConfig };\n}\n\n// Set the global config\nfunction setGlobalConfig(config: typeof defaultConfig): void {\n if (typeof window !== 'undefined') {\n (window as GlobalWindow)[GLOBAL_CONFIG_KEY] = config;\n }\n}\n\n// Helper function to define configuration with type safety.\nexport function defineConfig(config: QuantumUIConfig): QuantumUIConfig {\n return config;\n}\n\n// Configure quantum-ui with user settings; call once in the application entry point.\nexport function configureQuantumUI(userConfig: QuantumUIConfig): void {\n const newConfig = {\n csrf: {\n ...defaultConfig.csrf,\n ...(userConfig.csrf || {}),\n },\n axios: {\n ...defaultConfig.axios,\n ...(userConfig.axios || {}),\n headers: {\n ...defaultConfig.axios.headers,\n ...(userConfig.axios?.headers || {}),\n },\n },\n auth: {\n ...defaultConfig.auth,\n ...(userConfig.auth || {}),\n },\n timeZone: {\n ...defaultConfig.timeZone,\n ...(userConfig.timeZone || {}),\n },\n currency: {\n ...defaultConfig.currency,\n ...(userConfig.currency || {}),\n },\n sse: {\n ...defaultConfig.sse,\n ...(userConfig.sse || {}),\n },\n views: {\n ...defaultConfig.views,\n ...(userConfig.views || {}),\n },\n };\n setGlobalConfig(newConfig);\n}\n\n// Get the current configuration.\nexport function getConfig(): typeof defaultConfig {\n return getGlobalConfig();\n}\n\n// Reset configuration to defaults; mainly useful for testing.\nexport function resetConfig(): void {\n setGlobalConfig({ ...defaultConfig });\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index7.js","sources":["../lib/config/index.ts"],"sourcesContent":["export interface CsrfConfig {\n endpoint: string;\n\n enabled: boolean;\n\n headerName: string;\n}\n\nexport interface AxiosConfig {\n baseURL: string;\n\n timeout: number;\n\n withCredentials: boolean;\n\n headers?: Record<string, string>;\n\n onRequest?: (config: import('axios').InternalAxiosRequestConfig) => void | Promise<void>;\n}\n\nexport interface AuthConfig {\n tokenHeaderName: string;\n\n tokenPrefix: string;\n\n tokenEndpoint: string;\n\n refreshEndpoint: string;\n\n sessionRecoveryEnabled: boolean;\n}\n\nexport interface ViewsConfig {\n viewsEndpoint: string;\n\n statesEndpoint: string;\n\n contextStatesEndpoint: string;\n}\n\nexport interface TimeZoneConfig {\n resolveTimeZone?: () => string | null | undefined;\n}\n\nexport interface CurrencyConfig {\n // The host's currency for the active workspace, or for one site when `siteId` is given\n resolveCurrency?: (siteId?: string | null) => string | null | undefined;\n}\n\nexport interface SseConfig {\n // Rewrites an SSE URL before the EventSource opens — the counterpart to axios.onRequest. EventSource\n // cannot set request headers, so whatever an HTTP call carries in a header (workspace/tenant context)\n // has to ride the query string here instead. Returns the URL to connect to.\n onRequest?: (url: string) => string;\n}\n\nexport interface QuantumUIConfig {\n csrf?: Partial<CsrfConfig>;\n\n axios?: Partial<AxiosConfig>;\n\n auth?: Partial<AuthConfig>;\n\n timeZone?: TimeZoneConfig;\n\n currency?: CurrencyConfig;\n\n sse?: SseConfig;\n\n views: ViewsConfig;\n}\n\nconst defaultConfig: {\n csrf: CsrfConfig;\n axios: AxiosConfig;\n auth: AuthConfig;\n views: Required<ViewsConfig>;\n timeZone: TimeZoneConfig;\n currency: CurrencyConfig;\n sse: SseConfig;\n} = {\n csrf: {\n endpoint: 'csrf/token',\n enabled: true,\n headerName: 'x-csrf-token',\n },\n axios: {\n baseURL: '/api',\n timeout: 30000,\n withCredentials: true,\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n },\n },\n auth: {\n tokenHeaderName: 'Authorization',\n tokenPrefix: 'Bearer',\n tokenEndpoint: 'auth/access-token',\n refreshEndpoint: 'auth/refresh-tokens',\n sessionRecoveryEnabled: true,\n },\n timeZone: {\n resolveTimeZone: undefined,\n },\n currency: {\n resolveCurrency: undefined,\n },\n sse: {\n onRequest: undefined,\n },\n views: {\n viewsEndpoint: 'table-views',\n statesEndpoint: 'table-states',\n contextStatesEndpoint: 'context-states',\n },\n};\n\nconst GLOBAL_CONFIG_KEY = '__QUANTUM_UI_CONFIG__';\n\ntype GlobalWindow = Window & typeof globalThis & { [GLOBAL_CONFIG_KEY]?: typeof defaultConfig };\n\n// Get the current config from global storage or initialize with defaults\nfunction getGlobalConfig(): typeof defaultConfig {\n if (typeof window !== 'undefined') {\n const globalWindow = window as GlobalWindow;\n if (!globalWindow[GLOBAL_CONFIG_KEY]) {\n globalWindow[GLOBAL_CONFIG_KEY] = { ...defaultConfig };\n }\n return globalWindow[GLOBAL_CONFIG_KEY] ?? { ...defaultConfig };\n }\n return { ...defaultConfig };\n}\n\n// Set the global config\nfunction setGlobalConfig(config: typeof defaultConfig): void {\n if (typeof window !== 'undefined') {\n (window as GlobalWindow)[GLOBAL_CONFIG_KEY] = config;\n }\n}\n\n// Helper function to define configuration with type safety.\nexport function defineConfig(config: QuantumUIConfig): QuantumUIConfig {\n return config;\n}\n\n// Configure quantum-ui with user settings; call once in the application entry point.\nexport function configureQuantumUI(userConfig: QuantumUIConfig): void {\n const newConfig = {\n csrf: {\n ...defaultConfig.csrf,\n ...(userConfig.csrf || {}),\n },\n axios: {\n ...defaultConfig.axios,\n ...(userConfig.axios || {}),\n headers: {\n ...defaultConfig.axios.headers,\n ...(userConfig.axios?.headers || {}),\n },\n },\n auth: {\n ...defaultConfig.auth,\n ...(userConfig.auth || {}),\n },\n timeZone: {\n ...defaultConfig.timeZone,\n ...(userConfig.timeZone || {}),\n },\n currency: {\n ...defaultConfig.currency,\n ...(userConfig.currency || {}),\n },\n sse: {\n ...defaultConfig.sse,\n ...(userConfig.sse || {}),\n },\n views: {\n ...defaultConfig.views,\n ...(userConfig.views || {}),\n },\n };\n setGlobalConfig(newConfig);\n}\n\n// Get the current configuration.\nexport function getConfig(): typeof defaultConfig {\n return getGlobalConfig();\n}\n\n// Reset configuration to defaults; mainly useful for testing.\nexport function resetConfig(): void {\n setGlobalConfig({ ...defaultConfig });\n}\n"],"names":[],"mappings":"AAwEA,MAAM,aAAA,GAQF;AAAA,EACF,IAAA,EAAM;AAAA,IACJ,QAAA,EAAU,YAAA;AAAA,IACV,OAAA,EAAS,IAAA;AAAA,IACT,UAAA,EAAY;AAAA,GACd;AAAA,EACA,KAAA,EAAO;AAAA,IACL,OAAA,EAAS,MAAA;AAAA,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ED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { c as createLucideIcon } from './createLucideIcon.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.562.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const __iconNode = [
|
|
12
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
13
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
14
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
15
|
+
];
|
|
16
|
+
const Info = createLucideIcon("info", __iconNode);
|
|
17
|
+
|
|
18
|
+
export { Info as I };
|
|
19
|
+
//# sourceMappingURL=info.js.map
|
package/dist/info.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.js","sources":["../node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/info.js"],"sourcesContent":["/**\n * @license lucide-react v0.562.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M12 16v-4\", key: \"1dtifu\" }],\n [\"path\", { d: \"M12 8h.01\", key: \"e9boi3\" }]\n];\nconst Info = createLucideIcon(\"info\", __iconNode);\n\nexport { __iconNode, Info as default };\n//# sourceMappingURL=info.js.map\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG;AACnB,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC5D,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC7C,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE;AAC5C,CAAC;AACI,MAAC,IAAI,GAAG,gBAAgB,CAAC,MAAM,EAAE,UAAU;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
fillOpacity?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface AreaChartProps {
|
|
8
|
-
data: Record<string, unknown>[];
|
|
9
|
-
config: ChartConfig;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChartEmptyState, ChartInstance, ChartMode, ChartSelection } from '../Chart/types';
|
|
3
|
+
export interface AreaChartProps<TSelection extends ChartSelection> {
|
|
4
|
+
chart: ChartInstance<TSelection>;
|
|
10
5
|
xAxisKey: string;
|
|
11
|
-
|
|
6
|
+
mode?: ChartMode;
|
|
7
|
+
contextBar?: React.ReactNode;
|
|
12
8
|
className?: string;
|
|
9
|
+
footnote?: React.ReactNode;
|
|
10
|
+
curve?: 'linear' | 'monotone';
|
|
11
|
+
fillOpacity?: number;
|
|
12
|
+
showLegend?: boolean;
|
|
13
|
+
emptyState?: ChartEmptyState;
|
|
13
14
|
}
|
|
14
|
-
export declare
|
|
15
|
-
({ data, config, xAxisKey, areas, className }: AreaChartProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
15
|
+
export declare function AreaChart<TSelection extends ChartSelection>({ chart, xAxisKey, mode, contextBar, className, footnote, curve, fillOpacity, showLegend, emptyState, }: AreaChartProps<TSelection>): import("react/jsx-runtime").JSX.Element;
|
|
19
16
|
//# sourceMappingURL=AreaChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreaChart.d.ts","sourceRoot":"","sources":["../../../../lib/components/AreaChart/AreaChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AreaChart.d.ts","sourceRoot":"","sources":["../../../../lib/components/AreaChart/AreaChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIhG,MAAM,WAAW,cAAc,CAAC,UAAU,SAAS,cAAc;IAC/D,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAGD,wBAAgB,SAAS,CAAC,UAAU,SAAS,cAAc,EAAE,EAC3D,KAAK,EACL,QAAQ,EACR,IAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,KAAkB,EAClB,WAAiB,EACjB,UAAiB,EACjB,UAAyC,GAC1C,EAAE,cAAc,CAAC,UAAU,CAAC,2CAkC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/AreaChart/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/AreaChart/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export interface BarChartProps {
|
|
7
|
-
data: Record<string, unknown>[];
|
|
8
|
-
config: ChartConfig;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChartEmptyState, ChartInstance, ChartMode, ChartSelection } from '../Chart/types';
|
|
3
|
+
export interface BarChartProps<TSelection extends ChartSelection> {
|
|
4
|
+
chart: ChartInstance<TSelection>;
|
|
9
5
|
xAxisKey: string;
|
|
10
|
-
|
|
6
|
+
mode?: ChartMode;
|
|
7
|
+
contextBar?: React.ReactNode;
|
|
11
8
|
className?: string;
|
|
9
|
+
footnote?: React.ReactNode;
|
|
10
|
+
radius?: number;
|
|
11
|
+
showLegend?: boolean;
|
|
12
|
+
emptyState?: ChartEmptyState;
|
|
12
13
|
}
|
|
13
|
-
export declare
|
|
14
|
-
({ data, config, xAxisKey, bars, className }: BarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
export {};
|
|
14
|
+
export declare function BarChart<TSelection extends ChartSelection>({ chart, xAxisKey, mode, contextBar, className, footnote, radius, showLegend, emptyState, }: BarChartProps<TSelection>): import("react/jsx-runtime").JSX.Element;
|
|
18
15
|
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../../lib/components/BarChart/BarChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../../lib/components/BarChart/BarChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIhG,MAAM,WAAW,aAAa,CAAC,UAAU,SAAS,cAAc;IAC9D,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAGD,wBAAgB,QAAQ,CAAC,UAAU,SAAS,cAAc,EAAE,EAC1D,KAAK,EACL,QAAQ,EACR,IAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAU,EACV,UAAiB,EACjB,UAAyC,GAC1C,EAAE,aAAa,CAAC,UAAU,CAAC,2CA2B3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/BarChart/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/BarChart/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartEmpty.d.ts","sourceRoot":"","sources":["../../../../lib/components/Chart/ChartEmpty.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,eAAO,MAAM,UAAU,GAAI,8BAA8B,eAAe,4CAEvE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChartInstance, ChartMode, ChartSelection } from './types';
|
|
3
|
+
interface ChartFrameProps<TSelection extends ChartSelection> {
|
|
4
|
+
chart: ChartInstance<TSelection>;
|
|
5
|
+
isEmpty: boolean;
|
|
6
|
+
skeleton: React.ReactNode;
|
|
7
|
+
empty: React.ReactNode;
|
|
8
|
+
mode: ChartMode;
|
|
9
|
+
contextBar?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
footnote?: React.ReactNode;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function ChartFrame<TSelection extends ChartSelection>({ mode, contextBar, className, ...content }: ChartFrameProps<TSelection>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=ChartFrame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartFrame.d.ts","sourceRoot":"","sources":["../../../../lib/components/Chart/ChartFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAaxE,UAAU,eAAe,CAAC,UAAU,SAAS,cAAc;IACzD,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAEjC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAEhB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAyBD,wBAAgB,UAAU,CAAC,UAAU,SAAS,cAAc,EAAE,EAC5D,IAAI,EACJ,UAAU,EACV,SAAS,EACT,GAAG,OAAO,EACX,EAAE,eAAe,CAAC,UAAU,CAAC,2CAW7B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChartInstance, ChartSelection, ChartSeries } from './types';
|
|
3
|
+
interface ChartKeyProps<TSelection extends ChartSelection> {
|
|
4
|
+
chart: ChartInstance<TSelection>;
|
|
5
|
+
title: string;
|
|
6
|
+
value?: (series: ChartSeries<TSelection['series'][number]>) => React.ReactNode;
|
|
7
|
+
detail?: (series: ChartSeries<TSelection['series'][number]>) => React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function ChartKey<TSelection extends ChartSelection>({ chart, title, value, detail, }: ChartKeyProps<TSelection>): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ChartKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartKey.d.ts","sourceRoot":"","sources":["../../../../lib/components/Chart/ChartKey.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE1E,UAAU,aAAa,CAAC,UAAU,SAAS,cAAc;IACvD,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAE/E,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CACjF;AAMD,wBAAgB,QAAQ,CAAC,UAAU,SAAS,cAAc,EAAE,EAC1D,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,GACP,EAAE,aAAa,CAAC,UAAU,CAAC,kDAmD3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const ChartLoadFailed: ({ error, refetch }: {
|
|
3
|
+
error: unknown;
|
|
4
|
+
refetch?: () => unknown;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const ChartRefreshFailed: ({ refetch }: {
|
|
7
|
+
refetch?: () => unknown;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ChartFootnote: ({ children }: {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=ChartStates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartStates.d.ts","sourceRoot":"","sources":["../../../../lib/components/Chart/ChartStates.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,eAAe,GAAI,oBAAoB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;CAAE,4CAe9F,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,aAAa;IAAE,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;CAAE,4CAY1E,CAAC;AAGF,eAAO,MAAM,aAAa,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAKxE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChartConfig } from '../../../shadcn/shadcnChart';
|
|
2
|
+
import { ChartSeries, ChartSeriesInput } from './types';
|
|
3
|
+
export declare const CHART_SERIES_COLORS: string[];
|
|
4
|
+
export declare function colorSeries<TSeries extends ChartSeriesInput>(series: TSeries[], slots: Map<string, number>): ChartSeries<TSeries>[];
|
|
5
|
+
export declare function chartConfigOf(series: ChartSeries<ChartSeriesInput>[]): ChartConfig;
|
|
6
|
+
//# sourceMappingURL=colorSeries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorSeries.d.ts","sourceRoot":"","sources":["../../../../lib/components/Chart/colorSeries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG7D,eAAO,MAAM,mBAAmB,UAA8E,CAAC;AAc/G,wBAAgB,WAAW,CAAC,OAAO,SAAS,gBAAgB,EAC1D,MAAM,EAAE,OAAO,EAAE,EACjB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,WAAW,CAAC,OAAO,CAAC,EAAE,CAiBxB;AAGD,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,CAAC,gBAAgB,CAAC,EAAE,GAAG,WAAW,CAElF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ChartKey } from './ChartKey';
|
|
2
|
+
export { CHART_SERIES_COLORS } from './colorSeries';
|
|
3
|
+
export type { ChartEmptyState, ChartInstance, ChartMode, ChartSelection, ChartSeries, ChartSeriesInput, ChartView, } from './types';
|
|
4
|
+
export { type ChartQueryOptions, useChart } from './useChart';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EACV,eAAe,EACf,aAAa,EACb,SAAS,EACT,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,iBAAiB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChartConfig } from '../../../shadcn/shadcnChart';
|
|
2
|
+
import { ContextStateInstance } from '../ContextBar/useContextState';
|
|
3
|
+
export interface ChartSeriesInput {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
export type ChartSeries<TSeries extends ChartSeriesInput> = TSeries & {
|
|
9
|
+
slot: number;
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
export interface ChartSelection<TSeries extends ChartSeriesInput = ChartSeriesInput> {
|
|
13
|
+
rows: Record<string, unknown>[];
|
|
14
|
+
series: TSeries[];
|
|
15
|
+
}
|
|
16
|
+
export type ChartView<TSelection extends ChartSelection> = Omit<TSelection, 'series'> & {
|
|
17
|
+
series: ChartSeries<TSelection['series'][number]>[];
|
|
18
|
+
config: ChartConfig;
|
|
19
|
+
hiddenSeries: number;
|
|
20
|
+
};
|
|
21
|
+
export interface ChartInstance<TSelection extends ChartSelection = ChartSelection> {
|
|
22
|
+
view: ChartView<TSelection> | null;
|
|
23
|
+
context: ContextStateInstance;
|
|
24
|
+
isLoading: boolean;
|
|
25
|
+
isFetching: boolean;
|
|
26
|
+
isError: boolean;
|
|
27
|
+
error: unknown;
|
|
28
|
+
refetch?: () => unknown;
|
|
29
|
+
}
|
|
30
|
+
export type ChartMode = 'tab' | 'compact';
|
|
31
|
+
export interface ChartEmptyState {
|
|
32
|
+
title: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
icon?: React.ReactNode;
|
|
35
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EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;CACzB;AAGD,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { FilterCondition } from '../../types/conditions';
|
|
3
|
+
import { ContextStateInstance } from '../ContextBar/useContextState';
|
|
4
|
+
import { ChartInstance, ChartSelection } from './types';
|
|
5
|
+
export type ChartQueryOptions<TData, TError = unknown> = UseQueryOptions<TData, TError, TData, QueryKey>;
|
|
6
|
+
type ChartSource<TData, TError> = {
|
|
7
|
+
query: ChartQueryOptions<TData, TError>;
|
|
8
|
+
data?: never;
|
|
9
|
+
} | {
|
|
10
|
+
data: TData | undefined;
|
|
11
|
+
query?: never;
|
|
12
|
+
};
|
|
13
|
+
type UseChartOptions<TData, TError, TSelection extends ChartSelection> = ChartSource<TData, TError> & {
|
|
14
|
+
select: (data: TData, context: ContextStateInstance) => TSelection;
|
|
15
|
+
slug?: string;
|
|
16
|
+
defaultContext?: FilterCondition[];
|
|
17
|
+
resetOnOpen?: string[];
|
|
18
|
+
resets?: Record<string, string[]>;
|
|
19
|
+
onStatePush?: () => unknown;
|
|
20
|
+
};
|
|
21
|
+
export declare function useChart<TData, TSelection extends ChartSelection, TError = unknown>({ query: queryOptions, data: givenData, select, slug, defaultContext, resetOnOpen, resets, onStatePush, }: UseChartOptions<TData, TError, TSelection>): ChartInstance<TSelection>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChart.d.ts","sourceRoot":"","sources":["../../../../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AK,EAAE,YAAY,EACnB,IAAI,EAAE,SAAS,EACf,MAAM,EACN,IAAI,EACJ,cAAc,EACd,WAAW,EACX,MAAM,EACN,WAAW,GACZ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAAG,aAAa,CAAC,UAAU,CAAC,CA2CxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../lib/components/Chart/utils.ts"],"names":[],"mappings":"AACA,wBAAgB,eAAe,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,GAAG,IAAI,GAAG,OAAO,CAEnH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ContextStateInstance } from './useContextState';
|
|
3
|
+
interface ContextBarProps {
|
|
4
|
+
state: ContextStateInstance;
|
|
5
|
+
className?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const ContextBar: React.FC<ContextBarProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ContextBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextBar.d.ts","sourceRoot":"","sources":["../../../../lib/components/ContextBar/ContextBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,UAAU,eAAe;IACvB,KAAK,EAAE,oBAAoB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAGD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAWhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/ContextBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|