@kwiz/common 1.0.226 → 1.0.227
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/lib/cjs/types/ns/ns.common.types.js +3 -2
- package/lib/cjs/types/ns/ns.common.types.js.map +1 -1
- package/lib/cjs/types/ns/ns.restlet.types.js +2 -2
- package/lib/cjs/types/ns/ns.restlet.types.js.map +1 -1
- package/lib/esm/types/ns/ns.common.types.js +2 -1
- package/lib/esm/types/ns/ns.common.types.js.map +1 -1
- package/lib/esm/types/ns/ns.restlet.types.js +3 -3
- package/lib/esm/types/ns/ns.restlet.types.js.map +1 -1
- package/lib/types/types/ns/ns.common.types.d.ts +3 -2
- package/lib/types/types/ns/ns.restlet.types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nsDateFields = exports.nsDateTimeFields = exports.nsChoiceFields = exports.nsMultiLineFields = exports.nsHtmlFields = exports.nsFieldTypes = exports.nsReadOnlyFieldTypes = void 0;
|
|
3
|
+
exports.nsDateFields = exports.nsDateTimeFields = exports.nsChoiceFields = exports.nsMultiLineFields = exports.nsHtmlFields = exports.nsFieldTypes = exports.nsReadOnlyFieldTypes = exports.nsReadOnlyFieldTypesForSublist = void 0;
|
|
4
4
|
exports.isnsFieldTypes = isnsFieldTypes;
|
|
5
5
|
exports.isnsHtmlField = isnsHtmlField;
|
|
6
6
|
exports.isnsMultiLineField = isnsMultiLineField;
|
|
7
7
|
exports.isnsChoiceField = isnsChoiceField;
|
|
8
8
|
exports.isnsDateTimeField = isnsDateTimeField;
|
|
9
9
|
exports.isnsDateField = isnsDateField;
|
|
10
|
-
exports.
|
|
10
|
+
exports.nsReadOnlyFieldTypesForSublist = ["inlinehtml",
|
|
11
11
|
//found on customer
|
|
12
12
|
"label", "help",
|
|
13
13
|
];
|
|
14
|
+
exports.nsReadOnlyFieldTypes = [...exports.nsReadOnlyFieldTypesForSublist, "address"];
|
|
14
15
|
exports.nsFieldTypes = ["date", "datetime", "textarea", "richtext", "checkbox", "currency", "float", "integer",
|
|
15
16
|
"text", "percent", "email", "phone", "url", "image",
|
|
16
17
|
"select", "multiselect",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ns.common.types.js","sourceRoot":"","sources":["../../../../src/types/ns/ns.common.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ns.common.types.js","sourceRoot":"","sources":["../../../../src/types/ns/ns.common.types.ts"],"names":[],"mappings":";;;AAiCA,wCAEC;AAED,sCAEC;AAED,gDAEC;AAED,0CAEC;AAID,8CAEC;AACD,sCAEC;AAxDY,QAAA,8BAA8B,GAAG,CAAC,YAAY;IACvD,mBAAmB;IACnB,OAAO,EAAE,MAAM;CACT,CAAC;AACE,QAAA,oBAAoB,GAAG,CAAC,GAAG,sCAA8B,EAAE,SAAS,CAAU,CAAC;AAC/E,QAAA,YAAY,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS;IAC/G,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO;IACnD,QAAQ,EAAE,aAAa;IACvB,sBAAsB;IACtB,UAAU;IACV,sBAAsB;IACtB,UAAU;IACV,YAAY,EAAE,UAAU;IACxB,sBAAsB;IACtB,UAAU;IACV,eAAe;IACf,WAAW,EAAE,MAAM;IACnB,iCAAiC;IACjC,YAAY,EAAE,aAAa;IAE3B,mBAAmB;IACnB,OAAO;IACP,kBAAkB;IAClB,SAAS;IAET,sBAAsB;IACtB,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW;IAC5C,8BAA8B;IAC9B,eAAe;IACf,4BAA4B;IAC5B,QAAQ;IACR,GAAG,4BAAoB,CAAU,CAAC;AAEtC,SAAgB,cAAc,CAAC,KAAa;IACxC,OAAO,oBAAY,CAAC,QAAQ,CAAC,KAAY,CAAC,CAAC;AAC/C,CAAC;AACY,QAAA,YAAY,GAAoB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AACxE,SAAgB,aAAa,CAAC,IAAmB;IAC7C,OAAO,oBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AACY,QAAA,iBAAiB,GAAoB,CAAC,GAAG,oBAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AACxG,SAAgB,kBAAkB,CAAC,IAAmB;IAClD,OAAO,yBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC;AACY,QAAA,cAAc,GAAoB,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;AAClF,SAAgB,eAAe,CAAC,IAAmB;IAC/C,OAAO,sBAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC;AAEY,QAAA,gBAAgB,GAAoB,CAAC,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;AACpF,QAAA,YAAY,GAAoB,CAAC,GAAG,wBAAgB,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;AACvF,SAAgB,iBAAiB,CAAC,IAAmB;IACjD,OAAO,wBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC;AACD,SAAgB,aAAa,CAAC,IAAmB;IAC7C,OAAO,oBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -11,9 +11,9 @@ const systemReadOnlyFields = [
|
|
|
11
11
|
//sublist fields
|
|
12
12
|
'line', 'linenumber', 'quantityonhand', 'quantityavailable', 'taxrate'
|
|
13
13
|
];
|
|
14
|
-
function tnsrFieldEditableFilter(field) {
|
|
14
|
+
function tnsrFieldEditableFilter(field, info = {}) {
|
|
15
15
|
return field.isVisible !== false && !systemReadOnlyFields.includes(field.id.toLowerCase())
|
|
16
|
-
&& !ns_common_types_1.nsReadOnlyFieldTypes.includes(field.type)
|
|
16
|
+
&& !(info.inSubList ? ns_common_types_1.nsReadOnlyFieldTypesForSublist : ns_common_types_1.nsReadOnlyFieldTypes).includes(field.type)
|
|
17
17
|
//also remove system / ghost fields by prefix
|
|
18
18
|
&& !ghostFieldPrefixes.some(pre => field.id.startsWith(pre));
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ns.restlet.types.js","sourceRoot":"","sources":["../../../../src/types/ns/ns.restlet.types.ts"],"names":[],"mappings":";;AA2BA,0DAKC;AAhCD,
|
|
1
|
+
{"version":3,"file":"ns.restlet.types.js","sourceRoot":"","sources":["../../../../src/types/ns/ns.restlet.types.ts"],"names":[],"mappings":";;AA2BA,0DAKC;AAhCD,uDAAwG;AAiBxG,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAC1C,MAAM,oBAAoB,GAAG;IACzB,aAAa;IACb,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB;IACrD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ;IAChD,aAAa,EAAE,sBAAsB;IACrC,gBAAgB;IAChB,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,SAAS;CACzE,CAAC;AAEF,SAAgB,uBAAuB,CAAC,KAAoB,EAAE,OAAiC,EAAE;IAC7F,OAAO,KAAK,CAAC,SAAS,KAAK,KAAK,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC;WACnF,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,gDAA8B,CAAC,CAAC,CAAC,sCAAoB,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAW,CAAC;QACxG,6CAA6C;WAC1C,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const nsReadOnlyFieldTypesForSublist = ["inlinehtml",
|
|
2
2
|
//found on customer
|
|
3
3
|
"label", "help",
|
|
4
4
|
];
|
|
5
|
+
export const nsReadOnlyFieldTypes = [...nsReadOnlyFieldTypesForSublist, "address"];
|
|
5
6
|
export const nsFieldTypes = ["date", "datetime", "textarea", "richtext", "checkbox", "currency", "float", "integer",
|
|
6
7
|
"text", "percent", "email", "phone", "url", "image",
|
|
7
8
|
"select", "multiselect",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ns.common.types.js","sourceRoot":"","sources":["../../../../src/types/ns/ns.common.types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ns.common.types.js","sourceRoot":"","sources":["../../../../src/types/ns/ns.common.types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,YAAY;IACvD,mBAAmB;IACnB,OAAO,EAAE,MAAM;CACT,CAAC;AACX,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAG,8BAA8B,EAAE,SAAS,CAAU,CAAC;AAC5F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS;IAC/G,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO;IACnD,QAAQ,EAAE,aAAa;IACvB,sBAAsB;IACtB,UAAU;IACV,sBAAsB;IACtB,UAAU;IACV,YAAY,EAAE,UAAU;IACxB,sBAAsB;IACtB,UAAU;IACV,eAAe;IACf,WAAW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C;AAC3C,CAAC;AACD,MAAM,UAAU,aAAa,CAAC,IAAmB;IAC7C,OAAO,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nsReadOnlyFieldTypes } from "./ns.common.types";
|
|
1
|
+
import { nsReadOnlyFieldTypes, nsReadOnlyFieldTypesForSublist } from "./ns.common.types";
|
|
2
2
|
const ghostFieldPrefixes = ['_', 'nsapi'];
|
|
3
3
|
const systemReadOnlyFields = [
|
|
4
4
|
//body fields
|
|
@@ -8,9 +8,9 @@ const systemReadOnlyFields = [
|
|
|
8
8
|
//sublist fields
|
|
9
9
|
'line', 'linenumber', 'quantityonhand', 'quantityavailable', 'taxrate'
|
|
10
10
|
];
|
|
11
|
-
export function tnsrFieldEditableFilter(field) {
|
|
11
|
+
export function tnsrFieldEditableFilter(field, info = {}) {
|
|
12
12
|
return field.isVisible !== false && !systemReadOnlyFields.includes(field.id.toLowerCase())
|
|
13
|
-
&& !nsReadOnlyFieldTypes.includes(field.type)
|
|
13
|
+
&& !(info.inSubList ? nsReadOnlyFieldTypesForSublist : nsReadOnlyFieldTypes).includes(field.type)
|
|
14
14
|
//also remove system / ghost fields by prefix
|
|
15
15
|
&& !ghostFieldPrefixes.some(pre => field.id.startsWith(pre));
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ns.restlet.types.js","sourceRoot":"","sources":["../../../../src/types/ns/ns.restlet.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAiB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ns.restlet.types.js","sourceRoot":"","sources":["../../../../src/types/ns/ns.restlet.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAiB,MAAM,mBAAmB,CAAC;AAiBxG,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAC1C,MAAM,oBAAoB,GAAG;IACzB,aAAa;IACb,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB;IACrD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ;IAChD,aAAa,EAAE,sBAAsB;IACrC,gBAAgB;IAChB,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,SAAS;CACzE,CAAC;AAEF,MAAM,UAAU,uBAAuB,CAAC,KAAoB,EAAE,OAAiC,EAAE;IAC7F,OAAO,KAAK,CAAC,SAAS,KAAK,KAAK,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC;WACnF,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAW,CAAC;QACxG,6CAA6C;WAC1C,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const nsReadOnlyFieldTypesForSublist: readonly ["inlinehtml", "label", "help"];
|
|
2
|
+
export declare const nsReadOnlyFieldTypes: readonly ["inlinehtml", "label", "help", "address"];
|
|
3
|
+
export declare const nsFieldTypes: readonly ["date", "datetime", "textarea", "richtext", "checkbox", "currency", "float", "integer", "text", "percent", "email", "phone", "url", "image", "select", "multiselect", "clobtext", "longtext", "datetimetz", "password", "mmyydate", "timeofday", "time", "posinteger", "poscurrency", "radio", "bank_id", "currency2", "rate", "ccnumber", "ccexpdate", "namevaluelist", "emails", "inlinehtml", "label", "help", "address"];
|
|
3
4
|
export type tnsFieldTypes = typeof nsFieldTypes[number];
|
|
4
5
|
export declare function isnsFieldTypes(value: string): value is tnsFieldTypes;
|
|
5
6
|
export declare const nsHtmlFields: tnsFieldTypes[];
|