@enki-tek/fms-web-components 0.1.62 → 0.1.64

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.
@@ -1,9 +1,10 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- noOfItems?: number | undefined;
4
+ PAGE_GUTTER?: number | undefined;
5
+ noOfItems: number | undefined;
5
6
  itemPerPage?: number | undefined;
6
- currentPage?: number | undefined;
7
+ page?: number | undefined;
7
8
  size?: string | undefined;
8
9
  };
9
10
  events: {
package/index.d.ts CHANGED
@@ -53,7 +53,7 @@ import ModalBody from './components/ModalWindow/ModalBody.svelte';
53
53
  import ModalFooter from './components/ModalWindow/ModalFooter.svelte';
54
54
  import ModalHeader from './components/ModalWindow/ModalHeader.svelte';
55
55
  import NotFound from './components/NotFound/NotFound.svelte';
56
- import Pagination from './components/Pagination/Pagination.svelte';
56
+ import Pagination from './components/Pagination/OldPagination.svelte';
57
57
  import RadioButton from './components/RadioButton/RadioButton.svelte';
58
58
  import Switch from './components/Switches/Switch.svelte';
59
59
  import Tab from './components/Tab/Tab.svelte';
package/index.js CHANGED
@@ -54,7 +54,7 @@ import ModalBody from './components/ModalWindow/ModalBody.svelte';
54
54
  import ModalFooter from './components/ModalWindow/ModalFooter.svelte';
55
55
  import ModalHeader from './components/ModalWindow/ModalHeader.svelte';
56
56
  import NotFound from './components/NotFound/NotFound.svelte';
57
- import Pagination from './components/Pagination/Pagination.svelte';
57
+ import Pagination from './components/Pagination/OldPagination.svelte';
58
58
  import RadioButton from './components/RadioButton/RadioButton.svelte';
59
59
  import Switch from './components/Switches/Switch.svelte';
60
60
  import Tab from './components/Tab/Tab.svelte';
@@ -0,0 +1 @@
1
+ export function isMobile(): boolean;
package/lib/common.js ADDED
@@ -0,0 +1,4 @@
1
+ export const isMobile = () => {
2
+ return /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent) ||
3
+ window.matchMedia("(max-width: 768px)").matches;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",
@@ -141,6 +141,7 @@
141
141
  "./components/NotFound/NotFound.scss": "./components/NotFound/NotFound.scss",
142
142
  "./components/NotFound/NotFound.stories": "./components/NotFound/NotFound.stories.js",
143
143
  "./components/NotFound/NotFound.svelte": "./components/NotFound/NotFound.svelte",
144
+ "./components/Pagination/OldPagination.svelte": "./components/Pagination/OldPagination.svelte",
144
145
  "./components/Pagination/Pagination.scss": "./components/Pagination/Pagination.scss",
145
146
  "./components/Pagination/Pagination.stories": "./components/Pagination/Pagination.stories.js",
146
147
  "./components/Pagination/Pagination.svelte": "./components/Pagination/Pagination.svelte",
@@ -194,7 +195,8 @@
194
195
  "./components/i18n/ShiftLanguage.svelte": "./components/i18n/ShiftLanguage.svelte",
195
196
  "./components/i18n/i18n": "./components/i18n/i18n.js",
196
197
  "./components/variable.scss": "./components/variable.scss",
197
- ".": "./index.js"
198
+ ".": "./index.js",
199
+ "./lib/common": "./lib/common.js"
198
200
  },
199
201
  "svelte": "./index.js"
200
202
  }