@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.
Files changed (82) hide show
  1. package/dist/author/HeaderCommon.d.ts +12 -4
  2. package/dist/author/Main.js +1 -1
  3. package/dist/author/MatrixValues.d.ts +33 -11
  4. package/dist/author/MatrixValues.js +1 -1
  5. package/dist/author/columnLabelsGenerator.js +1 -1
  6. package/dist/author/index.d.ts +1 -0
  7. package/dist/author/index.js +19 -16
  8. package/dist/browser/{Radio-BjUFZwCW.js → Radio-C7WmM7gR.js} +3563 -3544
  9. package/dist/browser/Radio-C7WmM7gR.js.map +1 -0
  10. package/dist/browser/author/index.js +24001 -22243
  11. package/dist/browser/author/index.js.map +1 -1
  12. package/dist/browser/controller/index.js +1 -1
  13. package/dist/browser/controller/index.js.map +1 -1
  14. package/dist/browser/delivery/index.js +10 -10
  15. package/dist/browser/delivery/index.js.map +1 -1
  16. package/dist/browser/dist-Do2L8-B6.js +96 -0
  17. package/dist/browser/dist-Do2L8-B6.js.map +1 -0
  18. package/dist/browser/rolldown-runtime-CWhphoD1.js +32 -0
  19. package/dist/controller/index.js +1 -1
  20. package/dist/delivery/index.js +1 -1
  21. package/dist/index.iife.js +38 -39
  22. package/dist/runtime-support.d.ts +12 -0
  23. package/dist/runtime-support.js +12 -0
  24. package/package.json +19 -16
  25. package/dist/browser/Radio-BjUFZwCW.js.map +0 -1
  26. package/dist/browser/isEmpty-BWsEu1ml.js +0 -180
  27. package/dist/browser/isEmpty-BWsEu1ml.js.map +0 -1
  28. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  82. 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: any;
10
- export declare const ColumnsHeader: any;
11
- export declare const NumberInputFormGroupWrapper: any;
12
- export declare const IconWrapper: any;
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;
@@ -131,4 +131,4 @@ var { Panel: p, toggle: m, radio: h } = f, g = c(u)(({ theme: e }) => ({
131
131
  }
132
132
  };
133
133
  //#endregion
134
- export { b as default };
134
+ export { b as Main, b as default };
@@ -8,17 +8,39 @@
8
8
  */
9
9
  import React from 'react';
10
10
  import PropTypes from 'prop-types';
11
- export declare const ScoringContainer: any;
12
- export declare const MatrixColumns: any;
13
- export declare const ColumnLabelWrapper: any;
14
- export declare const RowLabelWrapper: any;
15
- export declare const ValueRowWrapper: any;
16
- export declare const ValueItemWrapper: any;
17
- export declare const ScoringRows: any;
18
- export declare const ScoringNumberInputWrapper: any;
19
- export declare const GridSeparatorHorizontal: any;
20
- export declare const GridSeparatorVertical: any;
21
- export declare const Content: any;
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 };
@@ -98,4 +98,4 @@ var e = [
98
98
  ]
99
99
  }, v = (e, t) => _[`${e}_${t}`];
100
100
  //#endregion
101
- export { v as default };
101
+ export { e as AGREEMENT_3, v as default };
@@ -27,5 +27,6 @@ export default class Matrix extends HTMLElement {
27
27
  insertSound(handler: any): void;
28
28
  onDeleteSound(src: any, done: any): void;
29
29
  _render(): void;
30
+ connectedCallback(): void;
30
31
  disconnectedCallback(): void;
31
32
  }
@@ -1,24 +1,24 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js";
2
- import t from "./Main.js";
3
- import n from "./defaults.js";
4
- import r from "react";
5
- import { createRoot as i } from "react-dom/client";
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 = (t, r) => ({
10
- configuration: e(t, n.configuration),
11
- model: r
12
- }), d = class e extends HTMLElement {
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
- ...n.model,
14
+ ...t.model,
15
15
  ...e
16
16
  });
17
17
  constructor() {
18
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = n.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
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(t) {
21
- this._model = e.createDefaultModel(t), this._render();
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 e = r.createElement(t, {
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 ||= i(this), this._root.render(e);
59
+ this._root ||= r(this), this._root.render(t);
60
+ }
61
+ connectedCallback() {
62
+ this._render();
60
63
  }
61
64
  disconnectedCallback() {
62
- this._root && this._root.unmount();
65
+ this._root &&= (this._root.unmount(), null);
63
66
  }
64
67
  };
65
68
  //#endregion