wacom 21.1.21 → 21.1.22
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/fesm2022/wacom.mjs +6 -6
- package/fesm2022/wacom.mjs.map +1 -1
- package/package.json +1 -1
- package/types/wacom.d.ts +1 -1
package/fesm2022/wacom.mjs
CHANGED
|
@@ -887,7 +887,7 @@ class CrudComponent {
|
|
|
887
887
|
/** Name of the collection or module used for contextual actions. */
|
|
888
888
|
this._module = '';
|
|
889
889
|
const form = formConfig;
|
|
890
|
-
this.
|
|
890
|
+
this.__formService = formService;
|
|
891
891
|
this.form = form;
|
|
892
892
|
this.crudService = crudService;
|
|
893
893
|
this._module = module;
|
|
@@ -962,7 +962,7 @@ class CrudComponent {
|
|
|
962
962
|
*/
|
|
963
963
|
bulkManagement(isCreateFlow = true) {
|
|
964
964
|
return () => {
|
|
965
|
-
this.
|
|
965
|
+
this.__formService
|
|
966
966
|
.modalDocs(isCreateFlow
|
|
967
967
|
? []
|
|
968
968
|
: this.documents().map((obj) => Object.fromEntries(this.updatableFields.map((key) => [
|
|
@@ -1003,7 +1003,7 @@ class CrudComponent {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
/** Opens a modal to create a new document. */
|
|
1005
1005
|
create() {
|
|
1006
|
-
this.
|
|
1006
|
+
this.__formService.modal(this.form, {
|
|
1007
1007
|
label: 'Create',
|
|
1008
1008
|
click: async (created, close) => {
|
|
1009
1009
|
close();
|
|
@@ -1017,7 +1017,7 @@ class CrudComponent {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
/** Displays a modal to edit an existing document. */
|
|
1019
1019
|
update(doc) {
|
|
1020
|
-
this.
|
|
1020
|
+
this.__formService.modal(this.form, {
|
|
1021
1021
|
label: 'Update',
|
|
1022
1022
|
click: (updated, close) => {
|
|
1023
1023
|
close();
|
|
@@ -1035,7 +1035,7 @@ class CrudComponent {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
/** Opens a modal to edit the document's unique URL. */
|
|
1037
1037
|
mutateUrl(doc) {
|
|
1038
|
-
this.
|
|
1038
|
+
this.__formService.modalUnique(this._module, 'url', doc);
|
|
1039
1039
|
}
|
|
1040
1040
|
/** Moves the given document one position up and updates ordering. */
|
|
1041
1041
|
moveUp(doc) {
|
|
@@ -3173,7 +3173,7 @@ class CrudService {
|
|
|
3173
3173
|
_syncSignalForDoc(doc) {
|
|
3174
3174
|
const id = this._id(doc);
|
|
3175
3175
|
if (id && this._signal[id]) {
|
|
3176
|
-
this._signal[id].set(doc);
|
|
3176
|
+
this._signal[id].set({ ...doc });
|
|
3177
3177
|
}
|
|
3178
3178
|
this._updateSignals();
|
|
3179
3179
|
}
|