@opencloud-eu/web-pkg 5.0.0 → 6.0.0

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.
Files changed (70) hide show
  1. package/dist/{TextEditor-CJgYG8Kl.js → TextEditor-D-HQDUkm.js} +3 -5
  2. package/dist/assets/worker-CVwKToFD.js +21 -0
  3. package/dist/assets/worker-DJbU-qfq.js +21 -0
  4. package/dist/assets/worker-DyU7W9CZ.js +21 -0
  5. package/dist/index-OU30YA6H.js +25032 -0
  6. package/dist/src/apps/types.d.ts +0 -3
  7. package/dist/src/components/AppBar/AppBar.vue.d.ts +2 -9
  8. package/dist/src/components/AppBar/index.d.ts +0 -1
  9. package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +1 -1
  10. package/dist/src/components/AppTopBar.vue.d.ts +1 -1
  11. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +409 -11
  12. package/dist/src/components/CreateShortcutModal.vue.d.ts +222 -0
  13. package/dist/src/components/CustomComponentTarget.vue.d.ts +4 -14
  14. package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +1 -1
  15. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +0 -1
  16. package/dist/src/components/Filters/DateFilter.vue.d.ts +500 -0
  17. package/dist/src/components/Navigation/MobileNav.vue.d.ts +2 -0
  18. package/dist/src/components/Navigation/index.d.ts +1 -0
  19. package/dist/src/components/NoContentMessage.vue.d.ts +3 -2
  20. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +4 -13
  21. package/dist/src/components/SideBar/SideBar.vue.d.ts +3 -9
  22. package/dist/src/components/SideBar/SideBarPanels.vue.d.ts +38 -0
  23. package/dist/src/components/SideBar/index.d.ts +1 -0
  24. package/dist/src/components/index.d.ts +1 -1
  25. package/dist/src/composables/actions/files/index.d.ts +1 -0
  26. package/dist/src/composables/actions/files/useFileActionFallbackToDownload.d.ts +4 -0
  27. package/dist/src/composables/actions/spaces/index.d.ts +1 -0
  28. package/dist/src/composables/actions/spaces/useSpaceActionsCreate.d.ts +7 -0
  29. package/dist/src/composables/folderLink/useFolderLink.d.ts +1 -1
  30. package/dist/src/composables/index.d.ts +1 -2
  31. package/dist/src/composables/navItems/index.d.ts +1 -0
  32. package/dist/src/composables/navItems/useNavItems.d.ts +13 -0
  33. package/dist/src/composables/piniaStores/auth.d.ts +8 -2
  34. package/dist/src/composables/piniaStores/avatars.d.ts +1 -1
  35. package/dist/src/composables/piniaStores/extensionRegistry/types.d.ts +14 -1
  36. package/dist/src/composables/piniaStores/index.d.ts +4 -3
  37. package/dist/src/composables/piniaStores/sideBar.d.ts +32 -0
  38. package/dist/src/composables/piniaStores/user.d.ts +1 -1
  39. package/dist/src/composables/resources/index.d.ts +1 -0
  40. package/dist/src/composables/resources/useResourceIndicators.d.ts +19 -0
  41. package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +4 -3
  42. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +2 -2
  43. package/dist/src/composables/spaces/useCreateSpace.d.ts +1 -0
  44. package/dist/src/constants.d.ts +0 -6
  45. package/dist/src/extensionPoints.d.ts +3 -0
  46. package/dist/src/helpers/filesize.d.ts +0 -7
  47. package/dist/src/helpers/index.d.ts +1 -2
  48. package/dist/src/helpers/versions.d.ts +5 -0
  49. package/dist/src/index.d.ts +1 -0
  50. package/dist/web-pkg.js +301 -300
  51. package/dist/web-pkg.umd.cjs +14 -66
  52. package/package.json +5 -7
  53. package/src/index.ts +1 -0
  54. package/dist/assets/worker-Bc2UmjVr.js +0 -40
  55. package/dist/assets/worker-BeDmEhWu.js +0 -40
  56. package/dist/assets/worker-DWoO7i6z.js +0 -40
  57. package/dist/index-D-EuklHo.js +0 -33782
  58. package/dist/src/components/AppBar/CreateSpace.vue.d.ts +0 -18
  59. package/dist/src/components/PortalTarget.vue.d.ts +0 -41
  60. package/dist/src/components/TextEditor/TextEditor.vue.d.ts +0 -165
  61. package/dist/src/components/TextEditor/index.d.ts +0 -161
  62. package/dist/src/composables/portalTarget/eventTopics.d.ts +0 -3
  63. package/dist/src/composables/portalTarget/index.d.ts +0 -2
  64. package/dist/src/composables/portalTarget/usePortalTarget.d.ts +0 -4
  65. package/dist/src/composables/sideBar/eventTopics.d.ts +0 -7
  66. package/dist/src/composables/sideBar/index.d.ts +0 -2
  67. package/dist/src/composables/sideBar/useSideBar.d.ts +0 -12
  68. package/dist/src/helpers/contextMenuDropdown.d.ts +0 -7
  69. package/dist/src/helpers/statusIndicators.d.ts +0 -23
  70. package/dist/src/services/passwordPolicy/rules.d.ts +0 -69
