@owp/core 2.2.6 → 2.3.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/_virtual/index11.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index16.js +5 -2
- package/dist/_virtual/index16.js.map +1 -1
- package/dist/_virtual/index17.js +2 -2
- package/dist/_virtual/index6.js +2 -5
- package/dist/_virtual/index6.js.map +1 -1
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/OwpLayout/OwpLayout.js +29 -30
- package/dist/components/OwpLayout/OwpLayout.js.map +1 -1
- package/dist/components/OwpScrollbars/OwpScrollbars.js +16 -17
- package/dist/components/OwpScrollbars/OwpScrollbars.js.map +1 -1
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js +28 -29
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +80 -74
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/contexts/OwpCoreProvider.js +22 -36
- package/dist/contexts/OwpCoreProvider.js.map +1 -1
- package/dist/contexts/OwpStoreProvider.js +9 -9
- package/dist/contexts/OwpStoreProvider.js.map +1 -1
- package/dist/hooks/useNavbar.js +24 -0
- package/dist/hooks/useNavbar.js.map +1 -0
- package/dist/hooks/useOwpSettings.js +21 -0
- package/dist/hooks/useOwpSettings.js.map +1 -0
- package/dist/hooks.js +75 -62
- package/dist/hooks.js.map +1 -1
- package/dist/layout/Layout.js +28 -29
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/layouts/FooterLayout.js +15 -16
- package/dist/layout/components/layouts/FooterLayout.js.map +1 -1
- package/dist/layout/components/layouts/NavbarToggleFabLayout.js +21 -18
- package/dist/layout/components/layouts/NavbarToggleFabLayout.js.map +1 -1
- package/dist/layout/components/layouts/NavbarWrapperLayout.js +20 -21
- package/dist/layout/components/layouts/NavbarWrapperLayout.js.map +1 -1
- package/dist/layout/components/navbar/NavbarPinToggleButton.js +10 -11
- package/dist/layout/components/navbar/NavbarPinToggleButton.js.map +1 -1
- package/dist/layout/components/navbar/NavbarToggleButton.js +31 -32
- package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js +36 -37
- package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyleContent.js +29 -30
- package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
- package/dist/layout/components/navigation/Navigation.js +18 -22
- package/dist/layout/components/navigation/Navigation.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +55 -60
- package/dist/layout/components/toggles/NavigationSearchToggle.js.map +1 -1
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js +44 -49
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
- package/dist/layout/components/toolbar/ToolbarLayout.js +26 -27
- package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +1 -1
- package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
- package/dist/store/atoms/navbarAtoms.js +84 -0
- package/dist/store/atoms/navbarAtoms.js.map +1 -0
- package/dist/store/atoms/owpSettingsAtoms.js +140 -0
- package/dist/store/atoms/owpSettingsAtoms.js.map +1 -0
- package/dist/store/atoms/owpStore.js +29 -0
- package/dist/store/atoms/owpStore.js.map +1 -0
- package/dist/store.js +44 -39
- package/dist/store.js.map +1 -1
- package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +1 -1
- package/dist/types/components/OwpTable/OwpTable.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
- package/dist/types/contexts/OwpCoreProvider.d.ts +2 -2
- package/dist/types/contexts/OwpStoreProvider.d.ts +4 -4
- package/dist/types/hooks/index.d.ts +2 -1
- package/dist/types/hooks/useNavbar.d.ts +19 -0
- package/dist/types/hooks/useOwpSettings.d.ts +79 -0
- package/dist/types/layout/components/navigation/Navigation.d.ts +6 -2
- package/dist/types/layout/components/toggles/NavigationSearchToggle.d.ts +5 -2
- package/dist/types/layout/components/toggles/NavigationShortcutsToggle.d.ts +5 -2
- package/dist/types/store/atoms/index.d.ts +3 -0
- package/dist/types/store/atoms/internal/types.d.ts +29 -0
- package/dist/types/store/atoms/navbarAtoms.d.ts +48 -0
- package/dist/types/store/atoms/owpSettingsAtoms.d.ts +89 -0
- package/dist/types/store/atoms/owpStore.d.ts +13 -0
- package/dist/types/store/index.d.ts +1 -3
- package/package.json +2 -6
- package/dist/hooks/useAppStore.js +0 -8
- package/dist/hooks/useAppStore.js.map +0 -1
- package/dist/store/generateReducersFromSlices.js +0 -18
- package/dist/store/generateReducersFromSlices.js.map +0 -1
- package/dist/store/lazyLoadedSlices.js +0 -16
- package/dist/store/lazyLoadedSlices.js.map +0 -1
- package/dist/store/middleware.js +0 -9
- package/dist/store/middleware.js.map +0 -1
- package/dist/store/navbarSlice.js +0 -71
- package/dist/store/navbarSlice.js.map +0 -1
- package/dist/store/navigationSlice.js +0 -46
- package/dist/store/navigationSlice.js.map +0 -1
- package/dist/store/owpSettingsSlice.js +0 -195
- package/dist/store/owpSettingsSlice.js.map +0 -1
- package/dist/store/store.js +0 -17
- package/dist/store/store.js.map +0 -1
- package/dist/store/withSlices.js +0 -27
- package/dist/store/withSlices.js.map +0 -1
- package/dist/types/hooks/useAppStore.d.ts +0 -7
- package/dist/types/store/generateReducersFromSlices.d.ts +0 -6
- package/dist/types/store/lazyLoadedSlices.d.ts +0 -9
- package/dist/types/store/middleware.d.ts +0 -17
- package/dist/types/store/navbarSlice.d.ts +0 -22
- package/dist/types/store/navigationSlice.d.ts +0 -93
- package/dist/types/store/owpSettingsSlice.d.ts +0 -112
- package/dist/types/store/store.d.ts +0 -13
- package/dist/types/store/withSlices.d.ts +0 -11
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type { OwpSettingsConfigType, OwpThemesType } from '@/types/OwpSettingsTypes';
|
|
2
|
-
import { RootState } from '@/store/store';
|
|
3
|
-
import { createSelector, type AsyncThunk } from '@reduxjs/toolkit';
|
|
4
|
-
import { PartialDeep } from 'type-fest';
|
|
5
|
-
/**
|
|
6
|
-
* The lightPaletteText object defines the text color palette for the light theme.
|
|
7
|
-
*/
|
|
8
|
-
export declare const lightPaletteText: {
|
|
9
|
-
primary: string;
|
|
10
|
-
secondary: string;
|
|
11
|
-
disabled: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* The darkPaletteText object defines the text color palette for the dark theme.
|
|
15
|
-
*/
|
|
16
|
-
export declare const darkPaletteText: {
|
|
17
|
-
primary: string;
|
|
18
|
-
secondary: string;
|
|
19
|
-
disabled: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* changeOwpTheme 비동기 액션
|
|
23
|
-
*/
|
|
24
|
-
export declare const changeOwpTheme: AsyncThunk<OwpSettingsState, OwpThemesType, {
|
|
25
|
-
state: RootState;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* The type definition for the initial state.
|
|
29
|
-
*/
|
|
30
|
-
export type OwpSettingsState = {
|
|
31
|
-
initial: OwpSettingsConfigType;
|
|
32
|
-
defaults: OwpSettingsConfigType;
|
|
33
|
-
current: OwpSettingsConfigType;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Sets the default settings for the application.
|
|
37
|
-
*/
|
|
38
|
-
export declare const setDefaultSettings: AsyncThunk<OwpSettingsState, PartialDeep<OwpSettingsConfigType>, {
|
|
39
|
-
state: RootState;
|
|
40
|
-
}>;
|
|
41
|
-
/**
|
|
42
|
-
* The settings slice.
|
|
43
|
-
*/
|
|
44
|
-
export declare const owpSettingsSlice: any;
|
|
45
|
-
export declare const selectOwpCurrentLayoutConfig: (state: any) => any;
|
|
46
|
-
export declare const selectOwpCurrentSettings: (state: any) => any;
|
|
47
|
-
export declare const selectOwpSettings: (state: any) => any;
|
|
48
|
-
export declare const selectOwpSettingsDefaults: (state: any) => any;
|
|
49
|
-
export declare const selectOwpSettingsCurrent: (state: any) => any;
|
|
50
|
-
export declare const selectOwpDefaultSettings: (state: any) => any;
|
|
51
|
-
export declare const selectCustomScrollbarsEnabled: (state: any) => any;
|
|
52
|
-
export declare const getDirection: (state: any) => any;
|
|
53
|
-
export declare const getMainTheme: (state: any) => any;
|
|
54
|
-
export declare const getNavbarTheme: (state: any) => any;
|
|
55
|
-
export declare const getToolbarTheme: (state: any) => any;
|
|
56
|
-
export declare const getFooterTheme: (state: any) => any;
|
|
57
|
-
/**
|
|
58
|
-
* Selects the contrast theme based on the background color.
|
|
59
|
-
*/
|
|
60
|
-
export declare const selectContrastMainTheme: (bgColor: string) => any;
|
|
61
|
-
/**
|
|
62
|
-
* selectMainTheme selector
|
|
63
|
-
*/
|
|
64
|
-
export declare const selectMainTheme: ReturnType<typeof createSelector>;
|
|
65
|
-
/**
|
|
66
|
-
* selectMainThemeDark selector
|
|
67
|
-
*/
|
|
68
|
-
export declare const selectMainThemeDark: ReturnType<typeof createSelector>;
|
|
69
|
-
/**
|
|
70
|
-
* selectMainThemeLight selector
|
|
71
|
-
*/
|
|
72
|
-
export declare const selectMainThemeLight: ReturnType<typeof createSelector>;
|
|
73
|
-
/**
|
|
74
|
-
* selectNavbarTheme selector
|
|
75
|
-
*/
|
|
76
|
-
export declare const selectNavbarTheme: ReturnType<typeof createSelector>;
|
|
77
|
-
/**
|
|
78
|
-
* selectNavbarThemeDark selector
|
|
79
|
-
*/
|
|
80
|
-
export declare const selectNavbarThemeDark: ReturnType<typeof createSelector>;
|
|
81
|
-
/**
|
|
82
|
-
* selectNavbarThemeLight selector
|
|
83
|
-
*/
|
|
84
|
-
export declare const selectNavbarThemeLight: ReturnType<typeof createSelector>;
|
|
85
|
-
/**
|
|
86
|
-
* selectToolbarTheme selector
|
|
87
|
-
*/
|
|
88
|
-
export declare const selectToolbarTheme: ReturnType<typeof createSelector>;
|
|
89
|
-
/**
|
|
90
|
-
* selectToolbarThemeDark selector
|
|
91
|
-
*/
|
|
92
|
-
export declare const selectToolbarThemeDark: ReturnType<typeof createSelector>;
|
|
93
|
-
/**
|
|
94
|
-
* selectToolbarThemeLight selector
|
|
95
|
-
*/
|
|
96
|
-
export declare const selectToolbarThemeLight: ReturnType<typeof createSelector>;
|
|
97
|
-
/**
|
|
98
|
-
* selectFooterTheme selector
|
|
99
|
-
*/
|
|
100
|
-
export declare const selectFooterTheme: ReturnType<typeof createSelector>;
|
|
101
|
-
/**
|
|
102
|
-
* selectFooterThemeDark selector
|
|
103
|
-
*/
|
|
104
|
-
export declare const selectFooterThemeDark: ReturnType<typeof createSelector>;
|
|
105
|
-
/**
|
|
106
|
-
* selectFooterThemeLight selector
|
|
107
|
-
*/
|
|
108
|
-
export declare const selectFooterThemeLight: ReturnType<typeof createSelector>;
|
|
109
|
-
export declare const resetSettings: any, setInitialSettings: any, setSettings: any;
|
|
110
|
-
export type settingsSliceType = typeof owpSettingsSlice;
|
|
111
|
-
declare const owpSettingsReducer: any;
|
|
112
|
-
export default owpSettingsReducer;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Action, ThunkAction, configureStore, createSelectorCreator } from '@reduxjs/toolkit';
|
|
2
|
-
import { rootReducer } from './lazyLoadedSlices';
|
|
3
|
-
/**
|
|
4
|
-
* Public store contract backing file
|
|
5
|
-
*/
|
|
6
|
-
export type RootState = ReturnType<typeof rootReducer>;
|
|
7
|
-
export declare const makeStore: (preloadedState?: Partial<RootState>) => ReturnType<typeof configureStore<RootState>>;
|
|
8
|
-
export declare const store: ReturnType<typeof makeStore>;
|
|
9
|
-
export type AppStore = typeof store;
|
|
10
|
-
export type AppDispatch = AppStore['dispatch'];
|
|
11
|
-
export type AppThunk<ThunkReturnType = void> = ThunkAction<ThunkReturnType, RootState, unknown, Action>;
|
|
12
|
-
export type AppAction<R = Promise<void>> = Action<string> | ThunkAction<R, RootState, unknown, Action<string>>;
|
|
13
|
-
export declare const createAppSelector: ReturnType<typeof createSelectorCreator>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Slice } from '@reduxjs/toolkit';
|
|
2
|
-
import type { ComponentType } from 'react';
|
|
3
|
-
export type SlicesType = Slice[];
|
|
4
|
-
/**
|
|
5
|
-
* Internal slice injection helper
|
|
6
|
-
*/
|
|
7
|
-
export declare const injectReducersGroupedByCommonKey: (slices: SlicesType) => Promise<boolean>;
|
|
8
|
-
/**
|
|
9
|
-
* Internal slice injection HOC
|
|
10
|
-
*/
|
|
11
|
-
export declare const withSlices: <P extends object>(slices: SlicesType) => (WrappedComponent: ComponentType<P>) => (props: P) => import("react/jsx-runtime").JSX.Element;
|