@etsoo/smarterp-core 1.1.9 → 1.1.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.
- package/lib/cjs/CoreApp.d.ts +1 -1
- package/lib/cjs/CoreApp.js +4 -1
- package/lib/cjs/i18n/en.json +1 -1
- package/lib/cjs/i18n/zh-Hans.json +1 -1
- package/lib/cjs/i18n/zh-Hant.json +1 -1
- package/lib/mjs/CoreApp.d.ts +1 -1
- package/lib/mjs/CoreApp.js +4 -1
- package/lib/mjs/i18n/en.json +1 -1
- package/lib/mjs/i18n/zh-Hans.json +1 -1
- package/lib/mjs/i18n/zh-Hant.json +1 -1
- package/package.json +1 -1
- package/src/CoreApp.ts +5 -2
- package/src/i18n/en.json +1 -1
- package/src/i18n/zh-Hans.json +1 -1
- package/src/i18n/zh-Hant.json +1 -1
package/lib/cjs/CoreApp.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ export interface ICoreApp {
|
|
|
100
100
|
/**
|
|
101
101
|
* Get identity flags
|
|
102
102
|
* 获取身份标志组合
|
|
103
|
-
* @param identity Identity value combined
|
|
103
|
+
* @param identity Identity value combined or true for items other than None
|
|
104
104
|
* @returns List
|
|
105
105
|
*/
|
|
106
106
|
getIdentityFlags(identity?: number | true): ListType[];
|
package/lib/cjs/CoreApp.js
CHANGED
|
@@ -179,8 +179,11 @@ class CoreApp {
|
|
|
179
179
|
return id;
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
+
if (identity === 0)
|
|
183
|
+
return [];
|
|
184
|
+
// When identity exists, includes the None item
|
|
182
185
|
return this.app.getEnumList(appscript_1.IdentityTypeFlags, "id", (id, _key) => {
|
|
183
|
-
if ((id & identity) > 0)
|
|
186
|
+
if (id === 0 || (id & identity) > 0)
|
|
184
187
|
return id;
|
|
185
188
|
});
|
|
186
189
|
}
|
package/lib/cjs/i18n/en.json
CHANGED
package/lib/mjs/CoreApp.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ export interface ICoreApp {
|
|
|
100
100
|
/**
|
|
101
101
|
* Get identity flags
|
|
102
102
|
* 获取身份标志组合
|
|
103
|
-
* @param identity Identity value combined
|
|
103
|
+
* @param identity Identity value combined or true for items other than None
|
|
104
104
|
* @returns List
|
|
105
105
|
*/
|
|
106
106
|
getIdentityFlags(identity?: number | true): ListType[];
|
package/lib/mjs/CoreApp.js
CHANGED
|
@@ -176,8 +176,11 @@ export class CoreApp {
|
|
|
176
176
|
return id;
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
+
if (identity === 0)
|
|
180
|
+
return [];
|
|
181
|
+
// When identity exists, includes the None item
|
|
179
182
|
return this.app.getEnumList(IdentityTypeFlags, "id", (id, _key) => {
|
|
180
|
-
if ((id & identity) > 0)
|
|
183
|
+
if (id === 0 || (id & identity) > 0)
|
|
181
184
|
return id;
|
|
182
185
|
});
|
|
183
186
|
}
|
package/lib/mjs/i18n/en.json
CHANGED
package/package.json
CHANGED
package/src/CoreApp.ts
CHANGED
|
@@ -123,7 +123,7 @@ export interface ICoreApp {
|
|
|
123
123
|
/**
|
|
124
124
|
* Get identity flags
|
|
125
125
|
* 获取身份标志组合
|
|
126
|
-
* @param identity Identity value combined
|
|
126
|
+
* @param identity Identity value combined or true for items other than None
|
|
127
127
|
* @returns List
|
|
128
128
|
*/
|
|
129
129
|
getIdentityFlags(identity?: number | true): ListType[];
|
|
@@ -316,8 +316,11 @@ export class CoreApp implements ICoreApp {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
if (identity === 0) return [];
|
|
320
|
+
|
|
321
|
+
// When identity exists, includes the None item
|
|
319
322
|
return this.app.getEnumList(IdentityTypeFlags, "id", (id, _key) => {
|
|
320
|
-
if ((id & identity) > 0) return id;
|
|
323
|
+
if (id === 0 || (id & identity) > 0) return id;
|
|
321
324
|
});
|
|
322
325
|
}
|
|
323
326
|
}
|
package/src/i18n/en.json
CHANGED
package/src/i18n/zh-Hans.json
CHANGED