@ev-core/aurelia-v1-sheet 0.2.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/README.md +161 -0
- package/dist/commonjs/au-drag.d.ts +30 -0
- package/dist/commonjs/au-drag.js +75 -0
- package/dist/commonjs/au-drag.js.map +1 -0
- package/dist/commonjs/elements/au-sheet-component.css +108 -0
- package/dist/commonjs/elements/au-sheet-component.d.ts +55 -0
- package/dist/commonjs/elements/au-sheet-component.html +27 -0
- package/dist/commonjs/elements/au-sheet-component.js +331 -0
- package/dist/commonjs/elements/au-sheet-component.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/interfaces.d.ts +37 -0
- package/dist/commonjs/interfaces.js +4 -0
- package/dist/commonjs/interfaces.js.map +1 -0
- package/dist/commonjs/options.d.ts +3 -0
- package/dist/commonjs/options.js +22 -0
- package/dist/commonjs/options.js.map +1 -0
- package/dist/native-modules/au-drag.d.ts +30 -0
- package/dist/native-modules/au-drag.js +71 -0
- package/dist/native-modules/au-drag.js.map +1 -0
- package/dist/native-modules/elements/au-sheet-component.css +108 -0
- package/dist/native-modules/elements/au-sheet-component.d.ts +55 -0
- package/dist/native-modules/elements/au-sheet-component.html +27 -0
- package/dist/native-modules/elements/au-sheet-component.js +328 -0
- package/dist/native-modules/elements/au-sheet-component.js.map +1 -0
- package/dist/native-modules/index.d.ts +5 -0
- package/dist/native-modules/index.js +12 -0
- package/dist/native-modules/index.js.map +1 -0
- package/dist/native-modules/interfaces.d.ts +37 -0
- package/dist/native-modules/interfaces.js +3 -0
- package/dist/native-modules/interfaces.js.map +1 -0
- package/dist/native-modules/options.d.ts +3 -0
- package/dist/native-modules/options.js +18 -0
- package/dist/native-modules/options.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Direction, IAuSheetOptions, IPosition, ISize, IStep, Placement } from '../interfaces';
|
|
2
|
+
import './au-sheet-component.css';
|
|
3
|
+
export declare class AuSheetComponent {
|
|
4
|
+
currentSize: Partial<ISize>;
|
|
5
|
+
options: IAuSheetOptions;
|
|
6
|
+
title: string;
|
|
7
|
+
placement: Placement;
|
|
8
|
+
showFooter: boolean;
|
|
9
|
+
zIndex: number;
|
|
10
|
+
showDragHandle: boolean;
|
|
11
|
+
padElement: HTMLElement;
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
beforeClose: (sheet: AuSheetComponent) => boolean | void | Promise<boolean | void>;
|
|
14
|
+
afterClose: (sheet: AuSheetComponent) => void;
|
|
15
|
+
beforeOpen: (sheet: AuSheetComponent) => boolean | void | Promise<boolean | void>;
|
|
16
|
+
afterOpen: (sheet: AuSheetComponent) => void;
|
|
17
|
+
steps: IStep[];
|
|
18
|
+
private currentStep;
|
|
19
|
+
private template;
|
|
20
|
+
private bodyHandler;
|
|
21
|
+
private dragHandler;
|
|
22
|
+
private pushElement;
|
|
23
|
+
private readonly sheetElement;
|
|
24
|
+
private readonly overlayElement;
|
|
25
|
+
private readonly contentElement;
|
|
26
|
+
private readonly dragHandleElement;
|
|
27
|
+
private readonly bodyElement;
|
|
28
|
+
bodyStartSize: ISize;
|
|
29
|
+
constructor();
|
|
30
|
+
initialPad: Partial<CSSStyleDeclaration>;
|
|
31
|
+
attachPadToElement(): void;
|
|
32
|
+
detachPadToElement(): void;
|
|
33
|
+
bind(context: any): void;
|
|
34
|
+
buildOptions(): void;
|
|
35
|
+
attached(): void;
|
|
36
|
+
detached(): void;
|
|
37
|
+
overlayClick(): void;
|
|
38
|
+
close(): Promise<void>;
|
|
39
|
+
open(): Promise<void>;
|
|
40
|
+
private startListening;
|
|
41
|
+
private stopListening;
|
|
42
|
+
pusher: ResizeObserver;
|
|
43
|
+
iosWorkaround: () => void;
|
|
44
|
+
private setupBodyHandler;
|
|
45
|
+
private setupDragHandler;
|
|
46
|
+
findStep(direction: Direction): IStep;
|
|
47
|
+
findDirection(position: IPosition, startPosition: IPosition): Direction;
|
|
48
|
+
private findRelativePosition;
|
|
49
|
+
private calculate;
|
|
50
|
+
private update;
|
|
51
|
+
findClosestStep(size: Partial<ISize>): IStep;
|
|
52
|
+
findPrevStep(): IStep;
|
|
53
|
+
findNextStep(): IStep;
|
|
54
|
+
snap(step: IStep): void;
|
|
55
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="au-sheet"
|
|
3
|
+
ref="sheetElement">
|
|
4
|
+
<div class="au-sheet-overlay"
|
|
5
|
+
ref="overlayElement"
|
|
6
|
+
click.trigger="overlayClick()"></div>
|
|
7
|
+
<div class="au-sheet-content"
|
|
8
|
+
ref="contentElement"
|
|
9
|
+
css.bind="css">
|
|
10
|
+
<div if.bind="showDragHandle"
|
|
11
|
+
class="au-sheet-draghandle"
|
|
12
|
+
ref="dragHandleElement">
|
|
13
|
+
<span></span>
|
|
14
|
+
</div>
|
|
15
|
+
<div if.bind="title" class="au-sheet-title">${title}</div>
|
|
16
|
+
<div class="au-sheet-body slim-scroll" ref="bodyElement">
|
|
17
|
+
<slot></slot>
|
|
18
|
+
</div>
|
|
19
|
+
<div show.bind="showFooter"
|
|
20
|
+
class="au-sheet-footer">
|
|
21
|
+
<slot name="footer"></slot>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
</template>
|
|
27
|
+
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { inject, bindable, customElement, DOM, PLATFORM } from 'aurelia-framework';
|
|
3
|
+
import { DragEventHandler } from '../au-drag';
|
|
4
|
+
import { getDefaultOptions } from '../options';
|
|
5
|
+
import './au-sheet-component.css';
|
|
6
|
+
const steps = [
|
|
7
|
+
{ minDim: 200, dim: 40, dynamic: true },
|
|
8
|
+
{ minDim: 200, dim: 100 }
|
|
9
|
+
];
|
|
10
|
+
let AuSheetComponent = class AuSheetComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.isOpen = false;
|
|
13
|
+
this.steps = steps;
|
|
14
|
+
this.iosWorkaround = () => {
|
|
15
|
+
const vv = PLATFORM.global.visualViewport;
|
|
16
|
+
console.log("instan apple");
|
|
17
|
+
console.log(vv);
|
|
18
|
+
};
|
|
19
|
+
this.pusher = new PLATFORM.global.ResizeObserver(() => {
|
|
20
|
+
this.attachPadToElement();
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
attachPadToElement() {
|
|
24
|
+
if (!this.padElement) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (!this.initialPad) {
|
|
28
|
+
this.initialPad = { width: this.padElement.style.width, height: this.padElement.style.height };
|
|
29
|
+
}
|
|
30
|
+
const cr = this.contentElement.getBoundingClientRect();
|
|
31
|
+
this.padElement.style.paddingBottom = `${cr.height}px`;
|
|
32
|
+
}
|
|
33
|
+
detachPadToElement() {
|
|
34
|
+
if (!this.padElement || !this.initialPad?.height) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
this.padElement.style.paddingBottom = this.initialPad.height;
|
|
38
|
+
}
|
|
39
|
+
bind(context) {
|
|
40
|
+
this.buildOptions();
|
|
41
|
+
}
|
|
42
|
+
buildOptions() {
|
|
43
|
+
const opts = getDefaultOptions();
|
|
44
|
+
Object.assign(opts, this.options ?? {});
|
|
45
|
+
this.options = opts;
|
|
46
|
+
this.title = this.title ?? opts.title;
|
|
47
|
+
this.placement = this.placement ?? opts.placement;
|
|
48
|
+
this.zIndex = this.zIndex ?? opts.zIndex;
|
|
49
|
+
this.showFooter = this.showFooter === false ? false : opts.showFooter ?? false;
|
|
50
|
+
this.showDragHandle = this.showDragHandle === false ? false : opts.showDragHandle ?? false;
|
|
51
|
+
}
|
|
52
|
+
attached() {
|
|
53
|
+
const step = this.steps[0];
|
|
54
|
+
this.snap(step);
|
|
55
|
+
this.setupDragHandler();
|
|
56
|
+
this.setupBodyHandler();
|
|
57
|
+
this.sheetElement.style.zIndex = `${this.zIndex}`;
|
|
58
|
+
}
|
|
59
|
+
detached() {
|
|
60
|
+
this.stopListening();
|
|
61
|
+
}
|
|
62
|
+
overlayClick() {
|
|
63
|
+
if (this.options?.autoClose?.overlay) {
|
|
64
|
+
this.close();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async close() {
|
|
68
|
+
if (this.beforeClose) {
|
|
69
|
+
const canClose = await this.beforeClose(this);
|
|
70
|
+
if (canClose === false) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
this.isOpen = false;
|
|
75
|
+
this.sheetElement.classList.remove('show');
|
|
76
|
+
this.stopListening();
|
|
77
|
+
this.detachPadToElement();
|
|
78
|
+
}
|
|
79
|
+
async open() {
|
|
80
|
+
if (this.beforeOpen) {
|
|
81
|
+
const canOpen = await this.beforeOpen(this);
|
|
82
|
+
if (canOpen === false) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
this.startListening();
|
|
87
|
+
this.sheetElement.classList.add('show');
|
|
88
|
+
this.isOpen = true;
|
|
89
|
+
if (this.afterOpen) {
|
|
90
|
+
this.afterOpen(this);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
startListening() {
|
|
94
|
+
this.dragHandler?.start();
|
|
95
|
+
this.bodyHandler?.start();
|
|
96
|
+
PLATFORM.global?.visualViewport?.addEventListener('resize', this.iosWorkaround);
|
|
97
|
+
this.pusher.observe(this.contentElement);
|
|
98
|
+
}
|
|
99
|
+
stopListening() {
|
|
100
|
+
this.dragHandler?.dispose();
|
|
101
|
+
this.bodyHandler?.dispose();
|
|
102
|
+
PLATFORM.global?.visualViewport?.removeEventListener('resize', this.iosWorkaround);
|
|
103
|
+
this.pusher.unobserve(this.contentElement);
|
|
104
|
+
}
|
|
105
|
+
setupBodyHandler() {
|
|
106
|
+
const element = this.bodyElement;
|
|
107
|
+
if (!element) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const handler = DragEventHandler.create(element, { positionType: 'client', passiveListeners: false });
|
|
111
|
+
handler.onStart = (start, event, data) => {
|
|
112
|
+
const scrollTopLog = [element.scrollTop];
|
|
113
|
+
const positionLog = [];
|
|
114
|
+
return { scrollTopLog, positionLog };
|
|
115
|
+
};
|
|
116
|
+
handler.onMove = (position, startPosition, event, data) => {
|
|
117
|
+
const outOfBounds = element.scrollTop < 0 || element.scrollTop > element.clientHeight;
|
|
118
|
+
if (outOfBounds) {
|
|
119
|
+
event.preventDefault();
|
|
120
|
+
}
|
|
121
|
+
data?.positionLog.push(position);
|
|
122
|
+
data?.scrollTopLog.push(element.scrollTop);
|
|
123
|
+
const contentNotScrollable = element.clientHeight == element.scrollHeight;
|
|
124
|
+
if (contentNotScrollable) {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
handler.onEnd = (position, startPos, event, data) => {
|
|
129
|
+
if (data.positionLog.length < 3) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const startScrollTop = data.scrollTopLog[0];
|
|
133
|
+
const currentScrollTop = element.scrollTop;
|
|
134
|
+
const scrolled = startScrollTop !== currentScrollTop;
|
|
135
|
+
if (scrolled) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const firstPosition = data.positionLog[0];
|
|
139
|
+
const lastPosition = data.positionLog[data.positionLog.length - 1];
|
|
140
|
+
const posDelta = firstPosition.y - lastPosition.y;
|
|
141
|
+
const direction = posDelta > 0 ? 'expand' : 'shrink';
|
|
142
|
+
const step = this.findStep(direction);
|
|
143
|
+
if (element.scrollTop < 0) {
|
|
144
|
+
element.scrollTop = 0;
|
|
145
|
+
}
|
|
146
|
+
if (element.scrollTop > element.clientHeight) {
|
|
147
|
+
element.scrollTop = element.clientHeight;
|
|
148
|
+
}
|
|
149
|
+
if (step) {
|
|
150
|
+
this.snap(step);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
this.bodyHandler = handler;
|
|
154
|
+
}
|
|
155
|
+
setupDragHandler() {
|
|
156
|
+
if (!this.dragHandleElement) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const handler = DragEventHandler.create(this.dragHandleElement, { positionType: 'client', passiveListeners: false });
|
|
160
|
+
handler.onStart = (position, event) => {
|
|
161
|
+
const handle = this.findRelativePosition(this.dragHandleElement);
|
|
162
|
+
this.sheetElement.classList.add("dragging");
|
|
163
|
+
return { handle };
|
|
164
|
+
};
|
|
165
|
+
handler.onMove = (position, startPosition, event, data) => {
|
|
166
|
+
event.preventDefault();
|
|
167
|
+
const size = this.calculate(position, startPosition, data);
|
|
168
|
+
this.update(size);
|
|
169
|
+
};
|
|
170
|
+
handler.onEnd = (position, startPosition, data) => {
|
|
171
|
+
this.sheetElement.classList.remove("dragging");
|
|
172
|
+
const direction = this.findDirection(position, startPosition);
|
|
173
|
+
let step = this.findStep(direction);
|
|
174
|
+
if (!step) {
|
|
175
|
+
step = this.findClosestStep(this.currentSize);
|
|
176
|
+
}
|
|
177
|
+
this.snap(step);
|
|
178
|
+
};
|
|
179
|
+
this.dragHandler = handler;
|
|
180
|
+
}
|
|
181
|
+
findStep(direction) {
|
|
182
|
+
return direction === 'expand' ? this.findNextStep() : this.findPrevStep();
|
|
183
|
+
}
|
|
184
|
+
findDirection(position, startPosition) {
|
|
185
|
+
let direction;
|
|
186
|
+
switch (this.placement) {
|
|
187
|
+
case 'top':
|
|
188
|
+
break;
|
|
189
|
+
case 'right':
|
|
190
|
+
break;
|
|
191
|
+
case 'bottom':
|
|
192
|
+
direction = position.y > startPosition.y ? 'shrink' : 'expand';
|
|
193
|
+
break;
|
|
194
|
+
case 'left':
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
return direction;
|
|
198
|
+
}
|
|
199
|
+
findRelativePosition(el) {
|
|
200
|
+
const dims = { h: 0, w: 0 };
|
|
201
|
+
if (el) {
|
|
202
|
+
dims.h = el.clientHeight + el.offsetTop;
|
|
203
|
+
dims.w = el.clientWidth + el.offsetLeft;
|
|
204
|
+
}
|
|
205
|
+
return dims;
|
|
206
|
+
}
|
|
207
|
+
calculate(current, start, data) {
|
|
208
|
+
const size = {};
|
|
209
|
+
if (this.placement == 'bottom') {
|
|
210
|
+
const innerHeight = window.innerHeight;
|
|
211
|
+
const handle = ((data?.handle?.h ?? 0) / 2) / innerHeight;
|
|
212
|
+
const delta = start.y - current.y;
|
|
213
|
+
const moveHeight = (delta / innerHeight) - handle;
|
|
214
|
+
const startHeight = 1 - (start.y / innerHeight);
|
|
215
|
+
size.h = (startHeight + moveHeight) * 100;
|
|
216
|
+
}
|
|
217
|
+
return size;
|
|
218
|
+
}
|
|
219
|
+
update(size, snap = false) {
|
|
220
|
+
switch (this.placement) {
|
|
221
|
+
case 'top':
|
|
222
|
+
case 'bottom':
|
|
223
|
+
this.contentElement.style.height = `${size.h}dvh`;
|
|
224
|
+
break;
|
|
225
|
+
case 'right':
|
|
226
|
+
case 'left':
|
|
227
|
+
this.contentElement.style.width = `${size.w}dvw`;
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
this.currentSize = size;
|
|
231
|
+
}
|
|
232
|
+
findClosestStep(size) {
|
|
233
|
+
const dim = (this.placement === 'top' || this.placement === 'bottom') ? size.h : size.w;
|
|
234
|
+
return this.steps.reduce((prev, curr) => Math.abs(curr.dim - dim) < Math.abs(prev.dim - dim) ? curr : prev);
|
|
235
|
+
}
|
|
236
|
+
findPrevStep() {
|
|
237
|
+
let step;
|
|
238
|
+
const index = this.steps.indexOf(this.currentStep);
|
|
239
|
+
if (index > 0) {
|
|
240
|
+
step = this.steps[index - 1];
|
|
241
|
+
}
|
|
242
|
+
return step;
|
|
243
|
+
}
|
|
244
|
+
findNextStep() {
|
|
245
|
+
let step;
|
|
246
|
+
const index = this.steps.indexOf(this.currentStep);
|
|
247
|
+
if (index < this.steps.length - 1) {
|
|
248
|
+
step = this.steps[index + 1];
|
|
249
|
+
}
|
|
250
|
+
return step;
|
|
251
|
+
}
|
|
252
|
+
snap(step) {
|
|
253
|
+
switch (this.placement) {
|
|
254
|
+
case 'top':
|
|
255
|
+
case 'bottom':
|
|
256
|
+
console.log("dynamic: " + step.dynamic);
|
|
257
|
+
this.contentElement.style.minHeight = step.minDim ? `${step.minDim}px` : '';
|
|
258
|
+
this.contentElement.style.height = step.dynamic ? '' : `${step.dim}dvh`;
|
|
259
|
+
break;
|
|
260
|
+
case 'right':
|
|
261
|
+
case 'left':
|
|
262
|
+
this.contentElement.style.minWidth = step.minDim ? `${step.minDim}px` : '';
|
|
263
|
+
this.contentElement.style.width = `${step.dim}dvw`;
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
this.currentStep = step;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
__decorate([
|
|
270
|
+
bindable,
|
|
271
|
+
__metadata("design:type", Object)
|
|
272
|
+
], AuSheetComponent.prototype, "options", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
bindable,
|
|
275
|
+
__metadata("design:type", String)
|
|
276
|
+
], AuSheetComponent.prototype, "title", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
bindable,
|
|
279
|
+
__metadata("design:type", String)
|
|
280
|
+
], AuSheetComponent.prototype, "placement", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
bindable,
|
|
283
|
+
__metadata("design:type", Boolean)
|
|
284
|
+
], AuSheetComponent.prototype, "showFooter", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
bindable,
|
|
287
|
+
__metadata("design:type", Number)
|
|
288
|
+
], AuSheetComponent.prototype, "zIndex", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
bindable,
|
|
291
|
+
__metadata("design:type", Boolean)
|
|
292
|
+
], AuSheetComponent.prototype, "showDragHandle", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
bindable,
|
|
295
|
+
__metadata("design:type", HTMLElement)
|
|
296
|
+
], AuSheetComponent.prototype, "padElement", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
bindable,
|
|
299
|
+
__metadata("design:type", Boolean)
|
|
300
|
+
], AuSheetComponent.prototype, "isOpen", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
bindable,
|
|
303
|
+
__metadata("design:type", Function)
|
|
304
|
+
], AuSheetComponent.prototype, "beforeClose", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
bindable,
|
|
307
|
+
__metadata("design:type", Function)
|
|
308
|
+
], AuSheetComponent.prototype, "afterClose", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
bindable,
|
|
311
|
+
__metadata("design:type", Function)
|
|
312
|
+
], AuSheetComponent.prototype, "beforeOpen", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
bindable,
|
|
315
|
+
__metadata("design:type", Function)
|
|
316
|
+
], AuSheetComponent.prototype, "afterOpen", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
bindable,
|
|
319
|
+
__metadata("design:type", Object)
|
|
320
|
+
], AuSheetComponent.prototype, "steps", void 0);
|
|
321
|
+
AuSheetComponent = __decorate([
|
|
322
|
+
inject(DOM.Element),
|
|
323
|
+
customElement('au-sheet'),
|
|
324
|
+
__metadata("design:paramtypes", [])
|
|
325
|
+
], AuSheetComponent);
|
|
326
|
+
export { AuSheetComponent };
|
|
327
|
+
|
|
328
|
+
//# sourceMappingURL=au-sheet-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/elements/au-sheet-component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAO/C,OAAO,0BAA0B,CAAC;AAElC,M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heet-component.js","sourceRoot":"../../../src/"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FrameworkConfiguration } from 'aurelia-framework';
|
|
2
|
+
import { IAuSheetOptions } from './interfaces';
|
|
3
|
+
export declare function configure(config: FrameworkConfiguration, cb?: (opts: IAuSheetOptions) => void): void;
|
|
4
|
+
export * from './interfaces';
|
|
5
|
+
export * from './options';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PLATFORM } from 'aurelia-pal';
|
|
2
|
+
import { setOptions } from './options';
|
|
3
|
+
export function configure(config, cb) {
|
|
4
|
+
config.globalResources([
|
|
5
|
+
PLATFORM.moduleName('./elements/au-sheet-component')
|
|
6
|
+
]);
|
|
7
|
+
setOptions(cb);
|
|
8
|
+
}
|
|
9
|
+
export * from './interfaces';
|
|
10
|
+
export * from './options';
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,MAAM,UAAU,SAAS,CAAC,MAA8B,EAAE,EAAoC;IAC5F,MAAM,CAAC,eAAe,CAAC;QACrB,QAAQ,CAAC,UAAU,CAAC,+BAA+B,CAAC;KACrD,CAAC,CAAC;IAEH,UAAU,CAAC,EAAE,CAAC,CAAC;AACjB,CAAC;AAED,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC","file":"index.js","sourceRoot":"../../src/"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type Direction = 'expand' | 'shrink';
|
|
2
|
+
export type Placement = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
+
export interface IAuAutoClose {
|
|
4
|
+
overlay?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface IAuSheetOptions {
|
|
7
|
+
title?: string;
|
|
8
|
+
placement?: Placement;
|
|
9
|
+
autoClose?: IAuAutoClose;
|
|
10
|
+
showFooter?: boolean;
|
|
11
|
+
zIndex?: number;
|
|
12
|
+
showDragHandle?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ISize {
|
|
15
|
+
w: number;
|
|
16
|
+
h: number;
|
|
17
|
+
}
|
|
18
|
+
export interface IDragData {
|
|
19
|
+
handle: ISize;
|
|
20
|
+
}
|
|
21
|
+
export interface IContentData {
|
|
22
|
+
positionLog: IPosition[];
|
|
23
|
+
scrollTopLog: number[];
|
|
24
|
+
}
|
|
25
|
+
export interface IStep {
|
|
26
|
+
minDim?: number;
|
|
27
|
+
dim: number;
|
|
28
|
+
dynamic?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IButtons {
|
|
31
|
+
cancelText: string;
|
|
32
|
+
confirmText: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IPosition {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/interfaces.ts"],"names":[],"mappings":"","file":"interfaces.js","sourceRoot":"../../src/"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const options = {
|
|
2
|
+
autoClose: {
|
|
3
|
+
overlay: false,
|
|
4
|
+
},
|
|
5
|
+
showFooter: false,
|
|
6
|
+
zIndex: 1000,
|
|
7
|
+
showDragHandle: true
|
|
8
|
+
};
|
|
9
|
+
export function setOptions(cb) {
|
|
10
|
+
if (cb) {
|
|
11
|
+
cb(options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export function getDefaultOptions() {
|
|
15
|
+
return JSON.parse(JSON.stringify(options));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/options.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG;IACZ,SAAS,EAAE;QACP,OAAO,EAAE,KAAK;KAGjB;IACD,UAAU,EAAE,KAAK;IACjB,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;CACJ,CAAC;AAErB,MAAM,UAAU,UAAU,CAAC,EAAoC;IAC3D,IAAI,EAAE,EAAE,CAAC;QACL,EAAE,CAAC,OAAO,CAAC,CAAC;IAChB,CAAC;AACL,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/C,CAAC","file":"options.js","sourceRoot":"../../src/"}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ev-core/aurelia-v1-sheet",
|
|
3
|
+
"description": "An Aurelia plugin project.",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"aurelia-binding": "^1.0.0 || ^2.0.0",
|
|
7
|
+
"aurelia-dependency-injection": "^1.0.0",
|
|
8
|
+
"aurelia-event-aggregator": "^1.0.0",
|
|
9
|
+
"aurelia-framework": "^1.0.0",
|
|
10
|
+
"aurelia-logging": "^1.0.0",
|
|
11
|
+
"aurelia-pal": "^1.0.0",
|
|
12
|
+
"tslib": "^2.8.1"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"eslint": "^9.17.0",
|
|
16
|
+
"globals": "^15.14.0",
|
|
17
|
+
"aurelia-cli": "^3.0.4",
|
|
18
|
+
"aurelia-testing": "^1.1.0",
|
|
19
|
+
"gulp": "^4.0.2",
|
|
20
|
+
"gulp-eslint-new": "^2.4.0",
|
|
21
|
+
"minimatch": "^10.0.1",
|
|
22
|
+
"promise-polyfill": "^8.3.0",
|
|
23
|
+
"aurelia-bootstrapper": "^2.4.1",
|
|
24
|
+
"aurelia-animator-css": "^1.0.4",
|
|
25
|
+
"typescript": "^5.7.2",
|
|
26
|
+
"@types/node": "^22.10.2",
|
|
27
|
+
"typescript-eslint": "^8.18.1",
|
|
28
|
+
"gulp-sourcemaps": "^3.0.0",
|
|
29
|
+
"requirejs": "^2.3.7",
|
|
30
|
+
"text": "requirejs/text",
|
|
31
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
32
|
+
"connect": "^3.7.0",
|
|
33
|
+
"connect-history-api-fallback": "^2.0.0",
|
|
34
|
+
"connect-injector": "^0.4.4",
|
|
35
|
+
"serve-static": "^1.16.2",
|
|
36
|
+
"socket.io": "^4.8.1",
|
|
37
|
+
"open": "^8.4.2",
|
|
38
|
+
"server-destroy": "^1.0.1",
|
|
39
|
+
"debounce": "^2.2.0",
|
|
40
|
+
"gulp-plumber": "^1.2.1",
|
|
41
|
+
"gulp-rename": "^2.0.0",
|
|
42
|
+
"gulp-watch": "^5.0.1",
|
|
43
|
+
"gulp-if": "^3.0.0"
|
|
44
|
+
},
|
|
45
|
+
"overrides": {
|
|
46
|
+
"chokidar": "^3.0.0",
|
|
47
|
+
"glob-stream": "^7.0.0",
|
|
48
|
+
"glob-parent": "^6.0.0",
|
|
49
|
+
"micromatch": "^4.0.0"
|
|
50
|
+
},
|
|
51
|
+
"main": "dist/commonjs/index.js",
|
|
52
|
+
"module": "dist/native-modules/index.js",
|
|
53
|
+
"files": [
|
|
54
|
+
"dist"
|
|
55
|
+
],
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "au build-plugin --env prod",
|
|
58
|
+
"clean": "rimraf dist",
|
|
59
|
+
"start": "au run",
|
|
60
|
+
"watch": "au build-plugin --watch"
|
|
61
|
+
}
|
|
62
|
+
}
|