@ev-core/aurelia-v1-matrix 1.0.0 → 2.0.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.
@@ -1,3 +1,3 @@
1
- .hello-world {
2
- background-color: lightgreen;
3
- }
1
+ .hello-world {
2
+ background-color: lightgreen;
3
+ }
@@ -1,5 +1,4 @@
1
- declare const regularInputs: readonly ["text", "number", "email", "tel", "checkbox", "password", "color"];
2
- type InputType = typeof regularInputs[number];
1
+ import { MatrixField, type IMAtrixModel } from '@ev-core/au-core-matrix';
3
2
  export declare class AuMatrixComponent {
4
3
  inputClass: string;
5
4
  editable: boolean;
@@ -10,42 +9,7 @@ export declare class AuMatrixComponent {
10
9
  private unsavedActions;
11
10
  toggleEdit(row: MatrixField): void;
12
11
  buildMatrix(): void;
13
- get canBuildModel(): number;
12
+ private refresh;
14
13
  changesPrompt(): boolean;
15
14
  }
16
- interface IMAtrixField {
17
- colId: string;
18
- rowId: string;
19
- type: InputType;
20
- value: any;
21
- readonly: boolean;
22
- }
23
- declare class MatrixField implements IMAtrixField {
24
- readonly type: InputType;
25
- readonly colId: string;
26
- readonly rowId: string;
27
- private initValue;
28
- value: any;
29
- readonly: boolean;
30
- constructor(args: IMAtrixField);
31
- hasChanged(): boolean;
32
- revert(): void;
33
- }
34
- export interface IRow {
35
- id: string;
36
- name: string;
37
- data: Object;
38
- }
39
- export interface IColumn {
40
- id: string;
41
- type: InputType;
42
- name: string;
43
- key: string;
44
- }
45
- export interface IMAtrixModel {
46
- columnTitle: string;
47
- columns: IColumn[];
48
- rowTitle: string;
49
- rows: IRow[];
50
- }
51
- export {};
15
+ export type { IColumn, IMAtrixModel, IRow } from '@ev-core/au-core-matrix';
@@ -1,31 +1,31 @@
1
- <template>
2
- <require from="./au-matrix.css"></require>
3
-
4
- <table>
5
- <thead>
6
- <tr>
7
- <th></th>
8
- <th repeat.for="ct of colTitles">
9
- ${ct}
10
- </tr>
11
- </tr>
12
-
13
- </thead>
14
- <tbody>
15
- <tr repeat.for="row of matrix">
16
- <th></th>
17
- <td repeat.for="field of row"
18
- click.trigger="toggleEdit(field)">
19
- <template if.bind="field.readonly">
20
- ${field.value}
21
- </template>
22
- <template else>
23
- <input value.bind="value" />
24
- </template>
25
-
26
- </td>
27
- </tr>
28
- </tbody>
29
- </table>
30
-
1
+ <template>
2
+ <require from="./au-matrix.css"></require>
3
+
4
+ <table>
5
+ <thead>
6
+ <tr>
7
+ <th></th>
8
+ <th repeat.for="ct of colTitles">
9
+ ${ct}
10
+ </tr>
11
+ </tr>
12
+
13
+ </thead>
14
+ <tbody>
15
+ <tr repeat.for="row of matrix">
16
+ <th></th>
17
+ <td repeat.for="field of row"
18
+ click.trigger="toggleEdit(field)">
19
+ <template if.bind="field.readonly">
20
+ ${field.value}
21
+ </template>
22
+ <template else>
23
+ <input value.bind="value" />
24
+ </template>
25
+
26
+ </td>
27
+ </tr>
28
+ </tbody>
29
+ </table>
30
+
31
31
  </template>
@@ -3,12 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AuMatrixComponent = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const aurelia_framework_1 = require("aurelia-framework");
6
- const regularInputs = [
7
- 'text', 'number', 'email', 'tel', 'checkbox', 'password',
8
- 'color'
9
- ];
10
- (0, aurelia_framework_1.customElement)('au-matrix');
11
- class AuMatrixComponent {
6
+ const au_core_matrix_1 = require("@ev-core/au-core-matrix");
7
+ let AuMatrixComponent = class AuMatrixComponent {
12
8
  constructor() {
13
9
  this.inputClass = "";
14
10
  this.editable = true;
@@ -16,7 +12,7 @@ class AuMatrixComponent {
16
12
  this.unsavedActions = false;
17
13
  }
18
14
  modelChanged(model) {
19
- this.buildMatrix();
15
+ this.refresh();
20
16
  }
21
17
  toggleEdit(row) {
22
18
  if (!this.editable) {
@@ -25,32 +21,20 @@ class AuMatrixComponent {
25
21
  row.readonly = !row.readonly;
26
22
  }
27
23
  buildMatrix() {
28
- if (this.canBuildModel) {
24
+ this.refresh();
25
+ }
26
+ refresh() {
27
+ const built = (0, au_core_matrix_1.buildMatrix)(this.model);
28
+ if (!built) {
29
29
  return;
30
30
  }
31
- this.colTitles = this.model.columns.map(e => e.name);
32
- const fields = this.model.rows.map(row => {
33
- return this.model.columns.map(col => {
34
- let key = col.key;
35
- let field = new MatrixField({
36
- colId: col.id,
37
- rowId: row.id,
38
- type: col.type,
39
- value: row.data[key],
40
- readonly: true
41
- });
42
- return field;
43
- });
44
- });
45
- this.matrix = fields;
46
- }
47
- get canBuildModel() {
48
- return this.model?.columns?.length && this.model?.rows?.length;
31
+ this.colTitles = built.colTitles;
32
+ this.matrix = built.matrix;
49
33
  }
50
34
  changesPrompt() {
51
35
  return !this.unsavedActions;
52
36
  }
53
- }
37
+ };
54
38
  exports.AuMatrixComponent = AuMatrixComponent;
55
39
  tslib_1.__decorate([
56
40
  aurelia_framework_1.bindable,
@@ -64,21 +48,8 @@ tslib_1.__decorate([
64
48
  aurelia_framework_1.bindable,
65
49
  tslib_1.__metadata("design:type", Object)
66
50
  ], AuMatrixComponent.prototype, "model", void 0);
67
- class MatrixField {
68
- constructor(args) {
69
- this.type = args.type;
70
- this.colId = args.colId;
71
- this.rowId = args.rowId;
72
- this.initValue = args.value;
73
- this.value = args.value;
74
- this.readonly = args.readonly;
75
- }
76
- hasChanged() {
77
- return this.value == this.initValue;
78
- }
79
- revert() {
80
- this.value = this.initValue;
81
- }
82
- }
51
+ exports.AuMatrixComponent = AuMatrixComponent = tslib_1.__decorate([
52
+ (0, aurelia_framework_1.customElement)('au-matrix')
53
+ ], AuMatrixComponent);
83
54
 
84
55
  //# sourceMappingURL=au-matrix.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/elements/au-matrix.ts"],"names":[],"mappings":";;;;AAAA,yDAA4D;AAE5D,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU;IACxD,OA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Y,CAAC,KAAmB;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAMD,UAAU,CAAC,GAAgB;QACzB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QAC/B,GAAG,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC/B,CAAC;IAED,WAAW;QACT,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAEO,OAAO;QACb,MAAM,KAAK,GAAG,IAAA,4BAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO;QACT,CAAC;QACD,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC7B,CAAC;IAGD,aAAa;QACX,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC;IAC9B,CAAC;CACF,CAAA;AAnCY,8CAAiB;AAClB;IAAT,4BAAQ;;qDAAyB;AACxB;IAAT,4BAAQ;;mDAA0B;AAE3B;IADP,4BAAQ;;gDACmB;4BAJjB,iBAAiB;IAD7B,IAAA,iCAAa,EAAC,WAAW,CAAC;GACd,iBAAiB,CAmC7B","file":"au-matrix.js","sourceRoot":"../../../src/"}
@@ -1,2 +1,4 @@
1
1
  import { FrameworkConfiguration } from 'aurelia-framework';
2
2
  export declare function configure(config: FrameworkConfiguration): void;
3
+ export { AuMatrixComponent } from './elements/au-matrix';
4
+ export type { IColumn, IMAtrixModel, IRow } from './elements/au-matrix';
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuMatrixComponent = void 0;
3
4
  exports.configure = configure;
4
5
  const aurelia_pal_1 = require("aurelia-pal");
5
6
  function configure(config) {
@@ -7,5 +8,7 @@ function configure(config) {
7
8
  aurelia_pal_1.PLATFORM.moduleName('./elements/au-matrix')
8
9
  ]);
9
10
  }
11
+ var au_matrix_1 = require("./elements/au-matrix");
12
+ Object.defineProperty(exports, "AuMatrixComponent", { enumerable: true, get: function () { return au_matrix_1.AuMatrixComponent; } });
10
13
 
11
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;AAGA,8BAIC;AAND,6CAAuC;AAEvC,SAAgB,SAAS,CAAC,MAA8B;IACtD,MAAM,CAAC,eAAe,CAAC;QACrB,sBAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC","file":"index.js","sourceRoot":"../../src/"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAGA,8BAIC;AAND,6CAAuC;AAEvC,SAAgB,SAAS,CAAC,MAA8B;IACtD,MAAM,CAAC,eAAe,CAAC;QACrB,sBAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC;AAED,kDAAyD;AAAhD,8GAAA,iBAAiB,OAAA","file":"index.js","sourceRoot":"../../src/"}
@@ -1,3 +1,3 @@
1
- .hello-world {
2
- background-color: lightgreen;
3
- }
1
+ .hello-world {
2
+ background-color: lightgreen;
3
+ }
@@ -1,5 +1,4 @@
1
- declare const regularInputs: readonly ["text", "number", "email", "tel", "checkbox", "password", "color"];
2
- type InputType = typeof regularInputs[number];
1
+ import { MatrixField, type IMAtrixModel } from '@ev-core/au-core-matrix';
3
2
  export declare class AuMatrixComponent {
4
3
  inputClass: string;
5
4
  editable: boolean;
@@ -10,42 +9,7 @@ export declare class AuMatrixComponent {
10
9
  private unsavedActions;
11
10
  toggleEdit(row: MatrixField): void;
12
11
  buildMatrix(): void;
13
- get canBuildModel(): number;
12
+ private refresh;
14
13
  changesPrompt(): boolean;
15
14
  }
16
- interface IMAtrixField {
17
- colId: string;
18
- rowId: string;
19
- type: InputType;
20
- value: any;
21
- readonly: boolean;
22
- }
23
- declare class MatrixField implements IMAtrixField {
24
- readonly type: InputType;
25
- readonly colId: string;
26
- readonly rowId: string;
27
- private initValue;
28
- value: any;
29
- readonly: boolean;
30
- constructor(args: IMAtrixField);
31
- hasChanged(): boolean;
32
- revert(): void;
33
- }
34
- export interface IRow {
35
- id: string;
36
- name: string;
37
- data: Object;
38
- }
39
- export interface IColumn {
40
- id: string;
41
- type: InputType;
42
- name: string;
43
- key: string;
44
- }
45
- export interface IMAtrixModel {
46
- columnTitle: string;
47
- columns: IColumn[];
48
- rowTitle: string;
49
- rows: IRow[];
50
- }
51
- export {};
15
+ export type { IColumn, IMAtrixModel, IRow } from '@ev-core/au-core-matrix';
@@ -1,31 +1,31 @@
1
- <template>
2
- <require from="./au-matrix.css"></require>
3
-
4
- <table>
5
- <thead>
6
- <tr>
7
- <th></th>
8
- <th repeat.for="ct of colTitles">
9
- ${ct}
10
- </tr>
11
- </tr>
12
-
13
- </thead>
14
- <tbody>
15
- <tr repeat.for="row of matrix">
16
- <th></th>
17
- <td repeat.for="field of row"
18
- click.trigger="toggleEdit(field)">
19
- <template if.bind="field.readonly">
20
- ${field.value}
21
- </template>
22
- <template else>
23
- <input value.bind="value" />
24
- </template>
25
-
26
- </td>
27
- </tr>
28
- </tbody>
29
- </table>
30
-
1
+ <template>
2
+ <require from="./au-matrix.css"></require>
3
+
4
+ <table>
5
+ <thead>
6
+ <tr>
7
+ <th></th>
8
+ <th repeat.for="ct of colTitles">
9
+ ${ct}
10
+ </tr>
11
+ </tr>
12
+
13
+ </thead>
14
+ <tbody>
15
+ <tr repeat.for="row of matrix">
16
+ <th></th>
17
+ <td repeat.for="field of row"
18
+ click.trigger="toggleEdit(field)">
19
+ <template if.bind="field.readonly">
20
+ ${field.value}
21
+ </template>
22
+ <template else>
23
+ <input value.bind="value" />
24
+ </template>
25
+
26
+ </td>
27
+ </tr>
28
+ </tbody>
29
+ </table>
30
+
31
31
  </template>
@@ -1,11 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { bindable, customElement } from 'aurelia-framework';
3
- const regularInputs = [
4
- 'text', 'number', 'email', 'tel', 'checkbox', 'password',
5
- 'color'
6
- ];
7
- customElement('au-matrix');
8
- export class AuMatrixComponent {
3
+ import { buildMatrix } from '@ev-core/au-core-matrix';
4
+ let AuMatrixComponent = class AuMatrixComponent {
9
5
  constructor() {
10
6
  this.inputClass = "";
11
7
  this.editable = true;
@@ -13,7 +9,7 @@ export class AuMatrixComponent {
13
9
  this.unsavedActions = false;
14
10
  }
15
11
  modelChanged(model) {
16
- this.buildMatrix();
12
+ this.refresh();
17
13
  }
18
14
  toggleEdit(row) {
19
15
  if (!this.editable) {
@@ -22,32 +18,20 @@ export class AuMatrixComponent {
22
18
  row.readonly = !row.readonly;
23
19
  }
24
20
  buildMatrix() {
25
- if (this.canBuildModel) {
21
+ this.refresh();
22
+ }
23
+ refresh() {
24
+ const built = buildMatrix(this.model);
25
+ if (!built) {
26
26
  return;
27
27
  }
28
- this.colTitles = this.model.columns.map(e => e.name);
29
- const fields = this.model.rows.map(row => {
30
- return this.model.columns.map(col => {
31
- let key = col.key;
32
- let field = new MatrixField({
33
- colId: col.id,
34
- rowId: row.id,
35
- type: col.type,
36
- value: row.data[key],
37
- readonly: true
38
- });
39
- return field;
40
- });
41
- });
42
- this.matrix = fields;
43
- }
44
- get canBuildModel() {
45
- return this.model?.columns?.length && this.model?.rows?.length;
28
+ this.colTitles = built.colTitles;
29
+ this.matrix = built.matrix;
46
30
  }
47
31
  changesPrompt() {
48
32
  return !this.unsavedActions;
49
33
  }
50
- }
34
+ };
51
35
  __decorate([
52
36
  bindable,
53
37
  __metadata("design:type", String)
@@ -60,21 +44,9 @@ __decorate([
60
44
  bindable,
61
45
  __metadata("design:type", Object)
62
46
  ], AuMatrixComponent.prototype, "model", void 0);
63
- class MatrixField {
64
- constructor(args) {
65
- this.type = args.type;
66
- this.colId = args.colId;
67
- this.rowId = args.rowId;
68
- this.initValue = args.value;
69
- this.value = args.value;
70
- this.readonly = args.readonly;
71
- }
72
- hasChanged() {
73
- return this.value == this.initValue;
74
- }
75
- revert() {
76
- this.value = this.initValue;
77
- }
78
- }
47
+ AuMatrixComponent = __decorate([
48
+ customElement('au-matrix')
49
+ ], AuMatrixComponent);
50
+ export { AuMatrixComponent };
79
51
 
80
52
  //# sourceMappingURL=au-matrix.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/elements/au-matrix.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU;IACxD,OAAO;CACC,CAAC;AAGX,aAAa,CAAC,WAAW,CAAC,CAAA;AAC1B,MAAM,OAAO,iBAAiB;IAA9B;QACY,eAAU,GAAW,EAAE,CAAC;QACxB,aAAQ,GAAY,IAAI,CAAC;QAQ3B,WAAM,GAAoB,EAAE,CAAC;QAC7B,mBAAc,GAAY,KAAK,CAAC;IA4C1C,CAAC;IAlDC,YAAY,CAAC,KAAmB;QAC9B,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IAMD,UAAU,CAAC,GAAgB;QACzB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QAC/B,GAAG,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC/B,CAAC;IAED,WAAW;QACT,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAGD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAErD,MAAM,MAAM,GAAoB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GA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ADP,QAAQ;;gDACmB;AAJjB,iBAAiB;IAD7B,aAAa,CAAC,WAAW,CAAC;GACd,iBAAiB,CAmC7B","file":"au-matrix.js","sourceRoot":"../../../src/"}
@@ -1,2 +1,4 @@
1
1
  import { FrameworkConfiguration } from 'aurelia-framework';
2
2
  export declare function configure(config: FrameworkConfiguration): void;
3
+ export { AuMatrixComponent } from './elements/au-matrix';
4
+ export type { IColumn, IMAtrixModel, IRow } from './elements/au-matrix';
@@ -4,5 +4,6 @@ export function configure(config) {
4
4
  PLATFORM.moduleName('./elements/au-matrix')
5
5
  ]);
6
6
  }
7
+ export { AuMatrixComponent } from './elements/au-matrix';
7
8
 
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,UAAU,SAAS,CAAC,MAA8B;IACtD,MAAM,CAAC,eAAe,CAAC;QACrB,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC","file":"index.js","sourceRoot":"../../src/"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,UAAU,SAAS,CAAC,MAA8B;IACtD,MAAM,CAAC,eAAe,CAAC;QACrB,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC","file":"index.js","sourceRoot":"../../src/"}
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@ev-core/aurelia-v1-matrix",
3
- "description": "An Aurelia plugin project.",
4
- "version": "1.0.0",
3
+ "description": "Aurelia v1 matrix element plugin.",
4
+ "version": "2.0.0",
5
+ "dependencies": {
6
+ "@ev-core/au-core-matrix": "2.0.0"
7
+ },
5
8
  "peerDependencies": {
6
9
  "aurelia-binding": "^1.0.0 || ^2.0.0",
7
10
  "aurelia-dependency-injection": "^1.0.0",
@@ -39,7 +42,7 @@
39
42
  "server-destroy": "^1.0.1",
40
43
  "socket.io": "^4.8.1",
41
44
  "text": "requirejs/text",
42
- "typescript": "^5.9.2",
45
+ "typescript": "^5.9.3",
43
46
  "typescript-eslint": "^8.38.0"
44
47
  },
45
48
  "overrides": {
@@ -48,6 +51,7 @@
48
51
  "glob-parent": "^6.0.0",
49
52
  "micromatch": "^4.0.0"
50
53
  },
54
+ "types": "dist/native-modules/index.d.ts",
51
55
  "main": "dist/commonjs/index.js",
52
56
  "module": "dist/native-modules/index.js",
53
57
  "files": [