@pie-element/matrix 4.1.2-next.0 → 4.1.2-next.10
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/dist/author/HeaderCommon.d.ts +12 -4
- package/dist/author/Main.js +1 -1
- package/dist/author/MatrixValues.d.ts +33 -11
- package/dist/author/MatrixValues.js +1 -1
- package/dist/author/columnLabelsGenerator.js +1 -1
- package/dist/author/index.d.ts +1 -0
- package/dist/author/index.js +19 -16
- package/dist/browser/{Radio-BjUFZwCW.js → Radio-C7WmM7gR.js} +3563 -3544
- package/dist/browser/Radio-C7WmM7gR.js.map +1 -0
- package/dist/browser/author/index.js +24001 -22243
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +10 -10
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/dist-Do2L8-B6.js +96 -0
- package/dist/browser/dist-Do2L8-B6.js.map +1 -0
- package/dist/browser/rolldown-runtime-CWhphoD1.js +32 -0
- package/dist/controller/index.js +1 -1
- package/dist/delivery/index.js +1 -1
- package/dist/index.iife.js +38 -39
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +19 -16
- package/dist/browser/Radio-BjUFZwCW.js.map +0 -1
- package/dist/browser/isEmpty-BWsEu1ml.js +0 -180
- package/dist/browser/isEmpty-BWsEu1ml.js.map +0 -1
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
* Manual edits will be overwritten on next sync.
|
|
7
7
|
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
8
|
*/
|
|
9
|
-
export declare const ColumnsWrapper:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare const
|
|
9
|
+
export declare const ColumnsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
11
|
+
}> & string;
|
|
12
|
+
export declare const ColumnsHeader: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
13
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
14
|
+
}> & string;
|
|
15
|
+
export declare const NumberInputFormGroupWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
16
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
17
|
+
}> & string;
|
|
18
|
+
export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
19
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
20
|
+
}> & string;
|
package/dist/author/Main.js
CHANGED
|
@@ -8,17 +8,39 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
export declare const ScoringContainer:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const
|
|
21
|
-
|
|
11
|
+
export declare const ScoringContainer: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
12
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
13
|
+
}> & string;
|
|
14
|
+
export declare const MatrixColumns: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
15
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
16
|
+
}> & string;
|
|
17
|
+
export declare const ColumnLabelWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
18
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
19
|
+
}> & string;
|
|
20
|
+
export declare const RowLabelWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
21
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
22
|
+
}> & string;
|
|
23
|
+
export declare const ValueRowWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
24
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
25
|
+
}> & string;
|
|
26
|
+
export declare const ValueItemWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
27
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
28
|
+
}> & string;
|
|
29
|
+
export declare const ScoringRows: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
30
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
31
|
+
}> & string;
|
|
32
|
+
export declare const ScoringNumberInputWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
33
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
34
|
+
}> & string;
|
|
35
|
+
export declare const GridSeparatorHorizontal: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
36
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
37
|
+
}> & string;
|
|
38
|
+
export declare const GridSeparatorVertical: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
39
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
40
|
+
}> & string;
|
|
41
|
+
export declare const Content: import("styled-components/dist/types.js").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
42
|
+
style?: React.CSSProperties | import("styled-components/dist/types.js").CSSPropertiesWithVars | undefined;
|
|
43
|
+
}> & string;
|
|
22
44
|
declare const MatrixValues: {
|
|
23
45
|
(props: any): React.JSX.Element;
|
|
24
46
|
propTypes: {
|
|
@@ -153,4 +153,4 @@ b.propTypes = {
|
|
|
153
153
|
onChangeModel: i.func.isRequired
|
|
154
154
|
};
|
|
155
155
|
//#endregion
|
|
156
|
-
export { b as default };
|
|
156
|
+
export { d as ColumnLabelWrapper, y as Content, _ as GridSeparatorHorizontal, v as GridSeparatorVertical, u as MatrixColumns, f as RowLabelWrapper, l as ScoringContainer, g as ScoringNumberInputWrapper, h as ScoringRows, m as ValueItemWrapper, p as ValueRowWrapper, b as default };
|
package/dist/author/index.d.ts
CHANGED
package/dist/author/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "react";
|
|
5
|
-
import {
|
|
1
|
+
import { Main as e } from "./Main.js";
|
|
2
|
+
import t from "./defaults.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { createRoot as r } from "react-dom/client";
|
|
5
|
+
import { defaults as i } from "@pie-element/shared-lodash";
|
|
6
6
|
import a from "debug";
|
|
7
7
|
import { DeleteSoundEvent as o, InsertSoundEvent as s, ModelUpdatedEvent as c } from "@pie-element/shared-configure-events";
|
|
8
8
|
//#region src/author/index.ts
|
|
9
|
-
var l = a("matrix:configure"), u = (
|
|
10
|
-
configuration: e
|
|
11
|
-
model:
|
|
12
|
-
}), d = class
|
|
9
|
+
var l = a("matrix:configure"), u = (e, n) => ({
|
|
10
|
+
configuration: i(e, t.configuration),
|
|
11
|
+
model: n
|
|
12
|
+
}), d = class i extends HTMLElement {
|
|
13
13
|
static createDefaultModel = (e = {}) => ({
|
|
14
|
-
...
|
|
14
|
+
...t.model,
|
|
15
15
|
...e
|
|
16
16
|
});
|
|
17
17
|
constructor() {
|
|
18
|
-
super(), this._root = null, this._model =
|
|
18
|
+
super(), this._root = null, this._model = i.createDefaultModel(), this._configuration = t.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
19
19
|
}
|
|
20
|
-
set model(
|
|
21
|
-
this._model =
|
|
20
|
+
set model(e) {
|
|
21
|
+
this._model = i.createDefaultModel(e), this._render();
|
|
22
22
|
}
|
|
23
23
|
set configuration(e) {
|
|
24
24
|
let t = u(e, this._model);
|
|
@@ -45,7 +45,7 @@ var l = a("matrix:configure"), u = (t, r) => ({
|
|
|
45
45
|
}
|
|
46
46
|
_render() {
|
|
47
47
|
l("_render");
|
|
48
|
-
let
|
|
48
|
+
let t = n.createElement(e, {
|
|
49
49
|
model: this._model,
|
|
50
50
|
configuration: this._configuration,
|
|
51
51
|
onModelChanged: this.onModelChanged,
|
|
@@ -56,10 +56,13 @@ var l = a("matrix:configure"), u = (t, r) => ({
|
|
|
56
56
|
delete: this.onDeleteSound.bind(this)
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
this._root ||=
|
|
59
|
+
this._root ||= r(this), this._root.render(t);
|
|
60
|
+
}
|
|
61
|
+
connectedCallback() {
|
|
62
|
+
this._render();
|
|
60
63
|
}
|
|
61
64
|
disconnectedCallback() {
|
|
62
|
-
this._root
|
|
65
|
+
this._root &&= (this._root.unmount(), null);
|
|
63
66
|
}
|
|
64
67
|
};
|
|
65
68
|
//#endregion
|