@pnp/sp 4.0.0-alpha0-v4nightly.20240226 → 4.0.0-alpha0-v4nightly.20240229
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/appcatalog/index.d.ts.map +1 -0
- package/appcatalog/index.js.map +1 -0
- package/appcatalog/types.d.ts.map +1 -0
- package/appcatalog/types.js.map +1 -0
- package/appcatalog/web.d.ts.map +1 -0
- package/appcatalog/web.js.map +1 -0
- package/attachments/index.d.ts.map +1 -0
- package/attachments/index.js.map +1 -0
- package/attachments/item.d.ts.map +1 -0
- package/attachments/item.js.map +1 -0
- package/attachments/types.d.ts.map +1 -0
- package/attachments/types.js.map +1 -0
- package/batching.d.ts.map +1 -0
- package/batching.js.map +1 -0
- package/behaviors/defaults.d.ts.map +1 -0
- package/behaviors/defaults.js.map +1 -0
- package/behaviors/request-digest.d.ts.map +1 -0
- package/behaviors/request-digest.js.map +1 -0
- package/behaviors/spbrowser.d.ts.map +1 -0
- package/behaviors/spbrowser.js.map +1 -0
- package/behaviors/spfx.d.ts.map +1 -0
- package/behaviors/spfx.js.map +1 -0
- package/behaviors/telemetry.d.ts.map +1 -0
- package/behaviors/telemetry.js.map +1 -0
- package/clientside-pages/funcs.d.ts.map +1 -0
- package/clientside-pages/funcs.js.map +1 -0
- package/clientside-pages/index.d.ts.map +1 -0
- package/clientside-pages/index.js.map +1 -0
- package/clientside-pages/types.d.ts.map +1 -0
- package/clientside-pages/types.js.map +1 -0
- package/clientside-pages/web.d.ts.map +1 -0
- package/clientside-pages/web.js.map +1 -0
- package/column-defaults/folder.d.ts.map +1 -0
- package/column-defaults/folder.js.map +1 -0
- package/column-defaults/index.d.ts.map +1 -0
- package/column-defaults/index.js.map +1 -0
- package/column-defaults/list.d.ts.map +1 -0
- package/column-defaults/list.js.map +1 -0
- package/column-defaults/types.d.ts.map +1 -0
- package/column-defaults/types.js.map +1 -0
- package/comments/clientside-page.d.ts.map +1 -0
- package/comments/clientside-page.js.map +1 -0
- package/comments/index.d.ts.map +1 -0
- package/comments/index.js.map +1 -0
- package/comments/item.d.ts.map +1 -0
- package/comments/item.js.map +1 -0
- package/comments/types.d.ts.map +1 -0
- package/comments/types.js.map +1 -0
- package/content-types/index.d.ts.map +1 -0
- package/content-types/index.js.map +1 -0
- package/content-types/item.d.ts.map +1 -0
- package/content-types/item.js.map +1 -0
- package/content-types/list.d.ts.map +1 -0
- package/content-types/list.js.map +1 -0
- package/content-types/types.d.ts.map +1 -0
- package/content-types/types.js.map +1 -0
- package/content-types/web.d.ts.map +1 -0
- package/content-types/web.js.map +1 -0
- package/context-info/index.d.ts.map +1 -0
- package/context-info/index.js.map +1 -0
- package/decorators.d.ts.map +1 -0
- package/decorators.js.map +1 -0
- package/favorites/index.d.ts.map +1 -0
- package/favorites/index.js.map +1 -0
- package/favorites/types.d.ts.map +1 -0
- package/favorites/types.js.map +1 -0
- package/features/index.d.ts.map +1 -0
- package/features/index.js.map +1 -0
- package/features/site.d.ts.map +1 -0
- package/features/site.js.map +1 -0
- package/features/types.d.ts.map +1 -0
- package/features/types.js.map +1 -0
- package/features/web.d.ts.map +1 -0
- package/features/web.js.map +1 -0
- package/fi.d.ts.map +1 -0
- package/fi.js.map +1 -0
- package/fields/index.d.ts.map +1 -0
- package/fields/index.js.map +1 -0
- package/fields/list.d.ts.map +1 -0
- package/fields/list.js.map +1 -0
- package/fields/types.d.ts.map +1 -0
- package/fields/types.js.map +1 -0
- package/fields/web.d.ts.map +1 -0
- package/fields/web.js.map +1 -0
- package/files/folder.d.ts.map +1 -0
- package/files/folder.js.map +1 -0
- package/files/index.d.ts.map +1 -0
- package/files/index.js.map +1 -0
- package/files/item.d.ts.map +1 -0
- package/files/item.js.map +1 -0
- package/files/readable-file.d.ts.map +1 -0
- package/files/readable-file.js.map +1 -0
- package/files/types.d.ts.map +1 -0
- package/files/types.js.map +1 -0
- package/files/web.d.ts.map +1 -0
- package/files/web.js.map +1 -0
- package/folders/index.d.ts.map +1 -0
- package/folders/index.js.map +1 -0
- package/folders/item.d.ts.map +1 -0
- package/folders/item.js.map +1 -0
- package/folders/list.d.ts.map +1 -0
- package/folders/list.js.map +1 -0
- package/folders/types.d.ts.map +1 -0
- package/folders/types.js.map +1 -0
- package/folders/web.d.ts.map +1 -0
- package/folders/web.js.map +1 -0
- package/forms/index.d.ts.map +1 -0
- package/forms/index.js.map +1 -0
- package/forms/list.d.ts.map +1 -0
- package/forms/list.js.map +1 -0
- package/forms/types.d.ts.map +1 -0
- package/forms/types.js.map +1 -0
- package/groupsitemanager/index.d.ts.map +1 -0
- package/groupsitemanager/index.js.map +1 -0
- package/groupsitemanager/types.d.ts.map +1 -0
- package/groupsitemanager/types.js.map +1 -0
- package/hubsites/index.d.ts.map +1 -0
- package/hubsites/index.js.map +1 -0
- package/hubsites/site.d.ts.map +1 -0
- package/hubsites/site.js.map +1 -0
- package/hubsites/types.d.ts.map +1 -0
- package/hubsites/types.js.map +1 -0
- package/hubsites/web.d.ts.map +1 -0
- package/hubsites/web.js.map +1 -0
- package/index.d.ts.map +1 -0
- package/index.js.map +1 -0
- package/items/index.d.ts.map +1 -0
- package/items/index.js.map +1 -0
- package/items/list.d.ts.map +1 -0
- package/items/list.js.map +1 -0
- package/items/types.d.ts.map +1 -0
- package/items/types.js.map +1 -0
- package/lists/index.d.ts.map +1 -0
- package/lists/index.js.map +1 -0
- package/lists/types.d.ts.map +1 -0
- package/lists/types.js.map +1 -0
- package/lists/web.d.ts.map +1 -0
- package/lists/web.js.map +1 -0
- package/navigation/index.d.ts.map +1 -0
- package/navigation/index.js.map +1 -0
- package/navigation/types.d.ts.map +1 -0
- package/navigation/types.js.map +1 -0
- package/navigation/web.d.ts.map +1 -0
- package/navigation/web.js.map +1 -0
- package/package.json +5 -18
- package/presets/all.d.ts.map +1 -0
- package/presets/all.js.map +1 -0
- package/profiles/index.d.ts.map +1 -0
- package/profiles/index.js.map +1 -0
- package/profiles/types.d.ts.map +1 -0
- package/profiles/types.js.map +1 -0
- package/publishing-sitepageservice/index.d.ts.map +1 -0
- package/publishing-sitepageservice/index.js.map +1 -0
- package/publishing-sitepageservice/types.d.ts.map +1 -0
- package/publishing-sitepageservice/types.js.map +1 -0
- package/recycle-bin/index.d.ts.map +1 -0
- package/recycle-bin/index.js.map +1 -0
- package/recycle-bin/types.d.ts.map +1 -0
- package/recycle-bin/types.js.map +1 -0
- package/regional-settings/content-type.d.ts.map +1 -0
- package/regional-settings/content-type.js.map +1 -0
- package/regional-settings/field.d.ts.map +1 -0
- package/regional-settings/field.js.map +1 -0
- package/regional-settings/funcs.d.ts.map +1 -0
- package/regional-settings/funcs.js.map +1 -0
- package/regional-settings/index.d.ts.map +1 -0
- package/regional-settings/index.js.map +1 -0
- package/regional-settings/list.d.ts.map +1 -0
- package/regional-settings/list.js.map +1 -0
- package/regional-settings/types.d.ts.map +1 -0
- package/regional-settings/types.js.map +1 -0
- package/regional-settings/user-custom-actions.d.ts.map +1 -0
- package/regional-settings/user-custom-actions.js.map +1 -0
- package/regional-settings/web.d.ts.map +1 -0
- package/regional-settings/web.js.map +1 -0
- package/related-items/index.d.ts.map +1 -0
- package/related-items/index.js.map +1 -0
- package/related-items/types.d.ts.map +1 -0
- package/related-items/types.js.map +1 -0
- package/related-items/web.d.ts.map +1 -0
- package/related-items/web.js.map +1 -0
- package/search/index.d.ts.map +1 -0
- package/search/index.js.map +1 -0
- package/search/query.d.ts.map +1 -0
- package/search/query.js.map +1 -0
- package/search/suggest.d.ts.map +1 -0
- package/search/suggest.js.map +1 -0
- package/search/types.d.ts.map +1 -0
- package/search/types.js.map +1 -0
- package/security/funcs.d.ts.map +1 -0
- package/security/funcs.js.map +1 -0
- package/security/index.d.ts.map +1 -0
- package/security/index.js.map +1 -0
- package/security/item.d.ts.map +1 -0
- package/security/item.js.map +1 -0
- package/security/list.d.ts.map +1 -0
- package/security/list.js.map +1 -0
- package/security/types.d.ts.map +1 -0
- package/security/types.js.map +1 -0
- package/security/web.d.ts.map +1 -0
- package/security/web.js.map +1 -0
- package/sharing/file.d.ts.map +1 -0
- package/sharing/file.js.map +1 -0
- package/sharing/folder.d.ts.map +1 -0
- package/sharing/folder.js.map +1 -0
- package/sharing/funcs.d.ts.map +1 -0
- package/sharing/funcs.js.map +1 -0
- package/sharing/index.d.ts.map +1 -0
- package/sharing/index.js.map +1 -0
- package/sharing/item.d.ts.map +1 -0
- package/sharing/item.js.map +1 -0
- package/sharing/types.d.ts.map +1 -0
- package/sharing/types.js.map +1 -0
- package/sharing/web.d.ts.map +1 -0
- package/sharing/web.js.map +1 -0
- package/site-designs/index.d.ts.map +1 -0
- package/site-designs/index.js.map +1 -0
- package/site-designs/types.d.ts.map +1 -0
- package/site-designs/types.js.map +1 -0
- package/site-designs/web.d.ts.map +1 -0
- package/site-designs/web.js.map +1 -0
- package/site-groups/index.d.ts.map +1 -0
- package/site-groups/index.js.map +1 -0
- package/site-groups/types.d.ts.map +1 -0
- package/site-groups/types.js.map +1 -0
- package/site-groups/web.d.ts.map +1 -0
- package/site-groups/web.js.map +1 -0
- package/site-scripts/index.d.ts.map +1 -0
- package/site-scripts/index.js.map +1 -0
- package/site-scripts/list.d.ts.map +1 -0
- package/site-scripts/list.js.map +1 -0
- package/site-scripts/types.d.ts.map +1 -0
- package/site-scripts/types.js.map +1 -0
- package/site-scripts/web.d.ts.map +1 -0
- package/site-scripts/web.js.map +1 -0
- package/site-users/index.d.ts.map +1 -0
- package/site-users/index.js.map +1 -0
- package/site-users/types.d.ts.map +1 -0
- package/site-users/types.js.map +1 -0
- package/site-users/web.d.ts.map +1 -0
- package/site-users/web.js.map +1 -0
- package/sites/index.d.ts.map +1 -0
- package/sites/index.js.map +1 -0
- package/sites/types.d.ts.map +1 -0
- package/sites/types.js.map +1 -0
- package/social/index.d.ts.map +1 -0
- package/social/index.js.map +1 -0
- package/social/types.d.ts.map +1 -0
- package/social/types.js.map +1 -0
- package/spqueryable.d.ts +117 -0
- package/spqueryable.d.ts.map +1 -0
- package/spqueryable.js +207 -0
- package/spqueryable.js.map +1 -0
- package/sputilities/index.d.ts.map +1 -0
- package/sputilities/index.js.map +1 -0
- package/sputilities/types.d.ts.map +1 -0
- package/sputilities/types.js.map +1 -0
- package/subscriptions/index.d.ts.map +1 -0
- package/subscriptions/index.js.map +1 -0
- package/subscriptions/list.d.ts.map +1 -0
- package/subscriptions/list.js.map +1 -0
- package/subscriptions/types.d.ts.map +1 -0
- package/subscriptions/types.js.map +1 -0
- package/types.d.ts.map +1 -0
- package/types.js.map +1 -0
- package/user-custom-actions/index.d.ts.map +1 -0
- package/user-custom-actions/index.js.map +1 -0
- package/user-custom-actions/list.d.ts.map +1 -0
- package/user-custom-actions/list.js.map +1 -0
- package/user-custom-actions/site.d.ts.map +1 -0
- package/user-custom-actions/site.js.map +1 -0
- package/user-custom-actions/types.d.ts.map +1 -0
- package/user-custom-actions/types.js.map +1 -0
- package/user-custom-actions/web.d.ts.map +1 -0
- package/user-custom-actions/web.js.map +1 -0
- package/utils/encode-path-str.d.ts.map +1 -0
- package/utils/encode-path-str.js.map +1 -0
- package/utils/extract-web-url.d.ts.map +1 -0
- package/utils/extract-web-url.js.map +1 -0
- package/utils/file-names.d.ts.map +1 -0
- package/utils/file-names.js.map +1 -0
- package/utils/metadata.d.ts.map +1 -0
- package/utils/metadata.js.map +1 -0
- package/utils/odata-url-from.d.ts.map +1 -0
- package/utils/odata-url-from.js.map +1 -0
- package/utils/to-resource-path.d.ts.map +1 -0
- package/utils/to-resource-path.js.map +1 -0
- package/views/index.d.ts.map +1 -0
- package/views/index.js.map +1 -0
- package/views/list.d.ts.map +1 -0
- package/views/list.js.map +1 -0
- package/views/types.d.ts.map +1 -0
- package/views/types.js.map +1 -0
- package/webparts/file.d.ts.map +1 -0
- package/webparts/file.js.map +1 -0
- package/webparts/index.d.ts.map +1 -0
- package/webparts/index.js.map +1 -0
- package/webparts/types.d.ts.map +1 -0
- package/webparts/types.js.map +1 -0
- package/webs/index.d.ts.map +1 -0
- package/webs/index.js.map +1 -0
- package/webs/types.d.ts.map +1 -0
- package/webs/types.js.map +1 -0
- package/commonjs/appcatalog/index.d.ts.map +0 -1
- package/commonjs/appcatalog/index.js +0 -22
- package/commonjs/appcatalog/index.js.map +0 -1
- package/commonjs/appcatalog/types.d.ts.map +0 -1
- package/commonjs/appcatalog/types.js +0 -134
- package/commonjs/appcatalog/types.js.map +0 -1
- package/commonjs/appcatalog/web.d.ts.map +0 -1
- package/commonjs/appcatalog/web.js +0 -9
- package/commonjs/appcatalog/web.js.map +0 -1
- package/commonjs/attachments/index.d.ts.map +0 -1
- package/commonjs/attachments/index.js +0 -8
- package/commonjs/attachments/index.js.map +0 -1
- package/commonjs/attachments/item.d.ts.map +0 -1
- package/commonjs/attachments/item.js +0 -7
- package/commonjs/attachments/item.js.map +0 -1
- package/commonjs/attachments/types.d.ts.map +0 -1
- package/commonjs/attachments/types.js +0 -68
- package/commonjs/attachments/types.js.map +0 -1
- package/commonjs/batching.d.ts.map +0 -1
- package/commonjs/batching.js +0 -355
- package/commonjs/batching.js.map +0 -1
- package/commonjs/behaviors/defaults.d.ts.map +0 -1
- package/commonjs/behaviors/defaults.js +0 -29
- package/commonjs/behaviors/defaults.js.map +0 -1
- package/commonjs/behaviors/request-digest.d.ts.map +0 -1
- package/commonjs/behaviors/request-digest.js +0 -60
- package/commonjs/behaviors/request-digest.js.map +0 -1
- package/commonjs/behaviors/spbrowser.d.ts.map +0 -1
- package/commonjs/behaviors/spbrowser.js +0 -27
- package/commonjs/behaviors/spbrowser.js.map +0 -1
- package/commonjs/behaviors/spfx.d.ts.map +0 -1
- package/commonjs/behaviors/spfx.js +0 -62
- package/commonjs/behaviors/spfx.js.map +0 -1
- package/commonjs/behaviors/telemetry.d.ts.map +0 -1
- package/commonjs/behaviors/telemetry.js +0 -27
- package/commonjs/behaviors/telemetry.js.map +0 -1
- package/commonjs/clientside-pages/funcs.d.ts.map +0 -1
- package/commonjs/clientside-pages/funcs.js +0 -31
- package/commonjs/clientside-pages/funcs.js.map +0 -1
- package/commonjs/clientside-pages/index.d.ts.map +0 -1
- package/commonjs/clientside-pages/index.js +0 -14
- package/commonjs/clientside-pages/index.js.map +0 -1
- package/commonjs/clientside-pages/types.d.ts.map +0 -1
- package/commonjs/clientside-pages/types.js +0 -1155
- package/commonjs/clientside-pages/types.js.map +0 -1
- package/commonjs/clientside-pages/web.d.ts.map +0 -1
- package/commonjs/clientside-pages/web.js +0 -33
- package/commonjs/clientside-pages/web.js.map +0 -1
- package/commonjs/column-defaults/folder.d.ts.map +0 -1
- package/commonjs/column-defaults/folder.js +0 -50
- package/commonjs/column-defaults/folder.js.map +0 -1
- package/commonjs/column-defaults/index.d.ts.map +0 -1
- package/commonjs/column-defaults/index.js +0 -5
- package/commonjs/column-defaults/index.js.map +0 -1
- package/commonjs/column-defaults/list.d.ts.map +0 -1
- package/commonjs/column-defaults/list.js +0 -171
- package/commonjs/column-defaults/list.js.map +0 -1
- package/commonjs/column-defaults/types.d.ts.map +0 -1
- package/commonjs/column-defaults/types.js +0 -3
- package/commonjs/column-defaults/types.js.map +0 -1
- package/commonjs/comments/clientside-page.d.ts.map +0 -1
- package/commonjs/comments/clientside-page.js +0 -51
- package/commonjs/comments/clientside-page.js.map +0 -1
- package/commonjs/comments/index.d.ts.map +0 -1
- package/commonjs/comments/index.js +0 -9
- package/commonjs/comments/index.js.map +0 -1
- package/commonjs/comments/item.d.ts.map +0 -1
- package/commonjs/comments/item.js +0 -37
- package/commonjs/comments/item.js.map +0 -1
- package/commonjs/comments/types.d.ts.map +0 -1
- package/commonjs/comments/types.js +0 -89
- package/commonjs/comments/types.js.map +0 -1
- package/commonjs/content-types/index.d.ts.map +0 -1
- package/commonjs/content-types/index.js +0 -12
- package/commonjs/content-types/index.js.map +0 -1
- package/commonjs/content-types/item.d.ts.map +0 -1
- package/commonjs/content-types/item.js +0 -7
- package/commonjs/content-types/item.js.map +0 -1
- package/commonjs/content-types/list.d.ts.map +0 -1
- package/commonjs/content-types/list.js +0 -7
- package/commonjs/content-types/list.js.map +0 -1
- package/commonjs/content-types/types.d.ts.map +0 -1
- package/commonjs/content-types/types.js +0 -115
- package/commonjs/content-types/types.js.map +0 -1
- package/commonjs/content-types/web.d.ts.map +0 -1
- package/commonjs/content-types/web.js +0 -7
- package/commonjs/content-types/web.js.map +0 -1
- package/commonjs/context-info/index.d.ts.map +0 -1
- package/commonjs/context-info/index.js +0 -17
- package/commonjs/context-info/index.js.map +0 -1
- package/commonjs/decorators.d.ts.map +0 -1
- package/commonjs/decorators.js +0 -20
- package/commonjs/decorators.js.map +0 -1
- package/commonjs/favorites/index.d.ts.map +0 -1
- package/commonjs/favorites/index.js +0 -15
- package/commonjs/favorites/index.js.map +0 -1
- package/commonjs/favorites/types.d.ts.map +0 -1
- package/commonjs/favorites/types.js +0 -115
- package/commonjs/favorites/types.js.map +0 -1
- package/commonjs/features/index.d.ts.map +0 -1
- package/commonjs/features/index.js +0 -9
- package/commonjs/features/index.js.map +0 -1
- package/commonjs/features/site.d.ts.map +0 -1
- package/commonjs/features/site.js +0 -7
- package/commonjs/features/site.js.map +0 -1
- package/commonjs/features/types.d.ts.map +0 -1
- package/commonjs/features/types.js +0 -56
- package/commonjs/features/types.js.map +0 -1
- package/commonjs/features/web.d.ts.map +0 -1
- package/commonjs/features/web.js +0 -7
- package/commonjs/features/web.js.map +0 -1
- package/commonjs/fi.d.ts.map +0 -1
- package/commonjs/fi.js +0 -40
- package/commonjs/fi.js.map +0 -1
- package/commonjs/fields/index.d.ts.map +0 -1
- package/commonjs/fields/index.js +0 -17
- package/commonjs/fields/index.js.map +0 -1
- package/commonjs/fields/list.d.ts.map +0 -1
- package/commonjs/fields/list.js +0 -7
- package/commonjs/fields/list.js.map +0 -1
- package/commonjs/fields/types.d.ts.map +0 -1
- package/commonjs/fields/types.js +0 -459
- package/commonjs/fields/types.js.map +0 -1
- package/commonjs/fields/web.d.ts.map +0 -1
- package/commonjs/fields/web.js +0 -8
- package/commonjs/fields/web.js.map +0 -1
- package/commonjs/files/folder.d.ts.map +0 -1
- package/commonjs/files/folder.js +0 -7
- package/commonjs/files/folder.js.map +0 -1
- package/commonjs/files/index.d.ts.map +0 -1
- package/commonjs/files/index.js +0 -18
- package/commonjs/files/index.js.map +0 -1
- package/commonjs/files/item.d.ts.map +0 -1
- package/commonjs/files/item.js +0 -7
- package/commonjs/files/item.js.map +0 -1
- package/commonjs/files/readable-file.d.ts.map +0 -1
- package/commonjs/files/readable-file.js +0 -38
- package/commonjs/files/readable-file.js.map +0 -1
- package/commonjs/files/types.d.ts.map +0 -1
- package/commonjs/files/types.js +0 -592
- package/commonjs/files/types.js.map +0 -1
- package/commonjs/files/web.d.ts.map +0 -1
- package/commonjs/files/web.js +0 -15
- package/commonjs/files/web.js.map +0 -1
- package/commonjs/folders/index.d.ts.map +0 -1
- package/commonjs/folders/index.js +0 -13
- package/commonjs/folders/index.js.map +0 -1
- package/commonjs/folders/item.d.ts.map +0 -1
- package/commonjs/folders/item.js +0 -7
- package/commonjs/folders/item.js.map +0 -1
- package/commonjs/folders/list.d.ts.map +0 -1
- package/commonjs/folders/list.js +0 -7
- package/commonjs/folders/list.js.map +0 -1
- package/commonjs/folders/types.d.ts.map +0 -1
- package/commonjs/folders/types.js +0 -253
- package/commonjs/folders/types.js.map +0 -1
- package/commonjs/folders/web.d.ts.map +0 -1
- package/commonjs/folders/web.js +0 -14
- package/commonjs/folders/web.js.map +0 -1
- package/commonjs/forms/index.d.ts.map +0 -1
- package/commonjs/forms/index.js +0 -8
- package/commonjs/forms/index.js.map +0 -1
- package/commonjs/forms/list.d.ts.map +0 -1
- package/commonjs/forms/list.js +0 -7
- package/commonjs/forms/list.js.map +0 -1
- package/commonjs/forms/types.d.ts.map +0 -1
- package/commonjs/forms/types.js +0 -34
- package/commonjs/forms/types.js.map +0 -1
- package/commonjs/groupsitemanager/index.d.ts.map +0 -1
- package/commonjs/groupsitemanager/index.js +0 -14
- package/commonjs/groupsitemanager/index.js.map +0 -1
- package/commonjs/groupsitemanager/types.d.ts.map +0 -1
- package/commonjs/groupsitemanager/types.js +0 -325
- package/commonjs/groupsitemanager/types.js.map +0 -1
- package/commonjs/hubsites/index.d.ts.map +0 -1
- package/commonjs/hubsites/index.js +0 -18
- package/commonjs/hubsites/index.js.map +0 -1
- package/commonjs/hubsites/site.d.ts.map +0 -1
- package/commonjs/hubsites/site.js +0 -14
- package/commonjs/hubsites/site.js.map +0 -1
- package/commonjs/hubsites/types.d.ts.map +0 -1
- package/commonjs/hubsites/types.js +0 -34
- package/commonjs/hubsites/types.js.map +0 -1
- package/commonjs/hubsites/web.d.ts.map +0 -1
- package/commonjs/hubsites/web.js +0 -15
- package/commonjs/hubsites/web.js.map +0 -1
- package/commonjs/index.d.ts.map +0 -1
- package/commonjs/index.js +0 -21
- package/commonjs/index.js.map +0 -1
- package/commonjs/items/index.d.ts.map +0 -1
- package/commonjs/items/index.js +0 -10
- package/commonjs/items/index.js.map +0 -1
- package/commonjs/items/list.d.ts.map +0 -1
- package/commonjs/items/list.js +0 -7
- package/commonjs/items/list.js.map +0 -1
- package/commonjs/items/types.d.ts.map +0 -1
- package/commonjs/items/types.js +0 -295
- package/commonjs/items/types.js.map +0 -1
- package/commonjs/lists/index.d.ts.map +0 -1
- package/commonjs/lists/index.js +0 -10
- package/commonjs/lists/index.js.map +0 -1
- package/commonjs/lists/types.d.ts.map +0 -1
- package/commonjs/lists/types.js +0 -357
- package/commonjs/lists/types.js.map +0 -1
- package/commonjs/lists/web.d.ts.map +0 -1
- package/commonjs/lists/web.js +0 -20
- package/commonjs/lists/web.js.map +0 -1
- package/commonjs/navigation/index.d.ts.map +0 -1
- package/commonjs/navigation/index.js +0 -19
- package/commonjs/navigation/index.js.map +0 -1
- package/commonjs/navigation/types.d.ts.map +0 -1
- package/commonjs/navigation/types.js +0 -153
- package/commonjs/navigation/types.js.map +0 -1
- package/commonjs/navigation/web.d.ts.map +0 -1
- package/commonjs/navigation/web.js +0 -7
- package/commonjs/navigation/web.js.map +0 -1
- package/commonjs/package.json +0 -1
- package/commonjs/presets/all.d.ts.map +0 -1
- package/commonjs/presets/all.js +0 -76
- package/commonjs/presets/all.js.map +0 -1
- package/commonjs/profiles/index.d.ts.map +0 -1
- package/commonjs/profiles/index.js +0 -16
- package/commonjs/profiles/index.js.map +0 -1
- package/commonjs/profiles/types.d.ts.map +0 -1
- package/commonjs/profiles/types.js +0 -362
- package/commonjs/profiles/types.js.map +0 -1
- package/commonjs/publishing-sitepageservice/index.d.ts.map +0 -1
- package/commonjs/publishing-sitepageservice/index.js +0 -13
- package/commonjs/publishing-sitepageservice/index.js.map +0 -1
- package/commonjs/publishing-sitepageservice/types.d.ts.map +0 -1
- package/commonjs/publishing-sitepageservice/types.js +0 -20
- package/commonjs/publishing-sitepageservice/types.js.map +0 -1
- package/commonjs/recycle-bin/index.d.ts.map +0 -1
- package/commonjs/recycle-bin/index.js +0 -12
- package/commonjs/recycle-bin/index.js.map +0 -1
- package/commonjs/recycle-bin/types.d.ts.map +0 -1
- package/commonjs/recycle-bin/types.js +0 -83
- package/commonjs/recycle-bin/types.js.map +0 -1
- package/commonjs/regional-settings/content-type.d.ts.map +0 -1
- package/commonjs/regional-settings/content-type.js +0 -7
- package/commonjs/regional-settings/content-type.js.map +0 -1
- package/commonjs/regional-settings/field.d.ts.map +0 -1
- package/commonjs/regional-settings/field.js +0 -7
- package/commonjs/regional-settings/field.js.map +0 -1
- package/commonjs/regional-settings/funcs.d.ts.map +0 -1
- package/commonjs/regional-settings/funcs.js +0 -12
- package/commonjs/regional-settings/funcs.js.map +0 -1
- package/commonjs/regional-settings/index.d.ts.map +0 -1
- package/commonjs/regional-settings/index.js +0 -13
- package/commonjs/regional-settings/index.js.map +0 -1
- package/commonjs/regional-settings/list.d.ts.map +0 -1
- package/commonjs/regional-settings/list.js +0 -7
- package/commonjs/regional-settings/list.js.map +0 -1
- package/commonjs/regional-settings/types.d.ts.map +0 -1
- package/commonjs/regional-settings/types.js +0 -88
- package/commonjs/regional-settings/types.js.map +0 -1
- package/commonjs/regional-settings/user-custom-actions.d.ts.map +0 -1
- package/commonjs/regional-settings/user-custom-actions.js +0 -7
- package/commonjs/regional-settings/user-custom-actions.js.map +0 -1
- package/commonjs/regional-settings/web.d.ts.map +0 -1
- package/commonjs/regional-settings/web.js +0 -10
- package/commonjs/regional-settings/web.js.map +0 -1
- package/commonjs/related-items/index.d.ts.map +0 -1
- package/commonjs/related-items/index.js +0 -7
- package/commonjs/related-items/index.js.map +0 -1
- package/commonjs/related-items/types.d.ts.map +0 -1
- package/commonjs/related-items/types.js +0 -84
- package/commonjs/related-items/types.js.map +0 -1
- package/commonjs/related-items/web.d.ts.map +0 -1
- package/commonjs/related-items/web.js +0 -12
- package/commonjs/related-items/web.js.map +0 -1
- package/commonjs/search/index.d.ts.map +0 -1
- package/commonjs/search/index.js +0 -21
- package/commonjs/search/index.js.map +0 -1
- package/commonjs/search/query.d.ts.map +0 -1
- package/commonjs/search/query.js +0 -220
- package/commonjs/search/query.js.map +0 -1
- package/commonjs/search/suggest.d.ts.map +0 -1
- package/commonjs/search/suggest.js +0 -44
- package/commonjs/search/suggest.js.map +0 -1
- package/commonjs/search/types.d.ts.map +0 -1
- package/commonjs/search/types.js +0 -58
- package/commonjs/search/types.js.map +0 -1
- package/commonjs/security/funcs.d.ts.map +0 -1
- package/commonjs/security/funcs.js +0 -91
- package/commonjs/security/funcs.js.map +0 -1
- package/commonjs/security/index.d.ts.map +0 -1
- package/commonjs/security/index.js +0 -13
- package/commonjs/security/index.js.map +0 -1
- package/commonjs/security/item.d.ts.map +0 -1
- package/commonjs/security/item.js +0 -17
- package/commonjs/security/item.js.map +0 -1
- package/commonjs/security/list.d.ts.map +0 -1
- package/commonjs/security/list.js +0 -17
- package/commonjs/security/list.js.map +0 -1
- package/commonjs/security/types.d.ts.map +0 -1
- package/commonjs/security/types.js +0 -336
- package/commonjs/security/types.js.map +0 -1
- package/commonjs/security/web.d.ts.map +0 -1
- package/commonjs/security/web.js +0 -18
- package/commonjs/security/web.js.map +0 -1
- package/commonjs/sharing/file.d.ts.map +0 -1
- package/commonjs/sharing/file.js +0 -40
- package/commonjs/sharing/file.js.map +0 -1
- package/commonjs/sharing/folder.d.ts.map +0 -1
- package/commonjs/sharing/folder.js +0 -38
- package/commonjs/sharing/folder.js.map +0 -1
- package/commonjs/sharing/funcs.d.ts.map +0 -1
- package/commonjs/sharing/funcs.js +0 -211
- package/commonjs/sharing/funcs.js.map +0 -1
- package/commonjs/sharing/index.d.ts.map +0 -1
- package/commonjs/sharing/index.js +0 -15
- package/commonjs/sharing/index.js.map +0 -1
- package/commonjs/sharing/item.d.ts.map +0 -1
- package/commonjs/sharing/item.js +0 -16
- package/commonjs/sharing/item.js.map +0 -1
- package/commonjs/sharing/types.d.ts.map +0 -1
- package/commonjs/sharing/types.js +0 -117
- package/commonjs/sharing/types.js.map +0 -1
- package/commonjs/sharing/web.d.ts.map +0 -1
- package/commonjs/sharing/web.js +0 -59
- package/commonjs/sharing/web.js.map +0 -1
- package/commonjs/site-designs/index.d.ts.map +0 -1
- package/commonjs/site-designs/index.js +0 -16
- package/commonjs/site-designs/index.js.map +0 -1
- package/commonjs/site-designs/types.d.ts.map +0 -1
- package/commonjs/site-designs/types.js +0 -179
- package/commonjs/site-designs/types.js.map +0 -1
- package/commonjs/site-designs/web.d.ts.map +0 -1
- package/commonjs/site-designs/web.js +0 -14
- package/commonjs/site-designs/web.js.map +0 -1
- package/commonjs/site-groups/index.d.ts.map +0 -1
- package/commonjs/site-groups/index.js +0 -8
- package/commonjs/site-groups/index.js.map +0 -1
- package/commonjs/site-groups/types.d.ts.map +0 -1
- package/commonjs/site-groups/types.js +0 -88
- package/commonjs/site-groups/types.js.map +0 -1
- package/commonjs/site-groups/web.d.ts.map +0 -1
- package/commonjs/site-groups/web.js +0 -20
- package/commonjs/site-groups/web.js.map +0 -1
- package/commonjs/site-scripts/index.d.ts.map +0 -1
- package/commonjs/site-scripts/index.js +0 -17
- package/commonjs/site-scripts/index.js.map +0 -1
- package/commonjs/site-scripts/list.d.ts.map +0 -1
- package/commonjs/site-scripts/list.js +0 -15
- package/commonjs/site-scripts/list.js.map +0 -1
- package/commonjs/site-scripts/types.d.ts.map +0 -1
- package/commonjs/site-scripts/types.js +0 -112
- package/commonjs/site-scripts/types.js.map +0 -1
- package/commonjs/site-scripts/web.d.ts.map +0 -1
- package/commonjs/site-scripts/web.js +0 -10
- package/commonjs/site-scripts/web.js.map +0 -1
- package/commonjs/site-users/index.d.ts.map +0 -1
- package/commonjs/site-users/index.js +0 -8
- package/commonjs/site-users/index.js.map +0 -1
- package/commonjs/site-users/types.d.ts.map +0 -1
- package/commonjs/site-users/types.js +0 -100
- package/commonjs/site-users/types.js.map +0 -1
- package/commonjs/site-users/web.d.ts.map +0 -1
- package/commonjs/site-users/web.js +0 -20
- package/commonjs/site-users/web.js.map +0 -1
- package/commonjs/sites/index.d.ts.map +0 -1
- package/commonjs/sites/index.js +0 -17
- package/commonjs/sites/index.js.map +0 -1
- package/commonjs/sites/types.d.ts.map +0 -1
- package/commonjs/sites/types.js +0 -261
- package/commonjs/sites/types.js.map +0 -1
- package/commonjs/social/index.d.ts.map +0 -1
- package/commonjs/social/index.js +0 -20
- package/commonjs/social/index.js.map +0 -1
- package/commonjs/social/types.d.ts.map +0 -1
- package/commonjs/social/types.js +0 -210
- package/commonjs/social/types.js.map +0 -1
- package/commonjs/spqueryable.d.ts +0 -117
- package/commonjs/spqueryable.d.ts.map +0 -1
- package/commonjs/spqueryable.js +0 -219
- package/commonjs/spqueryable.js.map +0 -1
- package/commonjs/sputilities/index.d.ts.map +0 -1
- package/commonjs/sputilities/index.js +0 -15
- package/commonjs/sputilities/index.js.map +0 -1
- package/commonjs/sputilities/types.d.ts.map +0 -1
- package/commonjs/sputilities/types.js +0 -69
- package/commonjs/sputilities/types.js.map +0 -1
- package/commonjs/subscriptions/index.d.ts.map +0 -1
- package/commonjs/subscriptions/index.js +0 -8
- package/commonjs/subscriptions/index.js.map +0 -1
- package/commonjs/subscriptions/list.d.ts.map +0 -1
- package/commonjs/subscriptions/list.js +0 -7
- package/commonjs/subscriptions/list.js.map +0 -1
- package/commonjs/subscriptions/types.d.ts.map +0 -1
- package/commonjs/subscriptions/types.js +0 -74
- package/commonjs/subscriptions/types.js.map +0 -1
- package/commonjs/types.d.ts.map +0 -1
- package/commonjs/types.js +0 -84
- package/commonjs/types.js.map +0 -1
- package/commonjs/user-custom-actions/index.d.ts.map +0 -1
- package/commonjs/user-custom-actions/index.js +0 -12
- package/commonjs/user-custom-actions/index.js.map +0 -1
- package/commonjs/user-custom-actions/list.d.ts.map +0 -1
- package/commonjs/user-custom-actions/list.js +0 -7
- package/commonjs/user-custom-actions/list.js.map +0 -1
- package/commonjs/user-custom-actions/site.d.ts.map +0 -1
- package/commonjs/user-custom-actions/site.js +0 -7
- package/commonjs/user-custom-actions/site.js.map +0 -1
- package/commonjs/user-custom-actions/types.d.ts.map +0 -1
- package/commonjs/user-custom-actions/types.js +0 -76
- package/commonjs/user-custom-actions/types.js.map +0 -1
- package/commonjs/user-custom-actions/web.d.ts.map +0 -1
- package/commonjs/user-custom-actions/web.js +0 -7
- package/commonjs/user-custom-actions/web.js.map +0 -1
- package/commonjs/utils/encode-path-str.d.ts.map +0 -1
- package/commonjs/utils/encode-path-str.js +0 -29
- package/commonjs/utils/encode-path-str.js.map +0 -1
- package/commonjs/utils/extract-web-url.d.ts.map +0 -1
- package/commonjs/utils/extract-web-url.js +0 -20
- package/commonjs/utils/extract-web-url.js.map +0 -1
- package/commonjs/utils/file-names.d.ts.map +0 -1
- package/commonjs/utils/file-names.js +0 -41
- package/commonjs/utils/file-names.js.map +0 -1
- package/commonjs/utils/metadata.d.ts.map +0 -1
- package/commonjs/utils/metadata.js +0 -10
- package/commonjs/utils/metadata.js.map +0 -1
- package/commonjs/utils/odata-url-from.d.ts.map +0 -1
- package/commonjs/utils/odata-url-from.js +0 -41
- package/commonjs/utils/odata-url-from.js.map +0 -1
- package/commonjs/utils/to-resource-path.d.ts.map +0 -1
- package/commonjs/utils/to-resource-path.js +0 -10
- package/commonjs/utils/to-resource-path.js.map +0 -1
- package/commonjs/views/index.d.ts.map +0 -1
- package/commonjs/views/index.js +0 -10
- package/commonjs/views/index.js.map +0 -1
- package/commonjs/views/list.d.ts.map +0 -1
- package/commonjs/views/list.js +0 -11
- package/commonjs/views/list.js.map +0 -1
- package/commonjs/views/types.d.ts.map +0 -1
- package/commonjs/views/types.js +0 -140
- package/commonjs/views/types.js.map +0 -1
- package/commonjs/webparts/file.d.ts.map +0 -1
- package/commonjs/webparts/file.js +0 -8
- package/commonjs/webparts/file.js.map +0 -1
- package/commonjs/webparts/index.d.ts.map +0 -1
- package/commonjs/webparts/index.js +0 -10
- package/commonjs/webparts/index.js.map +0 -1
- package/commonjs/webparts/types.d.ts.map +0 -1
- package/commonjs/webparts/types.js +0 -92
- package/commonjs/webparts/types.js.map +0 -1
- package/commonjs/webs/index.d.ts.map +0 -1
- package/commonjs/webs/index.js +0 -16
- package/commonjs/webs/index.js.map +0 -1
- package/commonjs/webs/types.d.ts.map +0 -1
- package/commonjs/webs/types.js +0 -227
- package/commonjs/webs/types.js.map +0 -1
- package/esm/appcatalog/index.d.ts +0 -11
- package/esm/appcatalog/index.d.ts.map +0 -1
- package/esm/appcatalog/index.js.map +0 -1
- package/esm/appcatalog/types.d.ts +0 -79
- package/esm/appcatalog/types.d.ts.map +0 -1
- package/esm/appcatalog/types.js.map +0 -1
- package/esm/appcatalog/web.d.ts +0 -13
- package/esm/appcatalog/web.d.ts.map +0 -1
- package/esm/appcatalog/web.js.map +0 -1
- package/esm/attachments/index.d.ts +0 -3
- package/esm/attachments/index.d.ts.map +0 -1
- package/esm/attachments/index.js.map +0 -1
- package/esm/attachments/item.d.ts +0 -13
- package/esm/attachments/item.d.ts.map +0 -1
- package/esm/attachments/item.js.map +0 -1
- package/esm/attachments/types.d.ts +0 -57
- package/esm/attachments/types.d.ts.map +0 -1
- package/esm/attachments/types.js.map +0 -1
- package/esm/batching.d.ts +0 -45
- package/esm/batching.d.ts.map +0 -1
- package/esm/batching.js.map +0 -1
- package/esm/behaviors/defaults.d.ts +0 -5
- package/esm/behaviors/defaults.d.ts.map +0 -1
- package/esm/behaviors/defaults.js.map +0 -1
- package/esm/behaviors/request-digest.d.ts +0 -9
- package/esm/behaviors/request-digest.d.ts.map +0 -1
- package/esm/behaviors/request-digest.js.map +0 -1
- package/esm/behaviors/spbrowser.d.ts +0 -7
- package/esm/behaviors/spbrowser.d.ts.map +0 -1
- package/esm/behaviors/spbrowser.js.map +0 -1
- package/esm/behaviors/spfx.d.ts +0 -21
- package/esm/behaviors/spfx.d.ts.map +0 -1
- package/esm/behaviors/spfx.js.map +0 -1
- package/esm/behaviors/telemetry.d.ts +0 -4
- package/esm/behaviors/telemetry.d.ts.map +0 -1
- package/esm/behaviors/telemetry.js.map +0 -1
- package/esm/clientside-pages/funcs.d.ts +0 -23
- package/esm/clientside-pages/funcs.d.ts.map +0 -1
- package/esm/clientside-pages/funcs.js.map +0 -1
- package/esm/clientside-pages/index.d.ts +0 -3
- package/esm/clientside-pages/index.d.ts.map +0 -1
- package/esm/clientside-pages/index.js.map +0 -1
- package/esm/clientside-pages/types.d.ts +0 -495
- package/esm/clientside-pages/types.d.ts.map +0 -1
- package/esm/clientside-pages/types.js.map +0 -1
- package/esm/clientside-pages/web.d.ts +0 -42
- package/esm/clientside-pages/web.d.ts.map +0 -1
- package/esm/clientside-pages/web.js.map +0 -1
- package/esm/column-defaults/folder.d.ts +0 -28
- package/esm/column-defaults/folder.d.ts.map +0 -1
- package/esm/column-defaults/folder.js.map +0 -1
- package/esm/column-defaults/index.d.ts +0 -4
- package/esm/column-defaults/index.d.ts.map +0 -1
- package/esm/column-defaults/index.js.map +0 -1
- package/esm/column-defaults/list.d.ts +0 -20
- package/esm/column-defaults/list.d.ts.map +0 -1
- package/esm/column-defaults/list.js.map +0 -1
- package/esm/column-defaults/types.d.ts +0 -22
- package/esm/column-defaults/types.d.ts.map +0 -1
- package/esm/column-defaults/types.js.map +0 -1
- package/esm/comments/clientside-page.d.ts +0 -58
- package/esm/comments/clientside-page.d.ts.map +0 -1
- package/esm/comments/clientside-page.js.map +0 -1
- package/esm/comments/index.d.ts +0 -3
- package/esm/comments/index.d.ts.map +0 -1
- package/esm/comments/index.js.map +0 -1
- package/esm/comments/item.d.ts +0 -37
- package/esm/comments/item.d.ts.map +0 -1
- package/esm/comments/item.js.map +0 -1
- package/esm/comments/types.d.ts +0 -111
- package/esm/comments/types.d.ts.map +0 -1
- package/esm/comments/types.js.map +0 -1
- package/esm/content-types/index.d.ts +0 -5
- package/esm/content-types/index.d.ts.map +0 -1
- package/esm/content-types/index.js.map +0 -1
- package/esm/content-types/item.d.ts +0 -13
- package/esm/content-types/item.d.ts.map +0 -1
- package/esm/content-types/item.js.map +0 -1
- package/esm/content-types/list.d.ts +0 -13
- package/esm/content-types/list.d.ts.map +0 -1
- package/esm/content-types/list.js.map +0 -1
- package/esm/content-types/types.d.ts +0 -120
- package/esm/content-types/types.d.ts.map +0 -1
- package/esm/content-types/types.js.map +0 -1
- package/esm/content-types/web.d.ts +0 -13
- package/esm/content-types/web.d.ts.map +0 -1
- package/esm/content-types/web.js.map +0 -1
- package/esm/context-info/index.d.ts +0 -22
- package/esm/context-info/index.d.ts.map +0 -1
- package/esm/context-info/index.js.map +0 -1
- package/esm/decorators.d.ts +0 -9
- package/esm/decorators.d.ts.map +0 -1
- package/esm/decorators.js.map +0 -1
- package/esm/favorites/index.d.ts +0 -11
- package/esm/favorites/index.d.ts.map +0 -1
- package/esm/favorites/index.js.map +0 -1
- package/esm/favorites/types.d.ts +0 -113
- package/esm/favorites/types.d.ts.map +0 -1
- package/esm/favorites/types.js.map +0 -1
- package/esm/features/index.d.ts +0 -4
- package/esm/features/index.d.ts.map +0 -1
- package/esm/features/index.js.map +0 -1
- package/esm/features/site.d.ts +0 -13
- package/esm/features/site.d.ts.map +0 -1
- package/esm/features/site.js.map +0 -1
- package/esm/features/types.d.ts +0 -42
- package/esm/features/types.d.ts.map +0 -1
- package/esm/features/types.js.map +0 -1
- package/esm/features/web.d.ts +0 -13
- package/esm/features/web.d.ts.map +0 -1
- package/esm/features/web.js.map +0 -1
- package/esm/fi.d.ts +0 -25
- package/esm/fi.d.ts.map +0 -1
- package/esm/fi.js.map +0 -1
- package/esm/fields/index.d.ts +0 -4
- package/esm/fields/index.d.ts.map +0 -1
- package/esm/fields/index.js.map +0 -1
- package/esm/fields/list.d.ts +0 -13
- package/esm/fields/list.d.ts.map +0 -1
- package/esm/fields/list.js.map +0 -1
- package/esm/fields/types.d.ts +0 -402
- package/esm/fields/types.d.ts.map +0 -1
- package/esm/fields/types.js.map +0 -1
- package/esm/fields/web.d.ts +0 -18
- package/esm/fields/web.d.ts.map +0 -1
- package/esm/fields/web.js.map +0 -1
- package/esm/files/folder.d.ts +0 -13
- package/esm/files/folder.d.ts.map +0 -1
- package/esm/files/folder.js.map +0 -1
- package/esm/files/index.d.ts +0 -5
- package/esm/files/index.d.ts.map +0 -1
- package/esm/files/index.js.map +0 -1
- package/esm/files/item.d.ts +0 -13
- package/esm/files/item.d.ts.map +0 -1
- package/esm/files/item.js.map +0 -1
- package/esm/files/readable-file.d.ts +0 -23
- package/esm/files/readable-file.d.ts.map +0 -1
- package/esm/files/readable-file.js.map +0 -1
- package/esm/files/types.d.ts +0 -455
- package/esm/files/types.d.ts.map +0 -1
- package/esm/files/types.js.map +0 -1
- package/esm/files/web.d.ts +0 -29
- package/esm/files/web.d.ts.map +0 -1
- package/esm/files/web.js.map +0 -1
- package/esm/folders/index.d.ts +0 -5
- package/esm/folders/index.d.ts.map +0 -1
- package/esm/folders/index.js.map +0 -1
- package/esm/folders/item.d.ts +0 -10
- package/esm/folders/item.d.ts.map +0 -1
- package/esm/folders/item.js.map +0 -1
- package/esm/folders/list.d.ts +0 -13
- package/esm/folders/list.d.ts.map +0 -1
- package/esm/folders/list.js.map +0 -1
- package/esm/folders/types.d.ts +0 -237
- package/esm/folders/types.d.ts.map +0 -1
- package/esm/folders/types.js.map +0 -1
- package/esm/folders/web.d.ts +0 -33
- package/esm/folders/web.d.ts.map +0 -1
- package/esm/folders/web.js.map +0 -1
- package/esm/forms/index.d.ts +0 -3
- package/esm/forms/index.d.ts.map +0 -1
- package/esm/forms/index.js.map +0 -1
- package/esm/forms/list.d.ts +0 -10
- package/esm/forms/list.d.ts.map +0 -1
- package/esm/forms/list.js.map +0 -1
- package/esm/forms/types.d.ts +0 -36
- package/esm/forms/types.d.ts.map +0 -1
- package/esm/forms/types.js.map +0 -1
- package/esm/groupsitemanager/index.d.ts +0 -8
- package/esm/groupsitemanager/index.d.ts.map +0 -1
- package/esm/groupsitemanager/index.js.map +0 -1
- package/esm/groupsitemanager/types.d.ts +0 -312
- package/esm/groupsitemanager/types.d.ts.map +0 -1
- package/esm/groupsitemanager/types.js.map +0 -1
- package/esm/hubsites/index.d.ts +0 -13
- package/esm/hubsites/index.d.ts.map +0 -1
- package/esm/hubsites/index.js.map +0 -1
- package/esm/hubsites/site.d.ts +0 -27
- package/esm/hubsites/site.d.ts.map +0 -1
- package/esm/hubsites/site.js.map +0 -1
- package/esm/hubsites/types.d.ts +0 -56
- package/esm/hubsites/types.d.ts.map +0 -1
- package/esm/hubsites/types.js.map +0 -1
- package/esm/hubsites/web.d.ts +0 -22
- package/esm/hubsites/web.d.ts.map +0 -1
- package/esm/hubsites/web.js.map +0 -1
- package/esm/index.d.ts +0 -15
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/items/index.d.ts +0 -3
- package/esm/items/index.d.ts.map +0 -1
- package/esm/items/index.js.map +0 -1
- package/esm/items/list.d.ts +0 -10
- package/esm/items/list.d.ts.map +0 -1
- package/esm/items/list.js.map +0 -1
- package/esm/items/types.d.ts +0 -193
- package/esm/items/types.d.ts.map +0 -1
- package/esm/items/types.js.map +0 -1
- package/esm/lists/index.d.ts +0 -3
- package/esm/lists/index.d.ts.map +0 -1
- package/esm/lists/index.js.map +0 -1
- package/esm/lists/types.d.ts +0 -634
- package/esm/lists/types.d.ts.map +0 -1
- package/esm/lists/types.js.map +0 -1
- package/esm/lists/web.d.ts +0 -44
- package/esm/lists/web.d.ts.map +0 -1
- package/esm/lists/web.js.map +0 -1
- package/esm/navigation/index.d.ts +0 -9
- package/esm/navigation/index.d.ts.map +0 -1
- package/esm/navigation/index.js.map +0 -1
- package/esm/navigation/types.d.ts +0 -155
- package/esm/navigation/types.d.ts.map +0 -1
- package/esm/navigation/types.js.map +0 -1
- package/esm/navigation/web.d.ts +0 -14
- package/esm/navigation/web.d.ts.map +0 -1
- package/esm/navigation/web.js.map +0 -1
- package/esm/package.json +0 -1
- package/esm/presets/all.d.ts +0 -73
- package/esm/presets/all.d.ts.map +0 -1
- package/esm/presets/all.js.map +0 -1
- package/esm/profiles/index.d.ts +0 -8
- package/esm/profiles/index.d.ts.map +0 -1
- package/esm/profiles/index.js.map +0 -1
- package/esm/profiles/types.d.ts +0 -358
- package/esm/profiles/types.d.ts.map +0 -1
- package/esm/profiles/types.js.map +0 -1
- package/esm/publishing-sitepageservice/index.d.ts +0 -11
- package/esm/publishing-sitepageservice/index.d.ts.map +0 -1
- package/esm/publishing-sitepageservice/index.js.map +0 -1
- package/esm/publishing-sitepageservice/types.d.ts +0 -12
- package/esm/publishing-sitepageservice/types.d.ts.map +0 -1
- package/esm/publishing-sitepageservice/types.js.map +0 -1
- package/esm/recycle-bin/index.d.ts +0 -25
- package/esm/recycle-bin/index.d.ts.map +0 -1
- package/esm/recycle-bin/index.js.map +0 -1
- package/esm/recycle-bin/types.d.ts +0 -82
- package/esm/recycle-bin/types.d.ts.map +0 -1
- package/esm/recycle-bin/types.js.map +0 -1
- package/esm/regional-settings/content-type.d.ts +0 -8
- package/esm/regional-settings/content-type.d.ts.map +0 -1
- package/esm/regional-settings/content-type.js.map +0 -1
- package/esm/regional-settings/field.d.ts +0 -8
- package/esm/regional-settings/field.d.ts.map +0 -1
- package/esm/regional-settings/field.js.map +0 -1
- package/esm/regional-settings/funcs.d.ts +0 -3
- package/esm/regional-settings/funcs.d.ts.map +0 -1
- package/esm/regional-settings/funcs.js.map +0 -1
- package/esm/regional-settings/index.d.ts +0 -7
- package/esm/regional-settings/index.d.ts.map +0 -1
- package/esm/regional-settings/index.js.map +0 -1
- package/esm/regional-settings/list.d.ts +0 -8
- package/esm/regional-settings/list.d.ts.map +0 -1
- package/esm/regional-settings/list.js.map +0 -1
- package/esm/regional-settings/types.d.ts +0 -105
- package/esm/regional-settings/types.d.ts.map +0 -1
- package/esm/regional-settings/types.js.map +0 -1
- package/esm/regional-settings/user-custom-actions.d.ts +0 -8
- package/esm/regional-settings/user-custom-actions.d.ts.map +0 -1
- package/esm/regional-settings/user-custom-actions.js.map +0 -1
- package/esm/regional-settings/web.d.ts +0 -13
- package/esm/regional-settings/web.d.ts.map +0 -1
- package/esm/regional-settings/web.js.map +0 -1
- package/esm/related-items/index.d.ts +0 -3
- package/esm/related-items/index.d.ts.map +0 -1
- package/esm/related-items/index.js.map +0 -1
- package/esm/related-items/types.d.ts +0 -77
- package/esm/related-items/types.d.ts.map +0 -1
- package/esm/related-items/types.js.map +0 -1
- package/esm/related-items/web.d.ts +0 -13
- package/esm/related-items/web.d.ts.map +0 -1
- package/esm/related-items/web.js.map +0 -1
- package/esm/search/index.d.ts +0 -23
- package/esm/search/index.d.ts.map +0 -1
- package/esm/search/index.js.map +0 -1
- package/esm/search/query.d.ts +0 -62
- package/esm/search/query.d.ts.map +0 -1
- package/esm/search/query.js.map +0 -1
- package/esm/search/suggest.d.ts +0 -76
- package/esm/search/suggest.d.ts.map +0 -1
- package/esm/search/suggest.js.map +0 -1
- package/esm/search/types.d.ts +0 -436
- package/esm/search/types.d.ts.map +0 -1
- package/esm/search/types.js.map +0 -1
- package/esm/security/funcs.d.ts +0 -44
- package/esm/security/funcs.d.ts.map +0 -1
- package/esm/security/funcs.js.map +0 -1
- package/esm/security/index.d.ts +0 -5
- package/esm/security/index.d.ts.map +0 -1
- package/esm/security/index.js.map +0 -1
- package/esm/security/item.d.ts +0 -8
- package/esm/security/item.d.ts.map +0 -1
- package/esm/security/item.js.map +0 -1
- package/esm/security/list.d.ts +0 -8
- package/esm/security/list.d.ts.map +0 -1
- package/esm/security/list.js.map +0 -1
- package/esm/security/types.d.ts +0 -319
- package/esm/security/types.d.ts.map +0 -1
- package/esm/security/types.js.map +0 -1
- package/esm/security/web.d.ts +0 -10
- package/esm/security/web.d.ts.map +0 -1
- package/esm/security/web.js.map +0 -1
- package/esm/sharing/file.d.ts +0 -19
- package/esm/sharing/file.d.ts.map +0 -1
- package/esm/sharing/file.js.map +0 -1
- package/esm/sharing/folder.d.ts +0 -10
- package/esm/sharing/folder.d.ts.map +0 -1
- package/esm/sharing/folder.js.map +0 -1
- package/esm/sharing/funcs.d.ts +0 -63
- package/esm/sharing/funcs.d.ts.map +0 -1
- package/esm/sharing/funcs.js.map +0 -1
- package/esm/sharing/index.d.ts +0 -6
- package/esm/sharing/index.d.ts.map +0 -1
- package/esm/sharing/index.js.map +0 -1
- package/esm/sharing/item.d.ts +0 -17
- package/esm/sharing/item.d.ts.map +0 -1
- package/esm/sharing/item.js.map +0 -1
- package/esm/sharing/types.d.ts +0 -589
- package/esm/sharing/types.d.ts.map +0 -1
- package/esm/sharing/types.js.map +0 -1
- package/esm/sharing/web.d.ts +0 -20
- package/esm/sharing/web.d.ts.map +0 -1
- package/esm/sharing/web.js.map +0 -1
- package/esm/site-designs/index.d.ts +0 -9
- package/esm/site-designs/index.d.ts.map +0 -1
- package/esm/site-designs/index.js.map +0 -1
- package/esm/site-designs/types.d.ts +0 -376
- package/esm/site-designs/types.d.ts.map +0 -1
- package/esm/site-designs/types.js.map +0 -1
- package/esm/site-designs/web.d.ts +0 -26
- package/esm/site-designs/web.d.ts.map +0 -1
- package/esm/site-designs/web.js.map +0 -1
- package/esm/site-groups/index.d.ts +0 -3
- package/esm/site-groups/index.d.ts.map +0 -1
- package/esm/site-groups/index.js.map +0 -1
- package/esm/site-groups/types.d.ts +0 -87
- package/esm/site-groups/types.d.ts.map +0 -1
- package/esm/site-groups/types.js.map +0 -1
- package/esm/site-groups/web.d.ts +0 -41
- package/esm/site-groups/web.d.ts.map +0 -1
- package/esm/site-groups/web.js.map +0 -1
- package/esm/site-scripts/index.d.ts +0 -10
- package/esm/site-scripts/index.d.ts.map +0 -1
- package/esm/site-scripts/index.js.map +0 -1
- package/esm/site-scripts/list.d.ts +0 -13
- package/esm/site-scripts/list.d.ts.map +0 -1
- package/esm/site-scripts/list.js.map +0 -1
- package/esm/site-scripts/types.d.ts +0 -184
- package/esm/site-scripts/types.d.ts.map +0 -1
- package/esm/site-scripts/types.js.map +0 -1
- package/esm/site-scripts/web.d.ts +0 -14
- package/esm/site-scripts/web.d.ts.map +0 -1
- package/esm/site-scripts/web.js.map +0 -1
- package/esm/site-users/index.d.ts +0 -3
- package/esm/site-users/index.d.ts.map +0 -1
- package/esm/site-users/index.js.map +0 -1
- package/esm/site-users/types.d.ts +0 -139
- package/esm/site-users/types.d.ts.map +0 -1
- package/esm/site-users/types.js.map +0 -1
- package/esm/site-users/web.d.ts +0 -32
- package/esm/site-users/web.d.ts.map +0 -1
- package/esm/site-users/web.js.map +0 -1
- package/esm/sites/index.d.ts +0 -8
- package/esm/sites/index.d.ts.map +0 -1
- package/esm/sites/index.js.map +0 -1
- package/esm/sites/types.d.ts +0 -221
- package/esm/sites/types.d.ts.map +0 -1
- package/esm/sites/types.js.map +0 -1
- package/esm/social/index.d.ts +0 -11
- package/esm/social/index.d.ts.map +0 -1
- package/esm/social/index.js.map +0 -1
- package/esm/social/types.d.ts +0 -305
- package/esm/social/types.d.ts.map +0 -1
- package/esm/social/types.js.map +0 -1
- package/esm/spqueryable.d.ts +0 -117
- package/esm/spqueryable.d.ts.map +0 -1
- package/esm/spqueryable.js +0 -203
- package/esm/spqueryable.js.map +0 -1
- package/esm/sputilities/index.d.ts +0 -8
- package/esm/sputilities/index.d.ts.map +0 -1
- package/esm/sputilities/index.js.map +0 -1
- package/esm/sputilities/types.d.ts +0 -101
- package/esm/sputilities/types.d.ts.map +0 -1
- package/esm/sputilities/types.js.map +0 -1
- package/esm/subscriptions/index.d.ts +0 -3
- package/esm/subscriptions/index.d.ts.map +0 -1
- package/esm/subscriptions/index.js.map +0 -1
- package/esm/subscriptions/list.d.ts +0 -14
- package/esm/subscriptions/list.d.ts.map +0 -1
- package/esm/subscriptions/list.js.map +0 -1
- package/esm/subscriptions/types.d.ts +0 -55
- package/esm/subscriptions/types.d.ts.map +0 -1
- package/esm/subscriptions/types.js.map +0 -1
- package/esm/types.d.ts +0 -241
- package/esm/types.d.ts.map +0 -1
- package/esm/types.js.map +0 -1
- package/esm/user-custom-actions/index.d.ts +0 -5
- package/esm/user-custom-actions/index.d.ts.map +0 -1
- package/esm/user-custom-actions/index.js.map +0 -1
- package/esm/user-custom-actions/list.d.ts +0 -13
- package/esm/user-custom-actions/list.d.ts.map +0 -1
- package/esm/user-custom-actions/list.js.map +0 -1
- package/esm/user-custom-actions/site.d.ts +0 -13
- package/esm/user-custom-actions/site.d.ts.map +0 -1
- package/esm/user-custom-actions/site.js.map +0 -1
- package/esm/user-custom-actions/types.d.ts +0 -82
- package/esm/user-custom-actions/types.d.ts.map +0 -1
- package/esm/user-custom-actions/types.js.map +0 -1
- package/esm/user-custom-actions/web.d.ts +0 -16
- package/esm/user-custom-actions/web.d.ts.map +0 -1
- package/esm/user-custom-actions/web.js.map +0 -1
- package/esm/utils/encode-path-str.d.ts +0 -8
- package/esm/utils/encode-path-str.d.ts.map +0 -1
- package/esm/utils/encode-path-str.js.map +0 -1
- package/esm/utils/extract-web-url.d.ts +0 -2
- package/esm/utils/extract-web-url.d.ts.map +0 -1
- package/esm/utils/extract-web-url.js.map +0 -1
- package/esm/utils/file-names.d.ts +0 -18
- package/esm/utils/file-names.d.ts.map +0 -1
- package/esm/utils/file-names.js.map +0 -1
- package/esm/utils/metadata.d.ts +0 -6
- package/esm/utils/metadata.d.ts.map +0 -1
- package/esm/utils/metadata.js.map +0 -1
- package/esm/utils/odata-url-from.d.ts +0 -2
- package/esm/utils/odata-url-from.d.ts.map +0 -1
- package/esm/utils/odata-url-from.js.map +0 -1
- package/esm/utils/to-resource-path.d.ts +0 -5
- package/esm/utils/to-resource-path.d.ts.map +0 -1
- package/esm/utils/to-resource-path.js.map +0 -1
- package/esm/views/index.d.ts +0 -3
- package/esm/views/index.d.ts.map +0 -1
- package/esm/views/index.js.map +0 -1
- package/esm/views/list.d.ts +0 -24
- package/esm/views/list.d.ts.map +0 -1
- package/esm/views/list.js.map +0 -1
- package/esm/views/types.d.ts +0 -147
- package/esm/views/types.d.ts.map +0 -1
- package/esm/views/types.js.map +0 -1
- package/esm/webparts/file.d.ts +0 -16
- package/esm/webparts/file.d.ts.map +0 -1
- package/esm/webparts/file.js.map +0 -1
- package/esm/webparts/index.d.ts +0 -3
- package/esm/webparts/index.d.ts.map +0 -1
- package/esm/webparts/index.js.map +0 -1
- package/esm/webparts/types.d.ts +0 -84
- package/esm/webparts/types.d.ts.map +0 -1
- package/esm/webparts/types.js.map +0 -1
- package/esm/webs/index.d.ts +0 -11
- package/esm/webs/index.d.ts.map +0 -1
- package/esm/webs/index.js.map +0 -1
- package/esm/webs/types.d.ts +0 -204
- package/esm/webs/types.d.ts.map +0 -1
- package/esm/webs/types.js.map +0 -1
- /package/{commonjs/appcatalog → appcatalog}/index.d.ts +0 -0
- /package/{esm/appcatalog → appcatalog}/index.js +0 -0
- /package/{commonjs/appcatalog → appcatalog}/types.d.ts +0 -0
- /package/{esm/appcatalog → appcatalog}/types.js +0 -0
- /package/{commonjs/appcatalog → appcatalog}/web.d.ts +0 -0
- /package/{esm/appcatalog → appcatalog}/web.js +0 -0
- /package/{commonjs/attachments → attachments}/index.d.ts +0 -0
- /package/{esm/attachments → attachments}/index.js +0 -0
- /package/{commonjs/attachments → attachments}/item.d.ts +0 -0
- /package/{esm/attachments → attachments}/item.js +0 -0
- /package/{commonjs/attachments → attachments}/types.d.ts +0 -0
- /package/{esm/attachments → attachments}/types.js +0 -0
- /package/{commonjs/batching.d.ts → batching.d.ts} +0 -0
- /package/{esm/batching.js → batching.js} +0 -0
- /package/{commonjs/behaviors → behaviors}/defaults.d.ts +0 -0
- /package/{esm/behaviors → behaviors}/defaults.js +0 -0
- /package/{commonjs/behaviors → behaviors}/request-digest.d.ts +0 -0
- /package/{esm/behaviors → behaviors}/request-digest.js +0 -0
- /package/{commonjs/behaviors → behaviors}/spbrowser.d.ts +0 -0
- /package/{esm/behaviors → behaviors}/spbrowser.js +0 -0
- /package/{commonjs/behaviors → behaviors}/spfx.d.ts +0 -0
- /package/{esm/behaviors → behaviors}/spfx.js +0 -0
- /package/{commonjs/behaviors → behaviors}/telemetry.d.ts +0 -0
- /package/{esm/behaviors → behaviors}/telemetry.js +0 -0
- /package/{commonjs/clientside-pages → clientside-pages}/funcs.d.ts +0 -0
- /package/{esm/clientside-pages → clientside-pages}/funcs.js +0 -0
- /package/{commonjs/clientside-pages → clientside-pages}/index.d.ts +0 -0
- /package/{esm/clientside-pages → clientside-pages}/index.js +0 -0
- /package/{commonjs/clientside-pages → clientside-pages}/types.d.ts +0 -0
- /package/{esm/clientside-pages → clientside-pages}/types.js +0 -0
- /package/{commonjs/clientside-pages → clientside-pages}/web.d.ts +0 -0
- /package/{esm/clientside-pages → clientside-pages}/web.js +0 -0
- /package/{commonjs/column-defaults → column-defaults}/folder.d.ts +0 -0
- /package/{esm/column-defaults → column-defaults}/folder.js +0 -0
- /package/{commonjs/column-defaults → column-defaults}/index.d.ts +0 -0
- /package/{esm/column-defaults → column-defaults}/index.js +0 -0
- /package/{commonjs/column-defaults → column-defaults}/list.d.ts +0 -0
- /package/{esm/column-defaults → column-defaults}/list.js +0 -0
- /package/{commonjs/column-defaults → column-defaults}/types.d.ts +0 -0
- /package/{esm/column-defaults → column-defaults}/types.js +0 -0
- /package/{commonjs/comments → comments}/clientside-page.d.ts +0 -0
- /package/{esm/comments → comments}/clientside-page.js +0 -0
- /package/{commonjs/comments → comments}/index.d.ts +0 -0
- /package/{esm/comments → comments}/index.js +0 -0
- /package/{commonjs/comments → comments}/item.d.ts +0 -0
- /package/{esm/comments → comments}/item.js +0 -0
- /package/{commonjs/comments → comments}/types.d.ts +0 -0
- /package/{esm/comments → comments}/types.js +0 -0
- /package/{commonjs/content-types → content-types}/index.d.ts +0 -0
- /package/{esm/content-types → content-types}/index.js +0 -0
- /package/{commonjs/content-types → content-types}/item.d.ts +0 -0
- /package/{esm/content-types → content-types}/item.js +0 -0
- /package/{commonjs/content-types → content-types}/list.d.ts +0 -0
- /package/{esm/content-types → content-types}/list.js +0 -0
- /package/{commonjs/content-types → content-types}/types.d.ts +0 -0
- /package/{esm/content-types → content-types}/types.js +0 -0
- /package/{commonjs/content-types → content-types}/web.d.ts +0 -0
- /package/{esm/content-types → content-types}/web.js +0 -0
- /package/{commonjs/context-info → context-info}/index.d.ts +0 -0
- /package/{esm/context-info → context-info}/index.js +0 -0
- /package/{commonjs/decorators.d.ts → decorators.d.ts} +0 -0
- /package/{esm/decorators.js → decorators.js} +0 -0
- /package/{commonjs/favorites → favorites}/index.d.ts +0 -0
- /package/{esm/favorites → favorites}/index.js +0 -0
- /package/{commonjs/favorites → favorites}/types.d.ts +0 -0
- /package/{esm/favorites → favorites}/types.js +0 -0
- /package/{commonjs/features → features}/index.d.ts +0 -0
- /package/{esm/features → features}/index.js +0 -0
- /package/{commonjs/features → features}/site.d.ts +0 -0
- /package/{esm/features → features}/site.js +0 -0
- /package/{commonjs/features → features}/types.d.ts +0 -0
- /package/{esm/features → features}/types.js +0 -0
- /package/{commonjs/features → features}/web.d.ts +0 -0
- /package/{esm/features → features}/web.js +0 -0
- /package/{commonjs/fi.d.ts → fi.d.ts} +0 -0
- /package/{esm/fi.js → fi.js} +0 -0
- /package/{commonjs/fields → fields}/index.d.ts +0 -0
- /package/{esm/fields → fields}/index.js +0 -0
- /package/{commonjs/fields → fields}/list.d.ts +0 -0
- /package/{esm/fields → fields}/list.js +0 -0
- /package/{commonjs/fields → fields}/types.d.ts +0 -0
- /package/{esm/fields → fields}/types.js +0 -0
- /package/{commonjs/fields → fields}/web.d.ts +0 -0
- /package/{esm/fields → fields}/web.js +0 -0
- /package/{commonjs/files → files}/folder.d.ts +0 -0
- /package/{esm/files → files}/folder.js +0 -0
- /package/{commonjs/files → files}/index.d.ts +0 -0
- /package/{esm/files → files}/index.js +0 -0
- /package/{commonjs/files → files}/item.d.ts +0 -0
- /package/{esm/files → files}/item.js +0 -0
- /package/{commonjs/files → files}/readable-file.d.ts +0 -0
- /package/{esm/files → files}/readable-file.js +0 -0
- /package/{commonjs/files → files}/types.d.ts +0 -0
- /package/{esm/files → files}/types.js +0 -0
- /package/{commonjs/files → files}/web.d.ts +0 -0
- /package/{esm/files → files}/web.js +0 -0
- /package/{commonjs/folders → folders}/index.d.ts +0 -0
- /package/{esm/folders → folders}/index.js +0 -0
- /package/{commonjs/folders → folders}/item.d.ts +0 -0
- /package/{esm/folders → folders}/item.js +0 -0
- /package/{commonjs/folders → folders}/list.d.ts +0 -0
- /package/{esm/folders → folders}/list.js +0 -0
- /package/{commonjs/folders → folders}/types.d.ts +0 -0
- /package/{esm/folders → folders}/types.js +0 -0
- /package/{commonjs/folders → folders}/web.d.ts +0 -0
- /package/{esm/folders → folders}/web.js +0 -0
- /package/{commonjs/forms → forms}/index.d.ts +0 -0
- /package/{esm/forms → forms}/index.js +0 -0
- /package/{commonjs/forms → forms}/list.d.ts +0 -0
- /package/{esm/forms → forms}/list.js +0 -0
- /package/{commonjs/forms → forms}/types.d.ts +0 -0
- /package/{esm/forms → forms}/types.js +0 -0
- /package/{commonjs/groupsitemanager → groupsitemanager}/index.d.ts +0 -0
- /package/{esm/groupsitemanager → groupsitemanager}/index.js +0 -0
- /package/{commonjs/groupsitemanager → groupsitemanager}/types.d.ts +0 -0
- /package/{esm/groupsitemanager → groupsitemanager}/types.js +0 -0
- /package/{commonjs/hubsites → hubsites}/index.d.ts +0 -0
- /package/{esm/hubsites → hubsites}/index.js +0 -0
- /package/{commonjs/hubsites → hubsites}/site.d.ts +0 -0
- /package/{esm/hubsites → hubsites}/site.js +0 -0
- /package/{commonjs/hubsites → hubsites}/types.d.ts +0 -0
- /package/{esm/hubsites → hubsites}/types.js +0 -0
- /package/{commonjs/hubsites → hubsites}/web.d.ts +0 -0
- /package/{esm/hubsites → hubsites}/web.js +0 -0
- /package/{commonjs/index.d.ts → index.d.ts} +0 -0
- /package/{esm/index.js → index.js} +0 -0
- /package/{commonjs/items → items}/index.d.ts +0 -0
- /package/{esm/items → items}/index.js +0 -0
- /package/{commonjs/items → items}/list.d.ts +0 -0
- /package/{esm/items → items}/list.js +0 -0
- /package/{commonjs/items → items}/types.d.ts +0 -0
- /package/{esm/items → items}/types.js +0 -0
- /package/{commonjs/lists → lists}/index.d.ts +0 -0
- /package/{esm/lists → lists}/index.js +0 -0
- /package/{commonjs/lists → lists}/types.d.ts +0 -0
- /package/{esm/lists → lists}/types.js +0 -0
- /package/{commonjs/lists → lists}/web.d.ts +0 -0
- /package/{esm/lists → lists}/web.js +0 -0
- /package/{commonjs/navigation → navigation}/index.d.ts +0 -0
- /package/{esm/navigation → navigation}/index.js +0 -0
- /package/{commonjs/navigation → navigation}/types.d.ts +0 -0
- /package/{esm/navigation → navigation}/types.js +0 -0
- /package/{commonjs/navigation → navigation}/web.d.ts +0 -0
- /package/{esm/navigation → navigation}/web.js +0 -0
- /package/{commonjs/presets → presets}/all.d.ts +0 -0
- /package/{esm/presets → presets}/all.js +0 -0
- /package/{commonjs/profiles → profiles}/index.d.ts +0 -0
- /package/{esm/profiles → profiles}/index.js +0 -0
- /package/{commonjs/profiles → profiles}/types.d.ts +0 -0
- /package/{esm/profiles → profiles}/types.js +0 -0
- /package/{commonjs/publishing-sitepageservice → publishing-sitepageservice}/index.d.ts +0 -0
- /package/{esm/publishing-sitepageservice → publishing-sitepageservice}/index.js +0 -0
- /package/{commonjs/publishing-sitepageservice → publishing-sitepageservice}/types.d.ts +0 -0
- /package/{esm/publishing-sitepageservice → publishing-sitepageservice}/types.js +0 -0
- /package/{commonjs/recycle-bin → recycle-bin}/index.d.ts +0 -0
- /package/{esm/recycle-bin → recycle-bin}/index.js +0 -0
- /package/{commonjs/recycle-bin → recycle-bin}/types.d.ts +0 -0
- /package/{esm/recycle-bin → recycle-bin}/types.js +0 -0
- /package/{commonjs/regional-settings → regional-settings}/content-type.d.ts +0 -0
- /package/{esm/regional-settings → regional-settings}/content-type.js +0 -0
- /package/{commonjs/regional-settings → regional-settings}/field.d.ts +0 -0
- /package/{esm/regional-settings → regional-settings}/field.js +0 -0
- /package/{commonjs/regional-settings → regional-settings}/funcs.d.ts +0 -0
- /package/{esm/regional-settings → regional-settings}/funcs.js +0 -0
- /package/{commonjs/regional-settings → regional-settings}/index.d.ts +0 -0
- /package/{esm/regional-settings → regional-settings}/index.js +0 -0
- /package/{commonjs/regional-settings → regional-settings}/list.d.ts +0 -0
- /package/{esm/regional-settings → regional-settings}/list.js +0 -0
- /package/{commonjs/regional-settings → regional-settings}/types.d.ts +0 -0
- /package/{esm/regional-settings → regional-settings}/types.js +0 -0
- /package/{commonjs/regional-settings → regional-settings}/user-custom-actions.d.ts +0 -0
- /package/{esm/regional-settings → regional-settings}/user-custom-actions.js +0 -0
- /package/{commonjs/regional-settings → regional-settings}/web.d.ts +0 -0
- /package/{esm/regional-settings → regional-settings}/web.js +0 -0
- /package/{commonjs/related-items → related-items}/index.d.ts +0 -0
- /package/{esm/related-items → related-items}/index.js +0 -0
- /package/{commonjs/related-items → related-items}/types.d.ts +0 -0
- /package/{esm/related-items → related-items}/types.js +0 -0
- /package/{commonjs/related-items → related-items}/web.d.ts +0 -0
- /package/{esm/related-items → related-items}/web.js +0 -0
- /package/{commonjs/search → search}/index.d.ts +0 -0
- /package/{esm/search → search}/index.js +0 -0
- /package/{commonjs/search → search}/query.d.ts +0 -0
- /package/{esm/search → search}/query.js +0 -0
- /package/{commonjs/search → search}/suggest.d.ts +0 -0
- /package/{esm/search → search}/suggest.js +0 -0
- /package/{commonjs/search → search}/types.d.ts +0 -0
- /package/{esm/search → search}/types.js +0 -0
- /package/{commonjs/security → security}/funcs.d.ts +0 -0
- /package/{esm/security → security}/funcs.js +0 -0
- /package/{commonjs/security → security}/index.d.ts +0 -0
- /package/{esm/security → security}/index.js +0 -0
- /package/{commonjs/security → security}/item.d.ts +0 -0
- /package/{esm/security → security}/item.js +0 -0
- /package/{commonjs/security → security}/list.d.ts +0 -0
- /package/{esm/security → security}/list.js +0 -0
- /package/{commonjs/security → security}/types.d.ts +0 -0
- /package/{esm/security → security}/types.js +0 -0
- /package/{commonjs/security → security}/web.d.ts +0 -0
- /package/{esm/security → security}/web.js +0 -0
- /package/{commonjs/sharing → sharing}/file.d.ts +0 -0
- /package/{esm/sharing → sharing}/file.js +0 -0
- /package/{commonjs/sharing → sharing}/folder.d.ts +0 -0
- /package/{esm/sharing → sharing}/folder.js +0 -0
- /package/{commonjs/sharing → sharing}/funcs.d.ts +0 -0
- /package/{esm/sharing → sharing}/funcs.js +0 -0
- /package/{commonjs/sharing → sharing}/index.d.ts +0 -0
- /package/{esm/sharing → sharing}/index.js +0 -0
- /package/{commonjs/sharing → sharing}/item.d.ts +0 -0
- /package/{esm/sharing → sharing}/item.js +0 -0
- /package/{commonjs/sharing → sharing}/types.d.ts +0 -0
- /package/{esm/sharing → sharing}/types.js +0 -0
- /package/{commonjs/sharing → sharing}/web.d.ts +0 -0
- /package/{esm/sharing → sharing}/web.js +0 -0
- /package/{commonjs/site-designs → site-designs}/index.d.ts +0 -0
- /package/{esm/site-designs → site-designs}/index.js +0 -0
- /package/{commonjs/site-designs → site-designs}/types.d.ts +0 -0
- /package/{esm/site-designs → site-designs}/types.js +0 -0
- /package/{commonjs/site-designs → site-designs}/web.d.ts +0 -0
- /package/{esm/site-designs → site-designs}/web.js +0 -0
- /package/{commonjs/site-groups → site-groups}/index.d.ts +0 -0
- /package/{esm/site-groups → site-groups}/index.js +0 -0
- /package/{commonjs/site-groups → site-groups}/types.d.ts +0 -0
- /package/{esm/site-groups → site-groups}/types.js +0 -0
- /package/{commonjs/site-groups → site-groups}/web.d.ts +0 -0
- /package/{esm/site-groups → site-groups}/web.js +0 -0
- /package/{commonjs/site-scripts → site-scripts}/index.d.ts +0 -0
- /package/{esm/site-scripts → site-scripts}/index.js +0 -0
- /package/{commonjs/site-scripts → site-scripts}/list.d.ts +0 -0
- /package/{esm/site-scripts → site-scripts}/list.js +0 -0
- /package/{commonjs/site-scripts → site-scripts}/types.d.ts +0 -0
- /package/{esm/site-scripts → site-scripts}/types.js +0 -0
- /package/{commonjs/site-scripts → site-scripts}/web.d.ts +0 -0
- /package/{esm/site-scripts → site-scripts}/web.js +0 -0
- /package/{commonjs/site-users → site-users}/index.d.ts +0 -0
- /package/{esm/site-users → site-users}/index.js +0 -0
- /package/{commonjs/site-users → site-users}/types.d.ts +0 -0
- /package/{esm/site-users → site-users}/types.js +0 -0
- /package/{commonjs/site-users → site-users}/web.d.ts +0 -0
- /package/{esm/site-users → site-users}/web.js +0 -0
- /package/{commonjs/sites → sites}/index.d.ts +0 -0
- /package/{esm/sites → sites}/index.js +0 -0
- /package/{commonjs/sites → sites}/types.d.ts +0 -0
- /package/{esm/sites → sites}/types.js +0 -0
- /package/{commonjs/social → social}/index.d.ts +0 -0
- /package/{esm/social → social}/index.js +0 -0
- /package/{commonjs/social → social}/types.d.ts +0 -0
- /package/{esm/social → social}/types.js +0 -0
- /package/{commonjs/sputilities → sputilities}/index.d.ts +0 -0
- /package/{esm/sputilities → sputilities}/index.js +0 -0
- /package/{commonjs/sputilities → sputilities}/types.d.ts +0 -0
- /package/{esm/sputilities → sputilities}/types.js +0 -0
- /package/{commonjs/subscriptions → subscriptions}/index.d.ts +0 -0
- /package/{esm/subscriptions → subscriptions}/index.js +0 -0
- /package/{commonjs/subscriptions → subscriptions}/list.d.ts +0 -0
- /package/{esm/subscriptions → subscriptions}/list.js +0 -0
- /package/{commonjs/subscriptions → subscriptions}/types.d.ts +0 -0
- /package/{esm/subscriptions → subscriptions}/types.js +0 -0
- /package/{commonjs/types.d.ts → types.d.ts} +0 -0
- /package/{esm/types.js → types.js} +0 -0
- /package/{commonjs/user-custom-actions → user-custom-actions}/index.d.ts +0 -0
- /package/{esm/user-custom-actions → user-custom-actions}/index.js +0 -0
- /package/{commonjs/user-custom-actions → user-custom-actions}/list.d.ts +0 -0
- /package/{esm/user-custom-actions → user-custom-actions}/list.js +0 -0
- /package/{commonjs/user-custom-actions → user-custom-actions}/site.d.ts +0 -0
- /package/{esm/user-custom-actions → user-custom-actions}/site.js +0 -0
- /package/{commonjs/user-custom-actions → user-custom-actions}/types.d.ts +0 -0
- /package/{esm/user-custom-actions → user-custom-actions}/types.js +0 -0
- /package/{commonjs/user-custom-actions → user-custom-actions}/web.d.ts +0 -0
- /package/{esm/user-custom-actions → user-custom-actions}/web.js +0 -0
- /package/{commonjs/utils → utils}/encode-path-str.d.ts +0 -0
- /package/{esm/utils → utils}/encode-path-str.js +0 -0
- /package/{commonjs/utils → utils}/extract-web-url.d.ts +0 -0
- /package/{esm/utils → utils}/extract-web-url.js +0 -0
- /package/{commonjs/utils → utils}/file-names.d.ts +0 -0
- /package/{esm/utils → utils}/file-names.js +0 -0
- /package/{commonjs/utils → utils}/metadata.d.ts +0 -0
- /package/{esm/utils → utils}/metadata.js +0 -0
- /package/{commonjs/utils → utils}/odata-url-from.d.ts +0 -0
- /package/{esm/utils → utils}/odata-url-from.js +0 -0
- /package/{commonjs/utils → utils}/to-resource-path.d.ts +0 -0
- /package/{esm/utils → utils}/to-resource-path.js +0 -0
- /package/{commonjs/views → views}/index.d.ts +0 -0
- /package/{esm/views → views}/index.js +0 -0
- /package/{commonjs/views → views}/list.d.ts +0 -0
- /package/{esm/views → views}/list.js +0 -0
- /package/{commonjs/views → views}/types.d.ts +0 -0
- /package/{esm/views → views}/types.js +0 -0
- /package/{commonjs/webparts → webparts}/file.d.ts +0 -0
- /package/{esm/webparts → webparts}/file.js +0 -0
- /package/{commonjs/webparts → webparts}/index.d.ts +0 -0
- /package/{esm/webparts → webparts}/index.js +0 -0
- /package/{commonjs/webparts → webparts}/types.d.ts +0 -0
- /package/{esm/webparts → webparts}/types.js +0 -0
- /package/{commonjs/webs → webs}/index.d.ts +0 -0
- /package/{esm/webs → webs}/index.js +0 -0
- /package/{commonjs/webs → webs}/types.d.ts +0 -0
- /package/{esm/webs → webs}/types.js +0 -0
|
@@ -1,1155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClientsideWebpart = exports.ClientsideText = exports.ColumnControl = exports.CanvasColumn = exports.CanvasSection = exports.CreateClientsidePage = exports.ClientsidePageFromFile = exports._ClientsidePage = exports.PromotedState = void 0;
|
|
4
|
-
const queryable_1 = require("@pnp/queryable");
|
|
5
|
-
const core_1 = require("@pnp/core");
|
|
6
|
-
const types_js_1 = require("../items/types.js");
|
|
7
|
-
const spqueryable_js_1 = require("../spqueryable.js");
|
|
8
|
-
const types_js_2 = require("../lists/types.js");
|
|
9
|
-
const odata_url_from_js_1 = require("../utils/odata-url-from.js");
|
|
10
|
-
const types_js_3 = require("../webs/types.js");
|
|
11
|
-
const extract_web_url_js_1 = require("../utils/extract-web-url.js");
|
|
12
|
-
const types_js_4 = require("../sites/types.js");
|
|
13
|
-
const funcs_js_1 = require("./funcs.js");
|
|
14
|
-
require("../files/web.js");
|
|
15
|
-
require("../comments/item.js");
|
|
16
|
-
const batching_js_1 = require("../batching.js");
|
|
17
|
-
/**
|
|
18
|
-
* Page promotion state
|
|
19
|
-
*/
|
|
20
|
-
var PromotedState;
|
|
21
|
-
(function (PromotedState) {
|
|
22
|
-
/**
|
|
23
|
-
* Regular client side page
|
|
24
|
-
*/
|
|
25
|
-
PromotedState[PromotedState["NotPromoted"] = 0] = "NotPromoted";
|
|
26
|
-
/**
|
|
27
|
-
* Page that will be promoted as news article after publishing
|
|
28
|
-
*/
|
|
29
|
-
PromotedState[PromotedState["PromoteOnPublish"] = 1] = "PromoteOnPublish";
|
|
30
|
-
/**
|
|
31
|
-
* Page that is promoted as news article
|
|
32
|
-
*/
|
|
33
|
-
PromotedState[PromotedState["Promoted"] = 2] = "Promoted";
|
|
34
|
-
})(PromotedState = exports.PromotedState || (exports.PromotedState = {}));
|
|
35
|
-
/**
|
|
36
|
-
* Represents the data and methods associated with client side "modern" pages
|
|
37
|
-
*/
|
|
38
|
-
class _ClientsidePage extends spqueryable_js_1._SPQueryable {
|
|
39
|
-
/**
|
|
40
|
-
* PLEASE DON'T USE THIS CONSTRUCTOR DIRECTLY, thank you 🐇
|
|
41
|
-
*/
|
|
42
|
-
constructor(base, path, json, noInit = false, sections = [], commentsDisabled = false) {
|
|
43
|
-
super(base, path);
|
|
44
|
-
this.json = json;
|
|
45
|
-
this.sections = sections;
|
|
46
|
-
this.commentsDisabled = commentsDisabled;
|
|
47
|
-
this._bannerImageDirty = false;
|
|
48
|
-
this._bannerImageThumbnailUrlDirty = false;
|
|
49
|
-
this.parentUrl = "";
|
|
50
|
-
// we need to rebase the url to always be the web url plus the path
|
|
51
|
-
// Queryable handles the correct parsing of the SPInit, and we pull
|
|
52
|
-
// the weburl and combine with the supplied path, which is unique
|
|
53
|
-
// to how ClientsitePages works. This class is a special case.
|
|
54
|
-
this._url = (0, core_1.combine)((0, extract_web_url_js_1.extractWebUrl)(this._url), path);
|
|
55
|
-
// set a default page settings slice
|
|
56
|
-
this._pageSettings = { controlType: 0, pageSettingsSlice: { isDefaultDescription: true, isDefaultThumbnail: true } };
|
|
57
|
-
// set a default layout part
|
|
58
|
-
this._layoutPart = _ClientsidePage.getDefaultLayoutPart();
|
|
59
|
-
if (typeof json !== "undefined" && !noInit) {
|
|
60
|
-
this.fromJSON(json);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
static getDefaultLayoutPart() {
|
|
64
|
-
return {
|
|
65
|
-
dataVersion: "1.4",
|
|
66
|
-
description: "Title Region Description",
|
|
67
|
-
id: "cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",
|
|
68
|
-
instanceId: "cbe7b0a9-3504-44dd-a3a3-0e5cacd07788",
|
|
69
|
-
properties: {
|
|
70
|
-
authorByline: [],
|
|
71
|
-
authors: [],
|
|
72
|
-
layoutType: "FullWidthImage",
|
|
73
|
-
showPublishDate: false,
|
|
74
|
-
showTopicHeader: false,
|
|
75
|
-
textAlignment: "Left",
|
|
76
|
-
title: "",
|
|
77
|
-
topicHeader: "",
|
|
78
|
-
enableGradientEffect: true,
|
|
79
|
-
},
|
|
80
|
-
reservedHeight: 280,
|
|
81
|
-
serverProcessedContent: { htmlStrings: {}, searchablePlainTexts: {}, imageSources: {}, links: {} },
|
|
82
|
-
title: "Title area",
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
get pageLayout() {
|
|
86
|
-
return this.json.PageLayoutType;
|
|
87
|
-
}
|
|
88
|
-
set pageLayout(value) {
|
|
89
|
-
this.json.PageLayoutType = value;
|
|
90
|
-
}
|
|
91
|
-
get bannerImageUrl() {
|
|
92
|
-
return this.json.BannerImageUrl;
|
|
93
|
-
}
|
|
94
|
-
set bannerImageUrl(value) {
|
|
95
|
-
this.setBannerImage(value);
|
|
96
|
-
}
|
|
97
|
-
get thumbnailUrl() {
|
|
98
|
-
return this._pageSettings.pageSettingsSlice.isDefaultThumbnail ? this.json.BannerImageUrl : this.json.BannerThumbnailUrl;
|
|
99
|
-
}
|
|
100
|
-
set thumbnailUrl(value) {
|
|
101
|
-
this.json.BannerThumbnailUrl = value;
|
|
102
|
-
this._bannerImageThumbnailUrlDirty = true;
|
|
103
|
-
this._pageSettings.pageSettingsSlice.isDefaultThumbnail = false;
|
|
104
|
-
}
|
|
105
|
-
get topicHeader() {
|
|
106
|
-
return (0, core_1.objectDefinedNotNull)(this.json.TopicHeader) ? this.json.TopicHeader : "";
|
|
107
|
-
}
|
|
108
|
-
set topicHeader(value) {
|
|
109
|
-
this.json.TopicHeader = value;
|
|
110
|
-
this._layoutPart.properties.topicHeader = value;
|
|
111
|
-
if ((0, core_1.stringIsNullOrEmpty)(value)) {
|
|
112
|
-
this.showTopicHeader = false;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
get title() {
|
|
116
|
-
return this.json.Title;
|
|
117
|
-
}
|
|
118
|
-
set title(value) {
|
|
119
|
-
this.json.Title = value;
|
|
120
|
-
this._layoutPart.properties.title = value;
|
|
121
|
-
}
|
|
122
|
-
get reservedHeight() {
|
|
123
|
-
return this._layoutPart.reservedHeight;
|
|
124
|
-
}
|
|
125
|
-
set reservedHeight(value) {
|
|
126
|
-
this._layoutPart.reservedHeight = value;
|
|
127
|
-
}
|
|
128
|
-
get description() {
|
|
129
|
-
return this.json.Description;
|
|
130
|
-
}
|
|
131
|
-
set description(value) {
|
|
132
|
-
if (!(0, core_1.stringIsNullOrEmpty)(value) && value.length > 255) {
|
|
133
|
-
throw Error("Modern Page description is limited to 255 chars.");
|
|
134
|
-
}
|
|
135
|
-
this.json.Description = value;
|
|
136
|
-
if (!(0, core_1.hOP)(this._pageSettings, "htmlAttributes")) {
|
|
137
|
-
this._pageSettings.htmlAttributes = [];
|
|
138
|
-
}
|
|
139
|
-
if (this._pageSettings.htmlAttributes.indexOf("modifiedDescription") < 0) {
|
|
140
|
-
this._pageSettings.htmlAttributes.push("modifiedDescription");
|
|
141
|
-
}
|
|
142
|
-
this._pageSettings.pageSettingsSlice.isDefaultDescription = false;
|
|
143
|
-
}
|
|
144
|
-
get layoutType() {
|
|
145
|
-
return this._layoutPart.properties.layoutType;
|
|
146
|
-
}
|
|
147
|
-
set layoutType(value) {
|
|
148
|
-
this._layoutPart.properties.layoutType = value;
|
|
149
|
-
}
|
|
150
|
-
get headerTextAlignment() {
|
|
151
|
-
return this._layoutPart.properties.textAlignment;
|
|
152
|
-
}
|
|
153
|
-
set headerTextAlignment(value) {
|
|
154
|
-
this._layoutPart.properties.textAlignment = value;
|
|
155
|
-
}
|
|
156
|
-
get showTopicHeader() {
|
|
157
|
-
return this._layoutPart.properties.showTopicHeader;
|
|
158
|
-
}
|
|
159
|
-
set showTopicHeader(value) {
|
|
160
|
-
this._layoutPart.properties.showTopicHeader = value;
|
|
161
|
-
}
|
|
162
|
-
get showPublishDate() {
|
|
163
|
-
return this._layoutPart.properties.showPublishDate;
|
|
164
|
-
}
|
|
165
|
-
set showPublishDate(value) {
|
|
166
|
-
this._layoutPart.properties.showPublishDate = value;
|
|
167
|
-
}
|
|
168
|
-
get hasVerticalSection() {
|
|
169
|
-
return this.sections.findIndex(s => s.layoutIndex === 2) > -1;
|
|
170
|
-
}
|
|
171
|
-
get authorByLine() {
|
|
172
|
-
if ((0, core_1.isArray)(this._layoutPart.properties.authorByline) && this._layoutPart.properties.authorByline.length > 0) {
|
|
173
|
-
return this._layoutPart.properties.authorByline[0];
|
|
174
|
-
}
|
|
175
|
-
return null;
|
|
176
|
-
}
|
|
177
|
-
get verticalSection() {
|
|
178
|
-
if (this.hasVerticalSection) {
|
|
179
|
-
return this.addVerticalSection();
|
|
180
|
-
}
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Add a section to this page
|
|
185
|
-
*/
|
|
186
|
-
addSection() {
|
|
187
|
-
const section = new CanvasSection(this, (0, funcs_js_1.getNextOrder)(this.sections), 1);
|
|
188
|
-
this.sections.push(section);
|
|
189
|
-
return section;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Add a section to this page
|
|
193
|
-
*/
|
|
194
|
-
addVerticalSection() {
|
|
195
|
-
// we can only have one vertical section so we find it if it exists
|
|
196
|
-
const sectionIndex = this.sections.findIndex(s => s.layoutIndex === 2);
|
|
197
|
-
if (sectionIndex > -1) {
|
|
198
|
-
return this.sections[sectionIndex];
|
|
199
|
-
}
|
|
200
|
-
const section = new CanvasSection(this, (0, funcs_js_1.getNextOrder)(this.sections), 2);
|
|
201
|
-
this.sections.push(section);
|
|
202
|
-
return section;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Loads this instance from the appropriate JSON data
|
|
206
|
-
*
|
|
207
|
-
* @param pageData JSON data to load (replaces any existing data)
|
|
208
|
-
*/
|
|
209
|
-
fromJSON(pageData) {
|
|
210
|
-
this.json = pageData;
|
|
211
|
-
const canvasControls = JSON.parse(pageData.CanvasContent1);
|
|
212
|
-
const layouts = JSON.parse(pageData.LayoutWebpartsContent);
|
|
213
|
-
if (layouts && layouts.length > 0) {
|
|
214
|
-
this._layoutPart = layouts[0];
|
|
215
|
-
}
|
|
216
|
-
this.setControls(canvasControls);
|
|
217
|
-
return this;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Loads this page's content from the server
|
|
221
|
-
*/
|
|
222
|
-
async load() {
|
|
223
|
-
const item = await this.getItem("Id", "CommentsDisabled");
|
|
224
|
-
const pageData = await (0, spqueryable_js_1.SPQueryable)(this, `_api/sitepages/pages(${item.Id})`)();
|
|
225
|
-
this.commentsDisabled = item.CommentsDisabled;
|
|
226
|
-
return this.fromJSON(pageData);
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Persists the content changes (sections, columns, and controls) [does not work with batching]
|
|
230
|
-
*
|
|
231
|
-
* @param publish If true the page is published, if false the changes are persisted to SharePoint but not published [Default: true]
|
|
232
|
-
*/
|
|
233
|
-
async save(publish = true) {
|
|
234
|
-
if (this.json.Id === null) {
|
|
235
|
-
throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");
|
|
236
|
-
}
|
|
237
|
-
const previewPartialUrl = "_layouts/15/getpreview.ashx";
|
|
238
|
-
// If new banner image, and banner image url is not in getpreview.ashx format
|
|
239
|
-
if (this._bannerImageDirty && !this.bannerImageUrl.includes(previewPartialUrl)) {
|
|
240
|
-
const serverRelativePath = this.bannerImageUrl;
|
|
241
|
-
let imgInfo;
|
|
242
|
-
let webUrl;
|
|
243
|
-
const web = (0, types_js_3.Web)(this);
|
|
244
|
-
const [batch, execute] = (0, batching_js_1.createBatch)(web);
|
|
245
|
-
web.using(batch);
|
|
246
|
-
web.getFileByServerRelativePath(serverRelativePath.replace(/%20/ig, " "))
|
|
247
|
-
.select("ListId", "WebId", "UniqueId", "Name", "SiteId")().then(r1 => imgInfo = r1);
|
|
248
|
-
web.select("Url")().then(r2 => webUrl = r2.Url);
|
|
249
|
-
// we know the .then calls above will run before execute resolves, ensuring the vars are set
|
|
250
|
-
await execute();
|
|
251
|
-
const f = (0, spqueryable_js_1.SPQueryable)(webUrl, previewPartialUrl);
|
|
252
|
-
f.query.set("guidSite", `${imgInfo.SiteId}`);
|
|
253
|
-
f.query.set("guidWeb", `${imgInfo.WebId}`);
|
|
254
|
-
f.query.set("guidFile", `${imgInfo.UniqueId}`);
|
|
255
|
-
this.bannerImageUrl = f.toRequestUrl();
|
|
256
|
-
if (!(0, core_1.objectDefinedNotNull)(this._layoutPart.serverProcessedContent)) {
|
|
257
|
-
this._layoutPart.serverProcessedContent = {};
|
|
258
|
-
}
|
|
259
|
-
this._layoutPart.serverProcessedContent.imageSources = { imageSource: serverRelativePath };
|
|
260
|
-
if (!(0, core_1.objectDefinedNotNull)(this._layoutPart.serverProcessedContent.customMetadata)) {
|
|
261
|
-
this._layoutPart.serverProcessedContent.customMetadata = {};
|
|
262
|
-
}
|
|
263
|
-
this._layoutPart.serverProcessedContent.customMetadata.imageSource = {
|
|
264
|
-
listId: imgInfo.ListId,
|
|
265
|
-
siteId: imgInfo.SiteId,
|
|
266
|
-
uniqueId: imgInfo.UniqueId,
|
|
267
|
-
webId: imgInfo.WebId,
|
|
268
|
-
};
|
|
269
|
-
this._layoutPart.properties.webId = imgInfo.WebId;
|
|
270
|
-
this._layoutPart.properties.siteId = imgInfo.SiteId;
|
|
271
|
-
this._layoutPart.properties.listId = imgInfo.ListId;
|
|
272
|
-
this._layoutPart.properties.uniqueId = imgInfo.UniqueId;
|
|
273
|
-
}
|
|
274
|
-
// we try and check out the page for the user
|
|
275
|
-
if (!this.json.IsPageCheckedOutToCurrentUser) {
|
|
276
|
-
await (0, spqueryable_js_1.spPost)(ClientsidePage(this, `_api/sitepages/pages(${this.json.Id})/checkoutpage`));
|
|
277
|
-
}
|
|
278
|
-
// create the body for the save request
|
|
279
|
-
let saveBody = {
|
|
280
|
-
AuthorByline: this.json.AuthorByline || [],
|
|
281
|
-
CanvasContent1: this.getCanvasContent1(),
|
|
282
|
-
Description: this.description,
|
|
283
|
-
LayoutWebpartsContent: this.getLayoutWebpartsContent(),
|
|
284
|
-
Title: this.title,
|
|
285
|
-
TopicHeader: this.topicHeader,
|
|
286
|
-
BannerImageUrl: this.bannerImageUrl,
|
|
287
|
-
};
|
|
288
|
-
if (this._bannerImageDirty || this._bannerImageThumbnailUrlDirty) {
|
|
289
|
-
const bannerImageUrlValue = this._bannerImageThumbnailUrlDirty ? this.thumbnailUrl : this.bannerImageUrl;
|
|
290
|
-
saveBody = {
|
|
291
|
-
BannerImageUrl: bannerImageUrlValue,
|
|
292
|
-
...saveBody,
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
const updater = ClientsidePage(this, `_api/sitepages/pages(${this.json.Id})/savepage`);
|
|
296
|
-
await (0, spqueryable_js_1.spPost)(updater, (0, queryable_1.headers)({ "if-match": "*" }, (0, queryable_1.body)(saveBody)));
|
|
297
|
-
let r = true;
|
|
298
|
-
if (publish) {
|
|
299
|
-
r = await (0, spqueryable_js_1.spPost)(ClientsidePage(this, `_api/sitepages/pages(${this.json.Id})/publish`));
|
|
300
|
-
if (r) {
|
|
301
|
-
this.json.IsPageCheckedOutToCurrentUser = false;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
this._bannerImageDirty = false;
|
|
305
|
-
this._bannerImageThumbnailUrlDirty = false;
|
|
306
|
-
// we need to ensure we reload from the latest data to ensure all urls are updated and current in the object (expecially for new pages)
|
|
307
|
-
await this.load();
|
|
308
|
-
return r;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Discards the checkout of this page
|
|
312
|
-
*/
|
|
313
|
-
async discardPageCheckout() {
|
|
314
|
-
if (this.json.Id === null) {
|
|
315
|
-
throw Error("The id for this page is null. If you want to create a new page, please use ClientSidePage.Create");
|
|
316
|
-
}
|
|
317
|
-
const d = await (0, spqueryable_js_1.spPost)(ClientsidePage(this, `_api/sitepages/pages(${this.json.Id})/discardPage`));
|
|
318
|
-
this.fromJSON(d);
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Promotes this page as a news item
|
|
322
|
-
*/
|
|
323
|
-
async promoteToNews() {
|
|
324
|
-
return this.promoteNewsImpl("promoteToNews");
|
|
325
|
-
}
|
|
326
|
-
// API is currently broken on server side
|
|
327
|
-
// public async demoteFromNews(): Promise<boolean> {
|
|
328
|
-
// return this.promoteNewsImpl("demoteFromNews");
|
|
329
|
-
// }
|
|
330
|
-
/**
|
|
331
|
-
* Finds a control by the specified instance id
|
|
332
|
-
*
|
|
333
|
-
* @param id Instance id of the control to find
|
|
334
|
-
*/
|
|
335
|
-
findControlById(id) {
|
|
336
|
-
return this.findControl((c) => c.id === id);
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* Finds a control within this page's control tree using the supplied predicate
|
|
340
|
-
*
|
|
341
|
-
* @param predicate Takes a control and returns true or false, if true that control is returned by findControl
|
|
342
|
-
*/
|
|
343
|
-
findControl(predicate) {
|
|
344
|
-
// check all sections
|
|
345
|
-
for (let i = 0; i < this.sections.length; i++) {
|
|
346
|
-
// check all columns
|
|
347
|
-
for (let j = 0; j < this.sections[i].columns.length; j++) {
|
|
348
|
-
// check all controls
|
|
349
|
-
for (let k = 0; k < this.sections[i].columns[j].controls.length; k++) {
|
|
350
|
-
// check to see if the predicate likes this control
|
|
351
|
-
if (predicate(this.sections[i].columns[j].controls[k])) {
|
|
352
|
-
return this.sections[i].columns[j].controls[k];
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
// we found nothing so give nothing back
|
|
358
|
-
return null;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* Creates a new page with all of the content copied from this page
|
|
362
|
-
*
|
|
363
|
-
* @param web The web where we will create the copy
|
|
364
|
-
* @param pageName The file name of the new page
|
|
365
|
-
* @param title The title of the new page
|
|
366
|
-
* @param publish If true the page will be published (Default: true)
|
|
367
|
-
*/
|
|
368
|
-
async copy(web, pageName, title, publish = true, promotedState) {
|
|
369
|
-
const page = await (0, exports.CreateClientsidePage)(web, pageName, title, this.pageLayout, promotedState);
|
|
370
|
-
return this.copyTo(page, publish);
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Copies the content from this page to the supplied page instance NOTE: fully overwriting any previous content!!
|
|
374
|
-
*
|
|
375
|
-
* @param page Page whose content we replace with this page's content
|
|
376
|
-
* @param publish If true the page will be published after the copy, if false it will be saved but left unpublished (Default: true)
|
|
377
|
-
*/
|
|
378
|
-
async copyTo(page, publish = true) {
|
|
379
|
-
// we know the method is on the class - but it is protected so not part of the interface
|
|
380
|
-
page.setControls(this.getControls());
|
|
381
|
-
// copy page properties
|
|
382
|
-
if (this._layoutPart.properties) {
|
|
383
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "topicHeader")) {
|
|
384
|
-
page.topicHeader = this._layoutPart.properties.topicHeader;
|
|
385
|
-
}
|
|
386
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "imageSourceType")) {
|
|
387
|
-
page._layoutPart.properties.imageSourceType = this._layoutPart.properties.imageSourceType;
|
|
388
|
-
}
|
|
389
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "layoutType")) {
|
|
390
|
-
page._layoutPart.properties.layoutType = this._layoutPart.properties.layoutType;
|
|
391
|
-
}
|
|
392
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "textAlignment")) {
|
|
393
|
-
page._layoutPart.properties.textAlignment = this._layoutPart.properties.textAlignment;
|
|
394
|
-
}
|
|
395
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "showTopicHeader")) {
|
|
396
|
-
page._layoutPart.properties.showTopicHeader = this._layoutPart.properties.showTopicHeader;
|
|
397
|
-
}
|
|
398
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "showPublishDate")) {
|
|
399
|
-
page._layoutPart.properties.showPublishDate = this._layoutPart.properties.showPublishDate;
|
|
400
|
-
}
|
|
401
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "enableGradientEffect")) {
|
|
402
|
-
page._layoutPart.properties.enableGradientEffect = this._layoutPart.properties.enableGradientEffect;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
// we need to do some work to set the banner image url in the copied page
|
|
406
|
-
if (!(0, core_1.stringIsNullOrEmpty)(this.json.BannerImageUrl)) {
|
|
407
|
-
// use a URL to parse things for us
|
|
408
|
-
const url = new URL(this.json.BannerImageUrl);
|
|
409
|
-
// helper function to translate the guid strings into properly formatted guids with dashes
|
|
410
|
-
const makeGuid = (s) => s.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/g, "$1-$2-$3-$4-$5");
|
|
411
|
-
// protect against errors because the serverside impl has changed, we'll just skip
|
|
412
|
-
if (url.searchParams.has("guidSite") && url.searchParams.has("guidWeb") && url.searchParams.has("guidFile")) {
|
|
413
|
-
const guidSite = makeGuid(url.searchParams.get("guidSite"));
|
|
414
|
-
const guidWeb = makeGuid(url.searchParams.get("guidWeb"));
|
|
415
|
-
const guidFile = makeGuid(url.searchParams.get("guidFile"));
|
|
416
|
-
const site = (0, types_js_4.Site)(this);
|
|
417
|
-
const id = await site.select("Id")();
|
|
418
|
-
// the site guid must match the current site's guid or we are unable to set the image
|
|
419
|
-
if (id.Id === guidSite) {
|
|
420
|
-
const openWeb = await site.openWebById(guidWeb);
|
|
421
|
-
const file = await openWeb.web.getFileById(guidFile).select("ServerRelativeUrl")();
|
|
422
|
-
const props = {};
|
|
423
|
-
if (this._layoutPart.properties) {
|
|
424
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "translateX")) {
|
|
425
|
-
props.translateX = this._layoutPart.properties.translateX;
|
|
426
|
-
}
|
|
427
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "translateY")) {
|
|
428
|
-
props.translateY = this._layoutPart.properties.translateY;
|
|
429
|
-
}
|
|
430
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "imageSourceType")) {
|
|
431
|
-
props.imageSourceType = this._layoutPart.properties.imageSourceType;
|
|
432
|
-
}
|
|
433
|
-
if ((0, core_1.hOP)(this._layoutPart.properties, "altText")) {
|
|
434
|
-
props.altText = this._layoutPart.properties.altText;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
page.setBannerImage(file.ServerRelativeUrl, props);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
await page.save(publish);
|
|
442
|
-
return page;
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Sets the modern page banner image
|
|
446
|
-
*
|
|
447
|
-
* @param url Url of the image to display
|
|
448
|
-
* @param altText Alt text to describe the image
|
|
449
|
-
* @param bannerProps Additional properties to control display of the banner
|
|
450
|
-
*/
|
|
451
|
-
setBannerImage(url, props) {
|
|
452
|
-
if ((0, core_1.isUrlAbsolute)(url)) {
|
|
453
|
-
// do our best to make this a server relative url by removing the x.sharepoint.com part
|
|
454
|
-
url = url.replace(/^https?:\/\/[a-z0-9.]*?\.[a-z]{2,3}\//i, "/");
|
|
455
|
-
}
|
|
456
|
-
this.json.BannerImageUrl = url;
|
|
457
|
-
// update serverProcessedContent (page behavior change 2021-Oct-13)
|
|
458
|
-
this._layoutPart.serverProcessedContent = { imageSources: { imageSource: url } };
|
|
459
|
-
this._bannerImageDirty = true;
|
|
460
|
-
/*
|
|
461
|
-
setting the banner image resets the thumbnail image (matching UI functionality)
|
|
462
|
-
but if the thumbnail is dirty they are likely trying to set them both to
|
|
463
|
-
different values, so we allow that here.
|
|
464
|
-
Also allows the banner image to be updated safely with the calculated one in save()
|
|
465
|
-
*/
|
|
466
|
-
if (!this._bannerImageThumbnailUrlDirty) {
|
|
467
|
-
this.thumbnailUrl = url;
|
|
468
|
-
this._pageSettings.pageSettingsSlice.isDefaultThumbnail = true;
|
|
469
|
-
}
|
|
470
|
-
// this seems to always be true, so default
|
|
471
|
-
this._layoutPart.properties.imageSourceType = 2;
|
|
472
|
-
if ((0, core_1.objectDefinedNotNull)(props)) {
|
|
473
|
-
if ((0, core_1.hOP)(props, "translateX")) {
|
|
474
|
-
this._layoutPart.properties.translateX = props.translateX;
|
|
475
|
-
}
|
|
476
|
-
if ((0, core_1.hOP)(props, "translateY")) {
|
|
477
|
-
this._layoutPart.properties.translateY = props.translateY;
|
|
478
|
-
}
|
|
479
|
-
if ((0, core_1.hOP)(props, "imageSourceType")) {
|
|
480
|
-
this._layoutPart.properties.imageSourceType = props.imageSourceType;
|
|
481
|
-
}
|
|
482
|
-
if ((0, core_1.hOP)(props, "altText")) {
|
|
483
|
-
this._layoutPart.properties.altText = props.altText;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Sets the banner image url from an external source. You must call save to persist the changes
|
|
489
|
-
*
|
|
490
|
-
* @param url absolute url of the external file
|
|
491
|
-
* @param props optional set of properties to control display of the banner image
|
|
492
|
-
*/
|
|
493
|
-
async setBannerImageFromExternalUrl(url, props) {
|
|
494
|
-
// validate and parse our input url
|
|
495
|
-
const fileUrl = new URL(url);
|
|
496
|
-
// get our page name without extension, used as a folder name when creating the file
|
|
497
|
-
const pageName = this.json.FileName.replace(/\.[^/.]+$/, "");
|
|
498
|
-
// get the filename we will use
|
|
499
|
-
const filename = fileUrl.pathname.split(/[\\/]/i).pop();
|
|
500
|
-
const request = ClientsidePage(this, "_api/sitepages/AddImageFromExternalUrl");
|
|
501
|
-
request.query.set("imageFileName", `'${filename}'`);
|
|
502
|
-
request.query.set("pageName", `'${pageName}'`);
|
|
503
|
-
request.query.set("externalUrl", `'${url}'`);
|
|
504
|
-
request.select("ServerRelativeUrl");
|
|
505
|
-
const result = await (0, spqueryable_js_1.spPost)(request);
|
|
506
|
-
// set with the newly created relative url
|
|
507
|
-
this.setBannerImage(result.ServerRelativeUrl, props);
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Sets the authors for this page from the supplied list of user integer ids
|
|
511
|
-
*
|
|
512
|
-
* @param authorId The integer id of the user to set as the author
|
|
513
|
-
*/
|
|
514
|
-
async setAuthorById(authorId) {
|
|
515
|
-
const userLoginData = await (0, spqueryable_js_1.SPCollection)([this, (0, extract_web_url_js_1.extractWebUrl)(this.toUrl())], "/_api/web/siteusers")
|
|
516
|
-
.filter(`Id eq ${authorId}`)
|
|
517
|
-
.select("LoginName")();
|
|
518
|
-
if (userLoginData.length < 1) {
|
|
519
|
-
throw Error(`Could not find user with id ${authorId}.`);
|
|
520
|
-
}
|
|
521
|
-
return this.setAuthorByLoginName(userLoginData[0].LoginName);
|
|
522
|
-
}
|
|
523
|
-
/**
|
|
524
|
-
* Sets the authors for this page from the supplied list of user integer ids
|
|
525
|
-
*
|
|
526
|
-
* @param authorLoginName The login name of the user (ex: i:0#.f|membership|name@tenant.com)
|
|
527
|
-
*/
|
|
528
|
-
async setAuthorByLoginName(authorLoginName) {
|
|
529
|
-
const userLoginData = await (0, spqueryable_js_1.SPCollection)([this, (0, extract_web_url_js_1.extractWebUrl)(this.toUrl())], "/_api/web/siteusers")
|
|
530
|
-
.filter(`LoginName eq '${authorLoginName}'`)
|
|
531
|
-
.select("UserPrincipalName", "Title")();
|
|
532
|
-
if (userLoginData.length < 1) {
|
|
533
|
-
throw Error(`Could not find user with login name '${authorLoginName}'.`);
|
|
534
|
-
}
|
|
535
|
-
this.json.AuthorByline = [userLoginData[0].UserPrincipalName];
|
|
536
|
-
this._layoutPart.properties.authorByline = [userLoginData[0].UserPrincipalName];
|
|
537
|
-
this._layoutPart.properties.authors = [{
|
|
538
|
-
id: authorLoginName,
|
|
539
|
-
name: userLoginData[0].Title,
|
|
540
|
-
role: "",
|
|
541
|
-
upn: userLoginData[0].UserPrincipalName,
|
|
542
|
-
}];
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
* Gets the list item associated with this clientside page
|
|
546
|
-
*
|
|
547
|
-
* @param selects Specific set of fields to include when getting the item
|
|
548
|
-
*/
|
|
549
|
-
async getItem(...selects) {
|
|
550
|
-
const initer = ClientsidePage(this, "/_api/lists/EnsureClientRenderedSitePagesLibrary").select("EnableModeration", "EnableMinorVersions", "Id");
|
|
551
|
-
const listData = await (0, spqueryable_js_1.spPost)(initer);
|
|
552
|
-
const item = (0, types_js_2.List)([this, listData["odata.id"]]).items.getById(this.json.Id);
|
|
553
|
-
const itemData = await item.select(...selects)();
|
|
554
|
-
return Object.assign((0, types_js_1.Item)([this, (0, odata_url_from_js_1.odataUrlFrom)(itemData)]), itemData);
|
|
555
|
-
}
|
|
556
|
-
/**
|
|
557
|
-
* Recycle this page
|
|
558
|
-
*/
|
|
559
|
-
async recycle() {
|
|
560
|
-
const item = await this.getItem();
|
|
561
|
-
await item.recycle();
|
|
562
|
-
}
|
|
563
|
-
/**
|
|
564
|
-
* Delete this page
|
|
565
|
-
*/
|
|
566
|
-
async delete() {
|
|
567
|
-
const item = await this.getItem();
|
|
568
|
-
await item.delete();
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* Schedules a page for publishing
|
|
572
|
-
*
|
|
573
|
-
* @param publishDate Date to publish the item
|
|
574
|
-
* @returns Version which was scheduled to be published
|
|
575
|
-
*/
|
|
576
|
-
async schedulePublish(publishDate) {
|
|
577
|
-
return (0, spqueryable_js_1.spPost)(ClientsidePage(this, `_api/sitepages/pages(${this.json.Id})/SchedulePublish`), (0, queryable_1.body)({
|
|
578
|
-
sitePage: { PublishStartDate: publishDate },
|
|
579
|
-
}));
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* Saves a copy of this page as a template in this library's Templates folder
|
|
583
|
-
*
|
|
584
|
-
* @param publish If true the template is published, false the template is not published (default: true)
|
|
585
|
-
* @returns IClientsidePage instance representing the new template page
|
|
586
|
-
*/
|
|
587
|
-
async saveAsTemplate(publish = true) {
|
|
588
|
-
const data = await (0, spqueryable_js_1.spPost)(ClientsidePage(this, `_api/sitepages/pages(${this.json.Id})/SavePageAsTemplate`));
|
|
589
|
-
const page = ClientsidePage(this, null, data);
|
|
590
|
-
page.title = this.title;
|
|
591
|
-
await page.save(publish);
|
|
592
|
-
return page;
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* Share this Page's Preview content by Email
|
|
596
|
-
*
|
|
597
|
-
* @param emails Set of emails to which the preview is shared
|
|
598
|
-
* @param message The message to include
|
|
599
|
-
* @returns void
|
|
600
|
-
*/
|
|
601
|
-
share(emails, message) {
|
|
602
|
-
return (0, spqueryable_js_1.spPost)(ClientsidePage(this, "_api/SP.Publishing.RichSharing/SharePageByEmail"), (0, queryable_1.body)({
|
|
603
|
-
recipientEmails: emails,
|
|
604
|
-
message,
|
|
605
|
-
url: this.json.AbsoluteUrl,
|
|
606
|
-
}));
|
|
607
|
-
}
|
|
608
|
-
getCanvasContent1() {
|
|
609
|
-
return JSON.stringify(this.getControls());
|
|
610
|
-
}
|
|
611
|
-
getLayoutWebpartsContent() {
|
|
612
|
-
if (this._layoutPart) {
|
|
613
|
-
return JSON.stringify([this._layoutPart]);
|
|
614
|
-
}
|
|
615
|
-
else {
|
|
616
|
-
return JSON.stringify(null);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
setControls(controls) {
|
|
620
|
-
// reset the sections
|
|
621
|
-
this.sections = [];
|
|
622
|
-
if (controls && controls.length) {
|
|
623
|
-
for (let i = 0; i < controls.length; i++) {
|
|
624
|
-
// if no control type is present this is a column which we give type 0 to let us process it
|
|
625
|
-
const controlType = (0, core_1.hOP)(controls[i], "controlType") ? controls[i].controlType : 0;
|
|
626
|
-
switch (controlType) {
|
|
627
|
-
case 0:
|
|
628
|
-
// empty canvas column or page settings
|
|
629
|
-
if ((0, core_1.hOP)(controls[i], "pageSettingsSlice")) {
|
|
630
|
-
this._pageSettings = controls[i];
|
|
631
|
-
}
|
|
632
|
-
else {
|
|
633
|
-
// we have an empty column
|
|
634
|
-
this.mergeColumnToTree(new CanvasColumn(controls[i]));
|
|
635
|
-
}
|
|
636
|
-
break;
|
|
637
|
-
case 3: {
|
|
638
|
-
const part = new ClientsideWebpart(controls[i]);
|
|
639
|
-
this.mergePartToTree(part, part.data.position);
|
|
640
|
-
break;
|
|
641
|
-
}
|
|
642
|
-
case 4: {
|
|
643
|
-
const textData = controls[i];
|
|
644
|
-
const text = new ClientsideText(textData.innerHTML, textData);
|
|
645
|
-
this.mergePartToTree(text, text.data.position);
|
|
646
|
-
break;
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
(0, funcs_js_1.reindex)(this.sections);
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
getControls() {
|
|
654
|
-
// reindex things
|
|
655
|
-
(0, funcs_js_1.reindex)(this.sections);
|
|
656
|
-
// rollup the control changes
|
|
657
|
-
const canvasData = [];
|
|
658
|
-
this.sections.forEach(section => {
|
|
659
|
-
section.columns.forEach(column => {
|
|
660
|
-
if (column.controls.length < 1) {
|
|
661
|
-
// empty column
|
|
662
|
-
canvasData.push({
|
|
663
|
-
displayMode: column.data.displayMode,
|
|
664
|
-
emphasis: this.getEmphasisObj(section.emphasis),
|
|
665
|
-
position: column.data.position,
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
else {
|
|
669
|
-
column.controls.forEach(control => {
|
|
670
|
-
control.data.emphasis = this.getEmphasisObj(section.emphasis);
|
|
671
|
-
canvasData.push(this.specialSaveHandling(control).data);
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
});
|
|
675
|
-
});
|
|
676
|
-
canvasData.push(this._pageSettings);
|
|
677
|
-
return canvasData;
|
|
678
|
-
}
|
|
679
|
-
getEmphasisObj(value) {
|
|
680
|
-
if (value < 1 || value > 3) {
|
|
681
|
-
return {};
|
|
682
|
-
}
|
|
683
|
-
return { zoneEmphasis: value };
|
|
684
|
-
}
|
|
685
|
-
async promoteNewsImpl(method) {
|
|
686
|
-
if (this.json.Id === null) {
|
|
687
|
-
throw Error("The id for this page is null.");
|
|
688
|
-
}
|
|
689
|
-
// per bug #858 if we promote before we have ever published the last published date will
|
|
690
|
-
// forever not be updated correctly in the modern news web part. Because this will affect very
|
|
691
|
-
// few folks we just go ahead and publish for them here as that is likely what they intended.
|
|
692
|
-
if ((0, core_1.stringIsNullOrEmpty)(this.json.VersionInfo.LastVersionCreatedBy)) {
|
|
693
|
-
const lastPubData = new Date(this.json.VersionInfo.LastVersionCreated);
|
|
694
|
-
// no modern page should reasonable be published before the year 2000 :)
|
|
695
|
-
if (lastPubData.getFullYear() < 2000) {
|
|
696
|
-
await this.save(true);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
return (0, spqueryable_js_1.spPost)(ClientsidePage(this, `_api/sitepages/pages(${this.json.Id})/${method}`));
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* Merges the control into the tree of sections and columns for this page
|
|
703
|
-
*
|
|
704
|
-
* @param control The control to merge
|
|
705
|
-
*/
|
|
706
|
-
mergePartToTree(control, positionData) {
|
|
707
|
-
var _a, _b, _c;
|
|
708
|
-
let column = null;
|
|
709
|
-
let sectionFactor = 12;
|
|
710
|
-
let sectionIndex = 0;
|
|
711
|
-
let zoneIndex = 0;
|
|
712
|
-
let layoutIndex = 1;
|
|
713
|
-
// handle case where we don't have position data (shouldn't happen?)
|
|
714
|
-
if (positionData) {
|
|
715
|
-
if ((0, core_1.hOP)(positionData, "zoneIndex")) {
|
|
716
|
-
zoneIndex = positionData.zoneIndex;
|
|
717
|
-
}
|
|
718
|
-
if ((0, core_1.hOP)(positionData, "sectionIndex")) {
|
|
719
|
-
sectionIndex = positionData.sectionIndex;
|
|
720
|
-
}
|
|
721
|
-
if ((0, core_1.hOP)(positionData, "sectionFactor")) {
|
|
722
|
-
sectionFactor = positionData.sectionFactor;
|
|
723
|
-
}
|
|
724
|
-
if ((0, core_1.hOP)(positionData, "layoutIndex")) {
|
|
725
|
-
layoutIndex = positionData.layoutIndex;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
const zoneEmphasis = (_c = (_b = (_a = control.data) === null || _a === void 0 ? void 0 : _a.emphasis) === null || _b === void 0 ? void 0 : _b.zoneEmphasis) !== null && _c !== void 0 ? _c : 0;
|
|
729
|
-
const section = this.getOrCreateSection(zoneIndex, layoutIndex, zoneEmphasis);
|
|
730
|
-
const columns = section.columns.filter(c => c.order === sectionIndex);
|
|
731
|
-
if (columns.length < 1) {
|
|
732
|
-
column = section.addColumn(sectionFactor, layoutIndex);
|
|
733
|
-
}
|
|
734
|
-
else {
|
|
735
|
-
column = columns[0];
|
|
736
|
-
}
|
|
737
|
-
control.column = column;
|
|
738
|
-
column.addControl(control);
|
|
739
|
-
}
|
|
740
|
-
/**
|
|
741
|
-
* Merges the supplied column into the tree
|
|
742
|
-
*
|
|
743
|
-
* @param column Column to merge
|
|
744
|
-
* @param position The position data for the column
|
|
745
|
-
*/
|
|
746
|
-
mergeColumnToTree(column) {
|
|
747
|
-
var _a, _b;
|
|
748
|
-
const order = (0, core_1.hOP)(column.data, "position") && (0, core_1.hOP)(column.data.position, "zoneIndex") ? column.data.position.zoneIndex : 0;
|
|
749
|
-
const layoutIndex = (0, core_1.hOP)(column.data, "position") && (0, core_1.hOP)(column.data.position, "layoutIndex") ? column.data.position.layoutIndex : 1;
|
|
750
|
-
const section = this.getOrCreateSection(order, layoutIndex, ((_b = (_a = column.data) === null || _a === void 0 ? void 0 : _a.emphasis) === null || _b === void 0 ? void 0 : _b.zoneEmphasis) || 0);
|
|
751
|
-
column.section = section;
|
|
752
|
-
section.columns.push(column);
|
|
753
|
-
}
|
|
754
|
-
/**
|
|
755
|
-
* Handle the logic to get or create a section based on the supplied order and layoutIndex
|
|
756
|
-
*
|
|
757
|
-
* @param order Section order
|
|
758
|
-
* @param layoutIndex Layout Index (1 === normal, 2 === vertical section)
|
|
759
|
-
* @param emphasis The section emphasis
|
|
760
|
-
*/
|
|
761
|
-
getOrCreateSection(order, layoutIndex, emphasis) {
|
|
762
|
-
let section = null;
|
|
763
|
-
const sections = this.sections.filter(s => s.order === order && s.layoutIndex === layoutIndex);
|
|
764
|
-
if (sections.length < 1) {
|
|
765
|
-
section = layoutIndex === 2 ? this.addVerticalSection() : this.addSection();
|
|
766
|
-
section.order = order;
|
|
767
|
-
section.emphasis = emphasis;
|
|
768
|
-
}
|
|
769
|
-
else {
|
|
770
|
-
section = sections[0];
|
|
771
|
-
}
|
|
772
|
-
return section;
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* Based on issue #1690 we need to take special case actions to ensure some things
|
|
776
|
-
* can be saved properly without breaking existing pages.
|
|
777
|
-
*
|
|
778
|
-
* @param control The control we are ensuring is "ready" to be saved
|
|
779
|
-
*/
|
|
780
|
-
specialSaveHandling(control) {
|
|
781
|
-
var _a, _b, _c;
|
|
782
|
-
// this is to handle the special case in issue #1690
|
|
783
|
-
// must ensure that searchablePlainTexts values have < replaced with < in links web part
|
|
784
|
-
// For #2561 need to process for code snippet webpart and any control && (<any>control).data.webPartId === "c70391ea-0b10-4ee9-b2b4-006d3fcad0cd"
|
|
785
|
-
if (control.data.controlType === 3) {
|
|
786
|
-
const texts = ((_c = (_b = (_a = control.data) === null || _a === void 0 ? void 0 : _a.webPartData) === null || _b === void 0 ? void 0 : _b.serverProcessedContent) === null || _c === void 0 ? void 0 : _c.searchablePlainTexts) || null;
|
|
787
|
-
if ((0, core_1.objectDefinedNotNull)(texts)) {
|
|
788
|
-
const keys = Object.getOwnPropertyNames(texts);
|
|
789
|
-
for (let i = 0; i < keys.length; i++) {
|
|
790
|
-
texts[keys[i]] = texts[keys[i]].replace(/</ig, "<");
|
|
791
|
-
control.data.webPartData.serverProcessedContent.searchablePlainTexts = texts;
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
return control;
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
exports._ClientsidePage = _ClientsidePage;
|
|
799
|
-
/**
|
|
800
|
-
* Invokable factory for IClientSidePage instances
|
|
801
|
-
*/
|
|
802
|
-
const ClientsidePage = (base, path, json, noInit = false, sections = [], commentsDisabled = false) => {
|
|
803
|
-
return new _ClientsidePage(base, path, json, noInit, sections, commentsDisabled);
|
|
804
|
-
};
|
|
805
|
-
/**
|
|
806
|
-
* Loads a client side page from the supplied IFile instance
|
|
807
|
-
*
|
|
808
|
-
* @param file Source IFile instance
|
|
809
|
-
*/
|
|
810
|
-
const ClientsidePageFromFile = async (file) => {
|
|
811
|
-
const item = await file.getItem();
|
|
812
|
-
const page = ClientsidePage([file, (0, extract_web_url_js_1.extractWebUrl)(file.toUrl())], "", { Id: item.Id }, true);
|
|
813
|
-
return page.load();
|
|
814
|
-
};
|
|
815
|
-
exports.ClientsidePageFromFile = ClientsidePageFromFile;
|
|
816
|
-
/**
|
|
817
|
-
* Creates a new client side page
|
|
818
|
-
*
|
|
819
|
-
* @param web The web or list
|
|
820
|
-
* @param pageName The name of the page (filename)
|
|
821
|
-
* @param title The page's title
|
|
822
|
-
* @param PageLayoutType Layout to use when creating the page
|
|
823
|
-
*/
|
|
824
|
-
const CreateClientsidePage = async (web, pageName, title, PageLayoutType = "Article", promotedState = 0) => {
|
|
825
|
-
// patched because previously we used the full page name with the .aspx at the end
|
|
826
|
-
// this allows folk's existing code to work after the re-write to the new API
|
|
827
|
-
pageName = pageName.replace(/\.aspx$/i, "");
|
|
828
|
-
// initialize the page, at this point a checked-out page with a junk filename will be created.
|
|
829
|
-
const pageInitData = await (0, spqueryable_js_1.spPost)(ClientsidePage(web, "_api/sitepages/pages"), (0, queryable_1.body)({
|
|
830
|
-
PageLayoutType,
|
|
831
|
-
PromotedState: promotedState,
|
|
832
|
-
}));
|
|
833
|
-
// now we can init our page with the save data
|
|
834
|
-
const newPage = ClientsidePage(web, "", pageInitData);
|
|
835
|
-
newPage.title = pageName;
|
|
836
|
-
await newPage.save(false);
|
|
837
|
-
newPage.title = title;
|
|
838
|
-
return newPage;
|
|
839
|
-
};
|
|
840
|
-
exports.CreateClientsidePage = CreateClientsidePage;
|
|
841
|
-
class CanvasSection {
|
|
842
|
-
constructor(page, order, layoutIndex, columns = [], _emphasis = 0) {
|
|
843
|
-
this.page = page;
|
|
844
|
-
this.columns = columns;
|
|
845
|
-
this._emphasis = _emphasis;
|
|
846
|
-
this._memId = (0, core_1.getGUID)();
|
|
847
|
-
this._order = order;
|
|
848
|
-
this._layoutIndex = layoutIndex;
|
|
849
|
-
}
|
|
850
|
-
get order() {
|
|
851
|
-
return this._order;
|
|
852
|
-
}
|
|
853
|
-
set order(value) {
|
|
854
|
-
this._order = value;
|
|
855
|
-
for (let i = 0; i < this.columns.length; i++) {
|
|
856
|
-
this.columns[i].data.position.zoneIndex = value;
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
get layoutIndex() {
|
|
860
|
-
return this._layoutIndex;
|
|
861
|
-
}
|
|
862
|
-
set layoutIndex(value) {
|
|
863
|
-
this._layoutIndex = value;
|
|
864
|
-
for (let i = 0; i < this.columns.length; i++) {
|
|
865
|
-
this.columns[i].data.position.layoutIndex = value;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* Default column (this.columns[0]) for this section
|
|
870
|
-
*/
|
|
871
|
-
get defaultColumn() {
|
|
872
|
-
if (this.columns.length < 1) {
|
|
873
|
-
this.addColumn(12);
|
|
874
|
-
}
|
|
875
|
-
return this.columns[0];
|
|
876
|
-
}
|
|
877
|
-
/**
|
|
878
|
-
* Adds a new column to this section
|
|
879
|
-
*/
|
|
880
|
-
addColumn(factor, layoutIndex = this.layoutIndex) {
|
|
881
|
-
const column = new CanvasColumn();
|
|
882
|
-
column.section = this;
|
|
883
|
-
column.data.position.zoneIndex = this.order;
|
|
884
|
-
column.data.position.layoutIndex = layoutIndex;
|
|
885
|
-
column.data.position.sectionFactor = factor;
|
|
886
|
-
column.order = (0, funcs_js_1.getNextOrder)(this.columns);
|
|
887
|
-
this.columns.push(column);
|
|
888
|
-
return column;
|
|
889
|
-
}
|
|
890
|
-
/**
|
|
891
|
-
* Adds a control to the default column for this section
|
|
892
|
-
*
|
|
893
|
-
* @param control Control to add to the default column
|
|
894
|
-
*/
|
|
895
|
-
addControl(control) {
|
|
896
|
-
this.defaultColumn.addControl(control);
|
|
897
|
-
return this;
|
|
898
|
-
}
|
|
899
|
-
get emphasis() {
|
|
900
|
-
return this._emphasis;
|
|
901
|
-
}
|
|
902
|
-
set emphasis(value) {
|
|
903
|
-
this._emphasis = value;
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
* Removes this section and all contained columns and controls from the collection
|
|
907
|
-
*/
|
|
908
|
-
remove() {
|
|
909
|
-
this.page.sections = this.page.sections.filter(section => section._memId !== this._memId);
|
|
910
|
-
(0, funcs_js_1.reindex)(this.page.sections);
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
exports.CanvasSection = CanvasSection;
|
|
914
|
-
class CanvasColumn {
|
|
915
|
-
constructor(json = JSON.parse(JSON.stringify(CanvasColumn.Default)), controls = []) {
|
|
916
|
-
this.json = json;
|
|
917
|
-
this.controls = controls;
|
|
918
|
-
this._section = null;
|
|
919
|
-
this._memId = (0, core_1.getGUID)();
|
|
920
|
-
}
|
|
921
|
-
get data() {
|
|
922
|
-
return this.json;
|
|
923
|
-
}
|
|
924
|
-
get section() {
|
|
925
|
-
return this._section;
|
|
926
|
-
}
|
|
927
|
-
set section(section) {
|
|
928
|
-
this._section = section;
|
|
929
|
-
}
|
|
930
|
-
get order() {
|
|
931
|
-
return this.data.position.sectionIndex;
|
|
932
|
-
}
|
|
933
|
-
set order(value) {
|
|
934
|
-
this.data.position.sectionIndex = value;
|
|
935
|
-
for (let i = 0; i < this.controls.length; i++) {
|
|
936
|
-
this.controls[i].data.position.zoneIndex = this.data.position.zoneIndex;
|
|
937
|
-
this.controls[i].data.position.layoutIndex = this.data.position.layoutIndex;
|
|
938
|
-
this.controls[i].data.position.sectionIndex = value;
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
get factor() {
|
|
942
|
-
return this.data.position.sectionFactor;
|
|
943
|
-
}
|
|
944
|
-
set factor(value) {
|
|
945
|
-
this.data.position.sectionFactor = value;
|
|
946
|
-
}
|
|
947
|
-
addControl(control) {
|
|
948
|
-
control.column = this;
|
|
949
|
-
this.controls.push(control);
|
|
950
|
-
return this;
|
|
951
|
-
}
|
|
952
|
-
getControl(index) {
|
|
953
|
-
return this.controls[index];
|
|
954
|
-
}
|
|
955
|
-
remove() {
|
|
956
|
-
this.section.columns = this.section.columns.filter(column => column._memId !== this._memId);
|
|
957
|
-
(0, funcs_js_1.reindex)(this.section.columns);
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
exports.CanvasColumn = CanvasColumn;
|
|
961
|
-
CanvasColumn.Default = {
|
|
962
|
-
controlType: 0,
|
|
963
|
-
displayMode: 2,
|
|
964
|
-
emphasis: {},
|
|
965
|
-
position: {
|
|
966
|
-
layoutIndex: 1,
|
|
967
|
-
sectionFactor: 12,
|
|
968
|
-
sectionIndex: 1,
|
|
969
|
-
zoneIndex: 1,
|
|
970
|
-
},
|
|
971
|
-
};
|
|
972
|
-
class ColumnControl {
|
|
973
|
-
constructor(json) {
|
|
974
|
-
this.json = json;
|
|
975
|
-
}
|
|
976
|
-
get id() {
|
|
977
|
-
return this.json.id;
|
|
978
|
-
}
|
|
979
|
-
get data() {
|
|
980
|
-
return this.json;
|
|
981
|
-
}
|
|
982
|
-
get column() {
|
|
983
|
-
return this._column;
|
|
984
|
-
}
|
|
985
|
-
set column(value) {
|
|
986
|
-
this._column = value;
|
|
987
|
-
this.onColumnChange(this._column);
|
|
988
|
-
}
|
|
989
|
-
remove() {
|
|
990
|
-
this.column.controls = this.column.controls.filter(control => control.id !== this.id);
|
|
991
|
-
(0, funcs_js_1.reindex)(this.column.controls);
|
|
992
|
-
}
|
|
993
|
-
setData(data) {
|
|
994
|
-
this.json = data;
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
exports.ColumnControl = ColumnControl;
|
|
998
|
-
class ClientsideText extends ColumnControl {
|
|
999
|
-
constructor(text, json = JSON.parse(JSON.stringify(ClientsideText.Default))) {
|
|
1000
|
-
if ((0, core_1.stringIsNullOrEmpty)(json.id)) {
|
|
1001
|
-
json.id = (0, core_1.getGUID)();
|
|
1002
|
-
json.anchorComponentId = json.id;
|
|
1003
|
-
}
|
|
1004
|
-
super(json);
|
|
1005
|
-
this.text = text;
|
|
1006
|
-
}
|
|
1007
|
-
get text() {
|
|
1008
|
-
return this.data.innerHTML;
|
|
1009
|
-
}
|
|
1010
|
-
set text(value) {
|
|
1011
|
-
this.data.innerHTML = value;
|
|
1012
|
-
}
|
|
1013
|
-
get order() {
|
|
1014
|
-
return this.data.position.controlIndex;
|
|
1015
|
-
}
|
|
1016
|
-
set order(value) {
|
|
1017
|
-
this.data.position.controlIndex = value;
|
|
1018
|
-
}
|
|
1019
|
-
onColumnChange(col) {
|
|
1020
|
-
this.data.position.sectionFactor = col.factor;
|
|
1021
|
-
this.data.position.controlIndex = (0, funcs_js_1.getNextOrder)(col.controls);
|
|
1022
|
-
this.data.position.zoneIndex = col.data.position.zoneIndex;
|
|
1023
|
-
this.data.position.sectionIndex = col.order;
|
|
1024
|
-
this.data.position.layoutIndex = col.data.position.layoutIndex;
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
exports.ClientsideText = ClientsideText;
|
|
1028
|
-
ClientsideText.Default = {
|
|
1029
|
-
addedFromPersistedData: false,
|
|
1030
|
-
anchorComponentId: "",
|
|
1031
|
-
controlType: 4,
|
|
1032
|
-
displayMode: 2,
|
|
1033
|
-
editorType: "CKEditor",
|
|
1034
|
-
emphasis: {},
|
|
1035
|
-
id: "",
|
|
1036
|
-
innerHTML: "",
|
|
1037
|
-
position: {
|
|
1038
|
-
controlIndex: 1,
|
|
1039
|
-
layoutIndex: 1,
|
|
1040
|
-
sectionFactor: 12,
|
|
1041
|
-
sectionIndex: 1,
|
|
1042
|
-
zoneIndex: 1,
|
|
1043
|
-
},
|
|
1044
|
-
};
|
|
1045
|
-
class ClientsideWebpart extends ColumnControl {
|
|
1046
|
-
constructor(json = JSON.parse(JSON.stringify(ClientsideWebpart.Default))) {
|
|
1047
|
-
super(json);
|
|
1048
|
-
}
|
|
1049
|
-
static fromComponentDef(definition) {
|
|
1050
|
-
const part = new ClientsideWebpart();
|
|
1051
|
-
part.import(definition);
|
|
1052
|
-
return part;
|
|
1053
|
-
}
|
|
1054
|
-
get title() {
|
|
1055
|
-
return this.data.webPartData.title;
|
|
1056
|
-
}
|
|
1057
|
-
set title(value) {
|
|
1058
|
-
this.data.webPartData.title = value;
|
|
1059
|
-
}
|
|
1060
|
-
get description() {
|
|
1061
|
-
return this.data.webPartData.description;
|
|
1062
|
-
}
|
|
1063
|
-
set description(value) {
|
|
1064
|
-
this.data.webPartData.description = value;
|
|
1065
|
-
}
|
|
1066
|
-
get order() {
|
|
1067
|
-
return this.data.position.controlIndex;
|
|
1068
|
-
}
|
|
1069
|
-
set order(value) {
|
|
1070
|
-
this.data.position.controlIndex = value;
|
|
1071
|
-
}
|
|
1072
|
-
get height() {
|
|
1073
|
-
return this.data.reservedHeight;
|
|
1074
|
-
}
|
|
1075
|
-
set height(value) {
|
|
1076
|
-
this.data.reservedHeight = value;
|
|
1077
|
-
}
|
|
1078
|
-
get width() {
|
|
1079
|
-
return this.data.reservedWidth;
|
|
1080
|
-
}
|
|
1081
|
-
set width(value) {
|
|
1082
|
-
this.data.reservedWidth = value;
|
|
1083
|
-
}
|
|
1084
|
-
get dataVersion() {
|
|
1085
|
-
return this.data.webPartData.dataVersion;
|
|
1086
|
-
}
|
|
1087
|
-
set dataVersion(value) {
|
|
1088
|
-
this.data.webPartData.dataVersion = value;
|
|
1089
|
-
}
|
|
1090
|
-
setProperties(properties) {
|
|
1091
|
-
this.data.webPartData.properties = {
|
|
1092
|
-
...this.data.webPartData.properties,
|
|
1093
|
-
...properties,
|
|
1094
|
-
};
|
|
1095
|
-
return this;
|
|
1096
|
-
}
|
|
1097
|
-
getProperties() {
|
|
1098
|
-
return this.data.webPartData.properties;
|
|
1099
|
-
}
|
|
1100
|
-
setServerProcessedContent(properties) {
|
|
1101
|
-
this.data.webPartData.serverProcessedContent = {
|
|
1102
|
-
...this.data.webPartData.serverProcessedContent,
|
|
1103
|
-
...properties,
|
|
1104
|
-
};
|
|
1105
|
-
return this;
|
|
1106
|
-
}
|
|
1107
|
-
getServerProcessedContent() {
|
|
1108
|
-
return this.data.webPartData.serverProcessedContent;
|
|
1109
|
-
}
|
|
1110
|
-
onColumnChange(col) {
|
|
1111
|
-
this.data.position.sectionFactor = col.factor;
|
|
1112
|
-
this.data.position.controlIndex = (0, funcs_js_1.getNextOrder)(col.controls);
|
|
1113
|
-
this.data.position.zoneIndex = col.data.position.zoneIndex;
|
|
1114
|
-
this.data.position.sectionIndex = col.data.position.sectionIndex;
|
|
1115
|
-
this.data.position.layoutIndex = col.data.position.layoutIndex;
|
|
1116
|
-
}
|
|
1117
|
-
import(component) {
|
|
1118
|
-
const id = (0, core_1.getGUID)();
|
|
1119
|
-
const componendId = component.Id.replace(/^\{|\}$/g, "").toLowerCase();
|
|
1120
|
-
const manifest = JSON.parse(component.Manifest);
|
|
1121
|
-
const preconfiguredEntries = manifest.preconfiguredEntries[0];
|
|
1122
|
-
this.setData(Object.assign({}, this.data, {
|
|
1123
|
-
id,
|
|
1124
|
-
webPartData: {
|
|
1125
|
-
dataVersion: "1.0",
|
|
1126
|
-
description: preconfiguredEntries.description.default,
|
|
1127
|
-
id: componendId,
|
|
1128
|
-
instanceId: id,
|
|
1129
|
-
properties: preconfiguredEntries.properties,
|
|
1130
|
-
title: preconfiguredEntries.title.default,
|
|
1131
|
-
},
|
|
1132
|
-
webPartId: componendId,
|
|
1133
|
-
}));
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
exports.ClientsideWebpart = ClientsideWebpart;
|
|
1137
|
-
ClientsideWebpart.Default = {
|
|
1138
|
-
addedFromPersistedData: false,
|
|
1139
|
-
controlType: 3,
|
|
1140
|
-
displayMode: 2,
|
|
1141
|
-
emphasis: {},
|
|
1142
|
-
id: null,
|
|
1143
|
-
position: {
|
|
1144
|
-
controlIndex: 1,
|
|
1145
|
-
layoutIndex: 1,
|
|
1146
|
-
sectionFactor: 12,
|
|
1147
|
-
sectionIndex: 1,
|
|
1148
|
-
zoneIndex: 1,
|
|
1149
|
-
},
|
|
1150
|
-
reservedHeight: 500,
|
|
1151
|
-
reservedWidth: 500,
|
|
1152
|
-
webPartData: null,
|
|
1153
|
-
webPartId: null,
|
|
1154
|
-
};
|
|
1155
|
-
//# sourceMappingURL=types.js.map
|