@@ -1,18 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- showLabel: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- }>, {
7
- showCreateSpaceModal: () => void;
8
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "spaceCreated"[], "spaceCreated", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
- showLabel: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- }>> & Readonly<{
14
- onSpaceCreated?: (...args: any[]) => any;
15
- }>, {
16
- showLabel: boolean;
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
- export default _default;
@@ -1,41 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- properties: import('vue').ComputedRef<any>;
3
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
4
- [x: string]: any;
5
- }, {}, {
6
- PortalTargetVue: import('vue').DefineComponent<{
7
- multiple: {
8
- type: BooleanConstructor;
9
- default: boolean;
10
- };
11
- name: {
12
- type: StringConstructor;
13
- required: true;
14
- };
15
- slotProps: {
16
- type: ObjectConstructor;
17
- default: () => {};
18
- };
19
- }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
20
- [key: string]: any;
21
- }>[] | undefined, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
22
- multiple: {
23
- type: BooleanConstructor;
24
- default: boolean;
25
- };
26
- name: {
27
- type: StringConstructor;
28
- required: true;
29
- };
30
- slotProps: {
31
- type: ObjectConstructor;
32
- default: () => {};
33
- };
34
- }>> & {
35
- onChange?: ((...args: any[]) => any) | undefined;
36
- }, {
37
- slotProps: Record<string, any>;
38
- multiple: boolean;
39
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
40
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
- export default _default;
@@ -1,165 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { Resource } from '@opencloud-eu/web-client';
3
- import { AppConfigObject } from '../../apps';
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
- applicationConfig: {
6
- type: PropType<AppConfigObject>;
7
- required: false;
8
- };
9
- currentContent: {
10
- type: StringConstructor;
11
- required: true;
12
- };
13
- markdownMode: {
14
- type: BooleanConstructor;
15
- required: false;
16
- default: boolean;
17
- };
18
- isReadOnly: {
19
- type: BooleanConstructor;
20
- required: false;
21
- default: boolean;
22
- };
23
- resource: {
24
- type: PropType<Resource>;
25
- required: false;
26
- };
27
- }>, {
28
- isMarkdown: import('vue').ComputedRef<boolean>;
29
- theme: import('vue').ComputedRef<"light" | "dark">;
30
- toolbars: import('vue').ComputedRef<(string | number)[]>;
31
- language: {
32
- available: import('vue3-gettext').GetTextOptions["availableLanguages"];
33
- muted: import('vue3-gettext').GetTextOptions["mutedLanguages"];
34
- silent: import('vue3-gettext').GetTextOptions["silent"];
35
- translations: import('vue3-gettext').Translations;
36
- current: string;
37
- $gettext: (msgid: string, parameters?: {
38
- [key: string]: string;
39
- }, disableHtmlEscaping?: boolean) => string;
40
- $pgettext: (context: string, msgid: string, parameters?: {
41
- [key: string]: string;
42
- }, disableHtmlEscaping?: boolean) => string;
43
- $ngettext: (msgid: string, plural: string, n: number, parameters?: {
44
- [key: string]: string;
45
- }, disableHtmlEscaping?: boolean) => string;
46
- $npgettext: (context: string, msgid: string, plural: string, n: number, parameters?: {
47
- [key: string]: string;
48
- }, disableHtmlEscaping?: boolean) => string;
49
- interpolate: (msgid: string, context: object, disableHtmlEscaping?: boolean) => string;
50
- install: (app: import('vue').App) => void;
51
- directive: {
52
- created?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
53
- beforeMount?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
54
- mounted?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
55
- beforeUpdate?: import('vue').DirectiveHook<HTMLElement, import('vue').VNode<any, HTMLElement, {
56
- [key: string]: any;
57
- }>, any, string, any>;
58
- updated?: import('vue').DirectiveHook<HTMLElement, import('vue').VNode<any, HTMLElement, {
59
- [key: string]: any;
60
- }>, any, string, any>;
61
- beforeUnmount?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
62
- unmounted?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
63
- getSSRProps?: (binding: import('vue').DirectiveBinding<any, string, any>, vnode: import('vue').VNode) => {
64
- [x: string]: unknown;
65
- } | undefined;
66
- deep?: boolean;
67
- };
68
- component: import('vue').DefineComponent<{
69
- tag: {
70
- type: StringConstructor;
71
- default: string;
72
- };
73
- translateN: {
74
- type: NumberConstructor;
75
- default: null;
76
- };
77
- translatePlural: {
78
- type: StringConstructor;
79
- default: null;
80
- };
81
- translateContext: {
82
- type: StringConstructor;
83
- default: null;
84
- };
85
- translateParams: {
86
- type: ObjectConstructor;
87
- default: null;
88
- };
89
- translateComment: {
90
- type: StringConstructor;
91
- default: null;
92
- };
93
- }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
94
- [key: string]: any;
95
- }>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
96
- tag: {
97
- type: StringConstructor;
98
- default: string;
99
- };
100
- translateN: {
101
- type: NumberConstructor;
102
- default: null;
103
- };
104
- translatePlural: {
105
- type: StringConstructor;
106
- default: null;
107
- };
108
- translateContext: {
109
- type: StringConstructor;
110
- default: null;
111
- };
112
- translateParams: {
113
- type: ObjectConstructor;
114
- default: null;
115
- };
116
- translateComment: {
117
- type: StringConstructor;
118
- default: null;
119
- };
120
- }>>, {
121
- tag: string;
122
- translateN: number;
123
- translatePlural: string;
124
- translateContext: string;
125
- translateParams: Record<string, any>;
126
- translateComment: string;
127
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
128
- };
129
- languages: Record<string, string>;
130
- onUploadImg: (files: File[]) => Promise<void>;
131
- showLineNumbers: import('vue').Ref<boolean, boolean>;
132
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:currentContent"[], "update:currentContent", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
133
- applicationConfig: {
134
- type: PropType<AppConfigObject>;
135
- required: false;
136
- };
137
- currentContent: {
138
- type: StringConstructor;
139
- required: true;
140
- };
141
- markdownMode: {
142
- type: BooleanConstructor;
143
- required: false;
144
- default: boolean;
145
- };
146
- isReadOnly: {
147
- type: BooleanConstructor;
148
- required: false;
149
- default: boolean;
150
- };
151
- resource: {
152
- type: PropType<Resource>;
153
- required: false;
154
- };
155
- }>> & Readonly<{
156
- "onUpdate:currentContent"?: (...args: any[]) => any;
157
- }>, {
158
- isReadOnly: boolean;
159
- markdownMode: boolean;
160
- }, {}, {
161
- MdEditor: any;
162
- MdPreview: any;
163
- NormalToolbar: any;
164
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
165
- export default _default;
@@ -1,161 +0,0 @@
1
- export declare const TextEditor: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- applicationConfig: {
3
- type: import('vue').PropType<import('../..').AppConfigObject>;
4
- required: false;
5
- };
6
- currentContent: {
7
- type: StringConstructor;
8
- required: true;
9
- };
10
- markdownMode: {
11
- type: BooleanConstructor;
12
- required: false;
13
- default: boolean;
14
- };
15
- isReadOnly: {
16
- type: BooleanConstructor;
17
- required: false;
18
- default: boolean;
19
- };
20
- resource: {
21
- type: import('vue').PropType<import('@opencloud-eu/web-client').Resource>;
22
- required: false;
23
- };
24
- }>, {
25
- isMarkdown: import('vue').ComputedRef<boolean>;
26
- theme: import('vue').ComputedRef<"light" | "dark">;
27
- toolbars: import('vue').ComputedRef<(string | number)[]>;
28
- language: {
29
- available: import('vue3-gettext').GetTextOptions["availableLanguages"];
30
- muted: import('vue3-gettext').GetTextOptions["mutedLanguages"];
31
- silent: import('vue3-gettext').GetTextOptions["silent"];
32
- translations: import('vue3-gettext').Translations;
33
- current: string;
34
- $gettext: (msgid: string, parameters?: {
35
- [key: string]: string;
36
- }, disableHtmlEscaping?: boolean) => string;
37
- $pgettext: (context: string, msgid: string, parameters?: {
38
- [key: string]: string;
39
- }, disableHtmlEscaping?: boolean) => string;
40
- $ngettext: (msgid: string, plural: string, n: number, parameters?: {
41
- [key: string]: string;
42
- }, disableHtmlEscaping?: boolean) => string;
43
- $npgettext: (context: string, msgid: string, plural: string, n: number, parameters?: {
44
- [key: string]: string;
45
- }, disableHtmlEscaping?: boolean) => string;
46
- interpolate: (msgid: string, context: object, disableHtmlEscaping?: boolean) => string;
47
- install: (app: import('vue').App) => void;
48
- directive: {
49
- created?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
50
- beforeMount?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
51
- mounted?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
52
- beforeUpdate?: import('vue').DirectiveHook<HTMLElement, import('vue').VNode<any, HTMLElement, {
53
- [key: string]: any;
54
- }>, any, string, any>;
55
- updated?: import('vue').DirectiveHook<HTMLElement, import('vue').VNode<any, HTMLElement, {
56
- [key: string]: any;
57
- }>, any, string, any>;
58
- beforeUnmount?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
59
- unmounted?: import('vue').DirectiveHook<HTMLElement, null, any, string, any>;
60
- getSSRProps?: (binding: import('vue').DirectiveBinding<any, string, any>, vnode: import('vue').VNode) => {
61
- [x: string]: unknown;
62
- } | undefined;
63
- deep?: boolean;
64
- };
65
- component: import('vue').DefineComponent<{
66
- tag: {
67
- type: StringConstructor;
68
- default: string;
69
- };
70
- translateN: {
71
- type: NumberConstructor;
72
- default: null;
73
- };
74
- translatePlural: {
75
- type: StringConstructor;
76
- default: null;
77
- };
78
- translateContext: {
79
- type: StringConstructor;
80
- default: null;
81
- };
82
- translateParams: {
83
- type: ObjectConstructor;
84
- default: null;
85
- };
86
- translateComment: {
87
- type: StringConstructor;
88
- default: null;
89
- };
90
- }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
91
- [key: string]: any;
92
- }>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
93
- tag: {
94
- type: StringConstructor;
95
- default: string;
96
- };
97
- translateN: {
98
- type: NumberConstructor;
99
- default: null;
100
- };
101
- translatePlural: {
102
- type: StringConstructor;
103
- default: null;
104
- };
105
- translateContext: {
106
- type: StringConstructor;
107
- default: null;
108
- };
109
- translateParams: {
110
- type: ObjectConstructor;
111
- default: null;
112
- };
113
- translateComment: {
114
- type: StringConstructor;
115
- default: null;
116
- };
117
- }>>, {
118
- tag: string;
119
- translateN: number;
120
- translatePlural: string;
121
- translateContext: string;
122
- translateParams: Record<string, any>;
123
- translateComment: string;
124
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
125
- };
126
- languages: Record<string, string>;
127
- onUploadImg: (files: File[]) => Promise<void>;
128
- showLineNumbers: import('vue').Ref<boolean, boolean>;
129
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:currentContent"[], "update:currentContent", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
130
- applicationConfig: {
131
- type: import('vue').PropType<import('../..').AppConfigObject>;
132
- required: false;
133
- };
134
- currentContent: {
135
- type: StringConstructor;
136
- required: true;
137
- };
138
- markdownMode: {
139
- type: BooleanConstructor;
140
- required: false;
141
- default: boolean;
142
- };
143
- isReadOnly: {
144
- type: BooleanConstructor;
145
- required: false;
146
- default: boolean;
147
- };
148
- resource: {
149
- type: import('vue').PropType<import('@opencloud-eu/web-client').Resource>;
150
- required: false;
151
- };
152
- }>> & Readonly<{
153
- "onUpdate:currentContent"?: (...args: any[]) => any;
154
- }>, {
155
- isReadOnly: boolean;
156
- markdownMode: boolean;
157
- }, {}, {
158
- MdEditor: any;
159
- MdPreview: any;
160
- NormalToolbar: any;
161
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,3 +0,0 @@
1
- export declare enum PortalTargetEventTopics {
2
- mounted = "portal-target.mounted"
3
- }
@@ -1,2 +0,0 @@
1
- export * from './eventTopics';
2
- export * from './usePortalTarget';
@@ -1,4 +0,0 @@
1
- import { TransportInput } from 'portal-vue/types';
2
- export declare const usePortalTarget: () => {
3
- registerPortal: (transportInput: TransportInput) => void;
4
- };
@@ -1,7 +0,0 @@
1
- export declare enum SideBarEventTopics {
2
- open = "sidebar.open",
3
- close = "sidebar.close",
4
- toggle = "sidebar.toggle",
5
- openWithPanel = "sidebar.openWithPanel",
6
- setActivePanel = "sidebar.setActivePanel"
7
- }
@@ -1,2 +0,0 @@
1
- export * from './eventTopics';
2
- export * from './useSideBar';
@@ -1,12 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { EventBus } from '../../services/eventBus';
3
- interface SideBarResult {
4
- isSideBarOpen: Ref<boolean>;
5
- sideBarActivePanel: Ref<string>;
6
- onPanelActive: (name: string, callback: (string: any) => void) => void;
7
- }
8
- interface SideBarOptions {
9
- bus?: EventBus;
10
- }
11
- export declare const useSideBar: (options?: SideBarOptions) => SideBarResult;
12
- export {};
@@ -1,7 +0,0 @@
1
- import { OcDrop } from '@opencloud-eu/design-system/components';
2
- import { ComponentPublicInstance } from 'vue';
3
- export type ContextMenuBtnClickEventData = {
4
- event: MouseEvent | KeyboardEvent;
5
- dropdown: ComponentPublicInstance<typeof OcDrop>;
6
- };
7
- export declare const displayPositionedDropdown: (dropdown: ComponentPublicInstance<typeof OcDrop>, event: MouseEvent | KeyboardEvent, contextMenuButton: HTMLElement | ComponentPublicInstance<unknown>) => void;
@@ -1,23 +0,0 @@
1
- import { Resource, SpaceResource } from '@opencloud-eu/web-client';
2
- import { AncestorMetaData } from '../types';
3
- import { User } from '@opencloud-eu/web-client/graph/generated';
4
- import { IconFillType } from './resource';
5
- import { useInterceptModifierClick } from '../composables';
6
- export type ResourceIndicatorCategory = 'system' | 'sharing' | 'space';
7
- export interface ResourceIndicator {
8
- id: string;
9
- accessibleDescription: string;
10
- label: string;
11
- icon: string;
12
- fillType: IconFillType;
13
- type: string;
14
- category: ResourceIndicatorCategory;
15
- handler?: (resource: Resource, event?: MouseEvent) => void;
16
- }
17
- export declare const getIndicators: ({ space, resource, ancestorMetaData, user, interceptModifierClick }: {
18
- space: SpaceResource;
19
- resource: Resource;
20
- ancestorMetaData: AncestorMetaData;
21
- user: User;
22
- interceptModifierClick: ReturnType<typeof useInterceptModifierClick>["interceptModifierClick"];
23
- }) => ResourceIndicator[];
@@ -1,69 +0,0 @@
1
- import { Language } from 'vue3-gettext';
2
- export interface PasswordPolicyRuleOptions {
3
- minLength?: number;
4
- maxLength?: number;
5
- characters?: string;
6
- }
7
- export interface PasswordPolicyRuleExplained {
8
- code: string;
9
- message: string;
10
- helperMessage?: string;
11
- format: (number | string)[];
12
- verified?: boolean;
13
- }
14
- export interface PasswordPolicyRule {
15
- assert(options: PasswordPolicyRuleOptions, password: string): boolean;
16
- explain(options: PasswordPolicyRuleOptions, verified?: boolean): PasswordPolicyRuleExplained;
17
- missing(options: PasswordPolicyRuleOptions, password: string): PasswordPolicyRuleExplained;
18
- validate(options?: PasswordPolicyRuleOptions): boolean;
19
- }
20
- export declare class MustNotBeEmptyRule implements PasswordPolicyRule {
21
- protected $gettext: (msgid: string, parameters?: {
22
- [key: string]: string;
23
- }, disableHtmlEscaping?: boolean) => string;
24
- constructor({ $gettext }: Language);
25
- explain(options: PasswordPolicyRuleOptions, verified: boolean): PasswordPolicyRuleExplained;
26
- assert(options: PasswordPolicyRuleOptions, password: string): boolean;
27
- validate(): boolean;
28
- missing(options: PasswordPolicyRuleOptions, password: string): PasswordPolicyRuleExplained;
29
- }
30
- export declare class MustContainRule implements PasswordPolicyRule {
31
- protected $gettext: (msgid: string, parameters?: {
32
- [key: string]: string;
33
- }, disableHtmlEscaping?: boolean) => string;
34
- constructor({ $gettext }: Language);
35
- explain(options: PasswordPolicyRuleOptions, verified: boolean): PasswordPolicyRuleExplained;
36
- assert(options: PasswordPolicyRuleOptions, password: string): boolean;
37
- validate(options: PasswordPolicyRuleOptions): boolean;
38
- missing(options: PasswordPolicyRuleOptions, password: string): PasswordPolicyRuleExplained;
39
- }
40
- export declare class AtLeastBaseRule implements PasswordPolicyRule {
41
- protected $gettext: (msgid: string, parameters?: {
42
- [key: string]: string;
43
- }, disableHtmlEscaping?: boolean) => string;
44
- constructor({ $gettext }: Language);
45
- assert(options: PasswordPolicyRuleOptions, password: string): boolean;
46
- explain(options: PasswordPolicyRuleOptions, verified?: boolean): PasswordPolicyRuleExplained;
47
- validate(options: PasswordPolicyRuleOptions): boolean;
48
- missing(options: PasswordPolicyRuleOptions, password: string): PasswordPolicyRuleExplained;
49
- }
50
- export declare class AtLeastCharactersRule extends AtLeastBaseRule implements PasswordPolicyRule {
51
- constructor(args: Language);
52
- explain(options: PasswordPolicyRuleOptions, verified: boolean): PasswordPolicyRuleExplained;
53
- assert(options: PasswordPolicyRuleOptions, password: string): boolean;
54
- }
55
- export declare class AtLeastUppercaseCharactersRule extends AtLeastBaseRule {
56
- constructor(args: Language);
57
- explain(options: PasswordPolicyRuleOptions, verified: boolean): PasswordPolicyRuleExplained;
58
- assert(options: PasswordPolicyRuleOptions, password: string): boolean;
59
- }
60
- export declare class AtLeastLowercaseCharactersRule extends AtLeastBaseRule {
61
- constructor(args: Language);
62
- explain(options: PasswordPolicyRuleOptions, verified: boolean): PasswordPolicyRuleExplained;
63
- assert(options: PasswordPolicyRuleOptions, password: string): boolean;
64
- }
65
- export declare class AtLeastDigitsRule extends AtLeastBaseRule {
66
- constructor(args: Language);
67
- explain(options: PasswordPolicyRuleOptions, verified: boolean): PasswordPolicyRuleExplained;
68
- assert(options: PasswordPolicyRuleOptions, password: string): boolean;
69
- }