@kwiz/common 1.0.85 → 1.0.86
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RemoveListPermission = exports.AssignListPermission = exports.BreakListPermissionInheritance = exports.RestoreListPermissionInheritance = exports.ListHasUniquePermissions = exports.ReloadListLastModified = exports.GetListLastItemModifiedDate = exports.DeleteListEventReceiver = exports.AddListEventReceiver = exports.GetListEventReceivers = exports.FindListItemById = exports.GetListItemsSync = exports.GetListItems = exports.GetFieldSchema = exports.GetFieldSchemaSync = exports.GetListFormUrl = exports.GetListContentTypesSync = exports.GetListContentTypes = exports.RemoveViewFieldFromListView = exports.AddViewFieldToListView = exports.GetListViewsSync = exports.GetListViews = exports.DeleteField = exports.
|
|
3
|
+
exports.RemoveListPermission = exports.AssignListPermission = exports.BreakListPermissionInheritance = exports.RestoreListPermissionInheritance = exports.ListHasUniquePermissions = exports.ReloadListLastModified = exports.GetListLastItemModifiedDate = exports.DeleteListEventReceiver = exports.AddListEventReceiver = exports.GetListEventReceivers = exports.FindListItemById = exports.GetListItemsSync = exports.GetListItems = exports.GetFieldSchema = exports.GetFieldSchemaSync = exports.GetListFormUrl = exports.GetListContentTypesSync = exports.GetListContentTypes = exports.RemoveViewFieldFromListView = exports.AddViewFieldToListView = exports.GetListViewsSync = exports.GetListViews = exports.DeleteField = exports.ChangeTextFieldMode = exports.UpdateField = exports.CreateField = exports.UserHasPermissionsSync = exports.UserHasPermissions = exports.UserHasEditPermissions = exports.UserHasManagePermissions = exports.GetListWorkflows = exports.GetListFieldsAsHashSync = exports.GetListFieldsAsHash = exports.GetListFieldsSync = exports.GetListFields = exports.GetStandardListFields = exports.GetListField = exports.GetListRootFolderSync = exports.GetListRootFolder = exports.GetListName = exports.GetListNameSync = exports.GetListSync = exports.GetList = exports.GetListTitle = exports.GetSiteAssetLibrary = exports.EnsureSitePagesLibrary = exports.EnsureAssetLibrary = exports.GetListIdFromPageSync = exports.GetListId = exports.GetListRestUrl = void 0;
|
|
4
4
|
exports.UpdateListExperience = exports.SearchList = exports.CreateList = void 0;
|
|
5
5
|
const exports_index_1 = require("../../exports-index");
|
|
6
6
|
const collections_base_1 = require("../../helpers/collections.base");
|
|
@@ -501,7 +501,7 @@ async function UpdateField(siteUrlOrId, listIdOrTitle, fieldInternalName, option
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
exports.UpdateField = UpdateField;
|
|
504
|
-
async function
|
|
504
|
+
async function ChangeTextFieldMode(siteUrlOrId, listIdOrTitle, textMode, currentField) {
|
|
505
505
|
const newSchema = (0, exports_index_1.jsonClone)(currentField.SchemaJson);
|
|
506
506
|
const currentSchemaAttributes = newSchema.Attributes;
|
|
507
507
|
switch (textMode) {
|
|
@@ -550,7 +550,7 @@ async function changeTextFieldMode(siteUrlOrId, listIdOrTitle, textMode, current
|
|
|
550
550
|
// If object is null or undefined then request has failed.
|
|
551
551
|
return !(0, typecheckers_1.isNullOrUndefined)(fieldUpdated);
|
|
552
552
|
}
|
|
553
|
-
exports.
|
|
553
|
+
exports.ChangeTextFieldMode = ChangeTextFieldMode;
|
|
554
554
|
async function DeleteField(siteUrl, listIdOrTitle, fieldInternalName, options) {
|
|
555
555
|
siteUrl = (0, common_1.GetSiteUrl)(siteUrl);
|
|
556
556
|
// let finish = async () => {
|
|
@@ -471,7 +471,7 @@ export async function UpdateField(siteUrlOrId, listIdOrTitle, fieldInternalName,
|
|
|
471
471
|
return null;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
export async function
|
|
474
|
+
export async function ChangeTextFieldMode(siteUrlOrId, listIdOrTitle, textMode, currentField) {
|
|
475
475
|
const newSchema = jsonClone(currentField.SchemaJson);
|
|
476
476
|
const currentSchemaAttributes = newSchema.Attributes;
|
|
477
477
|
switch (textMode) {
|
|
@@ -90,7 +90,7 @@ export declare function UpdateField(siteUrlOrId: string, listIdOrTitle: string,
|
|
|
90
90
|
ClientSideComponentId?: string;
|
|
91
91
|
ClientSideComponentProperties?: string;
|
|
92
92
|
}): Promise<IFieldInfoEX>;
|
|
93
|
-
export declare function
|
|
93
|
+
export declare function ChangeTextFieldMode(siteUrlOrId: string, listIdOrTitle: string, textMode: "singleline" | "multiline" | "html", currentField: IFieldInfoEX): Promise<boolean>;
|
|
94
94
|
export declare function DeleteField(siteUrl: string, listIdOrTitle: string, fieldInternalName: string, options?: {
|
|
95
95
|
DeleteHiddenField?: boolean;
|
|
96
96
|
}): Promise<boolean>;
|
package/package.json
CHANGED
|
@@ -606,7 +606,7 @@ export async function UpdateField(siteUrlOrId: string, listIdOrTitle: string, fi
|
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
export async function
|
|
609
|
+
export async function ChangeTextFieldMode(
|
|
610
610
|
siteUrlOrId: string,
|
|
611
611
|
listIdOrTitle: string,
|
|
612
612
|
textMode: "singleline" | "multiline" | "html",
|