fastapi-rtk 1.0.52 → 1.1.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/dist/.bundled/jsonforms/cjs/_virtual/arrow-down.cjs +13 -0
- package/dist/.bundled/jsonforms/cjs/_virtual/arrow-up.cjs +13 -0
- package/dist/.bundled/jsonforms/cjs/_virtual/exclamation-circle.cjs +13 -0
- package/dist/.bundled/jsonforms/cjs/_virtual/plus.cjs +13 -0
- package/dist/.bundled/jsonforms/cjs/_virtual/timezone.cjs +17 -0
- package/dist/.bundled/jsonforms/cjs/_virtual/trash.cjs +13 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useDateProps.cjs +11 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +6 -6
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +4 -4
- package/dist/.bundled/jsonforms/esm/_virtual/arrow-down.mjs +14 -0
- package/dist/.bundled/jsonforms/esm/_virtual/arrow-up.mjs +14 -0
- package/dist/.bundled/jsonforms/esm/_virtual/exclamation-circle.mjs +14 -0
- package/dist/.bundled/jsonforms/esm/_virtual/plus.mjs +14 -0
- package/dist/.bundled/jsonforms/esm/_virtual/timezone.mjs +18 -0
- package/dist/.bundled/jsonforms/esm/_virtual/trash.mjs +14 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useDateProps.mjs +11 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +6 -6
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +4 -4
- package/dist/.external/cjs/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/createReactComponent.cjs +1 -1
- package/dist/.external/cjs/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/defaultAttributes.cjs +1 -1
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowsSort.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronDown.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronLeft.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronRight.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronsDown.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconCircleX.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconClearAll.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconColumns.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDots.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDotsVertical.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEdit.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEyeOff.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilter.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilterCog.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilterOff.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconMaximize.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconMinimize.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPinned.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPinnedOff.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSearch.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSearchOff.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSortAscending.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSortDescending.cjs +13 -0
- package/dist/.external/cjs/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconX.cjs +13 -0
- package/dist/.external/cjs/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._o4mo2rpvy7fpui7fiyfvhudhey → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._2kyqjjllw4h6nm2ylvp6tayqhi}/mantine-react-table/dist/index.esm.cjs +66 -66
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -1
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -1
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowsSort.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs +13 -0
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +4 -2
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +4 -2
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.mjs +13 -0
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +4 -2
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronsDown.mjs +13 -0
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/icons/IconCircleX.mjs +4 -2
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconClearAll.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconColumns.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDots.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDotsVertical.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEdit.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEyeOff.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilter.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilterCog.mjs +13 -0
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/icons/IconFilterOff.mjs +4 -2
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconMaximize.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconMinimize.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPinned.mjs +13 -0
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs +4 -2
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +13 -0
- package/dist/.external/esm/{@tabler_icons-react@3.18.0_react@19.2.4 → @tabler_icons-react@3.40.0_react@19.2.4}/@tabler/icons-react/dist/esm/icons/IconSearchOff.mjs +4 -2
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs +13 -0
- package/dist/.external/esm/@tabler_icons-react@3.40.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconX.mjs +13 -0
- package/dist/.external/esm/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._o4mo2rpvy7fpui7fiyfvhudhey → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._2kyqjjllw4h6nm2ylvp6tayqhi}/mantine-react-table/dist/index.esm.mjs +33 -33
- package/dist/constants/cjs/_virtual/index.cjs +1 -1
- package/dist/constants/cjs/_virtual/index2.cjs +1 -1
- package/dist/constants/esm/_virtual/index.mjs +1 -1
- package/dist/constants/esm/_virtual/index2.mjs +1 -1
- package/dist/core/cjs/ActionIcons/Add/Add.cjs +3 -3
- package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +3 -3
- package/dist/core/cjs/ActionIcons/Download/Download.cjs +7 -7
- package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +3 -3
- package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +3 -3
- package/dist/core/cjs/ActionIcons/Upload/Upload.cjs +10 -10
- package/dist/core/cjs/ActionIcons/View/View.cjs +3 -3
- package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
- package/dist/core/cjs/Menu/UserMenu/UserMenu.cjs +18 -13
- package/dist/core/cjs/Modals/CommonModal.cjs +33 -10
- package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +3 -3
- package/dist/core/cjs/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.cjs +4 -4
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/Filter.cjs +2 -2
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +4 -4
- package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/getOptimizedMRT_RowSelectColumnDef.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +4 -4
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/FilterMenuButton.cjs +2 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/FilterModeDescription.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TableContainer.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MantineReactTable.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/body/MRT_TableBody.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/body/MRT_TableBodyRow.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/head/MRT_TableHead.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/table/MRT_Table.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_ToolbarAlertBanner.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_TopToolbar.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +3 -3
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +1 -1
- package/dist/core/cjs/_virtual/alert-circle.cjs +13 -0
- package/dist/core/cjs/_virtual/app-window.cjs +13 -0
- package/dist/core/cjs/_virtual/chevron-down.cjs +13 -0
- package/dist/core/cjs/_virtual/chevron-up.cjs +13 -0
- package/dist/core/cjs/_virtual/download.cjs +13 -0
- package/dist/core/cjs/_virtual/eye.cjs +16 -0
- package/dist/core/cjs/_virtual/file-type-csv.cjs +16 -0
- package/dist/core/cjs/_virtual/filter-cog.cjs +13 -0
- package/dist/core/cjs/_virtual/filter.cjs +13 -0
- package/dist/core/cjs/_virtual/id-badge-2.cjs +17 -0
- package/dist/core/cjs/_virtual/lock.cjs +16 -0
- package/dist/core/cjs/_virtual/logout.cjs +16 -0
- package/dist/core/cjs/_virtual/maximize.cjs +13 -0
- package/dist/core/cjs/_virtual/minimize.cjs +13 -0
- package/dist/core/cjs/_virtual/pencil.cjs +13 -0
- package/dist/core/cjs/_virtual/plus.cjs +13 -0
- package/dist/core/cjs/_virtual/quote.cjs +13 -0
- package/dist/core/cjs/_virtual/refresh.cjs +13 -0
- package/dist/core/cjs/_virtual/separator-vertical.cjs +13 -0
- package/dist/core/cjs/_virtual/stack-forward.cjs +16 -0
- package/dist/core/cjs/_virtual/stack.cjs +13 -0
- package/dist/core/cjs/_virtual/trash.cjs +13 -0
- package/dist/core/cjs/_virtual/upload.cjs +13 -0
- package/dist/core/cjs/_virtual/users.cjs +13 -0
- package/dist/core/cjs/_virtual/x.cjs +13 -0
- package/dist/core/cjs/index.cjs +2 -2
- package/dist/core/esm/ActionIcons/Add/Add.mjs +3 -3
- package/dist/core/esm/ActionIcons/Delete/Delete.mjs +3 -3
- package/dist/core/esm/ActionIcons/Download/Download.mjs +5 -5
- package/dist/core/esm/ActionIcons/Edit/Edit.mjs +3 -3
- package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +3 -3
- package/dist/core/esm/ActionIcons/Upload/Upload.mjs +8 -8
- package/dist/core/esm/ActionIcons/View/View.mjs +3 -3
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
- package/dist/core/esm/Menu/UserMenu/UserMenu.mjs +18 -13
- package/dist/core/esm/Modals/CommonModal.mjs +33 -10
- package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +3 -3
- package/dist/core/esm/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.mjs +4 -4
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/Filter.mjs +2 -2
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +4 -4
- package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/getOptimizedMRT_RowSelectColumnDef.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +4 -4
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/FilterMenuButton.mjs +2 -2
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/FilterModeDescription.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TableContainer.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MantineReactTable.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/body/MRT_TableBody.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/body/MRT_TableBodyRow.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/head/MRT_TableHead.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/table/MRT_Table.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_ToolbarAlertBanner.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_TopToolbar.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +3 -3
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +1 -1
- package/dist/core/esm/_virtual/alert-circle.mjs +14 -0
- package/dist/core/esm/_virtual/app-window.mjs +14 -0
- package/dist/core/esm/_virtual/chevron-down.mjs +14 -0
- package/dist/core/esm/_virtual/chevron-up.mjs +14 -0
- package/dist/core/esm/_virtual/download.mjs +14 -0
- package/dist/core/esm/_virtual/eye.mjs +17 -0
- package/dist/core/esm/_virtual/file-type-csv.mjs +17 -0
- package/dist/core/esm/_virtual/filter-cog.mjs +14 -0
- package/dist/core/esm/_virtual/filter.mjs +14 -0
- package/dist/core/esm/_virtual/id-badge-2.mjs +18 -0
- package/dist/core/esm/_virtual/lock.mjs +17 -0
- package/dist/core/esm/_virtual/logout.mjs +17 -0
- package/dist/core/esm/_virtual/maximize.mjs +14 -0
- package/dist/core/esm/_virtual/minimize.mjs +14 -0
- package/dist/core/esm/_virtual/pencil.mjs +14 -0
- package/dist/core/esm/_virtual/plus.mjs +14 -0
- package/dist/core/esm/_virtual/quote.mjs +14 -0
- package/dist/core/esm/_virtual/refresh.mjs +14 -0
- package/dist/core/esm/_virtual/separator-vertical.mjs +14 -0
- package/dist/core/esm/_virtual/stack-forward.mjs +17 -0
- package/dist/core/esm/_virtual/stack.mjs +14 -0
- package/dist/core/esm/_virtual/trash.mjs +14 -0
- package/dist/core/esm/_virtual/upload.mjs +14 -0
- package/dist/core/esm/_virtual/users.mjs +14 -0
- package/dist/core/esm/_virtual/x.mjs +14 -0
- package/dist/core/esm/index.mjs +2 -2
- package/dist/core/lib/Menu/UserMenu/UserMenu.d.ts +1 -2
- package/dist/jsonforms/cjs/_virtual/arrow-down.cjs +13 -0
- package/dist/jsonforms/cjs/_virtual/arrow-up.cjs +13 -0
- package/dist/jsonforms/cjs/_virtual/exclamation-circle.cjs +13 -0
- package/dist/jsonforms/cjs/_virtual/plus.cjs +13 -0
- package/dist/jsonforms/cjs/_virtual/timezone.cjs +17 -0
- package/dist/jsonforms/cjs/_virtual/trash.cjs +13 -0
- package/dist/jsonforms/cjs/hooks/useDateProps.cjs +11 -2
- package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +6 -6
- package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +4 -4
- package/dist/jsonforms/esm/_virtual/arrow-down.mjs +14 -0
- package/dist/jsonforms/esm/_virtual/arrow-up.mjs +14 -0
- package/dist/jsonforms/esm/_virtual/exclamation-circle.mjs +14 -0
- package/dist/jsonforms/esm/_virtual/plus.mjs +14 -0
- package/dist/jsonforms/esm/_virtual/timezone.mjs +18 -0
- package/dist/jsonforms/esm/_virtual/trash.mjs +14 -0
- package/dist/jsonforms/esm/hooks/useDateProps.mjs +11 -2
- package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +6 -6
- package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +4 -4
- package/package.json +5 -1
- package/dist/.external/cjs/@iconify_react@6.0.2_react@19.2.4/@iconify/react/dist/iconify.cjs +0 -1401
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconAlertCircle.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconAppWindow.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowDown.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowUp.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowsSort.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronDown.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronLeft.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronRight.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronUp.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronsDown.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconCircleX.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconClearAll.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconColumns.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDots.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDotsVertical.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDownload.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEdit.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEye.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEyeOff.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFileTypeCsv.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilter.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilterCog.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilterOff.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconIdBadge2.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconLock.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconLogout.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconMaximize.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconMinimize.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPencil.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPinned.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPinnedOff.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPlus.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconQuote.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconRefresh.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSearch.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSearchOff.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSortAscending.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSortDescending.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconTrash.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconUpload.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconUsers.cjs +0 -10
- package/dist/.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconX.cjs +0 -10
- package/dist/.external/esm/@iconify_react@6.0.2_react@19.2.4/@iconify/react/dist/iconify.mjs +0 -1401
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconAppWindow.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowDown.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowUp.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconArrowsSort.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronUp.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconChevronsDown.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconClearAll.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconColumns.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDots.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDotsVertical.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDownload.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEdit.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEye.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEyeOff.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFileTypeCsv.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilter.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconFilterCog.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconIdBadge2.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconLock.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconLogout.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconMaximize.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconMinimize.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPencil.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPinned.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPlus.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconQuote.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconRefresh.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconTrash.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconUpload.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconUsers.mjs +0 -11
- package/dist/.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconX.mjs +0 -11
- /package/dist/.external/cjs/{i18next@25.10.5_typescript@5.9.3 → i18next@25.10.9_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +0 -0
- /package/dist/.external/cjs/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._o4mo2rpvy7fpui7fiyfvhudhey → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._2kyqjjllw4h6nm2ylvp6tayqhi}/mantine-react-table/locales/de/index.cjs +0 -0
- /package/dist/.external/cjs/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._o4mo2rpvy7fpui7fiyfvhudhey → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._2kyqjjllw4h6nm2ylvp6tayqhi}/mantine-react-table/locales/en/index.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
- /package/dist/.external/esm/{i18next@25.10.5_typescript@5.9.3 → i18next@25.10.9_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +0 -0
- /package/dist/.external/esm/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._o4mo2rpvy7fpui7fiyfvhudhey → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._2kyqjjllw4h6nm2ylvp6tayqhi}/mantine-react-table/locales/de/index.mjs +0 -0
- /package/dist/.external/esm/{mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._o4mo2rpvy7fpui7fiyfvhudhey → mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._2kyqjjllw4h6nm2ylvp6tayqhi}/mantine-react-table/locales/en/index.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.10.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.10.9_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
package/dist/.external/cjs/@iconify_react@6.0.2_react@19.2.4/@iconify/react/dist/iconify.cjs
DELETED
|
@@ -1,1401 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const React = require("react");
|
|
4
|
-
function getIconsTree(data, names) {
|
|
5
|
-
const icons = data.icons;
|
|
6
|
-
const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
|
|
7
|
-
const resolved = /* @__PURE__ */ Object.create(null);
|
|
8
|
-
function resolve(name) {
|
|
9
|
-
if (icons[name]) return resolved[name] = [];
|
|
10
|
-
if (!(name in resolved)) {
|
|
11
|
-
resolved[name] = null;
|
|
12
|
-
const parent = aliases[name] && aliases[name].parent;
|
|
13
|
-
const value = parent && resolve(parent);
|
|
14
|
-
if (value) resolved[name] = [parent].concat(value);
|
|
15
|
-
}
|
|
16
|
-
return resolved[name];
|
|
17
|
-
}
|
|
18
|
-
Object.keys(icons).concat(Object.keys(aliases)).forEach(resolve);
|
|
19
|
-
return resolved;
|
|
20
|
-
}
|
|
21
|
-
const defaultIconDimensions = Object.freeze({
|
|
22
|
-
left: 0,
|
|
23
|
-
top: 0,
|
|
24
|
-
width: 16,
|
|
25
|
-
height: 16
|
|
26
|
-
});
|
|
27
|
-
const defaultIconTransformations = Object.freeze({
|
|
28
|
-
rotate: 0,
|
|
29
|
-
vFlip: false,
|
|
30
|
-
hFlip: false
|
|
31
|
-
});
|
|
32
|
-
const defaultIconProps = Object.freeze({
|
|
33
|
-
...defaultIconDimensions,
|
|
34
|
-
...defaultIconTransformations
|
|
35
|
-
});
|
|
36
|
-
const defaultExtendedIconProps = Object.freeze({
|
|
37
|
-
...defaultIconProps,
|
|
38
|
-
body: "",
|
|
39
|
-
hidden: false
|
|
40
|
-
});
|
|
41
|
-
function mergeIconTransformations(obj1, obj2) {
|
|
42
|
-
const result = {};
|
|
43
|
-
if (!obj1.hFlip !== !obj2.hFlip) result.hFlip = true;
|
|
44
|
-
if (!obj1.vFlip !== !obj2.vFlip) result.vFlip = true;
|
|
45
|
-
const rotate = ((obj1.rotate || 0) + (obj2.rotate || 0)) % 4;
|
|
46
|
-
if (rotate) result.rotate = rotate;
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
function mergeIconData(parent, child) {
|
|
50
|
-
const result = mergeIconTransformations(parent, child);
|
|
51
|
-
for (const key in defaultExtendedIconProps) if (key in defaultIconTransformations) {
|
|
52
|
-
if (key in parent && !(key in result)) result[key] = defaultIconTransformations[key];
|
|
53
|
-
} else if (key in child) result[key] = child[key];
|
|
54
|
-
else if (key in parent) result[key] = parent[key];
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
function internalGetIconData(data, name, tree) {
|
|
58
|
-
const icons = data.icons;
|
|
59
|
-
const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
|
|
60
|
-
let currentProps = {};
|
|
61
|
-
function parse(name$1) {
|
|
62
|
-
currentProps = mergeIconData(icons[name$1] || aliases[name$1], currentProps);
|
|
63
|
-
}
|
|
64
|
-
parse(name);
|
|
65
|
-
tree.forEach(parse);
|
|
66
|
-
return mergeIconData(data, currentProps);
|
|
67
|
-
}
|
|
68
|
-
function parseIconSet(data, callback) {
|
|
69
|
-
const names = [];
|
|
70
|
-
if (typeof data !== "object" || typeof data.icons !== "object") return names;
|
|
71
|
-
if (data.not_found instanceof Array) data.not_found.forEach((name) => {
|
|
72
|
-
callback(name, null);
|
|
73
|
-
names.push(name);
|
|
74
|
-
});
|
|
75
|
-
const tree = getIconsTree(data);
|
|
76
|
-
for (const name in tree) {
|
|
77
|
-
const item = tree[name];
|
|
78
|
-
if (item) {
|
|
79
|
-
callback(name, internalGetIconData(data, name, item));
|
|
80
|
-
names.push(name);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return names;
|
|
84
|
-
}
|
|
85
|
-
const optionalPropertyDefaults = {
|
|
86
|
-
provider: "",
|
|
87
|
-
aliases: {},
|
|
88
|
-
not_found: {},
|
|
89
|
-
...defaultIconDimensions
|
|
90
|
-
};
|
|
91
|
-
function checkOptionalProps(item, defaults) {
|
|
92
|
-
for (const prop in defaults) if (prop in item && typeof item[prop] !== typeof defaults[prop]) return false;
|
|
93
|
-
return true;
|
|
94
|
-
}
|
|
95
|
-
function quicklyValidateIconSet(obj) {
|
|
96
|
-
if (typeof obj !== "object" || obj === null) return null;
|
|
97
|
-
const data = obj;
|
|
98
|
-
if (typeof data.prefix !== "string" || !obj.icons || typeof obj.icons !== "object") return null;
|
|
99
|
-
if (!checkOptionalProps(obj, optionalPropertyDefaults)) return null;
|
|
100
|
-
const icons = data.icons;
|
|
101
|
-
for (const name in icons) {
|
|
102
|
-
const icon = icons[name];
|
|
103
|
-
if (!name || typeof icon.body !== "string" || !checkOptionalProps(icon, defaultExtendedIconProps)) return null;
|
|
104
|
-
}
|
|
105
|
-
const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
|
|
106
|
-
for (const name in aliases) {
|
|
107
|
-
const icon = aliases[name];
|
|
108
|
-
const parent = icon.parent;
|
|
109
|
-
if (!name || typeof parent !== "string" || !icons[parent] && !aliases[parent] || !checkOptionalProps(icon, defaultExtendedIconProps)) return null;
|
|
110
|
-
}
|
|
111
|
-
return data;
|
|
112
|
-
}
|
|
113
|
-
const dataStorage = /* @__PURE__ */ Object.create(null);
|
|
114
|
-
function newStorage(provider, prefix) {
|
|
115
|
-
return {
|
|
116
|
-
provider,
|
|
117
|
-
prefix,
|
|
118
|
-
icons: /* @__PURE__ */ Object.create(null),
|
|
119
|
-
missing: /* @__PURE__ */ new Set()
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function getStorage(provider, prefix) {
|
|
123
|
-
const providerStorage = dataStorage[provider] || (dataStorage[provider] = /* @__PURE__ */ Object.create(null));
|
|
124
|
-
return providerStorage[prefix] || (providerStorage[prefix] = newStorage(provider, prefix));
|
|
125
|
-
}
|
|
126
|
-
function addIconSet(storage2, data) {
|
|
127
|
-
if (!quicklyValidateIconSet(data)) return [];
|
|
128
|
-
return parseIconSet(data, (name, icon) => {
|
|
129
|
-
if (icon) storage2.icons[name] = icon;
|
|
130
|
-
else storage2.missing.add(name);
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function addIconToStorage(storage2, name, icon) {
|
|
134
|
-
try {
|
|
135
|
-
if (typeof icon.body === "string") {
|
|
136
|
-
storage2.icons[name] = { ...icon };
|
|
137
|
-
return true;
|
|
138
|
-
}
|
|
139
|
-
} catch (err) {
|
|
140
|
-
}
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
const matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
144
|
-
const stringToIcon = (value, validate, allowSimpleName, provider = "") => {
|
|
145
|
-
const colonSeparated = value.split(":");
|
|
146
|
-
if (value.slice(0, 1) === "@") {
|
|
147
|
-
if (colonSeparated.length < 2 || colonSeparated.length > 3) return null;
|
|
148
|
-
provider = colonSeparated.shift().slice(1);
|
|
149
|
-
}
|
|
150
|
-
if (colonSeparated.length > 3 || !colonSeparated.length) return null;
|
|
151
|
-
if (colonSeparated.length > 1) {
|
|
152
|
-
const name$1 = colonSeparated.pop();
|
|
153
|
-
const prefix = colonSeparated.pop();
|
|
154
|
-
const result = {
|
|
155
|
-
provider: colonSeparated.length > 0 ? colonSeparated[0] : provider,
|
|
156
|
-
prefix,
|
|
157
|
-
name: name$1
|
|
158
|
-
};
|
|
159
|
-
return validate && !validateIconName(result) ? null : result;
|
|
160
|
-
}
|
|
161
|
-
const name = colonSeparated[0];
|
|
162
|
-
const dashSeparated = name.split("-");
|
|
163
|
-
if (dashSeparated.length > 1) {
|
|
164
|
-
const result = {
|
|
165
|
-
provider,
|
|
166
|
-
prefix: dashSeparated.shift(),
|
|
167
|
-
name: dashSeparated.join("-")
|
|
168
|
-
};
|
|
169
|
-
return validate && !validateIconName(result) ? null : result;
|
|
170
|
-
}
|
|
171
|
-
if (allowSimpleName && provider === "") {
|
|
172
|
-
const result = {
|
|
173
|
-
provider,
|
|
174
|
-
prefix: "",
|
|
175
|
-
name
|
|
176
|
-
};
|
|
177
|
-
return validate && !validateIconName(result, allowSimpleName) ? null : result;
|
|
178
|
-
}
|
|
179
|
-
return null;
|
|
180
|
-
};
|
|
181
|
-
const validateIconName = (icon, allowSimpleName) => {
|
|
182
|
-
if (!icon) return false;
|
|
183
|
-
return !!((allowSimpleName && icon.prefix === "" || !!icon.prefix) && !!icon.name);
|
|
184
|
-
};
|
|
185
|
-
let simpleNames = false;
|
|
186
|
-
function allowSimpleNames(allow) {
|
|
187
|
-
if (typeof allow === "boolean") simpleNames = allow;
|
|
188
|
-
return simpleNames;
|
|
189
|
-
}
|
|
190
|
-
function getIconData(name) {
|
|
191
|
-
const icon = typeof name === "string" ? stringToIcon(name, true, simpleNames) : name;
|
|
192
|
-
if (icon) {
|
|
193
|
-
const storage2 = getStorage(icon.provider, icon.prefix);
|
|
194
|
-
const iconName = icon.name;
|
|
195
|
-
return storage2.icons[iconName] || (storage2.missing.has(iconName) ? null : void 0);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
function addIcon(name, data) {
|
|
199
|
-
const icon = stringToIcon(name, true, simpleNames);
|
|
200
|
-
if (!icon) return false;
|
|
201
|
-
const storage2 = getStorage(icon.provider, icon.prefix);
|
|
202
|
-
if (data) return addIconToStorage(storage2, icon.name, data);
|
|
203
|
-
else {
|
|
204
|
-
storage2.missing.add(icon.name);
|
|
205
|
-
return true;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
function addCollection(data, provider) {
|
|
209
|
-
if (typeof data !== "object") return false;
|
|
210
|
-
if (typeof provider !== "string") provider = data.provider || "";
|
|
211
|
-
if (simpleNames && !provider && !data.prefix) {
|
|
212
|
-
let added = false;
|
|
213
|
-
if (quicklyValidateIconSet(data)) {
|
|
214
|
-
data.prefix = "";
|
|
215
|
-
parseIconSet(data, (name, icon) => {
|
|
216
|
-
if (addIcon(name, icon)) added = true;
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
return added;
|
|
220
|
-
}
|
|
221
|
-
const prefix = data.prefix;
|
|
222
|
-
if (!validateIconName({
|
|
223
|
-
prefix,
|
|
224
|
-
name: "a"
|
|
225
|
-
})) return false;
|
|
226
|
-
const storage2 = getStorage(provider, prefix);
|
|
227
|
-
return !!addIconSet(storage2, data);
|
|
228
|
-
}
|
|
229
|
-
const defaultIconSizeCustomisations = Object.freeze({
|
|
230
|
-
width: null,
|
|
231
|
-
height: null
|
|
232
|
-
});
|
|
233
|
-
const defaultIconCustomisations = Object.freeze({
|
|
234
|
-
...defaultIconSizeCustomisations,
|
|
235
|
-
...defaultIconTransformations
|
|
236
|
-
});
|
|
237
|
-
const unitsSplit = /(-?[0-9.]*[0-9]+[0-9.]*)/g;
|
|
238
|
-
const unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
239
|
-
function calculateSize(size, ratio, precision) {
|
|
240
|
-
if (ratio === 1) return size;
|
|
241
|
-
precision = precision || 100;
|
|
242
|
-
if (typeof size === "number") return Math.ceil(size * ratio * precision) / precision;
|
|
243
|
-
if (typeof size !== "string") return size;
|
|
244
|
-
const oldParts = size.split(unitsSplit);
|
|
245
|
-
if (oldParts === null || !oldParts.length) return size;
|
|
246
|
-
const newParts = [];
|
|
247
|
-
let code = oldParts.shift();
|
|
248
|
-
let isNumber = unitsTest.test(code);
|
|
249
|
-
while (true) {
|
|
250
|
-
if (isNumber) {
|
|
251
|
-
const num = parseFloat(code);
|
|
252
|
-
if (isNaN(num)) newParts.push(code);
|
|
253
|
-
else newParts.push(Math.ceil(num * ratio * precision) / precision);
|
|
254
|
-
} else newParts.push(code);
|
|
255
|
-
code = oldParts.shift();
|
|
256
|
-
if (code === void 0) return newParts.join("");
|
|
257
|
-
isNumber = !isNumber;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
function splitSVGDefs(content, tag = "defs") {
|
|
261
|
-
let defs = "";
|
|
262
|
-
const index = content.indexOf("<" + tag);
|
|
263
|
-
while (index >= 0) {
|
|
264
|
-
const start = content.indexOf(">", index);
|
|
265
|
-
const end = content.indexOf("</" + tag);
|
|
266
|
-
if (start === -1 || end === -1) break;
|
|
267
|
-
const endEnd = content.indexOf(">", end);
|
|
268
|
-
if (endEnd === -1) break;
|
|
269
|
-
defs += content.slice(start + 1, end).trim();
|
|
270
|
-
content = content.slice(0, index).trim() + content.slice(endEnd + 1);
|
|
271
|
-
}
|
|
272
|
-
return {
|
|
273
|
-
defs,
|
|
274
|
-
content
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
function mergeDefsAndContent(defs, content) {
|
|
278
|
-
return defs ? "<defs>" + defs + "</defs>" + content : content;
|
|
279
|
-
}
|
|
280
|
-
function wrapSVGContent(body, start, end) {
|
|
281
|
-
const split = splitSVGDefs(body);
|
|
282
|
-
return mergeDefsAndContent(split.defs, start + split.content + end);
|
|
283
|
-
}
|
|
284
|
-
const isUnsetKeyword = (value) => value === "unset" || value === "undefined" || value === "none";
|
|
285
|
-
function iconToSVG(icon, customisations) {
|
|
286
|
-
const fullIcon = {
|
|
287
|
-
...defaultIconProps,
|
|
288
|
-
...icon
|
|
289
|
-
};
|
|
290
|
-
const fullCustomisations = {
|
|
291
|
-
...defaultIconCustomisations,
|
|
292
|
-
...customisations
|
|
293
|
-
};
|
|
294
|
-
const box = {
|
|
295
|
-
left: fullIcon.left,
|
|
296
|
-
top: fullIcon.top,
|
|
297
|
-
width: fullIcon.width,
|
|
298
|
-
height: fullIcon.height
|
|
299
|
-
};
|
|
300
|
-
let body = fullIcon.body;
|
|
301
|
-
[fullIcon, fullCustomisations].forEach((props) => {
|
|
302
|
-
const transformations = [];
|
|
303
|
-
const hFlip = props.hFlip;
|
|
304
|
-
const vFlip = props.vFlip;
|
|
305
|
-
let rotation = props.rotate;
|
|
306
|
-
if (hFlip) if (vFlip) rotation += 2;
|
|
307
|
-
else {
|
|
308
|
-
transformations.push("translate(" + (box.width + box.left).toString() + " " + (0 - box.top).toString() + ")");
|
|
309
|
-
transformations.push("scale(-1 1)");
|
|
310
|
-
box.top = box.left = 0;
|
|
311
|
-
}
|
|
312
|
-
else if (vFlip) {
|
|
313
|
-
transformations.push("translate(" + (0 - box.left).toString() + " " + (box.height + box.top).toString() + ")");
|
|
314
|
-
transformations.push("scale(1 -1)");
|
|
315
|
-
box.top = box.left = 0;
|
|
316
|
-
}
|
|
317
|
-
let tempValue;
|
|
318
|
-
if (rotation < 0) rotation -= Math.floor(rotation / 4) * 4;
|
|
319
|
-
rotation = rotation % 4;
|
|
320
|
-
switch (rotation) {
|
|
321
|
-
case 1:
|
|
322
|
-
tempValue = box.height / 2 + box.top;
|
|
323
|
-
transformations.unshift("rotate(90 " + tempValue.toString() + " " + tempValue.toString() + ")");
|
|
324
|
-
break;
|
|
325
|
-
case 2:
|
|
326
|
-
transformations.unshift("rotate(180 " + (box.width / 2 + box.left).toString() + " " + (box.height / 2 + box.top).toString() + ")");
|
|
327
|
-
break;
|
|
328
|
-
case 3:
|
|
329
|
-
tempValue = box.width / 2 + box.left;
|
|
330
|
-
transformations.unshift("rotate(-90 " + tempValue.toString() + " " + tempValue.toString() + ")");
|
|
331
|
-
break;
|
|
332
|
-
}
|
|
333
|
-
if (rotation % 2 === 1) {
|
|
334
|
-
if (box.left !== box.top) {
|
|
335
|
-
tempValue = box.left;
|
|
336
|
-
box.left = box.top;
|
|
337
|
-
box.top = tempValue;
|
|
338
|
-
}
|
|
339
|
-
if (box.width !== box.height) {
|
|
340
|
-
tempValue = box.width;
|
|
341
|
-
box.width = box.height;
|
|
342
|
-
box.height = tempValue;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
if (transformations.length) body = wrapSVGContent(body, '<g transform="' + transformations.join(" ") + '">', "</g>");
|
|
346
|
-
});
|
|
347
|
-
const customisationsWidth = fullCustomisations.width;
|
|
348
|
-
const customisationsHeight = fullCustomisations.height;
|
|
349
|
-
const boxWidth = box.width;
|
|
350
|
-
const boxHeight = box.height;
|
|
351
|
-
let width;
|
|
352
|
-
let height;
|
|
353
|
-
if (customisationsWidth === null) {
|
|
354
|
-
height = customisationsHeight === null ? "1em" : customisationsHeight === "auto" ? boxHeight : customisationsHeight;
|
|
355
|
-
width = calculateSize(height, boxWidth / boxHeight);
|
|
356
|
-
} else {
|
|
357
|
-
width = customisationsWidth === "auto" ? boxWidth : customisationsWidth;
|
|
358
|
-
height = customisationsHeight === null ? calculateSize(width, boxHeight / boxWidth) : customisationsHeight === "auto" ? boxHeight : customisationsHeight;
|
|
359
|
-
}
|
|
360
|
-
const attributes = {};
|
|
361
|
-
const setAttr = (prop, value) => {
|
|
362
|
-
if (!isUnsetKeyword(value)) attributes[prop] = value.toString();
|
|
363
|
-
};
|
|
364
|
-
setAttr("width", width);
|
|
365
|
-
setAttr("height", height);
|
|
366
|
-
const viewBox = [
|
|
367
|
-
box.left,
|
|
368
|
-
box.top,
|
|
369
|
-
boxWidth,
|
|
370
|
-
boxHeight
|
|
371
|
-
];
|
|
372
|
-
attributes.viewBox = viewBox.join(" ");
|
|
373
|
-
return {
|
|
374
|
-
attributes,
|
|
375
|
-
viewBox,
|
|
376
|
-
body
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
const regex = /\sid="(\S+)"/g;
|
|
380
|
-
const randomPrefix = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
381
|
-
let counter = 0;
|
|
382
|
-
function replaceIDs(body, prefix = randomPrefix) {
|
|
383
|
-
const ids = [];
|
|
384
|
-
let match;
|
|
385
|
-
while (match = regex.exec(body)) ids.push(match[1]);
|
|
386
|
-
if (!ids.length) return body;
|
|
387
|
-
const suffix = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
388
|
-
ids.forEach((id) => {
|
|
389
|
-
const newID = typeof prefix === "function" ? prefix(id) : prefix + (counter++).toString();
|
|
390
|
-
const escapedID = id.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
391
|
-
body = body.replace(new RegExp('([#;"])(' + escapedID + ')([")]|\\.[a-z])', "g"), "$1" + newID + suffix + "$3");
|
|
392
|
-
});
|
|
393
|
-
body = body.replace(new RegExp(suffix, "g"), "");
|
|
394
|
-
return body;
|
|
395
|
-
}
|
|
396
|
-
const storage = /* @__PURE__ */ Object.create(null);
|
|
397
|
-
function setAPIModule(provider, item) {
|
|
398
|
-
storage[provider] = item;
|
|
399
|
-
}
|
|
400
|
-
function getAPIModule(provider) {
|
|
401
|
-
return storage[provider] || storage[""];
|
|
402
|
-
}
|
|
403
|
-
function createAPIConfig(source) {
|
|
404
|
-
let resources;
|
|
405
|
-
if (typeof source.resources === "string") resources = [source.resources];
|
|
406
|
-
else {
|
|
407
|
-
resources = source.resources;
|
|
408
|
-
if (!(resources instanceof Array) || !resources.length) return null;
|
|
409
|
-
}
|
|
410
|
-
const result = {
|
|
411
|
-
resources,
|
|
412
|
-
path: source.path || "/",
|
|
413
|
-
maxURL: source.maxURL || 500,
|
|
414
|
-
rotate: source.rotate || 750,
|
|
415
|
-
timeout: source.timeout || 5e3,
|
|
416
|
-
random: source.random === true,
|
|
417
|
-
index: source.index || 0,
|
|
418
|
-
dataAfterTimeout: source.dataAfterTimeout !== false
|
|
419
|
-
};
|
|
420
|
-
return result;
|
|
421
|
-
}
|
|
422
|
-
const configStorage = /* @__PURE__ */ Object.create(null);
|
|
423
|
-
const fallBackAPISources = ["https://api.simplesvg.com", "https://api.unisvg.com"];
|
|
424
|
-
const fallBackAPI = [];
|
|
425
|
-
while (fallBackAPISources.length > 0) if (fallBackAPISources.length === 1) fallBackAPI.push(fallBackAPISources.shift());
|
|
426
|
-
else if (Math.random() > 0.5) fallBackAPI.push(fallBackAPISources.shift());
|
|
427
|
-
else fallBackAPI.push(fallBackAPISources.pop());
|
|
428
|
-
configStorage[""] = createAPIConfig({ resources: ["https://api.iconify.design"].concat(fallBackAPI) });
|
|
429
|
-
function addAPIProvider(provider, customConfig) {
|
|
430
|
-
const config = createAPIConfig(customConfig);
|
|
431
|
-
if (config === null) return false;
|
|
432
|
-
configStorage[provider] = config;
|
|
433
|
-
return true;
|
|
434
|
-
}
|
|
435
|
-
function getAPIConfig(provider) {
|
|
436
|
-
return configStorage[provider];
|
|
437
|
-
}
|
|
438
|
-
const detectFetch = () => {
|
|
439
|
-
let callback;
|
|
440
|
-
try {
|
|
441
|
-
callback = fetch;
|
|
442
|
-
if (typeof callback === "function") return callback;
|
|
443
|
-
} catch (err) {
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
|
-
let fetchModule = detectFetch();
|
|
447
|
-
function calculateMaxLength(provider, prefix) {
|
|
448
|
-
const config = getAPIConfig(provider);
|
|
449
|
-
if (!config) return 0;
|
|
450
|
-
let result;
|
|
451
|
-
if (!config.maxURL) result = 0;
|
|
452
|
-
else {
|
|
453
|
-
let maxHostLength = 0;
|
|
454
|
-
config.resources.forEach((item) => {
|
|
455
|
-
const host = item;
|
|
456
|
-
maxHostLength = Math.max(maxHostLength, host.length);
|
|
457
|
-
});
|
|
458
|
-
const url = prefix + ".json?icons=";
|
|
459
|
-
result = config.maxURL - maxHostLength - config.path.length - url.length;
|
|
460
|
-
}
|
|
461
|
-
return result;
|
|
462
|
-
}
|
|
463
|
-
function shouldAbort(status) {
|
|
464
|
-
return status === 404;
|
|
465
|
-
}
|
|
466
|
-
const prepare = (provider, prefix, icons) => {
|
|
467
|
-
const results = [];
|
|
468
|
-
const maxLength = calculateMaxLength(provider, prefix);
|
|
469
|
-
const type = "icons";
|
|
470
|
-
let item = {
|
|
471
|
-
type,
|
|
472
|
-
provider,
|
|
473
|
-
prefix,
|
|
474
|
-
icons: []
|
|
475
|
-
};
|
|
476
|
-
let length = 0;
|
|
477
|
-
icons.forEach((name, index) => {
|
|
478
|
-
length += name.length + 1;
|
|
479
|
-
if (length >= maxLength && index > 0) {
|
|
480
|
-
results.push(item);
|
|
481
|
-
item = {
|
|
482
|
-
type,
|
|
483
|
-
provider,
|
|
484
|
-
prefix,
|
|
485
|
-
icons: []
|
|
486
|
-
};
|
|
487
|
-
length = name.length;
|
|
488
|
-
}
|
|
489
|
-
item.icons.push(name);
|
|
490
|
-
});
|
|
491
|
-
results.push(item);
|
|
492
|
-
return results;
|
|
493
|
-
};
|
|
494
|
-
function getPath(provider) {
|
|
495
|
-
if (typeof provider === "string") {
|
|
496
|
-
const config = getAPIConfig(provider);
|
|
497
|
-
if (config) return config.path;
|
|
498
|
-
}
|
|
499
|
-
return "/";
|
|
500
|
-
}
|
|
501
|
-
const send = (host, params, callback) => {
|
|
502
|
-
if (!fetchModule) {
|
|
503
|
-
callback("abort", 424);
|
|
504
|
-
return;
|
|
505
|
-
}
|
|
506
|
-
let path = getPath(params.provider);
|
|
507
|
-
switch (params.type) {
|
|
508
|
-
case "icons": {
|
|
509
|
-
const prefix = params.prefix;
|
|
510
|
-
const icons = params.icons;
|
|
511
|
-
const iconsList = icons.join(",");
|
|
512
|
-
const urlParams = new URLSearchParams({ icons: iconsList });
|
|
513
|
-
path += prefix + ".json?" + urlParams.toString();
|
|
514
|
-
break;
|
|
515
|
-
}
|
|
516
|
-
case "custom": {
|
|
517
|
-
const uri = params.uri;
|
|
518
|
-
path += uri.slice(0, 1) === "/" ? uri.slice(1) : uri;
|
|
519
|
-
break;
|
|
520
|
-
}
|
|
521
|
-
default:
|
|
522
|
-
callback("abort", 400);
|
|
523
|
-
return;
|
|
524
|
-
}
|
|
525
|
-
let defaultError = 503;
|
|
526
|
-
fetchModule(host + path).then((response) => {
|
|
527
|
-
const status = response.status;
|
|
528
|
-
if (status !== 200) {
|
|
529
|
-
setTimeout(() => {
|
|
530
|
-
callback(shouldAbort(status) ? "abort" : "next", status);
|
|
531
|
-
});
|
|
532
|
-
return;
|
|
533
|
-
}
|
|
534
|
-
defaultError = 501;
|
|
535
|
-
return response.json();
|
|
536
|
-
}).then((data) => {
|
|
537
|
-
if (typeof data !== "object" || data === null) {
|
|
538
|
-
setTimeout(() => {
|
|
539
|
-
if (data === 404) callback("abort", data);
|
|
540
|
-
else callback("next", defaultError);
|
|
541
|
-
});
|
|
542
|
-
return;
|
|
543
|
-
}
|
|
544
|
-
setTimeout(() => {
|
|
545
|
-
callback("success", data);
|
|
546
|
-
});
|
|
547
|
-
}).catch(() => {
|
|
548
|
-
callback("next", defaultError);
|
|
549
|
-
});
|
|
550
|
-
};
|
|
551
|
-
const fetchAPIModule = {
|
|
552
|
-
prepare,
|
|
553
|
-
send
|
|
554
|
-
};
|
|
555
|
-
function removeCallback(storages, id) {
|
|
556
|
-
storages.forEach((storage2) => {
|
|
557
|
-
const items = storage2.loaderCallbacks;
|
|
558
|
-
if (items) storage2.loaderCallbacks = items.filter((row) => row.id !== id);
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
function updateCallbacks(storage2) {
|
|
562
|
-
if (!storage2.pendingCallbacksFlag) {
|
|
563
|
-
storage2.pendingCallbacksFlag = true;
|
|
564
|
-
setTimeout(() => {
|
|
565
|
-
storage2.pendingCallbacksFlag = false;
|
|
566
|
-
const items = storage2.loaderCallbacks ? storage2.loaderCallbacks.slice(0) : [];
|
|
567
|
-
if (!items.length) return;
|
|
568
|
-
let hasPending = false;
|
|
569
|
-
const provider = storage2.provider;
|
|
570
|
-
const prefix = storage2.prefix;
|
|
571
|
-
items.forEach((item) => {
|
|
572
|
-
const icons = item.icons;
|
|
573
|
-
const oldLength = icons.pending.length;
|
|
574
|
-
icons.pending = icons.pending.filter((icon) => {
|
|
575
|
-
if (icon.prefix !== prefix) return true;
|
|
576
|
-
const name = icon.name;
|
|
577
|
-
if (storage2.icons[name]) icons.loaded.push({
|
|
578
|
-
provider,
|
|
579
|
-
prefix,
|
|
580
|
-
name
|
|
581
|
-
});
|
|
582
|
-
else if (storage2.missing.has(name)) icons.missing.push({
|
|
583
|
-
provider,
|
|
584
|
-
prefix,
|
|
585
|
-
name
|
|
586
|
-
});
|
|
587
|
-
else {
|
|
588
|
-
hasPending = true;
|
|
589
|
-
return true;
|
|
590
|
-
}
|
|
591
|
-
return false;
|
|
592
|
-
});
|
|
593
|
-
if (icons.pending.length !== oldLength) {
|
|
594
|
-
if (!hasPending) removeCallback([storage2], item.id);
|
|
595
|
-
item.callback(icons.loaded.slice(0), icons.missing.slice(0), icons.pending.slice(0), item.abort);
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
let idCounter = 0;
|
|
602
|
-
function storeCallback(callback, icons, pendingSources) {
|
|
603
|
-
const id = idCounter++;
|
|
604
|
-
const abort = removeCallback.bind(null, pendingSources, id);
|
|
605
|
-
if (!icons.pending.length) return abort;
|
|
606
|
-
const item = {
|
|
607
|
-
id,
|
|
608
|
-
icons,
|
|
609
|
-
callback,
|
|
610
|
-
abort
|
|
611
|
-
};
|
|
612
|
-
pendingSources.forEach((storage2) => {
|
|
613
|
-
(storage2.loaderCallbacks || (storage2.loaderCallbacks = [])).push(item);
|
|
614
|
-
});
|
|
615
|
-
return abort;
|
|
616
|
-
}
|
|
617
|
-
function sortIcons(icons) {
|
|
618
|
-
const result = {
|
|
619
|
-
loaded: [],
|
|
620
|
-
missing: [],
|
|
621
|
-
pending: []
|
|
622
|
-
};
|
|
623
|
-
const storage2 = /* @__PURE__ */ Object.create(null);
|
|
624
|
-
icons.sort((a, b) => {
|
|
625
|
-
if (a.provider !== b.provider) return a.provider.localeCompare(b.provider);
|
|
626
|
-
if (a.prefix !== b.prefix) return a.prefix.localeCompare(b.prefix);
|
|
627
|
-
return a.name.localeCompare(b.name);
|
|
628
|
-
});
|
|
629
|
-
let lastIcon = {
|
|
630
|
-
provider: "",
|
|
631
|
-
prefix: "",
|
|
632
|
-
name: ""
|
|
633
|
-
};
|
|
634
|
-
icons.forEach((icon) => {
|
|
635
|
-
if (lastIcon.name === icon.name && lastIcon.prefix === icon.prefix && lastIcon.provider === icon.provider) return;
|
|
636
|
-
lastIcon = icon;
|
|
637
|
-
const provider = icon.provider;
|
|
638
|
-
const prefix = icon.prefix;
|
|
639
|
-
const name = icon.name;
|
|
640
|
-
const providerStorage = storage2[provider] || (storage2[provider] = /* @__PURE__ */ Object.create(null));
|
|
641
|
-
const localStorage = providerStorage[prefix] || (providerStorage[prefix] = getStorage(provider, prefix));
|
|
642
|
-
let list;
|
|
643
|
-
if (name in localStorage.icons) list = result.loaded;
|
|
644
|
-
else if (prefix === "" || localStorage.missing.has(name)) list = result.missing;
|
|
645
|
-
else list = result.pending;
|
|
646
|
-
const item = {
|
|
647
|
-
provider,
|
|
648
|
-
prefix,
|
|
649
|
-
name
|
|
650
|
-
};
|
|
651
|
-
list.push(item);
|
|
652
|
-
});
|
|
653
|
-
return result;
|
|
654
|
-
}
|
|
655
|
-
function listToIcons(list, validate = true, simpleNames2 = false) {
|
|
656
|
-
const result = [];
|
|
657
|
-
list.forEach((item) => {
|
|
658
|
-
const icon = typeof item === "string" ? stringToIcon(item, validate, simpleNames2) : item;
|
|
659
|
-
if (icon) result.push(icon);
|
|
660
|
-
});
|
|
661
|
-
return result;
|
|
662
|
-
}
|
|
663
|
-
const defaultConfig = {
|
|
664
|
-
resources: [],
|
|
665
|
-
index: 0,
|
|
666
|
-
timeout: 2e3,
|
|
667
|
-
rotate: 750,
|
|
668
|
-
random: false,
|
|
669
|
-
dataAfterTimeout: false
|
|
670
|
-
};
|
|
671
|
-
function sendQuery(config, payload, query, done) {
|
|
672
|
-
const resourcesCount = config.resources.length;
|
|
673
|
-
const startIndex = config.random ? Math.floor(Math.random() * resourcesCount) : config.index;
|
|
674
|
-
let resources;
|
|
675
|
-
if (config.random) {
|
|
676
|
-
let list = config.resources.slice(0);
|
|
677
|
-
resources = [];
|
|
678
|
-
while (list.length > 1) {
|
|
679
|
-
const nextIndex = Math.floor(Math.random() * list.length);
|
|
680
|
-
resources.push(list[nextIndex]);
|
|
681
|
-
list = list.slice(0, nextIndex).concat(list.slice(nextIndex + 1));
|
|
682
|
-
}
|
|
683
|
-
resources = resources.concat(list);
|
|
684
|
-
} else resources = config.resources.slice(startIndex).concat(config.resources.slice(0, startIndex));
|
|
685
|
-
const startTime = Date.now();
|
|
686
|
-
let status = "pending";
|
|
687
|
-
let queriesSent = 0;
|
|
688
|
-
let lastError;
|
|
689
|
-
let timer = null;
|
|
690
|
-
let queue = [];
|
|
691
|
-
let doneCallbacks = [];
|
|
692
|
-
if (typeof done === "function") doneCallbacks.push(done);
|
|
693
|
-
function resetTimer() {
|
|
694
|
-
if (timer) {
|
|
695
|
-
clearTimeout(timer);
|
|
696
|
-
timer = null;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
function abort() {
|
|
700
|
-
if (status === "pending") status = "aborted";
|
|
701
|
-
resetTimer();
|
|
702
|
-
queue.forEach((item) => {
|
|
703
|
-
if (item.status === "pending") item.status = "aborted";
|
|
704
|
-
});
|
|
705
|
-
queue = [];
|
|
706
|
-
}
|
|
707
|
-
function subscribe(callback, overwrite) {
|
|
708
|
-
if (overwrite) doneCallbacks = [];
|
|
709
|
-
if (typeof callback === "function") doneCallbacks.push(callback);
|
|
710
|
-
}
|
|
711
|
-
function getQueryStatus() {
|
|
712
|
-
return {
|
|
713
|
-
startTime,
|
|
714
|
-
payload,
|
|
715
|
-
status,
|
|
716
|
-
queriesSent,
|
|
717
|
-
queriesPending: queue.length,
|
|
718
|
-
subscribe,
|
|
719
|
-
abort
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
function failQuery() {
|
|
723
|
-
status = "failed";
|
|
724
|
-
doneCallbacks.forEach((callback) => {
|
|
725
|
-
callback(void 0, lastError);
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
function clearQueue() {
|
|
729
|
-
queue.forEach((item) => {
|
|
730
|
-
if (item.status === "pending") item.status = "aborted";
|
|
731
|
-
});
|
|
732
|
-
queue = [];
|
|
733
|
-
}
|
|
734
|
-
function moduleResponse(item, response, data) {
|
|
735
|
-
const isError = response !== "success";
|
|
736
|
-
queue = queue.filter((queued) => queued !== item);
|
|
737
|
-
switch (status) {
|
|
738
|
-
case "pending":
|
|
739
|
-
break;
|
|
740
|
-
case "failed":
|
|
741
|
-
if (isError || !config.dataAfterTimeout) return;
|
|
742
|
-
break;
|
|
743
|
-
default:
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
|
-
if (response === "abort") {
|
|
747
|
-
lastError = data;
|
|
748
|
-
failQuery();
|
|
749
|
-
return;
|
|
750
|
-
}
|
|
751
|
-
if (isError) {
|
|
752
|
-
lastError = data;
|
|
753
|
-
if (!queue.length) if (!resources.length) failQuery();
|
|
754
|
-
else execNext();
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
resetTimer();
|
|
758
|
-
clearQueue();
|
|
759
|
-
if (!config.random) {
|
|
760
|
-
const index = config.resources.indexOf(item.resource);
|
|
761
|
-
if (index !== -1 && index !== config.index) config.index = index;
|
|
762
|
-
}
|
|
763
|
-
status = "completed";
|
|
764
|
-
doneCallbacks.forEach((callback) => {
|
|
765
|
-
callback(data);
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
function execNext() {
|
|
769
|
-
if (status !== "pending") return;
|
|
770
|
-
resetTimer();
|
|
771
|
-
const resource = resources.shift();
|
|
772
|
-
if (resource === void 0) {
|
|
773
|
-
if (queue.length) {
|
|
774
|
-
timer = setTimeout(() => {
|
|
775
|
-
resetTimer();
|
|
776
|
-
if (status === "pending") {
|
|
777
|
-
clearQueue();
|
|
778
|
-
failQuery();
|
|
779
|
-
}
|
|
780
|
-
}, config.timeout);
|
|
781
|
-
return;
|
|
782
|
-
}
|
|
783
|
-
failQuery();
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
const item = {
|
|
787
|
-
status: "pending",
|
|
788
|
-
resource,
|
|
789
|
-
callback: (status$1, data) => {
|
|
790
|
-
moduleResponse(item, status$1, data);
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
queue.push(item);
|
|
794
|
-
queriesSent++;
|
|
795
|
-
timer = setTimeout(execNext, config.rotate);
|
|
796
|
-
query(resource, payload, item.callback);
|
|
797
|
-
}
|
|
798
|
-
setTimeout(execNext);
|
|
799
|
-
return getQueryStatus;
|
|
800
|
-
}
|
|
801
|
-
function initRedundancy(cfg) {
|
|
802
|
-
const config = {
|
|
803
|
-
...defaultConfig,
|
|
804
|
-
...cfg
|
|
805
|
-
};
|
|
806
|
-
let queries = [];
|
|
807
|
-
function cleanup() {
|
|
808
|
-
queries = queries.filter((item) => item().status === "pending");
|
|
809
|
-
}
|
|
810
|
-
function query(payload, queryCallback, doneCallback) {
|
|
811
|
-
const query$1 = sendQuery(config, payload, queryCallback, (data, error) => {
|
|
812
|
-
cleanup();
|
|
813
|
-
if (doneCallback) doneCallback(data, error);
|
|
814
|
-
});
|
|
815
|
-
queries.push(query$1);
|
|
816
|
-
return query$1;
|
|
817
|
-
}
|
|
818
|
-
function find(callback) {
|
|
819
|
-
return queries.find((value) => {
|
|
820
|
-
return callback(value);
|
|
821
|
-
}) || null;
|
|
822
|
-
}
|
|
823
|
-
const instance = {
|
|
824
|
-
query,
|
|
825
|
-
find,
|
|
826
|
-
setIndex: (index) => {
|
|
827
|
-
config.index = index;
|
|
828
|
-
},
|
|
829
|
-
getIndex: () => config.index,
|
|
830
|
-
cleanup
|
|
831
|
-
};
|
|
832
|
-
return instance;
|
|
833
|
-
}
|
|
834
|
-
function emptyCallback$1() {
|
|
835
|
-
}
|
|
836
|
-
const redundancyCache = /* @__PURE__ */ Object.create(null);
|
|
837
|
-
function getRedundancyCache(provider) {
|
|
838
|
-
if (!redundancyCache[provider]) {
|
|
839
|
-
const config = getAPIConfig(provider);
|
|
840
|
-
if (!config) return;
|
|
841
|
-
const redundancy = initRedundancy(config);
|
|
842
|
-
const cachedReundancy = {
|
|
843
|
-
config,
|
|
844
|
-
redundancy
|
|
845
|
-
};
|
|
846
|
-
redundancyCache[provider] = cachedReundancy;
|
|
847
|
-
}
|
|
848
|
-
return redundancyCache[provider];
|
|
849
|
-
}
|
|
850
|
-
function sendAPIQuery(target, query, callback) {
|
|
851
|
-
let redundancy;
|
|
852
|
-
let send2;
|
|
853
|
-
if (typeof target === "string") {
|
|
854
|
-
const api = getAPIModule(target);
|
|
855
|
-
if (!api) {
|
|
856
|
-
callback(void 0, 424);
|
|
857
|
-
return emptyCallback$1;
|
|
858
|
-
}
|
|
859
|
-
send2 = api.send;
|
|
860
|
-
const cached = getRedundancyCache(target);
|
|
861
|
-
if (cached) redundancy = cached.redundancy;
|
|
862
|
-
} else {
|
|
863
|
-
const config = createAPIConfig(target);
|
|
864
|
-
if (config) {
|
|
865
|
-
redundancy = initRedundancy(config);
|
|
866
|
-
const moduleKey = target.resources ? target.resources[0] : "";
|
|
867
|
-
const api = getAPIModule(moduleKey);
|
|
868
|
-
if (api) send2 = api.send;
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
if (!redundancy || !send2) {
|
|
872
|
-
callback(void 0, 424);
|
|
873
|
-
return emptyCallback$1;
|
|
874
|
-
}
|
|
875
|
-
return redundancy.query(query, send2, callback)().abort;
|
|
876
|
-
}
|
|
877
|
-
function emptyCallback() {
|
|
878
|
-
}
|
|
879
|
-
function loadedNewIcons(storage2) {
|
|
880
|
-
if (!storage2.iconsLoaderFlag) {
|
|
881
|
-
storage2.iconsLoaderFlag = true;
|
|
882
|
-
setTimeout(() => {
|
|
883
|
-
storage2.iconsLoaderFlag = false;
|
|
884
|
-
updateCallbacks(storage2);
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
function checkIconNamesForAPI(icons) {
|
|
889
|
-
const valid = [];
|
|
890
|
-
const invalid = [];
|
|
891
|
-
icons.forEach((name) => {
|
|
892
|
-
(name.match(matchIconName) ? valid : invalid).push(name);
|
|
893
|
-
});
|
|
894
|
-
return {
|
|
895
|
-
valid,
|
|
896
|
-
invalid
|
|
897
|
-
};
|
|
898
|
-
}
|
|
899
|
-
function parseLoaderResponse(storage2, icons, data) {
|
|
900
|
-
function checkMissing() {
|
|
901
|
-
const pending = storage2.pendingIcons;
|
|
902
|
-
icons.forEach((name) => {
|
|
903
|
-
if (pending) pending.delete(name);
|
|
904
|
-
if (!storage2.icons[name]) storage2.missing.add(name);
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
if (data && typeof data === "object") try {
|
|
908
|
-
const parsed = addIconSet(storage2, data);
|
|
909
|
-
if (!parsed.length) {
|
|
910
|
-
checkMissing();
|
|
911
|
-
return;
|
|
912
|
-
}
|
|
913
|
-
} catch (err) {
|
|
914
|
-
console.error(err);
|
|
915
|
-
}
|
|
916
|
-
checkMissing();
|
|
917
|
-
loadedNewIcons(storage2);
|
|
918
|
-
}
|
|
919
|
-
function parsePossiblyAsyncResponse(response, callback) {
|
|
920
|
-
if (response instanceof Promise) response.then((data) => {
|
|
921
|
-
callback(data);
|
|
922
|
-
}).catch(() => {
|
|
923
|
-
callback(null);
|
|
924
|
-
});
|
|
925
|
-
else callback(response);
|
|
926
|
-
}
|
|
927
|
-
function loadNewIcons(storage2, icons) {
|
|
928
|
-
if (!storage2.iconsToLoad) storage2.iconsToLoad = icons;
|
|
929
|
-
else storage2.iconsToLoad = storage2.iconsToLoad.concat(icons).sort();
|
|
930
|
-
if (!storage2.iconsQueueFlag) {
|
|
931
|
-
storage2.iconsQueueFlag = true;
|
|
932
|
-
setTimeout(() => {
|
|
933
|
-
storage2.iconsQueueFlag = false;
|
|
934
|
-
const { provider, prefix } = storage2;
|
|
935
|
-
const icons$1 = storage2.iconsToLoad;
|
|
936
|
-
delete storage2.iconsToLoad;
|
|
937
|
-
if (!icons$1 || !icons$1.length) return;
|
|
938
|
-
const customIconLoader = storage2.loadIcon;
|
|
939
|
-
if (storage2.loadIcons && (icons$1.length > 1 || !customIconLoader)) {
|
|
940
|
-
parsePossiblyAsyncResponse(storage2.loadIcons(icons$1, prefix, provider), (data) => {
|
|
941
|
-
parseLoaderResponse(storage2, icons$1, data);
|
|
942
|
-
});
|
|
943
|
-
return;
|
|
944
|
-
}
|
|
945
|
-
if (customIconLoader) {
|
|
946
|
-
icons$1.forEach((name) => {
|
|
947
|
-
const response = customIconLoader(name, prefix, provider);
|
|
948
|
-
parsePossiblyAsyncResponse(response, (data) => {
|
|
949
|
-
const iconSet = data ? {
|
|
950
|
-
prefix,
|
|
951
|
-
icons: { [name]: data }
|
|
952
|
-
} : null;
|
|
953
|
-
parseLoaderResponse(storage2, [name], iconSet);
|
|
954
|
-
});
|
|
955
|
-
});
|
|
956
|
-
return;
|
|
957
|
-
}
|
|
958
|
-
const { valid, invalid } = checkIconNamesForAPI(icons$1);
|
|
959
|
-
if (invalid.length) parseLoaderResponse(storage2, invalid, null);
|
|
960
|
-
if (!valid.length) return;
|
|
961
|
-
const api = prefix.match(matchIconName) ? getAPIModule(provider) : null;
|
|
962
|
-
if (!api) {
|
|
963
|
-
parseLoaderResponse(storage2, valid, null);
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
const params = api.prepare(provider, prefix, valid);
|
|
967
|
-
params.forEach((item) => {
|
|
968
|
-
sendAPIQuery(provider, item, (data) => {
|
|
969
|
-
parseLoaderResponse(storage2, item.icons, data);
|
|
970
|
-
});
|
|
971
|
-
});
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
const loadIcons = (icons, callback) => {
|
|
976
|
-
const cleanedIcons = listToIcons(icons, true, allowSimpleNames());
|
|
977
|
-
const sortedIcons = sortIcons(cleanedIcons);
|
|
978
|
-
if (!sortedIcons.pending.length) {
|
|
979
|
-
let callCallback = true;
|
|
980
|
-
if (callback) setTimeout(() => {
|
|
981
|
-
if (callCallback) callback(sortedIcons.loaded, sortedIcons.missing, sortedIcons.pending, emptyCallback);
|
|
982
|
-
});
|
|
983
|
-
return () => {
|
|
984
|
-
callCallback = false;
|
|
985
|
-
};
|
|
986
|
-
}
|
|
987
|
-
const newIcons = /* @__PURE__ */ Object.create(null);
|
|
988
|
-
const sources = [];
|
|
989
|
-
let lastProvider, lastPrefix;
|
|
990
|
-
sortedIcons.pending.forEach((icon) => {
|
|
991
|
-
const { provider, prefix } = icon;
|
|
992
|
-
if (prefix === lastPrefix && provider === lastProvider) return;
|
|
993
|
-
lastProvider = provider;
|
|
994
|
-
lastPrefix = prefix;
|
|
995
|
-
sources.push(getStorage(provider, prefix));
|
|
996
|
-
const providerNewIcons = newIcons[provider] || (newIcons[provider] = /* @__PURE__ */ Object.create(null));
|
|
997
|
-
if (!providerNewIcons[prefix]) providerNewIcons[prefix] = [];
|
|
998
|
-
});
|
|
999
|
-
sortedIcons.pending.forEach((icon) => {
|
|
1000
|
-
const { provider, prefix, name } = icon;
|
|
1001
|
-
const storage2 = getStorage(provider, prefix);
|
|
1002
|
-
const pendingQueue = storage2.pendingIcons || (storage2.pendingIcons = /* @__PURE__ */ new Set());
|
|
1003
|
-
if (!pendingQueue.has(name)) {
|
|
1004
|
-
pendingQueue.add(name);
|
|
1005
|
-
newIcons[provider][prefix].push(name);
|
|
1006
|
-
}
|
|
1007
|
-
});
|
|
1008
|
-
sources.forEach((storage2) => {
|
|
1009
|
-
const list = newIcons[storage2.provider][storage2.prefix];
|
|
1010
|
-
if (list.length) loadNewIcons(storage2, list);
|
|
1011
|
-
});
|
|
1012
|
-
return callback ? storeCallback(callback, sortedIcons, sources) : emptyCallback;
|
|
1013
|
-
};
|
|
1014
|
-
function mergeCustomisations(defaults, item) {
|
|
1015
|
-
const result = { ...defaults };
|
|
1016
|
-
for (const key in item) {
|
|
1017
|
-
const value = item[key];
|
|
1018
|
-
const valueType = typeof value;
|
|
1019
|
-
if (key in defaultIconSizeCustomisations) {
|
|
1020
|
-
if (value === null || value && (valueType === "string" || valueType === "number")) result[key] = value;
|
|
1021
|
-
} else if (valueType === typeof result[key]) result[key] = key === "rotate" ? value % 4 : value;
|
|
1022
|
-
}
|
|
1023
|
-
return result;
|
|
1024
|
-
}
|
|
1025
|
-
const separator = /[\s,]+/;
|
|
1026
|
-
function flipFromString(custom, flip) {
|
|
1027
|
-
flip.split(separator).forEach((str) => {
|
|
1028
|
-
const value = str.trim();
|
|
1029
|
-
switch (value) {
|
|
1030
|
-
case "horizontal":
|
|
1031
|
-
custom.hFlip = true;
|
|
1032
|
-
break;
|
|
1033
|
-
case "vertical":
|
|
1034
|
-
custom.vFlip = true;
|
|
1035
|
-
break;
|
|
1036
|
-
}
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
function rotateFromString(value, defaultValue = 0) {
|
|
1040
|
-
const units = value.replace(/^-?[0-9.]*/, "");
|
|
1041
|
-
function cleanup(value$1) {
|
|
1042
|
-
while (value$1 < 0) value$1 += 4;
|
|
1043
|
-
return value$1 % 4;
|
|
1044
|
-
}
|
|
1045
|
-
if (units === "") {
|
|
1046
|
-
const num = parseInt(value);
|
|
1047
|
-
return isNaN(num) ? 0 : cleanup(num);
|
|
1048
|
-
} else if (units !== value) {
|
|
1049
|
-
let split = 0;
|
|
1050
|
-
switch (units) {
|
|
1051
|
-
case "%":
|
|
1052
|
-
split = 25;
|
|
1053
|
-
break;
|
|
1054
|
-
case "deg":
|
|
1055
|
-
split = 90;
|
|
1056
|
-
}
|
|
1057
|
-
if (split) {
|
|
1058
|
-
let num = parseFloat(value.slice(0, value.length - units.length));
|
|
1059
|
-
if (isNaN(num)) return 0;
|
|
1060
|
-
num = num / split;
|
|
1061
|
-
return num % 1 === 0 ? cleanup(num) : 0;
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
return defaultValue;
|
|
1065
|
-
}
|
|
1066
|
-
function iconToHTML(body, attributes) {
|
|
1067
|
-
let renderAttribsHTML = body.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1068
|
-
for (const attr in attributes) renderAttribsHTML += " " + attr + '="' + attributes[attr] + '"';
|
|
1069
|
-
return '<svg xmlns="http://www.w3.org/2000/svg"' + renderAttribsHTML + ">" + body + "</svg>";
|
|
1070
|
-
}
|
|
1071
|
-
function encodeSVGforURL(svg) {
|
|
1072
|
-
return svg.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1073
|
-
}
|
|
1074
|
-
function svgToData(svg) {
|
|
1075
|
-
return "data:image/svg+xml," + encodeSVGforURL(svg);
|
|
1076
|
-
}
|
|
1077
|
-
function svgToURL(svg) {
|
|
1078
|
-
return 'url("' + svgToData(svg) + '")';
|
|
1079
|
-
}
|
|
1080
|
-
let policy;
|
|
1081
|
-
function createPolicy() {
|
|
1082
|
-
try {
|
|
1083
|
-
policy = window.trustedTypes.createPolicy("iconify", { createHTML: (s) => s });
|
|
1084
|
-
} catch (err) {
|
|
1085
|
-
policy = null;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
function cleanUpInnerHTML(html) {
|
|
1089
|
-
if (policy === void 0) createPolicy();
|
|
1090
|
-
return policy ? policy.createHTML(html) : html;
|
|
1091
|
-
}
|
|
1092
|
-
const defaultExtendedIconCustomisations = {
|
|
1093
|
-
...defaultIconCustomisations,
|
|
1094
|
-
inline: false
|
|
1095
|
-
};
|
|
1096
|
-
const svgDefaults = {
|
|
1097
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
1098
|
-
"xmlnsXlink": "http://www.w3.org/1999/xlink",
|
|
1099
|
-
"aria-hidden": true,
|
|
1100
|
-
"role": "img"
|
|
1101
|
-
};
|
|
1102
|
-
const commonProps = {
|
|
1103
|
-
display: "inline-block"
|
|
1104
|
-
};
|
|
1105
|
-
const monotoneProps = {
|
|
1106
|
-
backgroundColor: "currentColor"
|
|
1107
|
-
};
|
|
1108
|
-
const coloredProps = {
|
|
1109
|
-
backgroundColor: "transparent"
|
|
1110
|
-
};
|
|
1111
|
-
const propsToAdd = {
|
|
1112
|
-
Image: "var(--svg)",
|
|
1113
|
-
Repeat: "no-repeat",
|
|
1114
|
-
Size: "100% 100%"
|
|
1115
|
-
};
|
|
1116
|
-
const propsToAddTo = {
|
|
1117
|
-
WebkitMask: monotoneProps,
|
|
1118
|
-
mask: monotoneProps,
|
|
1119
|
-
background: coloredProps
|
|
1120
|
-
};
|
|
1121
|
-
for (const prefix in propsToAddTo) {
|
|
1122
|
-
const list = propsToAddTo[prefix];
|
|
1123
|
-
for (const prop in propsToAdd) {
|
|
1124
|
-
list[prefix + prop] = propsToAdd[prop];
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
const inlineDefaults = {
|
|
1128
|
-
...defaultExtendedIconCustomisations,
|
|
1129
|
-
inline: true
|
|
1130
|
-
};
|
|
1131
|
-
function fixSize(value) {
|
|
1132
|
-
return value + (value.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1133
|
-
}
|
|
1134
|
-
const render = (icon, props, name) => {
|
|
1135
|
-
const defaultProps = props.inline ? inlineDefaults : defaultExtendedIconCustomisations;
|
|
1136
|
-
const customisations = mergeCustomisations(defaultProps, props);
|
|
1137
|
-
const mode = props.mode || "svg";
|
|
1138
|
-
const style = {};
|
|
1139
|
-
const customStyle = props.style || {};
|
|
1140
|
-
const componentProps = {
|
|
1141
|
-
...mode === "svg" ? svgDefaults : {}
|
|
1142
|
-
};
|
|
1143
|
-
if (name) {
|
|
1144
|
-
const iconName = stringToIcon(name, false, true);
|
|
1145
|
-
if (iconName) {
|
|
1146
|
-
const classNames = ["iconify"];
|
|
1147
|
-
const props2 = [
|
|
1148
|
-
"provider",
|
|
1149
|
-
"prefix"
|
|
1150
|
-
];
|
|
1151
|
-
for (const prop of props2) {
|
|
1152
|
-
if (iconName[prop]) {
|
|
1153
|
-
classNames.push("iconify--" + iconName[prop]);
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
componentProps.className = classNames.join(" ");
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
for (let key in props) {
|
|
1160
|
-
const value = props[key];
|
|
1161
|
-
if (value === void 0) {
|
|
1162
|
-
continue;
|
|
1163
|
-
}
|
|
1164
|
-
switch (key) {
|
|
1165
|
-
// Properties to ignore
|
|
1166
|
-
case "icon":
|
|
1167
|
-
case "style":
|
|
1168
|
-
case "children":
|
|
1169
|
-
case "onLoad":
|
|
1170
|
-
case "mode":
|
|
1171
|
-
case "ssr":
|
|
1172
|
-
case "fallback":
|
|
1173
|
-
break;
|
|
1174
|
-
// Forward ref
|
|
1175
|
-
case "_ref":
|
|
1176
|
-
componentProps.ref = value;
|
|
1177
|
-
break;
|
|
1178
|
-
// Merge class names
|
|
1179
|
-
case "className":
|
|
1180
|
-
componentProps[key] = (componentProps[key] ? componentProps[key] + " " : "") + value;
|
|
1181
|
-
break;
|
|
1182
|
-
// Boolean attributes
|
|
1183
|
-
case "inline":
|
|
1184
|
-
case "hFlip":
|
|
1185
|
-
case "vFlip":
|
|
1186
|
-
customisations[key] = value === true || value === "true" || value === 1;
|
|
1187
|
-
break;
|
|
1188
|
-
// Flip as string: 'horizontal,vertical'
|
|
1189
|
-
case "flip":
|
|
1190
|
-
if (typeof value === "string") {
|
|
1191
|
-
flipFromString(customisations, value);
|
|
1192
|
-
}
|
|
1193
|
-
break;
|
|
1194
|
-
// Color: copy to style
|
|
1195
|
-
case "color":
|
|
1196
|
-
style.color = value;
|
|
1197
|
-
break;
|
|
1198
|
-
// Rotation as string
|
|
1199
|
-
case "rotate":
|
|
1200
|
-
if (typeof value === "string") {
|
|
1201
|
-
customisations[key] = rotateFromString(value);
|
|
1202
|
-
} else if (typeof value === "number") {
|
|
1203
|
-
customisations[key] = value;
|
|
1204
|
-
}
|
|
1205
|
-
break;
|
|
1206
|
-
// Remove aria-hidden
|
|
1207
|
-
case "ariaHidden":
|
|
1208
|
-
case "aria-hidden":
|
|
1209
|
-
if (value !== true && value !== "true") {
|
|
1210
|
-
delete componentProps["aria-hidden"];
|
|
1211
|
-
}
|
|
1212
|
-
break;
|
|
1213
|
-
// Copy missing property if it does not exist in customisations
|
|
1214
|
-
default:
|
|
1215
|
-
if (defaultProps[key] === void 0) {
|
|
1216
|
-
componentProps[key] = value;
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
const item = iconToSVG(icon, customisations);
|
|
1221
|
-
const renderAttribs = item.attributes;
|
|
1222
|
-
if (customisations.inline) {
|
|
1223
|
-
style.verticalAlign = "-0.125em";
|
|
1224
|
-
}
|
|
1225
|
-
if (mode === "svg") {
|
|
1226
|
-
componentProps.style = {
|
|
1227
|
-
...style,
|
|
1228
|
-
...customStyle
|
|
1229
|
-
};
|
|
1230
|
-
Object.assign(componentProps, renderAttribs);
|
|
1231
|
-
let localCounter = 0;
|
|
1232
|
-
let id = props.id;
|
|
1233
|
-
if (typeof id === "string") {
|
|
1234
|
-
id = id.replace(/-/g, "_");
|
|
1235
|
-
}
|
|
1236
|
-
componentProps.dangerouslySetInnerHTML = {
|
|
1237
|
-
__html: cleanUpInnerHTML(replaceIDs(item.body, id ? () => id + "ID" + localCounter++ : "iconifyReact"))
|
|
1238
|
-
};
|
|
1239
|
-
return React.createElement("svg", componentProps);
|
|
1240
|
-
}
|
|
1241
|
-
const { body, width, height } = icon;
|
|
1242
|
-
const useMask = mode === "mask" || (mode === "bg" ? false : body.indexOf("currentColor") !== -1);
|
|
1243
|
-
const html = iconToHTML(body, {
|
|
1244
|
-
...renderAttribs,
|
|
1245
|
-
width: width + "",
|
|
1246
|
-
height: height + ""
|
|
1247
|
-
});
|
|
1248
|
-
componentProps.style = {
|
|
1249
|
-
...style,
|
|
1250
|
-
"--svg": svgToURL(html),
|
|
1251
|
-
"width": fixSize(renderAttribs.width),
|
|
1252
|
-
"height": fixSize(renderAttribs.height),
|
|
1253
|
-
...commonProps,
|
|
1254
|
-
...useMask ? monotoneProps : coloredProps,
|
|
1255
|
-
...customStyle
|
|
1256
|
-
};
|
|
1257
|
-
return React.createElement("span", componentProps);
|
|
1258
|
-
};
|
|
1259
|
-
allowSimpleNames(true);
|
|
1260
|
-
setAPIModule("", fetchAPIModule);
|
|
1261
|
-
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
|
1262
|
-
const _window = window;
|
|
1263
|
-
if (_window.IconifyPreload !== void 0) {
|
|
1264
|
-
const preload = _window.IconifyPreload;
|
|
1265
|
-
const err = "Invalid IconifyPreload syntax.";
|
|
1266
|
-
if (typeof preload === "object" && preload !== null) {
|
|
1267
|
-
(preload instanceof Array ? preload : [preload]).forEach((item) => {
|
|
1268
|
-
try {
|
|
1269
|
-
if (
|
|
1270
|
-
// Check if item is an object and not null/array
|
|
1271
|
-
typeof item !== "object" || item === null || item instanceof Array || // Check for 'icons' and 'prefix'
|
|
1272
|
-
typeof item.icons !== "object" || typeof item.prefix !== "string" || // Add icon set
|
|
1273
|
-
!addCollection(item)
|
|
1274
|
-
) {
|
|
1275
|
-
console.error(err);
|
|
1276
|
-
}
|
|
1277
|
-
} catch (e) {
|
|
1278
|
-
console.error(err);
|
|
1279
|
-
}
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
if (_window.IconifyProviders !== void 0) {
|
|
1284
|
-
const providers = _window.IconifyProviders;
|
|
1285
|
-
if (typeof providers === "object" && providers !== null) {
|
|
1286
|
-
for (let key in providers) {
|
|
1287
|
-
const err = "IconifyProviders[" + key + "] is invalid.";
|
|
1288
|
-
try {
|
|
1289
|
-
const value = providers[key];
|
|
1290
|
-
if (typeof value !== "object" || !value || value.resources === void 0) {
|
|
1291
|
-
continue;
|
|
1292
|
-
}
|
|
1293
|
-
if (!addAPIProvider(key, value)) {
|
|
1294
|
-
console.error(err);
|
|
1295
|
-
}
|
|
1296
|
-
} catch (e) {
|
|
1297
|
-
console.error(err);
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
function IconComponent(props) {
|
|
1304
|
-
const [mounted, setMounted] = React.useState(!!props.ssr);
|
|
1305
|
-
const [abort, setAbort] = React.useState({});
|
|
1306
|
-
function getInitialState(mounted2) {
|
|
1307
|
-
if (mounted2) {
|
|
1308
|
-
const name2 = props.icon;
|
|
1309
|
-
if (typeof name2 === "object") {
|
|
1310
|
-
return {
|
|
1311
|
-
name: "",
|
|
1312
|
-
data: name2
|
|
1313
|
-
};
|
|
1314
|
-
}
|
|
1315
|
-
const data2 = getIconData(name2);
|
|
1316
|
-
if (data2) {
|
|
1317
|
-
return {
|
|
1318
|
-
name: name2,
|
|
1319
|
-
data: data2
|
|
1320
|
-
};
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
return {
|
|
1324
|
-
name: ""
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
const [state, setState] = React.useState(getInitialState(!!props.ssr));
|
|
1328
|
-
function cleanup() {
|
|
1329
|
-
const callback = abort.callback;
|
|
1330
|
-
if (callback) {
|
|
1331
|
-
callback();
|
|
1332
|
-
setAbort({});
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
function changeState(newState) {
|
|
1336
|
-
if (JSON.stringify(state) !== JSON.stringify(newState)) {
|
|
1337
|
-
cleanup();
|
|
1338
|
-
setState(newState);
|
|
1339
|
-
return true;
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
function updateState() {
|
|
1343
|
-
var _a;
|
|
1344
|
-
const name2 = props.icon;
|
|
1345
|
-
if (typeof name2 === "object") {
|
|
1346
|
-
changeState({
|
|
1347
|
-
name: "",
|
|
1348
|
-
data: name2
|
|
1349
|
-
});
|
|
1350
|
-
return;
|
|
1351
|
-
}
|
|
1352
|
-
const data2 = getIconData(name2);
|
|
1353
|
-
if (changeState({
|
|
1354
|
-
name: name2,
|
|
1355
|
-
data: data2
|
|
1356
|
-
})) {
|
|
1357
|
-
if (data2 === void 0) {
|
|
1358
|
-
const callback = loadIcons([name2], updateState);
|
|
1359
|
-
setAbort({
|
|
1360
|
-
callback
|
|
1361
|
-
});
|
|
1362
|
-
} else if (data2) {
|
|
1363
|
-
(_a = props.onLoad) === null || _a === void 0 ? void 0 : _a.call(props, name2);
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
React.useEffect(() => {
|
|
1368
|
-
setMounted(true);
|
|
1369
|
-
return cleanup;
|
|
1370
|
-
}, []);
|
|
1371
|
-
React.useEffect(() => {
|
|
1372
|
-
if (mounted) {
|
|
1373
|
-
updateState();
|
|
1374
|
-
}
|
|
1375
|
-
}, [props.icon, mounted]);
|
|
1376
|
-
const { name, data } = state;
|
|
1377
|
-
if (!data) {
|
|
1378
|
-
return props.children ? props.children : props.fallback ? props.fallback : React.createElement("span", {});
|
|
1379
|
-
}
|
|
1380
|
-
return render({
|
|
1381
|
-
...defaultIconProps,
|
|
1382
|
-
...data
|
|
1383
|
-
}, props, name);
|
|
1384
|
-
}
|
|
1385
|
-
const Icon = React.forwardRef((props, ref) => IconComponent({
|
|
1386
|
-
...props,
|
|
1387
|
-
_ref: ref
|
|
1388
|
-
}));
|
|
1389
|
-
React.forwardRef((props, ref) => IconComponent({
|
|
1390
|
-
inline: true,
|
|
1391
|
-
...props,
|
|
1392
|
-
_ref: ref
|
|
1393
|
-
}));
|
|
1394
|
-
exports.Icon = Icon;
|
|
1395
|
-
exports.addAPIProvider = addAPIProvider;
|
|
1396
|
-
exports.addCollection = addCollection;
|
|
1397
|
-
exports.addIcon = addIcon;
|
|
1398
|
-
exports.buildIcon = iconToSVG;
|
|
1399
|
-
exports.calculateSize = calculateSize;
|
|
1400
|
-
exports.loadIcons = loadIcons;
|
|
1401
|
-
exports.replaceIDs = replaceIDs;
|