Skip to content

Commit 3558de2

Browse files
committed
feat(Swiper): added swiper menu to shared packages
1 parent 5d8db7f commit 3558de2

25 files changed

+4188
-1169
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ dist
55

66
*.d.ts
77
*.js.map
8-
*.js
8+
*.js
9+
10+
!/src/action-control/swiper/swiper.min.js
11+
!/src/action-control/swiper/swiper.min.d.ts

develop/package-lock.json

Lines changed: 357 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

develop/package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
"name": "@rxdi/ui-kit-client",
33
"version": "1.0.0",
44
"scripts": {
5+
"start": "npx parcel ./index.html --out-dir ../build/client",
56
"build": "npx firelink build ./index.html --out-dir ../docs --public-url /ui-kit "
67
},
78
"browserslist": [
89
"last 1 chrome versions"
910
],
1011
"dependencies": {
11-
"@rxdi/forms": "^0.7.50",
12-
"@rxdi/ui-kit": "1.0.0",
13-
"@rxdi/graphql-client": "^0.7.50",
12+
"@rxdi/core": "^0.7.82",
13+
"@rxdi/forms": "^0.7.82",
14+
"@rxdi/graphql-client": "^0.7.82",
15+
"@rxdi/lit-html": "^0.7.82",
16+
"@rxdi/router": "^0.7.82",
17+
"@rxdi/ui-kit": "^0.7.96",
1418
"graphql": "^14.5.8",
1519
"shades": "^2.1.0",
1620
"sortablejs": "^1.10.1"
@@ -22,7 +26,8 @@
2226
"@rxdi/ui-kit": "../src/"
2327
},
2428
"devDependencies": {
29+
"@types/node": "^12.0.10",
2530
"@types/sortablejs": "^1.10.0",
26-
"@types/node": "^12.0.10"
31+
"typescript": "^4.0.5"
2732
}
28-
}
33+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { Component, LitElement, html, css } from '@rxdi/lit-html';
2+
import { Page } from '@rxdi/ui-kit/pagination/pagination.component';
3+
4+
/**
5+
* @customElement action-view-pagination-view-component
6+
*/
7+
@Component({
8+
selector: 'action-view-pagination-view-component',
9+
style: css`
10+
.container {
11+
margin: 50px auto;
12+
width: 200px;
13+
padding: 50px;
14+
background-color: white;
15+
text-align: center;
16+
user-select: none;
17+
}
18+
`,
19+
template(this: ActionControlViewComponent) {
20+
return html`
21+
<div class="container">
22+
dadadadadaad
23+
</div>
24+
<!-- <markdown-reader
25+
link="https://raw.githubusercontent.com/rxdi/ui-kit/master/src/pagination/README.md"
26+
></markdown-reader> -->
27+
`;
28+
},
29+
})
30+
export class ActionControlViewComponent extends LitElement {}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Module } from '@rxdi/core';
2+
import { RouterModule } from '@rxdi/router';
3+
import { ActionControlViewComponent } from './action-control-view.component';
4+
5+
@Module({
6+
imports: [
7+
RouterModule.forChild([
8+
{
9+
path: '/',
10+
component: ActionControlViewComponent,
11+
},
12+
]),
13+
],
14+
})
15+
export class ActionControlModule {}

develop/src/app/app.component.ts

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { html, Component, css, async, query, LitElement } from '@rxdi/lit-html';
1+
import { html, Component, css, LitElement } from '@rxdi/lit-html';
22
import { Inject } from '@rxdi/core';
33
import { Nav } from '../../../src/nav';
4-
import { map } from 'rxjs/operators';
54

65
/**
76
* @customElement app-component
@@ -10,32 +9,6 @@ import { map } from 'rxjs/operators';
109
selector: 'app-component',
1110
template(this: AppComponent) {
1211
return html`
13-
<!-- ${async(
14-
this.navService.getOpenSubject().pipe(
15-
map(res => {
16-
if (res.left >= 0) {
17-
return html`
18-
<style>
19-
.test {
20-
margin-left: 500px;
21-
}
22-
</style>
23-
`;
24-
}
25-
console.log('vlizam');
26-
return html`
27-
<style>
28-
.test {
29-
margin-left: 0px;
30-
}
31-
</style>
32-
`;
33-
})
34-
)
35-
)} -->
36-
<style>
37-
/* */
38-
</style>
3912
<div style="display: flex">
4013
<div class="rx-nav" id="rx-nav"></div>
4114
<div class="test" style="width: calc(100% - 250px); margin-left: 250px">
@@ -58,7 +31,7 @@ export class AppComponent extends LitElement {
5831
this.navService.open({
5932
navOptions: { delay: 0, left: 0 },
6033
template: html`
61-
<nav-component></nav-component>
34+
dada
6235
`,
6336
styles: css`
6437
:host {

develop/src/app/app.routing.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ import { PaginationViewComponent } from './pagination-view/pagination-view.compo
191191
path: '/ui-kit/pagination',
192192
component: PaginationViewComponent
193193
},
194+
{
195+
path: '/ui-kit/action-control',
196+
children: () => import('./action-control/action-control.module')
197+
},
194198
{
195199
path: '/ui-kit/docs/home',
196200
redirect: 'ui-kit/docs'

develop/src/app/table-view/table-view.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ import {
88
} from '@rxdi/lit-html';
99
import {
1010
Animations,
11-
animateElement,
1211
AnimationsType,
1312
animateChain
1413
} from '../../../../src/styles/animations';
1514
import { DATA } from './data';
16-
import { switchMap, concatMap } from 'rxjs/operators';
17-
import { of, from } from 'rxjs';
18-
type AnimationsUnion = keyof typeof Animations;
1915

2016
/**
2117
* @customElement table-view-component

0 commit comments

Comments
 (0)