@sd-angular/core 19.0.0-beta.3 → 19.0.0-beta.31
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/assets/scss/ckeditor5.scss +60 -2
- package/components/avatar/index.d.ts +1 -0
- package/components/avatar/src/avatar.component.d.ts +14 -0
- package/components/document-builder/src/document-builder.component.d.ts +29 -7
- package/components/document-builder/src/document-builder.config.d.ts +21 -0
- package/components/document-builder/src/document-builder.model.d.ts +14 -2
- package/components/document-builder/src/document-builder.utils.d.ts +10 -0
- package/components/document-builder/src/plugins/block-space/block-space.plugin.d.ts +9 -0
- package/components/document-builder/src/plugins/heading/heading.plugin.d.ts +5 -0
- package/components/document-builder/src/plugins/highlight-range/highlight-range.plugin.d.ts +4 -0
- package/components/document-builder/src/plugins/image-custom/image-custom.plugin.d.ts +31 -0
- package/components/document-builder/src/plugins/{image-upload.plugin.d.ts → image-upload/image-upload.plugin.d.ts} +0 -4
- package/components/document-builder/src/plugins/index.d.ts +10 -5
- package/components/document-builder/src/plugins/{page-orientation.plugin.d.ts → page-orientation/page-orientation.plugin.d.ts} +2 -2
- package/components/document-builder/src/plugins/paste-handler/filters/bookmark.d.ts +14 -0
- package/components/document-builder/src/plugins/paste-handler/filters/br.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/image.d.ts +25 -0
- package/components/document-builder/src/plugins/paste-handler/filters/list.d.ts +29 -0
- package/components/document-builder/src/plugins/paste-handler/filters/parse.d.ts +35 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removeboldwrapper.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removegooglesheetstag.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removeinvalidtablewidth.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removemsattributes.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removestyleblock.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/removexmlns.d.ts +15 -0
- package/components/document-builder/src/plugins/paste-handler/filters/replacemsfootnotes.d.ts +54 -0
- package/components/document-builder/src/plugins/paste-handler/filters/replacetabswithinprewithspaces.d.ts +24 -0
- package/components/document-builder/src/plugins/paste-handler/filters/space.d.ts +27 -0
- package/components/document-builder/src/plugins/paste-handler/filters/table.d.ts +16 -0
- package/components/document-builder/src/plugins/paste-handler/filters/utils.d.ts +25 -0
- package/components/document-builder/src/plugins/paste-handler/index.d.ts +35 -0
- package/components/document-builder/src/plugins/paste-handler/normalizers/googledocsnormalizer.d.ts +31 -0
- package/components/document-builder/src/plugins/paste-handler/normalizers/googlesheetsnormalizer.d.ts +31 -0
- package/components/document-builder/src/plugins/paste-handler/normalizers/mswordnormalizer.d.ts +29 -0
- package/components/document-builder/src/plugins/paste-handler/types.d.ts +30 -0
- package/components/document-builder/src/plugins/table-custom/index.d.ts +34 -0
- package/components/index.d.ts +3 -0
- package/components/mini-editor/index.d.ts +2 -0
- package/components/mini-editor/src/mini-editor.component.d.ts +90 -0
- package/components/mini-editor/src/mini-editor.model.d.ts +42 -0
- package/components/table/src/directives/index.d.ts +2 -0
- package/components/table/src/directives/sd-table-column-filter-def.directive.d.ts +9 -0
- package/components/table/src/directives/sticky-shadow.directive.d.ts +17 -0
- package/components/table/src/models/table-column.model.d.ts +7 -7
- package/components/table/src/models/table-command.model.d.ts +4 -0
- package/components/table/src/models/table-item.model.d.ts +2 -1
- package/components/table/src/models/table-option-export.model.d.ts +3 -2
- package/components/table/src/models/table-option.model.d.ts +10 -8
- package/components/table/src/services/table-filter/table-filter.model.d.ts +2 -2
- package/components/view/index.d.ts +1 -0
- package/components/view/src/view.component.d.ts +16 -0
- package/components/workflow/src/models/index.d.ts +1 -0
- package/directives/index.d.ts +1 -0
- package/directives/src/sd-href.directive.d.ts +9 -0
- package/fesm2022/sd-angular-core-components-avatar.mjs +88 -0
- package/fesm2022/sd-angular-core-components-avatar.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-badge.mjs +2 -2
- package/fesm2022/sd-angular-core-components-badge.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-document-builder.mjs +3187 -552
- package/fesm2022/sd-angular-core-components-document-builder.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-mini-editor.mjs +326 -0
- package/fesm2022/sd-angular-core-components-mini-editor.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-table.mjs +513 -87
- package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-view.mjs +57 -0
- package/fesm2022/sd-angular-core-components-view.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-workflow.mjs +33 -43
- package/fesm2022/sd-angular-core-components-workflow.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components.mjs +3 -0
- package/fesm2022/sd-angular-core-components.mjs.map +1 -1
- package/fesm2022/sd-angular-core-directives.mjs +80 -27
- package/fesm2022/sd-angular-core-directives.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs +35 -9
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-date.mjs +24 -4
- package/fesm2022/sd-angular-core-forms-date.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-datetime.mjs +27 -9
- package/fesm2022/sd-angular-core-forms-datetime.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input-number.mjs +37 -10
- package/fesm2022/sd-angular-core-forms-input-number.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input.mjs +29 -11
- package/fesm2022/sd-angular-core-forms-input.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-radio.mjs +18 -2
- package/fesm2022/sd-angular-core-forms-radio.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-select.mjs +27 -9
- package/fesm2022/sd-angular-core-forms-select.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-textarea.mjs +21 -2
- package/fesm2022/sd-angular-core-forms-textarea.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-auth.mjs +5 -5
- package/fesm2022/sd-angular-core-modules-auth.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-keycloak.mjs +126 -0
- package/fesm2022/sd-angular-core-modules-keycloak.mjs.map +1 -0
- package/fesm2022/sd-angular-core-modules-layout.mjs +52 -17
- package/fesm2022/sd-angular-core-modules-layout.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules.mjs +1 -1
- package/fesm2022/sd-angular-core-pipes.mjs +21 -1
- package/fesm2022/sd-angular-core-pipes.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-confirm.mjs +2 -2
- package/fesm2022/sd-angular-core-services-confirm.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-docx.mjs +173 -0
- package/fesm2022/sd-angular-core-services-docx.mjs.map +1 -0
- package/fesm2022/sd-angular-core-services-notify.mjs +2 -2
- package/fesm2022/sd-angular-core-services-notify.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services.mjs +1 -0
- package/fesm2022/sd-angular-core-services.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-extensions.mjs +74 -7
- package/fesm2022/sd-angular-core-utilities-extensions.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-models.mjs +8 -2
- package/fesm2022/sd-angular-core-utilities-models.mjs.map +1 -1
- package/forms/autocomplete/src/autocomplete.component.d.ts +9 -4
- package/forms/date/src/date.component.d.ts +7 -2
- package/forms/datetime/src/datetime.component.d.ts +8 -4
- package/forms/input/src/input.component.d.ts +10 -7
- package/forms/input-number/src/input-number.component.d.ts +10 -6
- package/forms/radio/src/radio.component.d.ts +5 -1
- package/forms/select/src/select.component.d.ts +9 -4
- package/forms/textarea/src/textarea.component.d.ts +3 -1
- package/modules/auth/guards/portal.guard.d.ts +3 -3
- package/modules/index.d.ts +1 -1
- package/modules/keycloak/index.d.ts +4 -0
- package/modules/keycloak/keycloak.configuration.d.ts +11 -0
- package/modules/keycloak/keycloak.interceptor.d.ts +2 -0
- package/modules/keycloak/keycloak.module.d.ts +18 -0
- package/modules/keycloak/keycloak.service.d.ts +14 -0
- package/modules/layout/components/sidebar-v1/components/sidebar/sidebar.component.d.ts +1 -0
- package/modules/layout/components/sidebar-v1/components/user/user.component.d.ts +5 -2
- package/modules/layout/configurations/layout.configuration.d.ts +3 -0
- package/modules/layout/services/storage/storage.service.d.ts +1 -0
- package/package.json +80 -62
- package/pipes/index.d.ts +1 -0
- package/pipes/src/empty.pipe.d.ts +7 -0
- package/sd-angular-core-19.0.0-beta.31.tgz +0 -0
- package/services/confirm/src/lib/confirm.service.d.ts +1 -0
- package/services/docx/index.d.ts +1 -0
- package/services/docx/src/lib/docx.model.d.ts +9 -0
- package/services/docx/src/lib/docx.service.d.ts +13 -0
- package/services/docx/src/public-api.d.ts +2 -0
- package/services/index.d.ts +1 -0
- package/utilities/extensions/index.d.ts +1 -0
- package/utilities/extensions/src/color.extension.d.ts +20 -0
- package/utilities/extensions/src/string.extension.d.ts +1 -0
- package/utilities/models/index.d.ts +1 -0
- package/utilities/models/src/filter.model.d.ts +10 -2
- package/utilities/models/src/nested-key-of.model.d.ts +5 -0
- package/utilities/models/src/pattern.model.d.ts +3 -3
- package/components/document-builder/src/plugins/table-fit.plugin.d.ts +0 -4
- package/fesm2022/sd-angular-core-modules-oidc.mjs +0 -127
- package/fesm2022/sd-angular-core-modules-oidc.mjs.map +0 -1
- package/modules/oidc/dynamic-sts.loader.d.ts +0 -11
- package/modules/oidc/index.d.ts +0 -2
- package/modules/oidc/oidc.configuration.d.ts +0 -11
- package/modules/oidc/oidc.module.d.ts +0 -14
- /package/components/document-builder/src/plugins/{comment.plugin.d.ts → comment/comment.plugin.d.ts} +0 -0
- /package/components/document-builder/src/plugins/{variable.plugin.d.ts → variable/variable.plugin.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-angular/core",
|
|
3
|
-
"version": "19.0.0-beta.
|
|
3
|
+
"version": "19.0.0-beta.31",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.0.0 || ^20.0.0 || ^21.0.0",
|
|
6
6
|
"@angular/core": "^19.0.0 || ^20.0.0 || ^21.0.0",
|
|
7
7
|
"@angular/material": "^19.0.0 || ^20.0.0 || ^21.0.0",
|
|
8
|
-
"@angular/material-moment-adapter": "^19.0.0 || ^20.0.0 || ^21.0.0"
|
|
9
|
-
"angular-auth-oidc-client": "^19.0.0 || ^20.0.0 || ^21.0.0"
|
|
8
|
+
"@angular/material-moment-adapter": "^19.0.0 || ^20.0.0 || ^21.0.0"
|
|
10
9
|
},
|
|
11
10
|
"dependencies": {
|
|
12
|
-
"tslib": "^2.8.0",
|
|
13
11
|
"@ckeditor/ckeditor5-angular": "^11.0.0",
|
|
12
|
+
"@omer-go/docx-parser-converter-ts": "^1.0.0",
|
|
14
13
|
"ckeditor5": "^47.3.0",
|
|
15
|
-
"moment": "^2.30.1",
|
|
16
14
|
"exceljs": "^4.4.0",
|
|
17
|
-
"export-to-csv": "^1.4.0"
|
|
15
|
+
"export-to-csv": "^1.4.0",
|
|
16
|
+
"mammoth": "^1.11.0",
|
|
17
|
+
"moment": "^2.30.1",
|
|
18
|
+
"keycloak-js": "^26.0.0",
|
|
19
|
+
"tslib": "^2.8.0"
|
|
18
20
|
},
|
|
19
21
|
"sideEffects": false,
|
|
20
22
|
"module": "fesm2022/sd-angular-core.mjs",
|
|
@@ -27,22 +29,18 @@
|
|
|
27
29
|
"types": "./index.d.ts",
|
|
28
30
|
"default": "./fesm2022/sd-angular-core.mjs"
|
|
29
31
|
},
|
|
30
|
-
"./directives": {
|
|
31
|
-
"types": "./directives/index.d.ts",
|
|
32
|
-
"default": "./fesm2022/sd-angular-core-directives.mjs"
|
|
33
|
-
},
|
|
34
32
|
"./components": {
|
|
35
33
|
"types": "./components/index.d.ts",
|
|
36
34
|
"default": "./fesm2022/sd-angular-core-components.mjs"
|
|
37
35
|
},
|
|
36
|
+
"./directives": {
|
|
37
|
+
"types": "./directives/index.d.ts",
|
|
38
|
+
"default": "./fesm2022/sd-angular-core-directives.mjs"
|
|
39
|
+
},
|
|
38
40
|
"./configurations": {
|
|
39
41
|
"types": "./configurations/index.d.ts",
|
|
40
42
|
"default": "./fesm2022/sd-angular-core-configurations.mjs"
|
|
41
43
|
},
|
|
42
|
-
"./forms": {
|
|
43
|
-
"types": "./forms/index.d.ts",
|
|
44
|
-
"default": "./fesm2022/sd-angular-core-forms.mjs"
|
|
45
|
-
},
|
|
46
44
|
"./guards": {
|
|
47
45
|
"types": "./guards/index.d.ts",
|
|
48
46
|
"default": "./fesm2022/sd-angular-core-guards.mjs"
|
|
@@ -51,6 +49,10 @@
|
|
|
51
49
|
"types": "./handlers/index.d.ts",
|
|
52
50
|
"default": "./fesm2022/sd-angular-core-handlers.mjs"
|
|
53
51
|
},
|
|
52
|
+
"./forms": {
|
|
53
|
+
"types": "./forms/index.d.ts",
|
|
54
|
+
"default": "./fesm2022/sd-angular-core-forms.mjs"
|
|
55
|
+
},
|
|
54
56
|
"./interceptors": {
|
|
55
57
|
"types": "./interceptors/index.d.ts",
|
|
56
58
|
"default": "./fesm2022/sd-angular-core-interceptors.mjs"
|
|
@@ -79,6 +81,10 @@
|
|
|
79
81
|
"types": "./components/anchor-v2/index.d.ts",
|
|
80
82
|
"default": "./fesm2022/sd-angular-core-components-anchor-v2.mjs"
|
|
81
83
|
},
|
|
84
|
+
"./components/avatar": {
|
|
85
|
+
"types": "./components/avatar/index.d.ts",
|
|
86
|
+
"default": "./fesm2022/sd-angular-core-components-avatar.mjs"
|
|
87
|
+
},
|
|
82
88
|
"./components/badge": {
|
|
83
89
|
"types": "./components/badge/index.d.ts",
|
|
84
90
|
"default": "./fesm2022/sd-angular-core-components-badge.mjs"
|
|
@@ -91,18 +97,22 @@
|
|
|
91
97
|
"types": "./components/button/index.d.ts",
|
|
92
98
|
"default": "./fesm2022/sd-angular-core-components-button.mjs"
|
|
93
99
|
},
|
|
100
|
+
"./components/import-excel": {
|
|
101
|
+
"types": "./components/import-excel/index.d.ts",
|
|
102
|
+
"default": "./fesm2022/sd-angular-core-components-import-excel.mjs"
|
|
103
|
+
},
|
|
94
104
|
"./components/document-builder": {
|
|
95
105
|
"types": "./components/document-builder/index.d.ts",
|
|
96
106
|
"default": "./fesm2022/sd-angular-core-components-document-builder.mjs"
|
|
97
107
|
},
|
|
108
|
+
"./components/mini-editor": {
|
|
109
|
+
"types": "./components/mini-editor/index.d.ts",
|
|
110
|
+
"default": "./fesm2022/sd-angular-core-components-mini-editor.mjs"
|
|
111
|
+
},
|
|
98
112
|
"./components/history": {
|
|
99
113
|
"types": "./components/history/index.d.ts",
|
|
100
114
|
"default": "./fesm2022/sd-angular-core-components-history.mjs"
|
|
101
115
|
},
|
|
102
|
-
"./components/import-excel": {
|
|
103
|
-
"types": "./components/import-excel/index.d.ts",
|
|
104
|
-
"default": "./fesm2022/sd-angular-core-components-import-excel.mjs"
|
|
105
|
-
},
|
|
106
116
|
"./components/modal": {
|
|
107
117
|
"types": "./components/modal/index.d.ts",
|
|
108
118
|
"default": "./fesm2022/sd-angular-core-components-modal.mjs"
|
|
@@ -115,62 +125,70 @@
|
|
|
115
125
|
"types": "./components/query-builder/index.d.ts",
|
|
116
126
|
"default": "./fesm2022/sd-angular-core-components-query-builder.mjs"
|
|
117
127
|
},
|
|
118
|
-
"./components/
|
|
119
|
-
"types": "./components/
|
|
120
|
-
"default": "./fesm2022/sd-angular-core-components-
|
|
128
|
+
"./components/quick-action": {
|
|
129
|
+
"types": "./components/quick-action/index.d.ts",
|
|
130
|
+
"default": "./fesm2022/sd-angular-core-components-quick-action.mjs"
|
|
131
|
+
},
|
|
132
|
+
"./components/section": {
|
|
133
|
+
"types": "./components/section/index.d.ts",
|
|
134
|
+
"default": "./fesm2022/sd-angular-core-components-section.mjs"
|
|
121
135
|
},
|
|
122
136
|
"./components/side-drawer": {
|
|
123
137
|
"types": "./components/side-drawer/index.d.ts",
|
|
124
138
|
"default": "./fesm2022/sd-angular-core-components-side-drawer.mjs"
|
|
125
139
|
},
|
|
126
|
-
"./components/
|
|
127
|
-
"types": "./components/
|
|
128
|
-
"default": "./fesm2022/sd-angular-core-components-
|
|
140
|
+
"./components/tab-router": {
|
|
141
|
+
"types": "./components/tab-router/index.d.ts",
|
|
142
|
+
"default": "./fesm2022/sd-angular-core-components-tab-router.mjs"
|
|
129
143
|
},
|
|
130
|
-
"./components/
|
|
131
|
-
"types": "./components/
|
|
132
|
-
"default": "./fesm2022/sd-angular-core-components-
|
|
144
|
+
"./components/view": {
|
|
145
|
+
"types": "./components/view/index.d.ts",
|
|
146
|
+
"default": "./fesm2022/sd-angular-core-components-view.mjs"
|
|
147
|
+
},
|
|
148
|
+
"./components/upload-file": {
|
|
149
|
+
"types": "./components/upload-file/index.d.ts",
|
|
150
|
+
"default": "./fesm2022/sd-angular-core-components-upload-file.mjs"
|
|
133
151
|
},
|
|
134
152
|
"./components/table": {
|
|
135
153
|
"types": "./components/table/index.d.ts",
|
|
136
154
|
"default": "./fesm2022/sd-angular-core-components-table.mjs"
|
|
137
155
|
},
|
|
138
|
-
"./
|
|
139
|
-
"types": "./
|
|
140
|
-
"default": "./fesm2022/sd-angular-core-
|
|
156
|
+
"./forms/autocomplete": {
|
|
157
|
+
"types": "./forms/autocomplete/index.d.ts",
|
|
158
|
+
"default": "./fesm2022/sd-angular-core-forms-autocomplete.mjs"
|
|
141
159
|
},
|
|
142
|
-
"./
|
|
143
|
-
"types": "./
|
|
144
|
-
"default": "./fesm2022/sd-angular-core-
|
|
160
|
+
"./forms/checkbox": {
|
|
161
|
+
"types": "./forms/checkbox/index.d.ts",
|
|
162
|
+
"default": "./fesm2022/sd-angular-core-forms-checkbox.mjs"
|
|
163
|
+
},
|
|
164
|
+
"./guards/permission": {
|
|
165
|
+
"types": "./guards/permission/index.d.ts",
|
|
166
|
+
"default": "./fesm2022/sd-angular-core-guards-permission.mjs"
|
|
145
167
|
},
|
|
146
168
|
"./forms/chip": {
|
|
147
169
|
"types": "./forms/chip/index.d.ts",
|
|
148
170
|
"default": "./fesm2022/sd-angular-core-forms-chip.mjs"
|
|
149
171
|
},
|
|
172
|
+
"./forms/chip-calendar": {
|
|
173
|
+
"types": "./forms/chip-calendar/index.d.ts",
|
|
174
|
+
"default": "./fesm2022/sd-angular-core-forms-chip-calendar.mjs"
|
|
175
|
+
},
|
|
150
176
|
"./forms/date": {
|
|
151
177
|
"types": "./forms/date/index.d.ts",
|
|
152
178
|
"default": "./fesm2022/sd-angular-core-forms-date.mjs"
|
|
153
179
|
},
|
|
154
|
-
"./forms/checkbox": {
|
|
155
|
-
"types": "./forms/checkbox/index.d.ts",
|
|
156
|
-
"default": "./fesm2022/sd-angular-core-forms-checkbox.mjs"
|
|
157
|
-
},
|
|
158
180
|
"./forms/date-range": {
|
|
159
181
|
"types": "./forms/date-range/index.d.ts",
|
|
160
182
|
"default": "./fesm2022/sd-angular-core-forms-date-range.mjs"
|
|
161
183
|
},
|
|
162
|
-
"./forms/
|
|
163
|
-
"types": "./forms/
|
|
164
|
-
"default": "./fesm2022/sd-angular-core-forms-
|
|
184
|
+
"./forms/directives": {
|
|
185
|
+
"types": "./forms/directives/index.d.ts",
|
|
186
|
+
"default": "./fesm2022/sd-angular-core-forms-directives.mjs"
|
|
165
187
|
},
|
|
166
188
|
"./forms/datetime": {
|
|
167
189
|
"types": "./forms/datetime/index.d.ts",
|
|
168
190
|
"default": "./fesm2022/sd-angular-core-forms-datetime.mjs"
|
|
169
191
|
},
|
|
170
|
-
"./forms/directives": {
|
|
171
|
-
"types": "./forms/directives/index.d.ts",
|
|
172
|
-
"default": "./fesm2022/sd-angular-core-forms-directives.mjs"
|
|
173
|
-
},
|
|
174
192
|
"./forms/input-number": {
|
|
175
193
|
"types": "./forms/input-number/index.d.ts",
|
|
176
194
|
"default": "./fesm2022/sd-angular-core-forms-input-number.mjs"
|
|
@@ -203,10 +221,6 @@
|
|
|
203
221
|
"types": "./forms/textarea/index.d.ts",
|
|
204
222
|
"default": "./fesm2022/sd-angular-core-forms-textarea.mjs"
|
|
205
223
|
},
|
|
206
|
-
"./guards/permission": {
|
|
207
|
-
"types": "./guards/permission/index.d.ts",
|
|
208
|
-
"default": "./fesm2022/sd-angular-core-guards-permission.mjs"
|
|
209
|
-
},
|
|
210
224
|
"./modules/auth": {
|
|
211
225
|
"types": "./modules/auth/index.d.ts",
|
|
212
226
|
"default": "./fesm2022/sd-angular-core-modules-auth.mjs"
|
|
@@ -215,22 +229,22 @@
|
|
|
215
229
|
"types": "./modules/layout/index.d.ts",
|
|
216
230
|
"default": "./fesm2022/sd-angular-core-modules-layout.mjs"
|
|
217
231
|
},
|
|
218
|
-
"./modules/
|
|
219
|
-
"types": "./modules/
|
|
220
|
-
"default": "./fesm2022/sd-angular-core-modules-
|
|
232
|
+
"./modules/keycloak": {
|
|
233
|
+
"types": "./modules/keycloak/index.d.ts",
|
|
234
|
+
"default": "./fesm2022/sd-angular-core-modules-keycloak.mjs"
|
|
221
235
|
},
|
|
222
236
|
"./modules/permission": {
|
|
223
237
|
"types": "./modules/permission/index.d.ts",
|
|
224
238
|
"default": "./fesm2022/sd-angular-core-modules-permission.mjs"
|
|
225
239
|
},
|
|
226
|
-
"./services/api": {
|
|
227
|
-
"types": "./services/api/index.d.ts",
|
|
228
|
-
"default": "./fesm2022/sd-angular-core-services-api.mjs"
|
|
229
|
-
},
|
|
230
240
|
"./services/cache": {
|
|
231
241
|
"types": "./services/cache/index.d.ts",
|
|
232
242
|
"default": "./fesm2022/sd-angular-core-services-cache.mjs"
|
|
233
243
|
},
|
|
244
|
+
"./services/api": {
|
|
245
|
+
"types": "./services/api/index.d.ts",
|
|
246
|
+
"default": "./fesm2022/sd-angular-core-services-api.mjs"
|
|
247
|
+
},
|
|
234
248
|
"./services/confirm": {
|
|
235
249
|
"types": "./services/confirm/index.d.ts",
|
|
236
250
|
"default": "./fesm2022/sd-angular-core-services-confirm.mjs"
|
|
@@ -239,18 +253,22 @@
|
|
|
239
253
|
"types": "./services/excel/index.d.ts",
|
|
240
254
|
"default": "./fesm2022/sd-angular-core-services-excel.mjs"
|
|
241
255
|
},
|
|
256
|
+
"./services/docx": {
|
|
257
|
+
"types": "./services/docx/index.d.ts",
|
|
258
|
+
"default": "./fesm2022/sd-angular-core-services-docx.mjs"
|
|
259
|
+
},
|
|
242
260
|
"./services/firebase": {
|
|
243
261
|
"types": "./services/firebase/index.d.ts",
|
|
244
262
|
"default": "./fesm2022/sd-angular-core-services-firebase.mjs"
|
|
245
263
|
},
|
|
246
|
-
"./services/license": {
|
|
247
|
-
"types": "./services/license/index.d.ts",
|
|
248
|
-
"default": "./fesm2022/sd-angular-core-services-license.mjs"
|
|
249
|
-
},
|
|
250
264
|
"./services/loading": {
|
|
251
265
|
"types": "./services/loading/index.d.ts",
|
|
252
266
|
"default": "./fesm2022/sd-angular-core-services-loading.mjs"
|
|
253
267
|
},
|
|
268
|
+
"./services/license": {
|
|
269
|
+
"types": "./services/license/index.d.ts",
|
|
270
|
+
"default": "./fesm2022/sd-angular-core-services-license.mjs"
|
|
271
|
+
},
|
|
254
272
|
"./services/notify": {
|
|
255
273
|
"types": "./services/notify/index.d.ts",
|
|
256
274
|
"default": "./fesm2022/sd-angular-core-services-notify.mjs"
|
|
@@ -267,9 +285,9 @@
|
|
|
267
285
|
"types": "./utilities/models/index.d.ts",
|
|
268
286
|
"default": "./fesm2022/sd-angular-core-utilities-models.mjs"
|
|
269
287
|
},
|
|
270
|
-
"./
|
|
271
|
-
"types": "./
|
|
272
|
-
"default": "./fesm2022/sd-angular-core-
|
|
288
|
+
"./components/workflow": {
|
|
289
|
+
"types": "./components/workflow/index.d.ts",
|
|
290
|
+
"default": "./fesm2022/sd-angular-core-components-workflow.mjs"
|
|
273
291
|
}
|
|
274
292
|
}
|
|
275
293
|
}
|
package/pipes/index.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SdEmptyPipe implements PipeTransform {
|
|
4
|
+
transform(value: any): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdEmptyPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SdEmptyPipe, "sdEmpty", true>;
|
|
7
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/public-api';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SdDocxConvertOptions, SdDocxConvertResult } from './docx.model';
|
|
2
|
+
import { SdNotifyService } from '@sd-angular/core/services/notify';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SdDocxService {
|
|
5
|
+
#private;
|
|
6
|
+
private notifyService;
|
|
7
|
+
constructor(notifyService: SdNotifyService);
|
|
8
|
+
open(options?: SdDocxConvertOptions): Promise<SdDocxConvertResult | null>;
|
|
9
|
+
convertToHtml(input: File | Blob | ArrayBuffer, options?: SdDocxConvertOptions): Promise<SdDocxConvertResult | null>;
|
|
10
|
+
convertToHtmlString(input: File | Blob | ArrayBuffer, options?: SdDocxConvertOptions): Promise<string | null>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdDocxService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SdDocxService>;
|
|
13
|
+
}
|
package/services/index.d.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color Utilities Extension
|
|
3
|
+
* Các tiện ích xử lý màu
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Chuyển đổi màu HSL sang định dạng hex
|
|
7
|
+
* @param h - Hue (0-360)
|
|
8
|
+
* @param s - Saturation (0-100)
|
|
9
|
+
* @param l - Lightness (0-100)
|
|
10
|
+
* @returns Mã màu hex
|
|
11
|
+
*/
|
|
12
|
+
export declare function hslToHex(h: number, s: number, l: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* Chuyển đổi màu RGB sang hex
|
|
15
|
+
* @param r - Red (0-255)
|
|
16
|
+
* @param g - Green (0-255)
|
|
17
|
+
* @param b - Blue (0-255)
|
|
18
|
+
* @returns Mã màu hex
|
|
19
|
+
*/
|
|
20
|
+
export declare function rgbToHex(r: number, g: number, b: number): string;
|
|
@@ -3,6 +3,7 @@ export * from './src/size.model';
|
|
|
3
3
|
export * from './src/pattern.model';
|
|
4
4
|
export * from './src/empty.model';
|
|
5
5
|
export * from './src/maybe-async.model';
|
|
6
|
+
export * from './src/nested-key-of.model';
|
|
6
7
|
export * from './src/operator.model';
|
|
7
8
|
export * from './src/filter.model';
|
|
8
9
|
export * from './src/order.model';
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { SdOperatorHasData, SdOperatorNoData } from './operator.model';
|
|
2
|
-
export type SdFilter<T = any> = SdFilterHasData<T> | SdFilterNoData<T>;
|
|
2
|
+
export type SdFilter<T = any> = SdFilterHasData<T> | SdFilterBetween<T> | SdFilterNoData<T>;
|
|
3
3
|
export interface SdFilterHasData<T = any> {
|
|
4
4
|
field: Extract<keyof T, string>;
|
|
5
|
-
operator: SdOperatorHasData
|
|
5
|
+
operator: Exclude<SdOperatorHasData, 'BETWEEN'>;
|
|
6
6
|
data: any;
|
|
7
7
|
}
|
|
8
|
+
export interface SdFilterBetween<T = any> {
|
|
9
|
+
field: Extract<keyof T, string>;
|
|
10
|
+
operator: 'BETWEEN';
|
|
11
|
+
data: {
|
|
12
|
+
from: any;
|
|
13
|
+
to: any;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
8
16
|
export interface SdFilterNoData<T = any> {
|
|
9
17
|
field: Extract<keyof T, string>;
|
|
10
18
|
operator: SdOperatorNoData;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type Primitive = string | number | boolean | null | undefined | Date | Function;
|
|
2
|
+
export type SdNestedKeyOf<ObjectType, Depth extends number[] = []> = Depth['length'] extends 5 ? never : ObjectType extends object ? {
|
|
3
|
+
[Key in keyof ObjectType & string]: ObjectType[Key] extends Primitive ? Key : ObjectType[Key] extends Array<any> ? Key : ObjectType[Key] extends object ? Key | `${Key}.${SdNestedKeyOf<ObjectType[Key], [...Depth, 1]>}` : Key;
|
|
4
|
+
}[keyof ObjectType & string] : string;
|
|
5
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type SdPatternType = 'EMAIL' | 'PHONE' | 'PHONE_VN';
|
|
2
|
-
export interface
|
|
1
|
+
export type SdPatternType = 'EMAIL' | 'PHONE' | 'PHONE_VN' | 'IDVN_OR_PASSPORT';
|
|
2
|
+
export interface SdPatternCommon {
|
|
3
3
|
type: SdPatternType;
|
|
4
4
|
name: string;
|
|
5
5
|
regex: string;
|
|
6
6
|
errorMessage: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const SdPatternCommons: SdPatternCommon[];
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Inject, Injectable, NgModule } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { StsConfigLoader, LogLevel, provideAuth, authInterceptor } from 'angular-auth-oidc-client';
|
|
5
|
-
import { from, map } from 'rxjs';
|
|
6
|
-
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
7
|
-
|
|
8
|
-
const SD_OIDC_CONFIGURATION = new InjectionToken('sd-oidc.configuration');
|
|
9
|
-
|
|
10
|
-
class DynamicStsLoader extends StsConfigLoader {
|
|
11
|
-
oidcConfiguration;
|
|
12
|
-
constructor(oidcConfiguration) {
|
|
13
|
-
super();
|
|
14
|
-
this.oidcConfiguration = oidcConfiguration;
|
|
15
|
-
}
|
|
16
|
-
// SỬA LỖI TYPE: Trả về Observable<OpenIdConfiguration[]>
|
|
17
|
-
loadConfigs() {
|
|
18
|
-
const loaderPromise = this.oidcConfiguration.loadTenantConfig();
|
|
19
|
-
// Dùng 'from' chuyển Promise -> Observable
|
|
20
|
-
return from(loaderPromise).pipe(map(tenantConfig => {
|
|
21
|
-
const authority = `${tenantConfig.url}/realms/${tenantConfig.realm}`;
|
|
22
|
-
console.log('Authority:', authority);
|
|
23
|
-
console.log('SecureRoutes:', tenantConfig.secureRoutes);
|
|
24
|
-
const config = {
|
|
25
|
-
authority,
|
|
26
|
-
redirectUrl: window.location.origin,
|
|
27
|
-
postLogoutRedirectUri: window.location.origin,
|
|
28
|
-
clientId: tenantConfig.clientId,
|
|
29
|
-
scope: 'openid profile email offline_access',
|
|
30
|
-
responseType: 'code',
|
|
31
|
-
silentRenew: true, // Tự động Refresh Token
|
|
32
|
-
useRefreshToken: true,
|
|
33
|
-
ignoreNonceAfterRefresh: true,
|
|
34
|
-
renewTimeBeforeTokenExpiresInSeconds: 10,
|
|
35
|
-
logLevel: LogLevel.Warn,
|
|
36
|
-
// Cập nhật domain API của bạn vào đây để Interceptor tự đính Token
|
|
37
|
-
secureRoutes: tenantConfig.secureRoutes?.filter(route => !!route)?.map(route => route.trim()),
|
|
38
|
-
};
|
|
39
|
-
// Trả về mảng (bắt buộc với bản mới)
|
|
40
|
-
return [config];
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DynamicStsLoader, deps: [{ token: SD_OIDC_CONFIGURATION }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DynamicStsLoader });
|
|
45
|
-
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DynamicStsLoader, decorators: [{
|
|
47
|
-
type: Injectable
|
|
48
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
49
|
-
type: Inject,
|
|
50
|
-
args: [SD_OIDC_CONFIGURATION]
|
|
51
|
-
}] }] });
|
|
52
|
-
|
|
53
|
-
// 5. Module Wrapper
|
|
54
|
-
class SdOidcModule {
|
|
55
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
56
|
-
static forRoot(options) {
|
|
57
|
-
if (options.useFactory) {
|
|
58
|
-
return {
|
|
59
|
-
ngModule: SdOidcModule,
|
|
60
|
-
providers: [
|
|
61
|
-
{
|
|
62
|
-
provide: SD_OIDC_CONFIGURATION,
|
|
63
|
-
useFactory: options.useFactory,
|
|
64
|
-
deps: options.deps,
|
|
65
|
-
},
|
|
66
|
-
// B. Provide Auth Logic (Dùng cú pháp provideAuth mới ngay trong NgModule)
|
|
67
|
-
provideAuth({
|
|
68
|
-
loader: {
|
|
69
|
-
provide: StsConfigLoader,
|
|
70
|
-
useClass: DynamicStsLoader,
|
|
71
|
-
},
|
|
72
|
-
}),
|
|
73
|
-
provideHttpClient(withInterceptors([authInterceptor()])),
|
|
74
|
-
],
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
if (options.useClass) {
|
|
78
|
-
return {
|
|
79
|
-
ngModule: SdOidcModule,
|
|
80
|
-
providers: [
|
|
81
|
-
{
|
|
82
|
-
provide: SD_OIDC_CONFIGURATION,
|
|
83
|
-
useClass: options.useClass,
|
|
84
|
-
},
|
|
85
|
-
// B. Provide Auth Logic (Dùng cú pháp provideAuth mới ngay trong NgModule)
|
|
86
|
-
provideAuth({
|
|
87
|
-
loader: {
|
|
88
|
-
provide: StsConfigLoader,
|
|
89
|
-
useClass: DynamicStsLoader,
|
|
90
|
-
},
|
|
91
|
-
}),
|
|
92
|
-
provideHttpClient(withInterceptors([authInterceptor()])),
|
|
93
|
-
],
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
return {
|
|
97
|
-
ngModule: SdOidcModule,
|
|
98
|
-
providers: [
|
|
99
|
-
// B. Provide Auth Logic (Dùng cú pháp provideAuth mới ngay trong NgModule)
|
|
100
|
-
provideAuth({
|
|
101
|
-
loader: {
|
|
102
|
-
provide: StsConfigLoader,
|
|
103
|
-
useClass: DynamicStsLoader,
|
|
104
|
-
},
|
|
105
|
-
}),
|
|
106
|
-
provideHttpClient(withInterceptors([authInterceptor()])),
|
|
107
|
-
],
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdOidcModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
111
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: SdOidcModule, imports: [CommonModule] });
|
|
112
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdOidcModule, imports: [CommonModule] });
|
|
113
|
-
}
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdOidcModule, decorators: [{
|
|
115
|
-
type: NgModule,
|
|
116
|
-
args: [{
|
|
117
|
-
imports: [CommonModule],
|
|
118
|
-
exports: [],
|
|
119
|
-
}]
|
|
120
|
-
}] });
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Generated bundle index. Do not edit.
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
export { SD_OIDC_CONFIGURATION, SdOidcModule };
|
|
127
|
-
//# sourceMappingURL=sd-angular-core-modules-oidc.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sd-angular-core-modules-oidc.mjs","sources":["../../../projects/sd-angular/modules/oidc/oidc.configuration.ts","../../../projects/sd-angular/modules/oidc/dynamic-sts.loader.ts","../../../projects/sd-angular/modules/oidc/oidc.module.ts","../../../projects/sd-angular/modules/oidc/sd-angular-core-modules-oidc.ts"],"sourcesContent":["import { InjectionToken } from \"@angular/core\";\r\n\r\nexport interface SdOidcTenantConfig {\r\n url: string;\r\n realm: string;\r\n clientId: string;\r\n // Cập nhật domain API của bạn vào đây để Interceptor tự đính Token, ví dụ: ['https://dev.api.com']\r\n secureRoutes: string[];\r\n}\r\n\r\nexport interface ISdOidcConfiguration {\r\n loadTenantConfig: () => Promise<SdOidcTenantConfig>;\r\n}\r\n\r\nexport const SD_OIDC_CONFIGURATION = new InjectionToken<ISdOidcConfiguration>('sd-oidc.configuration');","import { Inject, Injectable } from '@angular/core';\r\nimport { LogLevel, OpenIdConfiguration, StsConfigLoader } from 'angular-auth-oidc-client';\r\nimport { from, map, Observable } from 'rxjs';\r\nimport { ISdOidcConfiguration, SD_OIDC_CONFIGURATION } from './oidc.configuration';\r\n\r\n@Injectable()\r\nexport class DynamicStsLoader extends StsConfigLoader {\r\n constructor(@Inject(SD_OIDC_CONFIGURATION) private oidcConfiguration: ISdOidcConfiguration) {\r\n super();\r\n }\r\n\r\n // SỬA LỖI TYPE: Trả về Observable<OpenIdConfiguration[]>\r\n override loadConfigs(): Observable<OpenIdConfiguration[]> {\r\n const loaderPromise = this.oidcConfiguration.loadTenantConfig();\r\n\r\n // Dùng 'from' chuyển Promise -> Observable\r\n return from(loaderPromise).pipe(\r\n map(tenantConfig => {\r\n const authority = `${tenantConfig.url}/realms/${tenantConfig.realm}`;\r\n console.log('Authority:', authority);\r\n console.log('SecureRoutes:', tenantConfig.secureRoutes);\r\n const config: OpenIdConfiguration = {\r\n authority,\r\n redirectUrl: window.location.origin,\r\n postLogoutRedirectUri: window.location.origin,\r\n clientId: tenantConfig.clientId,\r\n scope: 'openid profile email offline_access',\r\n responseType: 'code',\r\n silentRenew: true, // Tự động Refresh Token\r\n useRefreshToken: true,\r\n ignoreNonceAfterRefresh: true,\r\n renewTimeBeforeTokenExpiresInSeconds: 10,\r\n logLevel: LogLevel.Warn,\r\n // Cập nhật domain API của bạn vào đây để Interceptor tự đính Token\r\n secureRoutes: tenantConfig.secureRoutes?.filter(route => !!route)?.map(route => route.trim()),\r\n };\r\n // Trả về mảng (bắt buộc với bản mới)\r\n return [config];\r\n })\r\n );\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { ModuleWithProviders, NgModule, Type } from '@angular/core';\r\nimport { authInterceptor, provideAuth, StsConfigLoader } from 'angular-auth-oidc-client';\r\nimport { DynamicStsLoader } from './dynamic-sts.loader';\r\nimport { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { ISdOidcConfiguration, SD_OIDC_CONFIGURATION } from './oidc.configuration';\r\n\r\n// 5. Module Wrapper\r\n@NgModule({\r\n imports: [CommonModule],\r\n exports: [],\r\n})\r\nexport class SdOidcModule {\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n static forRoot(options: {\r\n useClass?: Type<ISdOidcConfiguration>;\r\n useFactory?: (...args: any[]) => ISdOidcConfiguration;\r\n deps?: any[];\r\n }): ModuleWithProviders<SdOidcModule> {\r\n if (options.useFactory) {\r\n return {\r\n ngModule: SdOidcModule,\r\n providers: [\r\n {\r\n provide: SD_OIDC_CONFIGURATION,\r\n useFactory: options.useFactory,\r\n deps: options.deps,\r\n },\r\n // B. Provide Auth Logic (Dùng cú pháp provideAuth mới ngay trong NgModule)\r\n provideAuth({\r\n loader: {\r\n provide: StsConfigLoader,\r\n useClass: DynamicStsLoader,\r\n },\r\n }),\r\n provideHttpClient(withInterceptors([authInterceptor()])),\r\n ],\r\n };\r\n }\r\n if (options.useClass) {\r\n return {\r\n ngModule: SdOidcModule,\r\n providers: [\r\n {\r\n provide: SD_OIDC_CONFIGURATION,\r\n useClass: options.useClass,\r\n },\r\n // B. Provide Auth Logic (Dùng cú pháp provideAuth mới ngay trong NgModule)\r\n provideAuth({\r\n loader: {\r\n provide: StsConfigLoader,\r\n useClass: DynamicStsLoader,\r\n },\r\n }),\r\n provideHttpClient(withInterceptors([authInterceptor()])),\r\n ],\r\n };\r\n }\r\n return {\r\n ngModule: SdOidcModule,\r\n providers: [\r\n // B. Provide Auth Logic (Dùng cú pháp provideAuth mới ngay trong NgModule)\r\n provideAuth({\r\n loader: {\r\n provide: StsConfigLoader,\r\n useClass: DynamicStsLoader,\r\n },\r\n }),\r\n provideHttpClient(withInterceptors([authInterceptor()])),\r\n ],\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OpenIdConfiguration, StsConfigLoader } from 'angular-auth-oidc-client';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ISdOidcConfiguration } from './oidc.configuration';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DynamicStsLoader extends StsConfigLoader {
|
|
6
|
-
private oidcConfiguration;
|
|
7
|
-
constructor(oidcConfiguration: ISdOidcConfiguration);
|
|
8
|
-
loadConfigs(): Observable<OpenIdConfiguration[]>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicStsLoader, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicStsLoader>;
|
|
11
|
-
}
|
package/modules/oidc/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
export interface SdOidcTenantConfig {
|
|
3
|
-
url: string;
|
|
4
|
-
realm: string;
|
|
5
|
-
clientId: string;
|
|
6
|
-
secureRoutes: string[];
|
|
7
|
-
}
|
|
8
|
-
export interface ISdOidcConfiguration {
|
|
9
|
-
loadTenantConfig: () => Promise<SdOidcTenantConfig>;
|
|
10
|
-
}
|
|
11
|
-
export declare const SD_OIDC_CONFIGURATION: InjectionToken<ISdOidcConfiguration>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, Type } from '@angular/core';
|
|
2
|
-
import { ISdOidcConfiguration } from './oidc.configuration';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
export declare class SdOidcModule {
|
|
6
|
-
static forRoot(options: {
|
|
7
|
-
useClass?: Type<ISdOidcConfiguration>;
|
|
8
|
-
useFactory?: (...args: any[]) => ISdOidcConfiguration;
|
|
9
|
-
deps?: any[];
|
|
10
|
-
}): ModuleWithProviders<SdOidcModule>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdOidcModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SdOidcModule, never, [typeof i1.CommonModule], never>;
|
|
13
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SdOidcModule>;
|
|
14
|
-
}
|
/package/components/document-builder/src/plugins/{comment.plugin.d.ts → comment/comment.plugin.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|