@dodlhuat/basix 1.2.0 → 1.2.1
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 +56 -1
- package/css/accordion.scss +86 -87
- package/css/alert.scss +137 -137
- package/css/button.scss +48 -0
- package/css/calendar.scss +957 -0
- package/css/card.scss +65 -65
- package/css/chart.scss +270 -157
- package/css/chat-bubbles.scss +134 -68
- package/css/chips.scss +109 -19
- package/css/colors.scss +32 -32
- package/css/datepicker.scss +336 -336
- package/css/defaults.scss +90 -90
- package/css/docs.scss +529 -0
- package/css/editor.scss +36 -0
- package/css/file-uploader.scss +1 -1
- package/css/flyout-menu.scss +361 -361
- package/css/form.scss +0 -15
- package/css/gallery.scss +65 -6
- package/css/grid.scss +41 -40
- package/css/group-picker.scss +345 -0
- package/css/guitar-chords.css +250 -250
- package/css/icons.scss +330 -330
- package/css/parameters.scss +3 -3
- package/css/placeholder.scss +33 -33
- package/css/popover.scss +206 -0
- package/css/progress.scss +76 -32
- package/css/properties.scss +51 -36
- package/css/push-menu.scss +302 -174
- package/css/reset.scss +39 -39
- package/css/scrollbar.scss +62 -5
- package/css/sidebar-nav.scss +92 -0
- package/css/spinner.scss +65 -65
- package/css/stepper.scss +48 -12
- package/css/style.css +3159 -254
- package/css/style.css.map +1 -1
- package/css/style.min.css +1 -1
- package/css/style.scss +51 -45
- package/css/table.scss +199 -199
- package/css/tabs.scss +154 -123
- package/css/timeline.scss +83 -38
- package/css/timepicker.scss +100 -5
- package/css/toast.scss +81 -81
- package/css/virtual-dropdown.scss +35 -29
- package/js/calendar.js +532 -0
- package/js/calendar.ts +706 -0
- package/js/chart.js +573 -257
- package/js/chart.ts +692 -0
- package/js/code-viewer.js +10 -10
- package/js/code-viewer.ts +188 -188
- package/js/datepicker.ts +627 -627
- package/js/docs-nav.js +204 -0
- package/js/dropdown.ts +179 -179
- package/js/editor.js +50 -6
- package/js/editor.ts +483 -444
- package/js/file-uploader.js +1 -0
- package/js/file-uploader.ts +1 -0
- package/js/flyout-menu.js +14 -14
- package/js/flyout-menu.ts +249 -249
- package/js/form-builder.js +106 -106
- package/js/gallery.js +14 -8
- package/js/gallery.ts +245 -236
- package/js/group-picker.js +342 -0
- package/js/group-picker.ts +447 -0
- package/js/guitar-chords.js +268 -268
- package/js/lazy-loader.js +121 -121
- package/js/modal.ts +166 -166
- package/js/popover.js +163 -0
- package/js/popover.ts +219 -0
- package/js/position.js +108 -0
- package/js/position.ts +111 -0
- package/js/push-menu.js +113 -0
- package/js/push-menu.ts +284 -145
- package/js/request.js +50 -50
- package/js/scroll.ts +47 -47
- package/js/scrollbar.js +13 -0
- package/js/scrollbar.ts +324 -307
- package/js/select.ts +216 -216
- package/js/sidebar-nav.js +41 -0
- package/js/sidebar-nav.ts +66 -0
- package/js/table.ts +452 -452
- package/js/tabs.ts +279 -279
- package/js/theme.js +17 -6
- package/js/theme.ts +234 -224
- package/js/toast.ts +137 -137
- package/js/tooltip.js +6 -60
- package/js/tooltip.ts +184 -251
- package/js/tsconfig.json +18 -18
- package/js/utils.ts +83 -83
- package/js/virtual-dropdown.js +25 -25
- package/js/virtual-dropdown.ts +365 -365
- package/package.json +39 -39
- package/js/index.js +0 -816
- package/js/index.ts +0 -987
package/js/index.js
DELETED
|
@@ -1,816 +0,0 @@
|
|
|
1
|
-
import { utils } from "./utils.js";
|
|
2
|
-
import { Scrollbar } from "./scrollbar.js";
|
|
3
|
-
import { Modal } from "./modal.js";
|
|
4
|
-
import { PushMenu } from "./push-menu.js";
|
|
5
|
-
import { Toast } from "./toast.js";
|
|
6
|
-
import { DatePicker } from "./datepicker.js";
|
|
7
|
-
import { Theme } from "./theme.js";
|
|
8
|
-
import { Table } from "./table.js";
|
|
9
|
-
import { FlyoutMenu } from "./flyout-menu.js";
|
|
10
|
-
import { Tabs } from "./tabs.js";
|
|
11
|
-
import { Carousel } from "./carousel.js";
|
|
12
|
-
import { CodeViewer } from "./code-viewer.js";
|
|
13
|
-
import { FileUploader } from "./file-uploader.js";
|
|
14
|
-
import { TreeComponent, TreeNode } from "./tree.js";
|
|
15
|
-
import { MasonryGallery } from "./gallery.js";
|
|
16
|
-
import { Tooltip } from "./tooltip.js";
|
|
17
|
-
import { Dropdown } from "./dropdown.js";
|
|
18
|
-
import { VirtualDropdown } from "./virtual-dropdown.js";
|
|
19
|
-
import { TimeSpanPicker } from "./timepicker.js";
|
|
20
|
-
import { RangeSlider } from "./range-slider.js";
|
|
21
|
-
import { BottomSheet } from "./bottom-sheet.js";
|
|
22
|
-
import { Editor } from "./editor.js";
|
|
23
|
-
import { Stepper } from "./stepper.js";
|
|
24
|
-
import { ContextMenu } from "./context-menu.js";
|
|
25
|
-
// Generate sample table data
|
|
26
|
-
const generateData = (count) => {
|
|
27
|
-
const data = [];
|
|
28
|
-
const firstNames = [
|
|
29
|
-
"John",
|
|
30
|
-
"Jane",
|
|
31
|
-
"Mike",
|
|
32
|
-
"Sarah",
|
|
33
|
-
"Robert",
|
|
34
|
-
"Emily",
|
|
35
|
-
"David",
|
|
36
|
-
"Emma",
|
|
37
|
-
"James",
|
|
38
|
-
"Olivia",
|
|
39
|
-
];
|
|
40
|
-
const lastNames = [
|
|
41
|
-
"Smith",
|
|
42
|
-
"Johnson",
|
|
43
|
-
"Williams",
|
|
44
|
-
"Brown",
|
|
45
|
-
"Jones",
|
|
46
|
-
"Garcia",
|
|
47
|
-
"Miller",
|
|
48
|
-
"Davis",
|
|
49
|
-
"Rodriguez",
|
|
50
|
-
"Martinez",
|
|
51
|
-
];
|
|
52
|
-
const roles = ["Admin", "User", "Editor", "Viewer", "Manager", "Developer"];
|
|
53
|
-
const statuses = ["Active", "Inactive", "Pending", "Banned"];
|
|
54
|
-
for (let i = 1; i <= count; i++) {
|
|
55
|
-
const firstName = firstNames[Math.floor(Math.random() * firstNames.length)];
|
|
56
|
-
const lastName = lastNames[Math.floor(Math.random() * lastNames.length)];
|
|
57
|
-
const role = roles[Math.floor(Math.random() * roles.length)];
|
|
58
|
-
const status = statuses[Math.floor(Math.random() * statuses.length)];
|
|
59
|
-
const lastLoginDate = new Date(Date.now() - Math.floor(Math.random() * 10000000000));
|
|
60
|
-
data.push({
|
|
61
|
-
id: i,
|
|
62
|
-
name: `${firstName} ${lastName}`,
|
|
63
|
-
email: `user${i}@example.com`,
|
|
64
|
-
role,
|
|
65
|
-
status,
|
|
66
|
-
lastLogin: lastLoginDate.toLocaleDateString(),
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
return data;
|
|
70
|
-
};
|
|
71
|
-
// Initialize all components when DOM is ready
|
|
72
|
-
utils.ready(() => {
|
|
73
|
-
// Initialize scrollbars
|
|
74
|
-
Scrollbar.initAll(".scroll-container");
|
|
75
|
-
// Initialize theme
|
|
76
|
-
Theme.init();
|
|
77
|
-
// Initialize horizontal tabs
|
|
78
|
-
const horizontalTabs = new Tabs(".horizontal", {
|
|
79
|
-
layout: "horizontal",
|
|
80
|
-
});
|
|
81
|
-
// Initialize vertical tabs
|
|
82
|
-
const verticalTabs = new Tabs(".vertical", {
|
|
83
|
-
layout: "vertical",
|
|
84
|
-
});
|
|
85
|
-
// Initialize carousel
|
|
86
|
-
const carousel = new Carousel("#carouselIdHere", {
|
|
87
|
-
loop: true,
|
|
88
|
-
});
|
|
89
|
-
// Initialize advanced table with data
|
|
90
|
-
const columns = [
|
|
91
|
-
{ key: "id", label: "ID" },
|
|
92
|
-
{ key: "name", label: "Name" },
|
|
93
|
-
{ key: "email", label: "Email" },
|
|
94
|
-
{ key: "role", label: "Role" },
|
|
95
|
-
{ key: "status", label: "Status" },
|
|
96
|
-
{ key: "lastLogin", label: "Last Login" },
|
|
97
|
-
];
|
|
98
|
-
const tableData = generateData(50);
|
|
99
|
-
new Table("#demo-table-js", {
|
|
100
|
-
data: tableData,
|
|
101
|
-
columns: columns,
|
|
102
|
-
pageSize: 10,
|
|
103
|
-
});
|
|
104
|
-
// Initialize modal
|
|
105
|
-
const modalTrigger = document.querySelector(".show-modal");
|
|
106
|
-
if (modalTrigger) {
|
|
107
|
-
modalTrigger.addEventListener("click", () => {
|
|
108
|
-
const buttons = '<div class="buttons"><button class="button-light">Close</button> <button>Save Changes</button></div>';
|
|
109
|
-
const modal = new Modal("bluffi", "<strong>blaffi</strong>", buttons, true, "default");
|
|
110
|
-
modal.show();
|
|
111
|
-
console.warn("Buttons have no bound listeners");
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
// Initialize toast
|
|
115
|
-
const toastTrigger = document.querySelector(".show-toast");
|
|
116
|
-
if (toastTrigger) {
|
|
117
|
-
toastTrigger.addEventListener("click", () => {
|
|
118
|
-
const toast = new Toast("some content. maybe even more text in here!", "some header", "success", true);
|
|
119
|
-
toast.show(3000);
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
// Initialize push menu
|
|
123
|
-
PushMenu.init();
|
|
124
|
-
// Initialize flyout menu
|
|
125
|
-
const menu = new FlyoutMenu({
|
|
126
|
-
direction: "right",
|
|
127
|
-
triggerSelector: ".trigger-flyout-menu",
|
|
128
|
-
});
|
|
129
|
-
// Flyout menu controls: Switch direction
|
|
130
|
-
const directionBtns = document.querySelectorAll(".flyout-controls > button");
|
|
131
|
-
directionBtns.forEach((btn) => {
|
|
132
|
-
btn.addEventListener("click", () => {
|
|
133
|
-
// Remove active class from all buttons
|
|
134
|
-
directionBtns.forEach((b) => b.classList.remove("active"));
|
|
135
|
-
// Add active class to clicked button
|
|
136
|
-
btn.classList.add("active");
|
|
137
|
-
// Update menu direction
|
|
138
|
-
const direction = btn.dataset.direction;
|
|
139
|
-
if (direction) {
|
|
140
|
-
menu.setDirection(direction);
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
new DatePicker("#datepicker-single", {
|
|
145
|
-
mode: "single",
|
|
146
|
-
onSelect: (date) => {
|
|
147
|
-
console.log("Single selected:", date);
|
|
148
|
-
},
|
|
149
|
-
});
|
|
150
|
-
new DatePicker("#datepicker-time", {
|
|
151
|
-
mode: "single",
|
|
152
|
-
timePicker: true,
|
|
153
|
-
onSelect: (date) => {
|
|
154
|
-
console.log("Single selected:", date);
|
|
155
|
-
},
|
|
156
|
-
});
|
|
157
|
-
new DatePicker("#datepicker-range", {
|
|
158
|
-
mode: "range",
|
|
159
|
-
onSelect: (range) => {
|
|
160
|
-
console.log("Range selected:", range);
|
|
161
|
-
},
|
|
162
|
-
});
|
|
163
|
-
new DatePicker("#datepicker-localized", {
|
|
164
|
-
mode: "single",
|
|
165
|
-
startDay: 1, // Monday
|
|
166
|
-
locales: {
|
|
167
|
-
days: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa"],
|
|
168
|
-
months: [
|
|
169
|
-
"Enero",
|
|
170
|
-
"Febrero",
|
|
171
|
-
"Marzo",
|
|
172
|
-
"Abril",
|
|
173
|
-
"Mayo",
|
|
174
|
-
"Junio",
|
|
175
|
-
"Julio",
|
|
176
|
-
"Agosto",
|
|
177
|
-
"Septiembre",
|
|
178
|
-
"Octubre",
|
|
179
|
-
"Noviembre",
|
|
180
|
-
"Diciembre",
|
|
181
|
-
],
|
|
182
|
-
},
|
|
183
|
-
format: (date) => {
|
|
184
|
-
return date.toLocaleDateString("es-ES", {
|
|
185
|
-
weekday: "long",
|
|
186
|
-
year: "numeric",
|
|
187
|
-
month: "long",
|
|
188
|
-
day: "numeric",
|
|
189
|
-
});
|
|
190
|
-
},
|
|
191
|
-
onSelect: (date) => {
|
|
192
|
-
console.log("Localized selected:", date);
|
|
193
|
-
},
|
|
194
|
-
});
|
|
195
|
-
// Initialize code viewer with usage example
|
|
196
|
-
const usageTabs = `new Tabs('.horizontal', {
|
|
197
|
-
layout: 'horizontal',
|
|
198
|
-
defaultTab: 0
|
|
199
|
-
});`;
|
|
200
|
-
new CodeViewer("#usage-tabs", usageTabs, "js");
|
|
201
|
-
// Initialize file uploader
|
|
202
|
-
const uploaderElement = document.querySelector(".uploader-content");
|
|
203
|
-
if (uploaderElement) {
|
|
204
|
-
new FileUploader(uploaderElement);
|
|
205
|
-
}
|
|
206
|
-
const sampleData = [
|
|
207
|
-
new TreeNode("Documents", "folder", [
|
|
208
|
-
new TreeNode("Work", "folder", [
|
|
209
|
-
new TreeNode("presentation.pptx", "file"),
|
|
210
|
-
new TreeNode("report.docx", "file"),
|
|
211
|
-
new TreeNode("budget.xlsx", "file"),
|
|
212
|
-
]),
|
|
213
|
-
new TreeNode("Personal", "folder", [
|
|
214
|
-
new TreeNode("resume.pdf", "file"),
|
|
215
|
-
new TreeNode("vacation-photos", "folder", [
|
|
216
|
-
new TreeNode("beach.jpg", "file"),
|
|
217
|
-
new TreeNode("mountain.jpg", "file"),
|
|
218
|
-
]),
|
|
219
|
-
]),
|
|
220
|
-
]),
|
|
221
|
-
new TreeNode("Projects", "folder", [
|
|
222
|
-
new TreeNode("website", "folder", [
|
|
223
|
-
new TreeNode("index.html", "file"),
|
|
224
|
-
new TreeNode("styles.css", "file"),
|
|
225
|
-
new TreeNode("script.js", "file"),
|
|
226
|
-
]),
|
|
227
|
-
new TreeNode("app", "folder", [
|
|
228
|
-
new TreeNode("src", "folder", [
|
|
229
|
-
new TreeNode("main.js", "file"),
|
|
230
|
-
new TreeNode("utils.js", "file"),
|
|
231
|
-
]),
|
|
232
|
-
new TreeNode("package.json", "file"),
|
|
233
|
-
]),
|
|
234
|
-
]),
|
|
235
|
-
new TreeNode("Downloads", "folder", [
|
|
236
|
-
new TreeNode("installer.exe", "file"),
|
|
237
|
-
new TreeNode("readme.txt", "file"),
|
|
238
|
-
]),
|
|
239
|
-
new TreeNode("README.md", "file"),
|
|
240
|
-
];
|
|
241
|
-
const tree = new TreeComponent("#tree-root", sampleData);
|
|
242
|
-
const batchSize = 12;
|
|
243
|
-
let indexNumber = 1;
|
|
244
|
-
const gallery = new MasonryGallery("gallery", {
|
|
245
|
-
minColumnWidth: 300,
|
|
246
|
-
fetchFunction: () => new Promise((resolve) => {
|
|
247
|
-
setTimeout(() => {
|
|
248
|
-
const images = [];
|
|
249
|
-
for (let i = 0; i < batchSize; i++) {
|
|
250
|
-
const width = 400;
|
|
251
|
-
const height = Math.floor(Math.random() * 301) + 300; // 300-600
|
|
252
|
-
const id = Math.floor(Math.random() * 1000);
|
|
253
|
-
const imageIndex = indexNumber * batchSize + i;
|
|
254
|
-
images.push({
|
|
255
|
-
src: `https://picsum.photos/${width}/${height}?random=${imageIndex}`,
|
|
256
|
-
title: `Image ${imageIndex + 1}`,
|
|
257
|
-
desc: `A random caption for image ${id}`,
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
indexNumber++;
|
|
261
|
-
resolve(images);
|
|
262
|
-
}, 800);
|
|
263
|
-
}),
|
|
264
|
-
});
|
|
265
|
-
const dropdown = new Dropdown("#myDropdown");
|
|
266
|
-
const dropdownElement = document.querySelector("#myDropdown");
|
|
267
|
-
dropdownElement?.addEventListener("dropdown-select", ((event) => {
|
|
268
|
-
const { text, element } = event.detail;
|
|
269
|
-
console.log("User selected:", text);
|
|
270
|
-
console.log("Selected element:", element);
|
|
271
|
-
}));
|
|
272
|
-
const generateItems = (count, prefix) => {
|
|
273
|
-
return Array.from({ length: count }, (_, i) => ({
|
|
274
|
-
label: `${prefix} Item ${i + 1}`,
|
|
275
|
-
value: `${prefix.toLowerCase()}_${i + 1}`,
|
|
276
|
-
}));
|
|
277
|
-
};
|
|
278
|
-
const bigData = generateItems(10000, "Option");
|
|
279
|
-
const smallData = generateItems(50, "Choice");
|
|
280
|
-
const singleDropdown = new VirtualDropdown({
|
|
281
|
-
container: "#dropdown-single",
|
|
282
|
-
options: bigData,
|
|
283
|
-
searchable: true,
|
|
284
|
-
placeholder: "Search 10k items...",
|
|
285
|
-
renderLimit: 15,
|
|
286
|
-
onSelect: (val) => {
|
|
287
|
-
console.log("Single Select:", val);
|
|
288
|
-
},
|
|
289
|
-
});
|
|
290
|
-
const multiDropdown = new VirtualDropdown({
|
|
291
|
-
container: "#dropdown-multi",
|
|
292
|
-
options: smallData,
|
|
293
|
-
searchable: true,
|
|
294
|
-
multiSelect: true,
|
|
295
|
-
placeholder: "Choose multiple...",
|
|
296
|
-
renderLimit: 10,
|
|
297
|
-
onSelect: (vals) => {
|
|
298
|
-
console.log("Multi Select:", vals);
|
|
299
|
-
},
|
|
300
|
-
});
|
|
301
|
-
// Initialize bottom sheet
|
|
302
|
-
const bottomSheetTrigger = document.querySelector('.show-bottom-sheet');
|
|
303
|
-
if (bottomSheetTrigger) {
|
|
304
|
-
bottomSheetTrigger.addEventListener('click', () => {
|
|
305
|
-
const buttons = '<div class="buttons"><button class="button-light">Cancel</button> <button>Confirm</button></div>';
|
|
306
|
-
const sheet = new BottomSheet({
|
|
307
|
-
content: '<p>This is the bottom sheet content. It slides up from the bottom and can be dismissed by dragging down, tapping the backdrop, or pressing Escape.</p>',
|
|
308
|
-
header: 'Bottom Sheet',
|
|
309
|
-
footer: buttons,
|
|
310
|
-
closeable: true,
|
|
311
|
-
snapHeight: 'auto',
|
|
312
|
-
});
|
|
313
|
-
sheet.show();
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
// Initialize context menu demo
|
|
317
|
-
new ContextMenu('.context-menu-target', [
|
|
318
|
-
{ group: 'File' },
|
|
319
|
-
{ label: 'Open', icon: 'folder_open', shortcut: '⌘O', action: () => { } },
|
|
320
|
-
{ label: 'Rename', icon: 'edit', shortcut: 'F2', action: () => { } },
|
|
321
|
-
{ label: 'Duplicate', icon: 'library_add', action: () => { } },
|
|
322
|
-
'separator',
|
|
323
|
-
{
|
|
324
|
-
label: 'Share',
|
|
325
|
-
icon: 'send',
|
|
326
|
-
submenu: [
|
|
327
|
-
{ label: 'Copy link', icon: 'attachment', action: () => { } },
|
|
328
|
-
{ label: 'Send by mail', icon: 'mail', action: () => { } },
|
|
329
|
-
]
|
|
330
|
-
},
|
|
331
|
-
'separator',
|
|
332
|
-
{ label: 'Delete', icon: 'delete', shortcut: '⌫', destructive: true, action: () => { } },
|
|
333
|
-
]);
|
|
334
|
-
// Initialize stepper demo
|
|
335
|
-
const stepperEl = document.querySelector('#stepper-demo');
|
|
336
|
-
if (stepperEl) {
|
|
337
|
-
const stepper = new Stepper(stepperEl, { defaultStep: 1 });
|
|
338
|
-
document.querySelector('#stepper-next')?.addEventListener('click', () => stepper.next());
|
|
339
|
-
document.querySelector('#stepper-prev')?.addEventListener('click', () => stepper.prev());
|
|
340
|
-
}
|
|
341
|
-
// Initialize range sliders
|
|
342
|
-
RangeSlider.initAll();
|
|
343
|
-
Tooltip.initializeAll();
|
|
344
|
-
new Editor({ simple: true });
|
|
345
|
-
const timeSpanPicker = new TimeSpanPicker('timespan-1', {
|
|
346
|
-
onChange: (start, end) => {
|
|
347
|
-
console.log(`Start: ${start}, Ende: ${end}`);
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
new CodeViewer("#usage-text-input", `<label for="text-input-demo">Text Input</label>
|
|
351
|
-
<input type="text" id="text-input-demo"/>`, "html");
|
|
352
|
-
new CodeViewer("#usage-textarea", `<label for="textarea-demo">Text Area</label>
|
|
353
|
-
<textarea id="textarea-demo"></textarea>`, "html");
|
|
354
|
-
new CodeViewer("#usage-checkbox-demo", `<input class="styled-checkbox"
|
|
355
|
-
id="checkbox-1"
|
|
356
|
-
type="checkbox"
|
|
357
|
-
value="1"
|
|
358
|
-
/>
|
|
359
|
-
<label for="checkbox-1">Checkbox</label>`, "html");
|
|
360
|
-
});
|
|
361
|
-
new CodeViewer("#usage-radiobutton-demo", `<label class="radio-button-container">Three
|
|
362
|
-
<input type="radio" name="radio"/>
|
|
363
|
-
<span class="checkmark"></span>
|
|
364
|
-
</label>`, "html");
|
|
365
|
-
new CodeViewer("#usage-switch-demo", `<div class="switch">
|
|
366
|
-
<input type="checkbox" id="switch"/><label for="switch">Toggle</label>
|
|
367
|
-
</div>`, "html");
|
|
368
|
-
new CodeViewer("#usage-slider-demo", `<div class="range-slider">
|
|
369
|
-
<input type="range" min="1" max="100" value="50" />
|
|
370
|
-
</div>`, "html");
|
|
371
|
-
new CodeViewer("#usage-pushmenu-control-demo", `<div class="open-menu">
|
|
372
|
-
<div class="navigation-controls">
|
|
373
|
-
<input type="checkbox" id="menu-navigation" class="navigation"/>
|
|
374
|
-
<label for="menu-navigation">
|
|
375
|
-
<span class="icon icon-menu"></span>
|
|
376
|
-
</label>
|
|
377
|
-
</div>
|
|
378
|
-
</div>`, "html");
|
|
379
|
-
new CodeViewer("#usage-pushmenu-demo", `<nav class="push-menu">
|
|
380
|
-
<ul>
|
|
381
|
-
<li>
|
|
382
|
-
<a onclick="window.Scroll.to('#grid')">Grid</a>
|
|
383
|
-
</li>
|
|
384
|
-
<li>
|
|
385
|
-
<a onclick="window.Scroll.to('#typography')">Typography</a>
|
|
386
|
-
</li>
|
|
387
|
-
</ul>
|
|
388
|
-
</nav>`, "html");
|
|
389
|
-
new CodeViewer("#usage-pushmenu-script-demo", `PushMenu.init();`, "js");
|
|
390
|
-
new CodeViewer("#usage-flyout-script-demo", `const menu = new FlyoutMenu({
|
|
391
|
-
direction: "right",
|
|
392
|
-
triggerSelector: ".trigger-flyout-menu",
|
|
393
|
-
});`, "js");
|
|
394
|
-
new CodeViewer("#usage-flyout-demo", `<div class="flyout-overlay" id="flyoutOverlay"></div>
|
|
395
|
-
<div class="flyout-menu" id="flyoutMenu">
|
|
396
|
-
<ul>
|
|
397
|
-
<li><a href="#">Home</a></li>
|
|
398
|
-
<li>
|
|
399
|
-
About
|
|
400
|
-
<ul>
|
|
401
|
-
<li><a href="#">Our Story</a></li>
|
|
402
|
-
<li><a href="#">Team</a></li>
|
|
403
|
-
<li><a href="#">Careers</a></li>
|
|
404
|
-
</ul>
|
|
405
|
-
</li>
|
|
406
|
-
<li>
|
|
407
|
-
Services
|
|
408
|
-
<ul>
|
|
409
|
-
<li>
|
|
410
|
-
Web Design
|
|
411
|
-
<ul>
|
|
412
|
-
<li><a href="#">eCommerce</a></li>
|
|
413
|
-
<li><a href="#">Landing Pages</a></li>
|
|
414
|
-
<li><a href="#">Portfolios</a></li>
|
|
415
|
-
</ul>
|
|
416
|
-
</li>
|
|
417
|
-
<li><a href="#">Development</a></li>
|
|
418
|
-
<li><a href="#">SEO</a></li>
|
|
419
|
-
</ul>
|
|
420
|
-
</li>
|
|
421
|
-
<li><a href="#">Portfolio</a></li>
|
|
422
|
-
<li><a href="#">Contact</a></li>
|
|
423
|
-
</ul>
|
|
424
|
-
</div>`, "html");
|
|
425
|
-
new CodeViewer("#usage-dropdown-menu-demo", `<div class="dropdown-container" id="myDropdown">
|
|
426
|
-
<button class="dropdown-trigger">Select Option</button>
|
|
427
|
-
<ul class="dropdown-menu">
|
|
428
|
-
<li>
|
|
429
|
-
<div class="dropdown-item">Profile</div>
|
|
430
|
-
</li>
|
|
431
|
-
<li>
|
|
432
|
-
<div class="dropdown-item">Settings</div>
|
|
433
|
-
<ul>
|
|
434
|
-
<li>
|
|
435
|
-
<div class="dropdown-item">Account</div>
|
|
436
|
-
</li>
|
|
437
|
-
<li>
|
|
438
|
-
<div class="dropdown-item">Privacy</div>
|
|
439
|
-
<ul>
|
|
440
|
-
<li>
|
|
441
|
-
<div class="dropdown-item">Public</div>
|
|
442
|
-
</li>
|
|
443
|
-
<li>
|
|
444
|
-
<div class="dropdown-item">Private</div>
|
|
445
|
-
</li>
|
|
446
|
-
<li>
|
|
447
|
-
<div class="dropdown-item">Friends Only</div>
|
|
448
|
-
</li>
|
|
449
|
-
</ul>
|
|
450
|
-
</li>
|
|
451
|
-
<li>
|
|
452
|
-
<div class="dropdown-item">Notifications</div>
|
|
453
|
-
</li>
|
|
454
|
-
</ul>
|
|
455
|
-
</li>
|
|
456
|
-
<li>
|
|
457
|
-
<div class="dropdown-item">Help</div>
|
|
458
|
-
</li>
|
|
459
|
-
<li>
|
|
460
|
-
<div class="dropdown-item">Logout</div>
|
|
461
|
-
</li>
|
|
462
|
-
</ul>
|
|
463
|
-
</div>`, "html");
|
|
464
|
-
new CodeViewer("#usage-dropdown-menu-js-demo", `const dropdown = new Dropdown("#myDropdown");
|
|
465
|
-
const dropdownElement = document.querySelector("#myDropdown");
|
|
466
|
-
dropdownElement?.addEventListener("dropdown-select", ((
|
|
467
|
-
event: CustomEvent<DropdownSelectDetail>,
|
|
468
|
-
) => {
|
|
469
|
-
const { text, element } = event.detail;
|
|
470
|
-
console.log("User selected:", text);
|
|
471
|
-
console.log("Selected element:", element);
|
|
472
|
-
}) as EventListener);`, "js");
|
|
473
|
-
new CodeViewer("#usage-bottom-sheet-demo", `const sheet = new BottomSheet({
|
|
474
|
-
content: '<p>Sheet content here.</p>',
|
|
475
|
-
header: 'Title',
|
|
476
|
-
footer: '<div class="buttons"><button>Confirm</button></div>',
|
|
477
|
-
closeable: true,
|
|
478
|
-
snapHeight: 'auto',
|
|
479
|
-
});
|
|
480
|
-
sheet.show();`, "js");
|
|
481
|
-
new CodeViewer("#usage-modal-demo", `const modal = new Modal(
|
|
482
|
-
"content",
|
|
483
|
-
"<strong>header</strong>",
|
|
484
|
-
"controls",
|
|
485
|
-
true,
|
|
486
|
-
"default",
|
|
487
|
-
);
|
|
488
|
-
modal.show();`, "js");
|
|
489
|
-
new CodeViewer("#usage-toast-demo", `const toast = new Toast(
|
|
490
|
-
"some content. maybe even more text in here!",
|
|
491
|
-
"some header",
|
|
492
|
-
"success",
|
|
493
|
-
true,
|
|
494
|
-
);
|
|
495
|
-
toast.show(3000);`, "js");
|
|
496
|
-
new CodeViewer("#usage-tooltip-demo", `<button class="tooltip-trigger" data-tooltip="This is a simple tooltip">
|
|
497
|
-
Simple Tooltip
|
|
498
|
-
</button>`, "html");
|
|
499
|
-
new CodeViewer("#usage-tooltip-js-demo", `Tooltip.initializeAll();`, "js");
|
|
500
|
-
new CodeViewer("#usage-spinner-demo", `<div class="spinner"></div>`, "html");
|
|
501
|
-
new CodeViewer("#usage-loading-demo", `<div class="loading"></div>`, "html");
|
|
502
|
-
new CodeViewer("#usage-alerts-demo", `<div class="alert alert-default">
|
|
503
|
-
<strong>Default:</strong> This is a default alert message.
|
|
504
|
-
</div>`, "html");
|
|
505
|
-
new CodeViewer("#usage-chips-demo", `<div class="chips">
|
|
506
|
-
<div class="chip">Example Chip</div>
|
|
507
|
-
<div class="chip clickable">Example Chip with hover</div>
|
|
508
|
-
<div class="chip closeable">
|
|
509
|
-
Example Chip with closure
|
|
510
|
-
<button class="close">
|
|
511
|
-
<span class="icon icon-close"></span>
|
|
512
|
-
</button>
|
|
513
|
-
</div>
|
|
514
|
-
</div>`, "html");
|
|
515
|
-
new CodeViewer("#usage-stepper-demo", `<div class="stepper">
|
|
516
|
-
<div class="stepper-step completed">
|
|
517
|
-
<div class="stepper-indicator">
|
|
518
|
-
<svg class="icon-svg"><use href="svg-icons/icons.svg#check"/></svg>
|
|
519
|
-
</div>
|
|
520
|
-
<div class="stepper-label">
|
|
521
|
-
<span class="stepper-title">Account</span>
|
|
522
|
-
</div>
|
|
523
|
-
</div>
|
|
524
|
-
<div class="stepper-connector completed"></div>
|
|
525
|
-
<div class="stepper-step active">
|
|
526
|
-
<div class="stepper-indicator">2</div>
|
|
527
|
-
<div class="stepper-label">
|
|
528
|
-
<span class="stepper-title">Profile</span>
|
|
529
|
-
</div>
|
|
530
|
-
</div>
|
|
531
|
-
<div class="stepper-connector"></div>
|
|
532
|
-
<div class="stepper-step">
|
|
533
|
-
<div class="stepper-indicator">3</div>
|
|
534
|
-
<div class="stepper-label">
|
|
535
|
-
<span class="stepper-title">Review</span>
|
|
536
|
-
</div>
|
|
537
|
-
</div>
|
|
538
|
-
</div>
|
|
539
|
-
|
|
540
|
-
const stepper = new Stepper('#my-stepper');
|
|
541
|
-
stepper.next();
|
|
542
|
-
stepper.prev();
|
|
543
|
-
stepper.goTo(2);
|
|
544
|
-
stepper.setError(1);`, "html");
|
|
545
|
-
new CodeViewer("#usage-accordion-demo", `<div class="accordion">
|
|
546
|
-
<div class="accordion-item">
|
|
547
|
-
<input
|
|
548
|
-
type="radio"
|
|
549
|
-
name="accordion"
|
|
550
|
-
id="acc1"
|
|
551
|
-
class="accordion-input"
|
|
552
|
-
checked
|
|
553
|
-
/>
|
|
554
|
-
<label for="acc1" class="accordion-label"> What is this? </label>
|
|
555
|
-
<div class="accordion-content">
|
|
556
|
-
<div class="accordion-body">
|
|
557
|
-
<div>
|
|
558
|
-
<p>
|
|
559
|
-
This is a pure CSS accordion component. It uses the "Radio
|
|
560
|
-
Button Hack" to manage state without a single line of
|
|
561
|
-
JavaScript.
|
|
562
|
-
</p>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
</div>
|
|
566
|
-
</div>
|
|
567
|
-
<div class="accordion-item">
|
|
568
|
-
<input
|
|
569
|
-
type="radio"
|
|
570
|
-
name="accordion"
|
|
571
|
-
id="acc2"
|
|
572
|
-
class="accordion-input"
|
|
573
|
-
/>
|
|
574
|
-
<label for="acc2" class="accordion-label"> How does it work? </label>
|
|
575
|
-
<div class="accordion-content">
|
|
576
|
-
<div class="accordion-body">
|
|
577
|
-
<div>
|
|
578
|
-
<p>It links label elements to hidden radio buttons.</p>
|
|
579
|
-
</div>
|
|
580
|
-
</div>
|
|
581
|
-
</div>
|
|
582
|
-
</div>
|
|
583
|
-
<div class="accordion-item">
|
|
584
|
-
<input
|
|
585
|
-
type="radio"
|
|
586
|
-
name="accordion"
|
|
587
|
-
id="acc3"
|
|
588
|
-
class="accordion-input"
|
|
589
|
-
/>
|
|
590
|
-
<label for="acc3" class="accordion-label"> Is it accessible? </label>
|
|
591
|
-
<div class="accordion-content">
|
|
592
|
-
<div class="accordion-body">
|
|
593
|
-
<div>
|
|
594
|
-
<p>
|
|
595
|
-
It's reasonably accessible as it uses semantic form elements.
|
|
596
|
-
Users can tab through the headers (radio inputs) and select
|
|
597
|
-
them with the keyboard. However, for full ARIA support, a
|
|
598
|
-
small amount of JS is usually recommended to manage
|
|
599
|
-
aria-expanded attributes.
|
|
600
|
-
</p>
|
|
601
|
-
</div>
|
|
602
|
-
</div>
|
|
603
|
-
</div>
|
|
604
|
-
</div>
|
|
605
|
-
</div>`, "html");
|
|
606
|
-
new CodeViewer("#usage-timeline-demo", `<div class="timeline">
|
|
607
|
-
<div class="timeline-item active">
|
|
608
|
-
<div class="timeline-content">
|
|
609
|
-
<span class="timeline-date">October 12, 2023</span>
|
|
610
|
-
<h3 class="timeline-title">Project Kickoff</h3>
|
|
611
|
-
<p class="timeline-body">
|
|
612
|
-
Initial meeting with shareholders to discuss the scope and
|
|
613
|
-
requirements of the project. Team roles were assigned and the
|
|
614
|
-
roadmap was drafted.
|
|
615
|
-
</p>
|
|
616
|
-
</div>
|
|
617
|
-
</div>
|
|
618
|
-
<div class="timeline-item">
|
|
619
|
-
<div class="timeline-content">
|
|
620
|
-
<span class="timeline-date">January 15, 2024</span>
|
|
621
|
-
<h3 class="timeline-title">Beta Launch</h3>
|
|
622
|
-
<p class="timeline-body">
|
|
623
|
-
Opened the platform to a closed beta group of 500 users. Collected
|
|
624
|
-
feedback regarding the onboarding flow and notification settings.
|
|
625
|
-
</p>
|
|
626
|
-
</div>
|
|
627
|
-
</div>
|
|
628
|
-
</div>`, "html");
|
|
629
|
-
new CodeViewer("#usage-progress-bar-demo", `<div class="progress-bar">
|
|
630
|
-
<div class="progress" style="height: 24px; width: 50%"></div>
|
|
631
|
-
</div>`, "html");
|
|
632
|
-
new CodeViewer("#usage-placeholder-demo", `<span class="placeholder w-6">`, "html");
|
|
633
|
-
new CodeViewer("#usage-context-menu-demo", `new ContextMenu('.my-element', [
|
|
634
|
-
{ group: 'File' },
|
|
635
|
-
{ label: 'Open', icon: 'folder_open', shortcut: '⌘O', action: (t) => {} },
|
|
636
|
-
{ label: 'Rename', icon: 'edit', shortcut: 'F2', action: (t) => {} },
|
|
637
|
-
'separator',
|
|
638
|
-
{
|
|
639
|
-
label: 'Share', icon: 'send',
|
|
640
|
-
submenu: [
|
|
641
|
-
{ label: 'Copy link', icon: 'attachment', action: (t) => {} },
|
|
642
|
-
{ label: 'Send by mail', icon: 'mail', action: (t) => {} },
|
|
643
|
-
]
|
|
644
|
-
},
|
|
645
|
-
'separator',
|
|
646
|
-
{ label: 'Delete', icon: 'delete', destructive: true, action: (t) => {} },
|
|
647
|
-
]);`, "javascript");
|
|
648
|
-
new CodeViewer("#usage-table-demo", `const columns: TableColumn[] = [
|
|
649
|
-
{ key: "id", label: "ID" },
|
|
650
|
-
{ key: "name", label: "Name" },
|
|
651
|
-
];
|
|
652
|
-
const tableData: TableRow[] = [
|
|
653
|
-
{ id: 1, name: "John Doe" },
|
|
654
|
-
{ id: 2, name: "Jane Smith" },
|
|
655
|
-
{ id: 3, name: "Mike Johnson" },
|
|
656
|
-
];
|
|
657
|
-
new Table("#demo-table-js", {
|
|
658
|
-
data: tableData,
|
|
659
|
-
columns: columns,
|
|
660
|
-
pageSize: 10,
|
|
661
|
-
});
|
|
662
|
-
|
|
663
|
-
// Initialize basic table from html data
|
|
664
|
-
new Table("#demo-table", { pageSize: 5 });`, "js");
|
|
665
|
-
new CodeViewer("#usage-datepicker-html-demo", `<label for="datepicker-range">Datepicker Range</label>
|
|
666
|
-
<input
|
|
667
|
-
type="text"
|
|
668
|
-
id="datepicker-range"
|
|
669
|
-
class="datepicker-input"
|
|
670
|
-
placeholder="Select a date range"
|
|
671
|
-
readonly
|
|
672
|
-
/>`, "html");
|
|
673
|
-
new CodeViewer("#usage-datepicker-js-demo", `new DatePicker("#datepicker-single", {
|
|
674
|
-
mode: "single",
|
|
675
|
-
onSelect: (date) => {
|
|
676
|
-
console.log("Single selected:", date);
|
|
677
|
-
},
|
|
678
|
-
});`, "js");
|
|
679
|
-
new CodeViewer("#usage-tree-demo-html", `<ul id="tree-root" class="tree"></ul>`, "html");
|
|
680
|
-
new CodeViewer("#usage-tree-demo-js", `const sampleData: TreeNode[] = [
|
|
681
|
-
new TreeNode("Documents", "folder", [
|
|
682
|
-
new TreeNode("Work", "folder", [
|
|
683
|
-
new TreeNode("presentation.pptx", "file"),
|
|
684
|
-
new TreeNode("report.docx", "file"),
|
|
685
|
-
new TreeNode("budget.xlsx", "file"),
|
|
686
|
-
]),
|
|
687
|
-
new TreeNode("Personal", "folder", [
|
|
688
|
-
new TreeNode("resume.pdf", "file"),
|
|
689
|
-
new TreeNode("vacation-photos", "folder", [
|
|
690
|
-
new TreeNode("beach.jpg", "file"),
|
|
691
|
-
new TreeNode("mountain.jpg", "file"),
|
|
692
|
-
]),
|
|
693
|
-
]),
|
|
694
|
-
]),
|
|
695
|
-
];
|
|
696
|
-
const tree = new TreeComponent("#tree-root", sampleData);`, "js");
|
|
697
|
-
new CodeViewer("#usage-file-uploader-demo", `<div class="uploader-content">
|
|
698
|
-
<div class="header">
|
|
699
|
-
<h2>Upload Files</h2>
|
|
700
|
-
<p>Select or drag files to upload</p>
|
|
701
|
-
</div>
|
|
702
|
-
<div id="drop-zone" class="drop-zone">
|
|
703
|
-
<input type="file" id="file-input" multiple hidden/>
|
|
704
|
-
<div class="drop-zone-content">
|
|
705
|
-
<div class="icon-container">
|
|
706
|
-
<svg
|
|
707
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
708
|
-
width="24"
|
|
709
|
-
height="24"
|
|
710
|
-
viewBox="0 0 24 24"
|
|
711
|
-
fill="none"
|
|
712
|
-
stroke="currentColor"
|
|
713
|
-
stroke-width="2"
|
|
714
|
-
stroke-linecap="round"
|
|
715
|
-
stroke-linejoin="round"
|
|
716
|
-
class="upload-icon"
|
|
717
|
-
>
|
|
718
|
-
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
|
719
|
-
<polyline points="17 8 12 3 7 8"></polyline>
|
|
720
|
-
<line x1="12" y1="3" x2="12" y2="15"></line>
|
|
721
|
-
</svg>
|
|
722
|
-
</div>
|
|
723
|
-
<p class="primary-text">Click to upload or drag and drop</p>
|
|
724
|
-
<p class="secondary-text">
|
|
725
|
-
SVG, PNG, JPG or GIF (max. 800x400px)
|
|
726
|
-
</p>
|
|
727
|
-
</div>
|
|
728
|
-
</div>
|
|
729
|
-
|
|
730
|
-
<div id="file-list" class="file-list"></div>
|
|
731
|
-
|
|
732
|
-
<div class="actions">
|
|
733
|
-
<button id="upload-btn" disabled>Upload Files</button>
|
|
734
|
-
</div>
|
|
735
|
-
</div>`, "html");
|
|
736
|
-
new CodeViewer("#usage-file-uploader-demo-js", `const uploaderElement =
|
|
737
|
-
document.querySelector<HTMLElement>(".uploader-content");
|
|
738
|
-
if (uploaderElement) {
|
|
739
|
-
new FileUploader(uploaderElement);
|
|
740
|
-
}`, "js");
|
|
741
|
-
new CodeViewer("#usage-virtual-dropdown-demo-html", `<div class="virtual-dropdown">
|
|
742
|
-
<h2>1. Searchable Single Select (10,000 items)</h2>
|
|
743
|
-
<p>
|
|
744
|
-
This list uses virtual scrolling to handle 10k items efficiently.
|
|
745
|
-
</p>
|
|
746
|
-
<div id="dropdown-single"></div>
|
|
747
|
-
</div>`, "html");
|
|
748
|
-
new CodeViewer("#usage-virtual-dropdown-demo-js", `const singleDropdown = new VirtualDropdown({
|
|
749
|
-
container: "#dropdown-single",
|
|
750
|
-
options: bigData,
|
|
751
|
-
searchable: true,
|
|
752
|
-
placeholder: "Search 10k items...",
|
|
753
|
-
renderLimit: 15,
|
|
754
|
-
onSelect: (val) => {
|
|
755
|
-
console.log("Single Select:", val);
|
|
756
|
-
},
|
|
757
|
-
});`, "js");
|
|
758
|
-
new CodeViewer("#usage-scrollbar-demo", `Scrollbar.initAll(".scroll-container");`, "js");
|
|
759
|
-
new CodeViewer("#usage-theme-demo", `Theme.init();`, "js");
|
|
760
|
-
new CodeViewer("#usage-scroll-demo", `window.Scroll.to('#grid')`, "js");
|
|
761
|
-
new CodeViewer("#usage-chat-demo-html", `<div class="chat-container">
|
|
762
|
-
<div class="message message-incoming">
|
|
763
|
-
Hi there! How are you doing today?
|
|
764
|
-
<span class="message-meta">10:42 AM</span>
|
|
765
|
-
</div>
|
|
766
|
-
<div class="message message-outgoing">
|
|
767
|
-
I'm doing great, thanks! Just working on some new CSS
|
|
768
|
-
components.<br/>And other stuff.
|
|
769
|
-
<span class="message-meta">10:43 AM</span>
|
|
770
|
-
</div>
|
|
771
|
-
<div class="message message-outgoing">
|
|
772
|
-
Trying to make a simple chat UI.
|
|
773
|
-
<span class="message-meta">10:43 AM</span>
|
|
774
|
-
</div>
|
|
775
|
-
<div class="message message-incoming">
|
|
776
|
-
That sounds cool!
|
|
777
|
-
<span class="message-meta">10:45 AM</span>
|
|
778
|
-
</div>
|
|
779
|
-
</div>`, "html");
|
|
780
|
-
new CodeViewer("#usage-carousel-demo-html", `<div class="carousel" id="carouselIdHere">
|
|
781
|
-
<div>Slide 1</div>
|
|
782
|
-
<div>Slide 2</div>
|
|
783
|
-
<div>Slide 3</div>
|
|
784
|
-
<div>Slide 4</div>
|
|
785
|
-
</div>`, "html");
|
|
786
|
-
new CodeViewer("#usage-carousel-demo-js", `const carousel = new Carousel("#carouselIdHere", {
|
|
787
|
-
loop: true,
|
|
788
|
-
});`, "js");
|
|
789
|
-
new CodeViewer("#usage-gallery-demo-html", `<div id="gallery" class="masonry-container"></div>
|
|
790
|
-
<div class="loader hidden">
|
|
791
|
-
<div class="spinner"></div>
|
|
792
|
-
</div>`, "html");
|
|
793
|
-
new CodeViewer("#usage-gallery-demo-js", `const gallery = new MasonryGallery("gallery", {
|
|
794
|
-
minColumnWidth: 300,
|
|
795
|
-
fetchFunction: () => new Promise((resolve) => {
|
|
796
|
-
setTimeout(() => {
|
|
797
|
-
const images: ImageData[] = [];
|
|
798
|
-
|
|
799
|
-
for (let i = 0; i < batchSize; i++) {
|
|
800
|
-
const width = 400;
|
|
801
|
-
const height = Math.floor(Math.random() * 301) + 300;
|
|
802
|
-
const id = Math.floor(Math.random() * 1000);
|
|
803
|
-
const imageIndex = indexNumber * batchSize + i;
|
|
804
|
-
|
|
805
|
-
images.push({
|
|
806
|
-
src: \`https://picsum.photos/$\{width}/$\{height}?random=$\{imageIndex}\`,
|
|
807
|
-
title: \`Image $\{imageIndex + 1}\`,
|
|
808
|
-
desc: \`A random caption for image $\{id}\`,
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
indexNumber++;
|
|
813
|
-
resolve(images);
|
|
814
|
-
}, 800);
|
|
815
|
-
}),
|
|
816
|
-
});`, "js");
|