@atscript/ui 0.1.178 → 0.1.180
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/form/diff.cjs
CHANGED
|
@@ -210,16 +210,16 @@ function diffObjectField(field, fullPath, baseline, current, changes, patch, mer
|
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* Array field — keyed → $update/$insert/$remove; unkeyed → $replace. A
|
|
213
|
-
* `@db.json` array is stored as one
|
|
214
|
-
* operations: it is sent whole (`null`
|
|
215
|
-
* dissolved object the merge strategy does
|
|
216
|
-
* whole sub-object, like any leaf there.
|
|
213
|
+
* `@db.json` or `@db.encrypted` array is stored as one value (JSON /
|
|
214
|
+
* ciphertext), which takes no array operations: it is sent whole (`null`
|
|
215
|
+
* when cleared). An array inside a dissolved object the merge strategy does
|
|
216
|
+
* not apply to is sent with that whole sub-object, like any leaf there.
|
|
217
217
|
*/
|
|
218
218
|
function diffArrayField(field, fullPath, baseline, current, changes, patch, mergePaths) {
|
|
219
219
|
const before = require_path_utils.getByPath(baseline, fullPath);
|
|
220
220
|
const after = require_path_utils.getByPath(current, fullPath);
|
|
221
221
|
if (deepEqual(before, after)) return;
|
|
222
|
-
const value = require_field_resolver.getFieldMeta(field.prop, "db.json") !== void 0 ? after ?? null : diffArray(field, before, after, mergePaths.has(fullPath));
|
|
222
|
+
const value = require_field_resolver.getFieldMeta(field.prop, "db.json") !== void 0 || require_field_resolver.getFieldMeta(field.prop, "db.encrypted") !== void 0 ? after ?? null : diffArray(field, before, after, mergePaths.has(fullPath));
|
|
223
223
|
if (value === void 0) return;
|
|
224
224
|
changes.push({
|
|
225
225
|
path: fullPath,
|
package/dist/form/diff.mjs
CHANGED
|
@@ -210,16 +210,16 @@ function diffObjectField(field, fullPath, baseline, current, changes, patch, mer
|
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* Array field — keyed → $update/$insert/$remove; unkeyed → $replace. A
|
|
213
|
-
* `@db.json` array is stored as one
|
|
214
|
-
* operations: it is sent whole (`null`
|
|
215
|
-
* dissolved object the merge strategy does
|
|
216
|
-
* whole sub-object, like any leaf there.
|
|
213
|
+
* `@db.json` or `@db.encrypted` array is stored as one value (JSON /
|
|
214
|
+
* ciphertext), which takes no array operations: it is sent whole (`null`
|
|
215
|
+
* when cleared). An array inside a dissolved object the merge strategy does
|
|
216
|
+
* not apply to is sent with that whole sub-object, like any leaf there.
|
|
217
217
|
*/
|
|
218
218
|
function diffArrayField(field, fullPath, baseline, current, changes, patch, mergePaths) {
|
|
219
219
|
const before = getByPath(baseline, fullPath);
|
|
220
220
|
const after = getByPath(current, fullPath);
|
|
221
221
|
if (deepEqual(before, after)) return;
|
|
222
|
-
const value = getFieldMeta(field.prop, "db.json") !== void 0 ? after ?? null : diffArray(field, before, after, mergePaths.has(fullPath));
|
|
222
|
+
const value = getFieldMeta(field.prop, "db.json") !== void 0 || getFieldMeta(field.prop, "db.encrypted") !== void 0 ? after ?? null : diffArray(field, before, after, mergePaths.has(fullPath));
|
|
223
223
|
if (value === void 0) return;
|
|
224
224
|
changes.push({
|
|
225
225
|
path: fullPath,
|
|
@@ -53,6 +53,7 @@ const DB_VIEW = "db.view";
|
|
|
53
53
|
const DB_VIEW_FOR = "db.view.for";
|
|
54
54
|
const DB_HTTP_PATH = "db.http.path";
|
|
55
55
|
const DB_JSON = "db.json";
|
|
56
|
+
const DB_ENCRYPTED = "db.encrypted";
|
|
56
57
|
const DB_AMOUNT_CURRENCY = "db.amount.currency";
|
|
57
58
|
const DB_AMOUNT_CURRENCY_REF = "db.amount.currency.ref";
|
|
58
59
|
const DB_UNIT = "db.unit";
|
|
@@ -98,6 +99,7 @@ exports.DB_AMOUNT_CURRENCY_REF = DB_AMOUNT_CURRENCY_REF;
|
|
|
98
99
|
exports.DB_COLUMN_DERIVED = DB_COLUMN_DERIVED;
|
|
99
100
|
exports.DB_COLUMN_PRECISION = DB_COLUMN_PRECISION;
|
|
100
101
|
exports.DB_COLUMN_VERSION = DB_COLUMN_VERSION;
|
|
102
|
+
exports.DB_ENCRYPTED = DB_ENCRYPTED;
|
|
101
103
|
exports.DB_HTTP_PATH = DB_HTTP_PATH;
|
|
102
104
|
exports.DB_JSON = DB_JSON;
|
|
103
105
|
exports.DB_REL_FK = DB_REL_FK;
|
|
@@ -53,6 +53,7 @@ const DB_VIEW = "db.view";
|
|
|
53
53
|
const DB_VIEW_FOR = "db.view.for";
|
|
54
54
|
const DB_HTTP_PATH = "db.http.path";
|
|
55
55
|
const DB_JSON = "db.json";
|
|
56
|
+
const DB_ENCRYPTED = "db.encrypted";
|
|
56
57
|
const DB_AMOUNT_CURRENCY = "db.amount.currency";
|
|
57
58
|
const DB_AMOUNT_CURRENCY_REF = "db.amount.currency.ref";
|
|
58
59
|
const DB_UNIT = "db.unit";
|
|
@@ -93,4 +94,4 @@ const UI_TABLE_FN_CLASSES = "ui.table.fn.classes";
|
|
|
93
94
|
const UI_TABLE_FN_STYLES = "ui.table.fn.styles";
|
|
94
95
|
const UI_FORM_VALIDATE = "ui.form.validate";
|
|
95
96
|
//#endregion
|
|
96
|
-
export { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_DERIVED, DB_COLUMN_PRECISION, DB_COLUMN_VERSION, DB_HTTP_PATH, DB_JSON, DB_REL_FK, DB_TABLE, DB_UNIT, DB_UNIT_REF, DB_VIEW, DB_VIEW_FOR, EXPECT_ARRAY_KEY, EXPECT_ARRAY_UNIQUE_ITEMS, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, UI_DICT_ATTR, UI_DICT_DESCR, UI_DICT_FILTERABLE, UI_DICT_LABEL, UI_DICT_SEARCHABLE, UI_DICT_SORTABLE, UI_FORM_ACTION, UI_FORM_ATTR, UI_FORM_AUTOCOMPLETE, UI_FORM_CLASSES, UI_FORM_COMPONENT, UI_FORM_DISABLED, UI_FORM_FN_ATTR, UI_FORM_FN_CLASSES, UI_FORM_FN_DESCRIPTION, UI_FORM_FN_DISABLED, UI_FORM_FN_HIDDEN, UI_FORM_FN_HINT, UI_FORM_FN_LABEL, UI_FORM_FN_OPTIONS, UI_FORM_FN_PLACEHOLDER, UI_FORM_FN_PREFIX, UI_FORM_FN_READONLY, UI_FORM_FN_STYLES, UI_FORM_FN_SUBMIT_DISABLED, UI_FORM_FN_SUBMIT_TEXT, UI_FORM_FN_TITLE, UI_FORM_FN_VALUE, UI_FORM_GRID_COL_SPAN, UI_FORM_GRID_ROW_SPAN, UI_FORM_HIDDEN, UI_FORM_HINT, UI_FORM_LABEL_SINGULAR, UI_FORM_NS, UI_FORM_OPTIONS, UI_FORM_ORDER, UI_FORM_PLACEHOLDER, UI_FORM_PREFIX, UI_FORM_PREFIX_ICON, UI_FORM_PREFIX_REF, UI_FORM_PUSH_DOWN, UI_FORM_STYLES, UI_FORM_SUBMIT_TEXT, UI_FORM_SUFFIX, UI_FORM_SUFFIX_ICON, UI_FORM_SUFFIX_REF, UI_FORM_TYPE, UI_FORM_VALIDATE, UI_LITERAL_LABEL, UI_NAV_GROUP, UI_NAV_HIDDEN, UI_NAV_ORDER, UI_TABLE_ATTR, UI_TABLE_CLASSES, UI_TABLE_COMPONENT, UI_TABLE_EXCLUDE, UI_TABLE_FN_ATTR, UI_TABLE_FN_CLASSES, UI_TABLE_FN_PREFIX, UI_TABLE_FN_STYLES, UI_TABLE_ORDER, UI_TABLE_SELECT_WITH, UI_TABLE_STYLES, UI_TABLE_TYPE, UI_TABLE_WIDTH, UI_TYPE, UI_VALUE_HELP, UI_VALUE_HELP_DISTINCT, WF_ACTION_WITH_DATA };
|
|
97
|
+
export { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_DERIVED, DB_COLUMN_PRECISION, DB_COLUMN_VERSION, DB_ENCRYPTED, DB_HTTP_PATH, DB_JSON, DB_REL_FK, DB_TABLE, DB_UNIT, DB_UNIT_REF, DB_VIEW, DB_VIEW_FOR, EXPECT_ARRAY_KEY, EXPECT_ARRAY_UNIQUE_ITEMS, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, UI_DICT_ATTR, UI_DICT_DESCR, UI_DICT_FILTERABLE, UI_DICT_LABEL, UI_DICT_SEARCHABLE, UI_DICT_SORTABLE, UI_FORM_ACTION, UI_FORM_ATTR, UI_FORM_AUTOCOMPLETE, UI_FORM_CLASSES, UI_FORM_COMPONENT, UI_FORM_DISABLED, UI_FORM_FN_ATTR, UI_FORM_FN_CLASSES, UI_FORM_FN_DESCRIPTION, UI_FORM_FN_DISABLED, UI_FORM_FN_HIDDEN, UI_FORM_FN_HINT, UI_FORM_FN_LABEL, UI_FORM_FN_OPTIONS, UI_FORM_FN_PLACEHOLDER, UI_FORM_FN_PREFIX, UI_FORM_FN_READONLY, UI_FORM_FN_STYLES, UI_FORM_FN_SUBMIT_DISABLED, UI_FORM_FN_SUBMIT_TEXT, UI_FORM_FN_TITLE, UI_FORM_FN_VALUE, UI_FORM_GRID_COL_SPAN, UI_FORM_GRID_ROW_SPAN, UI_FORM_HIDDEN, UI_FORM_HINT, UI_FORM_LABEL_SINGULAR, UI_FORM_NS, UI_FORM_OPTIONS, UI_FORM_ORDER, UI_FORM_PLACEHOLDER, UI_FORM_PREFIX, UI_FORM_PREFIX_ICON, UI_FORM_PREFIX_REF, UI_FORM_PUSH_DOWN, UI_FORM_STYLES, UI_FORM_SUBMIT_TEXT, UI_FORM_SUFFIX, UI_FORM_SUFFIX_ICON, UI_FORM_SUFFIX_REF, UI_FORM_TYPE, UI_FORM_VALIDATE, UI_LITERAL_LABEL, UI_NAV_GROUP, UI_NAV_HIDDEN, UI_NAV_ORDER, UI_TABLE_ATTR, UI_TABLE_CLASSES, UI_TABLE_COMPONENT, UI_TABLE_EXCLUDE, UI_TABLE_FN_ATTR, UI_TABLE_FN_CLASSES, UI_TABLE_FN_PREFIX, UI_TABLE_FN_STYLES, UI_TABLE_ORDER, UI_TABLE_SELECT_WITH, UI_TABLE_STYLES, UI_TABLE_TYPE, UI_TABLE_WIDTH, UI_TYPE, UI_VALUE_HELP, UI_VALUE_HELP_DISTINCT, WF_ACTION_WITH_DATA };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.180",
|
|
4
4
|
"description": "Framework-agnostic runtime for form and table definitions from atscript annotated types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"annotations",
|
|
@@ -52,20 +52,20 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@atscript/db-client": "^0.1.
|
|
55
|
+
"@atscript/db-client": "^0.1.186"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@atscript/core": "^0.2.
|
|
59
|
-
"@atscript/db": "^0.1.
|
|
60
|
-
"@atscript/typescript": "^0.2.
|
|
58
|
+
"@atscript/core": "^0.2.14",
|
|
59
|
+
"@atscript/db": "^0.1.186",
|
|
60
|
+
"@atscript/typescript": "^0.2.14",
|
|
61
61
|
"@uniqu/core": "^0.2.2",
|
|
62
|
-
"unplugin-atscript": "^0.2.
|
|
62
|
+
"unplugin-atscript": "^0.2.14",
|
|
63
63
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@atscript/core": "^0.2.
|
|
67
|
-
"@atscript/db": "^0.1.
|
|
68
|
-
"@atscript/typescript": "^0.2.
|
|
66
|
+
"@atscript/core": "^0.2.14",
|
|
67
|
+
"@atscript/db": "^0.1.186",
|
|
68
|
+
"@atscript/typescript": "^0.2.14"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "vp pack",
|