@knowark/componarkjs 1.13.3 → 1.14.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/lib/base/component/component.js +17 -1
- package/lib/base/component/component.test.js +475 -389
- package/lib/base/utils/define.js +28 -6
- package/lib/base/utils/define.test.js +129 -42
- package/lib/base/utils/format.test.js +16 -16
- package/lib/base/utils/helpers.js +11 -4
- package/lib/base/utils/helpers.test.js +134 -115
- package/lib/base/utils/slots.test.js +38 -38
- package/lib/base/utils/uuid.test.js +13 -13
- package/lib/components/audio/components/audio.js +22 -3
- package/lib/components/audio/components/audio.test.js +120 -90
- package/lib/components/camera/components/camera.js +8 -3
- package/lib/components/camera/components/camera.test.js +96 -91
- package/lib/components/capture/components/capture.js +33 -5
- package/lib/components/capture/components/capture.test.js +165 -97
- package/lib/components/droparea/components/droparea-preview.js +66 -15
- package/lib/components/droparea/components/droparea-preview.test.js +262 -78
- package/lib/components/droparea/components/droparea.js +47 -8
- package/lib/components/droparea/components/droparea.test.js +309 -298
- package/lib/components/emit/components/emit.js +24 -4
- package/lib/components/emit/components/emit.test.js +192 -134
- package/lib/components/index.js +1 -1
- package/lib/components/list/components/{list.item.js → item.js} +1 -1
- package/lib/components/list/components/item.test.js +70 -69
- package/lib/components/list/components/list.js +35 -5
- package/lib/components/list/components/list.test.js +358 -227
- package/lib/components/list/index.js +1 -1
- package/lib/components/paginator/components/paginator.js +3 -2
- package/lib/components/paginator/components/paginator.test.js +146 -143
- package/lib/components/spinner/components/spinner.js +1 -1
- package/lib/components/spinner/components/spinner.test.js +36 -41
- package/lib/components/splitview/components/splitview.detail.js +1 -1
- package/lib/components/splitview/components/splitview.detail.test.js +78 -74
- package/lib/components/splitview/components/splitview.js +40 -10
- package/lib/components/splitview/components/splitview.master.js +29 -3
- package/lib/components/splitview/components/splitview.master.test.js +52 -52
- package/lib/components/splitview/components/splitview.test.js +136 -32
- package/lib/components/translate/components/translate.js +32 -10
- package/lib/components/translate/components/translate.test.js +492 -133
- package/package.json +7 -27
- package/scripts/node-test-setup.js +94 -0
- package/showcase/components/index.html +1 -1
- package/{jsconfig.json → tsconfig.json} +6 -4
- package/types/base/component/component.d.ts +48 -0
- package/types/base/component/component.d.ts.map +1 -0
- package/types/base/component/component.test.d.ts +2 -0
- package/types/base/component/component.test.d.ts.map +1 -0
- package/types/base/component/index.d.ts +8 -0
- package/types/base/component/index.d.ts.map +1 -0
- package/types/base/index.d.ts +2 -0
- package/types/base/index.d.ts.map +1 -0
- package/types/base/styles/index.d.ts +3 -0
- package/types/base/styles/index.d.ts.map +1 -0
- package/types/base/styles/styles.d.ts +3 -0
- package/types/base/styles/styles.d.ts.map +1 -0
- package/types/base/utils/define.d.ts +5 -0
- package/types/base/utils/define.d.ts.map +1 -0
- package/types/base/utils/define.test.d.ts +2 -0
- package/types/base/utils/define.test.d.ts.map +1 -0
- package/types/base/utils/format.d.ts +13 -0
- package/types/base/utils/format.d.ts.map +1 -0
- package/types/base/utils/format.test.d.ts +2 -0
- package/types/base/utils/format.test.d.ts.map +1 -0
- package/types/base/utils/helpers.d.ts +11 -0
- package/types/base/utils/helpers.d.ts.map +1 -0
- package/types/base/utils/helpers.test.d.ts +2 -0
- package/types/base/utils/helpers.test.d.ts.map +1 -0
- package/types/base/utils/index.d.ts +6 -0
- package/types/base/utils/index.d.ts.map +1 -0
- package/types/base/utils/slots.d.ts +15 -0
- package/types/base/utils/slots.d.ts.map +1 -0
- package/types/base/utils/slots.test.d.ts +2 -0
- package/types/base/utils/slots.test.d.ts.map +1 -0
- package/types/base/utils/uuid.d.ts +3 -0
- package/types/base/utils/uuid.d.ts.map +1 -0
- package/types/base/utils/uuid.test.d.ts +2 -0
- package/types/base/utils/uuid.test.d.ts.map +1 -0
- package/types/components/audio/components/audio.d.ts +18 -0
- package/types/components/audio/components/audio.d.ts.map +1 -0
- package/types/components/audio/components/audio.test.d.ts +2 -0
- package/types/components/audio/components/audio.test.d.ts.map +1 -0
- package/types/components/audio/index.d.ts +2 -0
- package/types/components/audio/index.d.ts.map +1 -0
- package/types/components/audio/styles/ark.css.d.ts +3 -0
- package/types/components/audio/styles/ark.css.d.ts.map +1 -0
- package/types/components/audio/styles/index.d.ts +3 -0
- package/types/components/audio/styles/index.d.ts.map +1 -0
- package/types/components/camera/components/camera.d.ts +18 -0
- package/types/components/camera/components/camera.d.ts.map +1 -0
- package/types/components/camera/components/camera.test.d.ts +2 -0
- package/types/components/camera/components/camera.test.d.ts.map +1 -0
- package/types/components/camera/index.d.ts +2 -0
- package/types/components/camera/index.d.ts.map +1 -0
- package/types/components/camera/styles/ark.css.d.ts +3 -0
- package/types/components/camera/styles/ark.css.d.ts.map +1 -0
- package/types/components/camera/styles/index.d.ts +3 -0
- package/types/components/camera/styles/index.d.ts.map +1 -0
- package/types/components/capture/components/capture.d.ts +10 -0
- package/types/components/capture/components/capture.d.ts.map +1 -0
- package/types/components/capture/components/capture.test.d.ts +2 -0
- package/types/components/capture/components/capture.test.d.ts.map +1 -0
- package/types/components/capture/index.d.ts +2 -0
- package/types/components/capture/index.d.ts.map +1 -0
- package/types/components/droparea/components/droparea-preview.d.ts +21 -0
- package/types/components/droparea/components/droparea-preview.d.ts.map +1 -0
- package/types/components/droparea/components/droparea-preview.test.d.ts +2 -0
- package/types/components/droparea/components/droparea-preview.test.d.ts.map +1 -0
- package/types/components/droparea/components/droparea.d.ts +32 -0
- package/types/components/droparea/components/droparea.d.ts.map +1 -0
- package/types/components/droparea/components/droparea.test.d.ts +2 -0
- package/types/components/droparea/components/droparea.test.d.ts.map +1 -0
- package/types/components/droparea/index.d.ts +2 -0
- package/types/components/droparea/index.d.ts.map +1 -0
- package/types/components/droparea/styles/ark.css.d.ts +3 -0
- package/types/components/droparea/styles/ark.css.d.ts.map +1 -0
- package/types/components/droparea/styles/index.d.ts +3 -0
- package/types/components/droparea/styles/index.d.ts.map +1 -0
- package/types/components/emit/components/emit.d.ts +10 -0
- package/types/components/emit/components/emit.d.ts.map +1 -0
- package/types/components/emit/components/emit.test.d.ts +2 -0
- package/types/components/emit/components/emit.test.d.ts.map +1 -0
- package/types/components/emit/index.d.ts +2 -0
- package/types/components/emit/index.d.ts.map +1 -0
- package/types/components/index.d.ts +10 -0
- package/types/components/index.d.ts.map +1 -0
- package/types/components/list/components/item.d.ts +8 -0
- package/types/components/list/components/item.d.ts.map +1 -0
- package/types/components/list/components/item.test.d.ts +2 -0
- package/types/components/list/components/item.test.d.ts.map +1 -0
- package/types/components/list/components/list.d.ts +13 -0
- package/types/components/list/components/list.d.ts.map +1 -0
- package/types/components/list/components/list.test.d.ts +2 -0
- package/types/components/list/components/list.test.d.ts.map +1 -0
- package/types/components/list/index.d.ts +3 -0
- package/types/components/list/index.d.ts.map +1 -0
- package/types/components/paginator/components/paginator.d.ts +32 -0
- package/types/components/paginator/components/paginator.d.ts.map +1 -0
- package/types/components/paginator/components/paginator.test.d.ts +2 -0
- package/types/components/paginator/components/paginator.test.d.ts.map +1 -0
- package/types/components/paginator/index.d.ts +2 -0
- package/types/components/paginator/index.d.ts.map +1 -0
- package/types/components/paginator/styles/ark.css.d.ts +3 -0
- package/types/components/paginator/styles/ark.css.d.ts.map +1 -0
- package/types/components/paginator/styles/index.d.ts +3 -0
- package/types/components/paginator/styles/index.d.ts.map +1 -0
- package/types/components/spinner/components/spinner.d.ts +11 -0
- package/types/components/spinner/components/spinner.d.ts.map +1 -0
- package/types/components/spinner/components/spinner.test.d.ts +2 -0
- package/types/components/spinner/components/spinner.test.d.ts.map +1 -0
- package/types/components/spinner/index.d.ts +2 -0
- package/types/components/spinner/index.d.ts.map +1 -0
- package/types/components/spinner/styles/ark.css.d.ts +3 -0
- package/types/components/spinner/styles/ark.css.d.ts.map +1 -0
- package/types/components/spinner/styles/index.d.ts +3 -0
- package/types/components/spinner/styles/index.d.ts.map +1 -0
- package/types/components/splitview/components/splitview.d.ts +12 -0
- package/types/components/splitview/components/splitview.d.ts.map +1 -0
- package/types/components/splitview/components/splitview.detail.d.ts +10 -0
- package/types/components/splitview/components/splitview.detail.d.ts.map +1 -0
- package/types/components/splitview/components/splitview.detail.test.d.ts +2 -0
- package/types/components/splitview/components/splitview.detail.test.d.ts.map +1 -0
- package/types/components/splitview/components/splitview.master.d.ts +8 -0
- package/types/components/splitview/components/splitview.master.d.ts.map +1 -0
- package/types/components/splitview/components/splitview.master.test.d.ts +2 -0
- package/types/components/splitview/components/splitview.master.test.d.ts.map +1 -0
- package/types/components/splitview/components/splitview.test.d.ts +2 -0
- package/types/components/splitview/components/splitview.test.d.ts.map +1 -0
- package/types/components/splitview/index.d.ts +4 -0
- package/types/components/splitview/index.d.ts.map +1 -0
- package/types/components/translate/components/translate.d.ts +18 -0
- package/types/components/translate/components/translate.d.ts.map +1 -0
- package/types/components/translate/components/translate.test.d.ts +2 -0
- package/types/components/translate/components/translate.test.d.ts.map +1 -0
- package/types/components/translate/index.d.ts +2 -0
- package/types/components/translate/index.d.ts.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +1 -0
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knowark/componarkjs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"author": "Knowark",
|
|
5
5
|
"description": "Knowark's Web Components Library",
|
|
6
6
|
"license": "ISC",
|
|
7
|
-
"main": "lib/index.js",
|
|
8
7
|
"type": "module",
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"types": "types/index.d.ts",
|
|
9
10
|
"scripts": {
|
|
10
|
-
"test": "NODE_OPTIONS='--experimental-
|
|
11
|
+
"test": "NODE_OPTIONS='--no-warnings' node --test --experimental-test-coverage --test-coverage-include='lib/**/*.js' --test-coverage-exclude='**/*.test.js' --import ./scripts/node-test-setup.js",
|
|
11
12
|
"dev": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' webpack serve --mode development --env development",
|
|
12
13
|
"prod": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' webpack --mode production --env production"
|
|
13
14
|
},
|
|
@@ -22,14 +23,10 @@
|
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@knowark/injectarkjs": "^0.10.6",
|
|
24
25
|
"@knowark/routarkjs": "^0.6.6",
|
|
25
|
-
"@types/jest": "^29.5.11",
|
|
26
26
|
"clean-webpack-plugin": "^4.0.0",
|
|
27
27
|
"copy-webpack-plugin": "^12.0.2",
|
|
28
28
|
"file-loader": "^6.2.0",
|
|
29
29
|
"html-webpack-plugin": "^5.6.0",
|
|
30
|
-
"jest": "^29.7.0",
|
|
31
|
-
"jest-canvas-mock": "^2.5.2",
|
|
32
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
33
30
|
"jsdom": "^24.0.0",
|
|
34
31
|
"npm-check-updates": "^16.14.12",
|
|
35
32
|
"webpack": "^5.90.0",
|
|
@@ -41,27 +38,10 @@
|
|
|
41
38
|
},
|
|
42
39
|
"standard": {
|
|
43
40
|
"env": [
|
|
44
|
-
"
|
|
41
|
+
"node"
|
|
45
42
|
]
|
|
46
43
|
},
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"clearMocks": true,
|
|
50
|
-
"testEnvironment": "jsdom",
|
|
51
|
-
"transform": {},
|
|
52
|
-
"setupFiles": [
|
|
53
|
-
"jest-canvas-mock"
|
|
54
|
-
],
|
|
55
|
-
"moduleDirectories": [
|
|
56
|
-
"node_modules",
|
|
57
|
-
"lib"
|
|
58
|
-
],
|
|
59
|
-
"collectCoverageFrom": [
|
|
60
|
-
"**/lib/**",
|
|
61
|
-
"!**/showcase/**"
|
|
62
|
-
],
|
|
63
|
-
"transformIgnorePatterns": [
|
|
64
|
-
"node_modules/(?!@knowark)"
|
|
65
|
-
]
|
|
44
|
+
"imports": {
|
|
45
|
+
"#base/*": "./lib/base/*"
|
|
66
46
|
}
|
|
67
47
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { JSDOM } from 'jsdom'
|
|
2
|
+
|
|
3
|
+
const dom = new JSDOM('<!doctype html><html><head></head><body></body></html>', {
|
|
4
|
+
url: 'http://localhost'
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
const { window } = dom
|
|
8
|
+
|
|
9
|
+
globalThis.window = window
|
|
10
|
+
globalThis.document = window.document
|
|
11
|
+
globalThis.self = window
|
|
12
|
+
globalThis.global = globalThis
|
|
13
|
+
globalThis.addEventListener = window.addEventListener.bind(window)
|
|
14
|
+
globalThis.removeEventListener = window.removeEventListener.bind(window)
|
|
15
|
+
globalThis.dispatchEvent = window.dispatchEvent.bind(window)
|
|
16
|
+
|
|
17
|
+
Object.defineProperty(globalThis, 'navigator', {
|
|
18
|
+
configurable: true,
|
|
19
|
+
value: window.navigator
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const forceGlobals = [
|
|
23
|
+
'Event',
|
|
24
|
+
'CustomEvent',
|
|
25
|
+
'InputEvent',
|
|
26
|
+
'MouseEvent',
|
|
27
|
+
'KeyboardEvent',
|
|
28
|
+
'EventTarget',
|
|
29
|
+
'HTMLElement',
|
|
30
|
+
'Element',
|
|
31
|
+
'Node',
|
|
32
|
+
'NodeList',
|
|
33
|
+
'DocumentFragment',
|
|
34
|
+
'DOMParser',
|
|
35
|
+
'MutationObserver',
|
|
36
|
+
'CustomElementRegistry',
|
|
37
|
+
'CSSStyleSheet',
|
|
38
|
+
'URL',
|
|
39
|
+
'File',
|
|
40
|
+
'Blob',
|
|
41
|
+
'MediaStream'
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
for (const key of forceGlobals) {
|
|
45
|
+
if (!window[key]) continue
|
|
46
|
+
globalThis[key] = window[key]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
for (const key of Object.getOwnPropertyNames(window)) {
|
|
50
|
+
if (key in globalThis) continue
|
|
51
|
+
globalThis[key] = window[key]
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (!globalThis.requestAnimationFrame) {
|
|
55
|
+
globalThis.requestAnimationFrame = (callback) => {
|
|
56
|
+
return setTimeout(() => callback(Date.now()), 0)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (!globalThis.cancelAnimationFrame) {
|
|
61
|
+
globalThis.cancelAnimationFrame = (id) => clearTimeout(id)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (globalThis.HTMLCanvasElement) {
|
|
65
|
+
globalThis.HTMLCanvasElement.prototype.getContext = () => ({
|
|
66
|
+
drawImage: () => {},
|
|
67
|
+
clearRect: () => {},
|
|
68
|
+
fillRect: () => {},
|
|
69
|
+
getImageData: () => ({ data: [] }),
|
|
70
|
+
putImageData: () => {},
|
|
71
|
+
createImageData: () => [],
|
|
72
|
+
setTransform: () => {},
|
|
73
|
+
resetTransform: () => {},
|
|
74
|
+
fillText: () => {},
|
|
75
|
+
measureText: () => ({ width: 0 }),
|
|
76
|
+
save: () => {},
|
|
77
|
+
restore: () => {},
|
|
78
|
+
beginPath: () => {},
|
|
79
|
+
moveTo: () => {},
|
|
80
|
+
lineTo: () => {},
|
|
81
|
+
closePath: () => {},
|
|
82
|
+
stroke: () => {},
|
|
83
|
+
translate: () => {},
|
|
84
|
+
scale: () => {},
|
|
85
|
+
rotate: () => {},
|
|
86
|
+
arc: () => {},
|
|
87
|
+
fill: () => {}
|
|
88
|
+
})
|
|
89
|
+
globalThis.HTMLCanvasElement.prototype.toDataURL = () => 'data:image/png;base64,mock'
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (!globalThis.URL.createObjectURL) {
|
|
93
|
+
globalThis.URL.createObjectURL = () => 'mock://data/url'
|
|
94
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"include": ["lib/**/*"],
|
|
2
3
|
"compilerOptions": {
|
|
3
4
|
"target": "esnext",
|
|
4
5
|
"module": "nodenext",
|
|
@@ -6,13 +7,14 @@
|
|
|
6
7
|
"allowJs": true,
|
|
7
8
|
"checkJs": true,
|
|
8
9
|
"baseUrl": "lib",
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"emitDeclarationOnly": true,
|
|
12
|
+
"declarationMap": true,
|
|
13
|
+
"outDir": "types",
|
|
9
14
|
"paths": {
|
|
10
|
-
"
|
|
15
|
+
"#base*": [
|
|
11
16
|
"base",
|
|
12
17
|
"base*"
|
|
13
|
-
],
|
|
14
|
-
"*": [
|
|
15
|
-
"*"
|
|
16
18
|
]
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export class Component extends HTMLElement {
|
|
2
|
+
/**
|
|
3
|
+
* @param {string} tag
|
|
4
|
+
* @param {CustomElementConstructor} element
|
|
5
|
+
* @param {string} styles **/
|
|
6
|
+
static define(tag: string, element: CustomElementConstructor, styles?: string): void;
|
|
7
|
+
binding: string;
|
|
8
|
+
local: {};
|
|
9
|
+
/**
|
|
10
|
+
* @param {object} styleMap
|
|
11
|
+
* @return {string} **/
|
|
12
|
+
styleNames(styleMap: object): string;
|
|
13
|
+
/**
|
|
14
|
+
* @param {object} context
|
|
15
|
+
* @return {Component} */
|
|
16
|
+
init(context?: object): Component;
|
|
17
|
+
/** @return {string[]} */
|
|
18
|
+
reflectedProperties(): string[];
|
|
19
|
+
get slots(): {
|
|
20
|
+
[x: string]: HTMLElement[];
|
|
21
|
+
};
|
|
22
|
+
/** @param {string} content */
|
|
23
|
+
set content(content: string);
|
|
24
|
+
/** @return {string} */
|
|
25
|
+
get content(): string;
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
/** @return {Component} */
|
|
28
|
+
render(): Component;
|
|
29
|
+
/** @param {object} context */
|
|
30
|
+
load(context?: object): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* @param {string} selectors
|
|
33
|
+
* @return {Component} */
|
|
34
|
+
select(selectors: string): Component;
|
|
35
|
+
/**
|
|
36
|
+
* @param {string} selectors
|
|
37
|
+
* @return {NodeListOf<Component>} */
|
|
38
|
+
selectAll(selectors: string): NodeListOf<Component>;
|
|
39
|
+
/**
|
|
40
|
+
* @param {string} type
|
|
41
|
+
* @param {any} detail */
|
|
42
|
+
emit(type: string, detail: any): void;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} resource
|
|
45
|
+
* @return {any} */
|
|
46
|
+
resolve(resource: string): any;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../lib/base/component/component.js"],"names":[],"mappings":"AAIA;IAQE;;;iCAG6B;IAC7B,mBAHW,MAAM,WACN,wBAAwB,WACxB,MAAM,QAGhB;IAXC,gBAAuB;IACvB,UAAe;IAYjB;;2BAEuB;IACvB,qBAFW,MAAM,GACL,MAAM,CAGjB;IAED;;6BAEyB;IACzB,eAFW,MAAM,GACL,SAAS,CAGpB;IAED,yBAAyB;IACzB,uBADa,MAAM,EAAE,CAGpB;IAED;;MAEC;IAED,8BAA8B;IAC9B,6BAEC;IAED,uBAAuB;IACvB,sBAEC;IAED,0BASC;IAED,0BAA0B;IAC1B,UADa,SAAS,CAKrB;IAED,8BAA8B;IAC9B,eADY,MAAM,iBACU;IAE5B;;6BAEyB;IACzB,kBAFW,MAAM,GACL,SAAS,CAGpB;IAED;;yCAEqC;IACrC,qBAFW,MAAM,GACL,UAAU,CAAC,SAAS,CAAC,CAKhC;IAED;;6BAEyB;IACzB,WAFW,MAAM,UACN,GAAG,QASb;IAED;;uBAEmB;IACnB,kBAFW,MAAM,GACL,GAAG,CASd;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.test.d.ts","sourceRoot":"","sources":["../../../lib/base/component/component.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Component } from "./component.js";
|
|
2
|
+
export const css: (template: {
|
|
3
|
+
raw: readonly string[] | ArrayLike<string>;
|
|
4
|
+
}, ...substitutions: any[]) => string;
|
|
5
|
+
export const html: (template: {
|
|
6
|
+
raw: readonly string[] | ArrayLike<string>;
|
|
7
|
+
}, ...substitutions: any[]) => string;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/base/component/index.js"],"names":[],"mappings":";AACA;;sCAA6B;AAC7B;;sCAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/base/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/base/styles/index.js"],"names":[],"mappings":";mBAAmB,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../lib/base/styles/styles.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/define.js"],"names":[],"mappings":"AAEA;;6BAE6B;AAC7B,4BAHY,MAAM,WACP,wBAAwB,WACxB,MAAM,mBAehB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.test.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/define.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert Strings from camelCase to kebab-case
|
|
3
|
+
* @param {string} input @returns {string} */
|
|
4
|
+
export function camelToKebab(input: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Convert Strings from kebab-case to camelCase
|
|
7
|
+
* @param {string} input @returns {string} */
|
|
8
|
+
export function kebabToCamel(input: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Convert Strings from snake to camelCase
|
|
11
|
+
* @param {string} input @returns {string} */
|
|
12
|
+
export function snakeToCamel(input: string): string;
|
|
13
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/format.js"],"names":[],"mappings":"AAAA;;6CAE6C;AAC7C,oCADW,MAAM,GAAkB,MAAM,CAGxC;AAED;;6CAE6C;AAC7C,oCADW,MAAM,GAAkB,MAAM,CAKxC;AAED;;6CAE6C;AAC7C,oCADW,MAAM,GAAkB,MAAM,CAKxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.test.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/format.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @param {HTMLElement} self */
|
|
2
|
+
export function listen(self: HTMLElement): void;
|
|
3
|
+
/** @param {HTMLElement} self @param {string[]} properties */
|
|
4
|
+
export function reflect(self: HTMLElement, properties: string[]): void;
|
|
5
|
+
/** @param {object} object @param {string} path @param {any} value */
|
|
6
|
+
export function set(object: object, path: string, value: any): void;
|
|
7
|
+
/** @param {object} object @param {string} path @param {any} fallback */
|
|
8
|
+
export function get(object: object, path: string, fallback: any): any;
|
|
9
|
+
/** @param {object} object @return {string} */
|
|
10
|
+
export function keys(object: object): string;
|
|
11
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/helpers.js"],"names":[],"mappings":"AAEA,gCAAgC;AAChC,6BADY,WAAW,QAyDtB;AAeD,6DAA6D;AAC7D,8BADY,WAAW,cAAe,MAAM,EAAE,QAiB7C;AAUD,qEAAqE;AACrE,4BADY,MAAM,QAAiB,MAAM,SAAe,GAAG,QAS1D;AAED,wEAAwE;AACxE,4BADY,MAAM,QAAiB,MAAM,YAAe,GAAG,OAM1D;AAED,8CAA8C;AAC9C,6BADY,MAAM,GAAkB,MAAM,CAIzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.test.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/helpers.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {HTMLElement} container
|
|
3
|
+
* @return {Object<string, Array<HTMLElement>>}
|
|
4
|
+
* */
|
|
5
|
+
export function getSlots(container: HTMLElement): {
|
|
6
|
+
[x: string]: Array<HTMLElement>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @param {HTMLElement} container
|
|
10
|
+
* @return {Object<string, Array<HTMLElement>>}
|
|
11
|
+
* */
|
|
12
|
+
export function slot(container: HTMLElement): {
|
|
13
|
+
[x: string]: Array<HTMLElement>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=slots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/slots.js"],"names":[],"mappings":"AAAA;;;KAGK;AACL,oCAHW,WAAW,GACV;QAAO,MAAM,GAAE,KAAK,CAAC,WAAW,CAAC;CAAC,CAa7C;AAfD;;;KAGK;AACL,gCAHW,WAAW,GACV;QAAO,MAAM,GAAE,KAAK,CAAC,WAAW,CAAC;CAAC,CAa7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slots.test.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/slots.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/uuid.js"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,wBADc,MAAM,CAQnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uuid.test.d.ts","sourceRoot":"","sources":["../../../lib/base/utils/uuid.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class Audio extends Component {
|
|
2
|
+
init(context?: {}): Component;
|
|
3
|
+
status: string;
|
|
4
|
+
dataURL: any;
|
|
5
|
+
timerId: NodeJS.Timer;
|
|
6
|
+
recorder: any;
|
|
7
|
+
global: any;
|
|
8
|
+
/** @param {Event} event */
|
|
9
|
+
start(event: Event): Promise<void>;
|
|
10
|
+
/** @param {Event} event */
|
|
11
|
+
stop(event: Event): void;
|
|
12
|
+
reset(): void;
|
|
13
|
+
_time(): NodeJS.Timer;
|
|
14
|
+
/** @param {any} event */
|
|
15
|
+
_onData(event: any): void;
|
|
16
|
+
}
|
|
17
|
+
import { Component } from '#base/index.js';
|
|
18
|
+
//# sourceMappingURL=audio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../../../lib/components/audio/components/audio.js"],"names":[],"mappings":"AAIA;IACE,8BAQC;IAPC,eAAoB;IACpB,aAAmB;IACnB,sBAAmB;IACnB,cAAoB;IACpB,YAAsC;IAoCxC,2BAA2B;IAC3B,aADY,KAAK,iBAahB;IAED,2BAA2B;IAC3B,YADY,KAAK,QAQhB;IAED,cAMC;IAED,sBAYC;IAED,yBAAyB;IACzB,eADY,GAAG,QAQd;CACF;0BAtGyB,gBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/audio/components/audio.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/audio/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ark.css.d.ts","sourceRoot":"","sources":["../../../../lib/components/audio/styles/ark.css.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/audio/styles/index.js"],"names":[],"mappings":";mBAAmB,cAAc"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class Camera extends Component {
|
|
2
|
+
init(context?: {}): Component;
|
|
3
|
+
width: any;
|
|
4
|
+
height: any;
|
|
5
|
+
facingMode: any;
|
|
6
|
+
global: any;
|
|
7
|
+
/** @returns {string} */
|
|
8
|
+
dataURL(width?: any, height?: any): string;
|
|
9
|
+
start(): Promise<void>;
|
|
10
|
+
stop(): void;
|
|
11
|
+
setCameraOrientation(facingMode: any): Promise<void>;
|
|
12
|
+
/** @returns {HTMLVideoElement} */
|
|
13
|
+
get video(): HTMLVideoElement;
|
|
14
|
+
/** @returns {HTMLCanvasElement} */
|
|
15
|
+
get canvas(): HTMLCanvasElement;
|
|
16
|
+
}
|
|
17
|
+
import { Component } from '#base/index.js';
|
|
18
|
+
//# sourceMappingURL=camera.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera.d.ts","sourceRoot":"","sources":["../../../../lib/components/camera/components/camera.js"],"names":[],"mappings":"AAIA;IACE,8BAOC;IANC,WAA+C;IAC/C,YAAkD;IAClD,gBAAiE;IACjE,YAAsC;IAyBxC,wBAAwB;IACxB,oCADc,MAAM,CAanB;IAED,uBAWC;IAED,aAIC;IAED,qDAIC;IAED,kCAAkC;IAClC,8BAEC;IAED,mCAAmC;IACnC,gCAEC;CACF;0BAnFyB,gBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/camera/components/camera.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/camera/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ark.css.d.ts","sourceRoot":"","sources":["../../../../lib/components/camera/styles/ark.css.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/camera/styles/index.js"],"names":[],"mappings":";mBAAmB,cAAc"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class Capture extends Component {
|
|
2
|
+
receive: string;
|
|
3
|
+
source: any;
|
|
4
|
+
template: any;
|
|
5
|
+
handle(event: any): void;
|
|
6
|
+
_format(template: any): (data: any) => any;
|
|
7
|
+
_pop(selector: any): any;
|
|
8
|
+
}
|
|
9
|
+
import { Component } from "#base/index.js";
|
|
10
|
+
//# sourceMappingURL=capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../../../lib/components/capture/components/capture.js"],"names":[],"mappings":"AAGA;IAGI,gBAAqC;IAWrC,YAC8C;IAC9C,cACsC;IAkBxC,yBAGC;IAED,2CAEC;IAED,yBAIC;CACF;0BApDyB,gBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/capture/components/capture.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/capture/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class DropareaPreview extends Component {
|
|
2
|
+
init(_context?: {}): Component;
|
|
3
|
+
previewFile(file: any): void;
|
|
4
|
+
toggleVisibility(): void;
|
|
5
|
+
enableDragSort(listClass: any): void;
|
|
6
|
+
enableDragList(list: any): void;
|
|
7
|
+
enableDragItem(item: any): void;
|
|
8
|
+
handleDrag(item: any, event: any): void;
|
|
9
|
+
handleDrop(item: any): void;
|
|
10
|
+
dispatchAlterEvent(): void;
|
|
11
|
+
createNewFileList(): void;
|
|
12
|
+
fileExists(file: any): boolean;
|
|
13
|
+
removeFile(file: any, event: any): void;
|
|
14
|
+
fileIndex(file: any): number;
|
|
15
|
+
get droparea(): Droparea;
|
|
16
|
+
get mediaList(): any[];
|
|
17
|
+
get files(): any[];
|
|
18
|
+
}
|
|
19
|
+
import { Component } from '#base/index.js';
|
|
20
|
+
import type { Droparea } from './droparea.js';
|
|
21
|
+
//# sourceMappingURL=droparea-preview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"droparea-preview.d.ts","sourceRoot":"","sources":["../../../../lib/components/droparea/components/droparea-preview.js"],"names":[],"mappings":"AAOA;IACE,+BAEC;IASD,6BA0BC;IAED,yBAKC;IAID,qCAKC;IAED,gCAIC;IAED,gCAIC;IAGD,wCAkBC;IAED,4BAKC;IAGD,2BAEC;IAED,0BAQC;IAED,+BAEC;IAED,wCAUC;IAED,6BAEC;IAED,gBACoB,QAAQ,CAC3B;IAED,uBAWC;IAED,mBAEC;CACF;0BA9JyB,gBAAgB;8BAGd,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"droparea-preview.test.d.ts","sourceRoot":"","sources":["../../../../lib/components/droparea/components/droparea-preview.test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export class Droparea extends Component {
|
|
2
|
+
init(context?: {}): Component;
|
|
3
|
+
fileList: any[];
|
|
4
|
+
contextFiles: any;
|
|
5
|
+
accept: any;
|
|
6
|
+
single: boolean;
|
|
7
|
+
maxSize: any;
|
|
8
|
+
dragDropEvents: string[];
|
|
9
|
+
dragEvents: string[];
|
|
10
|
+
dropEvents: string[];
|
|
11
|
+
_input: Component;
|
|
12
|
+
openButton: Component;
|
|
13
|
+
load(): Promise<void>;
|
|
14
|
+
openInput(event: any): void;
|
|
15
|
+
preventDefaults(event: any): void;
|
|
16
|
+
highlight(event: any): void;
|
|
17
|
+
unhighlight(event: any): void;
|
|
18
|
+
handleDrop(event: any): void;
|
|
19
|
+
onChange(event: any): void;
|
|
20
|
+
handleFiles(files: any): void;
|
|
21
|
+
validate(fileList: any): boolean;
|
|
22
|
+
maxSizeValidate(file: any): boolean;
|
|
23
|
+
_grabSlots(): void;
|
|
24
|
+
fileInput: any;
|
|
25
|
+
_buildFileInput(element: any): any;
|
|
26
|
+
get dropZone(): Component;
|
|
27
|
+
get preview(): DropareaPreview;
|
|
28
|
+
get mediaList(): any[];
|
|
29
|
+
}
|
|
30
|
+
import { Component } from '#base/index.js';
|
|
31
|
+
import type { DropareaPreview } from './droparea-preview.js';
|
|
32
|
+
//# sourceMappingURL=droparea.d.ts.map
|