@wawjs/ngx-bos 22.0.1 → 22.0.2
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/README.md +1 -1
- package/RELEASES.md +27 -1
- package/ai/decisions/2026-06-02-version-start.md +1 -1
- package/fesm2022/wawjs-ngx-bos.mjs +137 -97
- package/fesm2022/wawjs-ngx-bos.mjs.map +1 -1
- package/package.json +1 -1
- package/src/feature/file/file.component.html +1 -1
- package/src/feature/file/file.component.ts +25 -9
- package/src/feature/file/file.service.ts +7 -6
- package/src/feature/file/selectors/file/file-selector.component.html +2 -5
- package/src/feature/file/selectors/file/file-selector.component.ts +8 -11
- package/src/feature/user/pages/users/users.component.html +3 -2
- package/src/feature/user/pages/users/users.component.scss +12 -0
- package/src/feature/user/pages/users/users.component.ts +42 -9
- package/src/feature/user/user.service.ts +4 -2
- package/src/form-components/input/input.component.html +1 -0
- package/src/form-components/select/select.component.html +2 -2
- package/src/pages/form/form.component.ts +8 -8
- package/src/public-api.ts +1 -1
- package/types/wawjs-ngx-bos.d.ts +13 -9
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, makeEnvironmentProviders, inject,
|
|
2
|
+
import { InjectionToken, makeEnvironmentProviders, inject, Service, input, model, computed, Component, output, viewChild, createComponent, EnvironmentInjector, ApplicationRef, APP_INITIALIZER, signal, effect, Pipe } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
import { ModalService, ButtonComponent, SelectComponent, AlertService, TableComponent, buttonDefaults, inputDefaults, InputComponent, selectDefaults, CellDirective } from '@wawjs/ngx-ui';
|
|
5
5
|
import { TranslateDirective, TranslateService } from '@wawjs/ngx-translate';
|
|
6
6
|
import { CrudService, CrudComponent } from '@wawjs/ngx-crud';
|
|
7
7
|
import { HttpService } from '@wawjs/ngx-http';
|
|
8
8
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
9
|
-
import
|
|
10
|
-
import { FormService, formcomponentForm, formForm } from '@wawjs/ngx-form';
|
|
9
|
+
import { FormService, FormcomponentService, formcomponentForm, formForm } from '@wawjs/ngx-form';
|
|
11
10
|
import { CoreService, EmitterService } from '@wawjs/ngx-core';
|
|
12
11
|
import { AceComponent } from '@wawjs/ngx-ace';
|
|
13
12
|
import * as i1 from '@angular/forms';
|
|
@@ -123,7 +122,6 @@ class FileService extends CrudService {
|
|
|
123
122
|
constructor() {
|
|
124
123
|
super({ name: 'file' });
|
|
125
124
|
this._http = inject(HttpService);
|
|
126
|
-
this._bosConfig = inject(NGX_BOS_CONFIG);
|
|
127
125
|
}
|
|
128
126
|
/**
|
|
129
127
|
* Upload base64 (data URL) to backend with optional container/name.
|
|
@@ -131,15 +129,14 @@ class FileService extends CrudService {
|
|
|
131
129
|
*/
|
|
132
130
|
async uploadBase64(dataUrl, container = 'general', name = '') {
|
|
133
131
|
return await new Promise((resolve) => {
|
|
134
|
-
this._http.post('/api/cloudflare/upload-base64', { container, name, dataUrl }, (resp) => resolve(
|
|
132
|
+
this._http.post('/api/cloudflare/upload-base64', { container, name, dataUrl }, (resp) => resolve(resp.publicUrl || ''));
|
|
135
133
|
});
|
|
136
134
|
}
|
|
137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
138
|
-
static { this.ɵprov = i0.ɵɵ
|
|
135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FileService, deps: [], target: i0.ɵɵFactoryTarget.Service }); }
|
|
136
|
+
static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.8", ngImport: i0, type: FileService }); }
|
|
139
137
|
}
|
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
141
|
-
type:
|
|
142
|
-
args: [{ providedIn: 'root' }]
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FileService, decorators: [{
|
|
139
|
+
type: Service
|
|
143
140
|
}], ctorParameters: () => [] });
|
|
144
141
|
|
|
145
142
|
class FileComponent {
|
|
@@ -184,8 +181,6 @@ class FileComponent {
|
|
|
184
181
|
this.wFiles = model([], { ...(ngDevMode ? { debugName: "wFiles" } : /* istanbul ignore next */ {}), alias: 'wFiles' });
|
|
185
182
|
this._modal = inject(ModalService);
|
|
186
183
|
this._fs = inject(FileService);
|
|
187
|
-
this.isDisabled = computed(() => this.disabled(), /* @ts-ignore */
|
|
188
|
-
...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
189
184
|
this.isMultiple = computed(() => this.mode().startsWith('multi-'), /* @ts-ignore */
|
|
190
185
|
...(ngDevMode ? [{ debugName: "isMultiple" }] : /* istanbul ignore next */ []));
|
|
191
186
|
this.isImageMode = computed(() => this.mode().includes('image'), /* @ts-ignore */
|
|
@@ -209,7 +204,7 @@ class FileComponent {
|
|
|
209
204
|
...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
|
|
210
205
|
}
|
|
211
206
|
triggerPick(input) {
|
|
212
|
-
if (!this.
|
|
207
|
+
if (!this.disabled()) {
|
|
213
208
|
input.click();
|
|
214
209
|
}
|
|
215
210
|
}
|
|
@@ -229,6 +224,8 @@ class FileComponent {
|
|
|
229
224
|
// Always read file as data URL
|
|
230
225
|
const dataUrl = await fileToDataUrl(f);
|
|
231
226
|
if (doCrop) {
|
|
227
|
+
const cropWidth = this.cropWidth();
|
|
228
|
+
const cropHeight = this.cropHeight();
|
|
232
229
|
// Lazy-load fabric crop modal only when actually cropping
|
|
233
230
|
const { FabricCropModalComponent } = await import('@wawjs/ngx-fabric');
|
|
234
231
|
await new Promise((resolve) => {
|
|
@@ -236,16 +233,18 @@ class FileComponent {
|
|
|
236
233
|
component: FabricCropModalComponent,
|
|
237
234
|
size: 'big',
|
|
238
235
|
image: dataUrl,
|
|
239
|
-
width: this.cropWidth
|
|
240
|
-
height: this.cropHeight
|
|
241
|
-
aspectRatio:
|
|
242
|
-
outputWidth:
|
|
243
|
-
outputHeight:
|
|
236
|
+
width: this._cropStageWidth(cropWidth),
|
|
237
|
+
height: this._cropStageHeight(cropHeight),
|
|
238
|
+
aspectRatio: cropWidth / cropHeight,
|
|
239
|
+
outputWidth: cropWidth,
|
|
240
|
+
outputHeight: cropHeight,
|
|
244
241
|
onCrop: (result) => {
|
|
245
242
|
this._fs
|
|
246
243
|
.uploadBase64(result.base64, container, name)
|
|
247
244
|
.then((url) => {
|
|
248
|
-
|
|
245
|
+
if (url) {
|
|
246
|
+
urls.push(url);
|
|
247
|
+
}
|
|
249
248
|
resolve();
|
|
250
249
|
});
|
|
251
250
|
},
|
|
@@ -255,7 +254,9 @@ class FileComponent {
|
|
|
255
254
|
}
|
|
256
255
|
else {
|
|
257
256
|
const url = await this._fs.uploadBase64(dataUrl, container, name);
|
|
258
|
-
|
|
257
|
+
if (url) {
|
|
258
|
+
urls.push(url);
|
|
259
|
+
}
|
|
259
260
|
}
|
|
260
261
|
// If single mode, ignore extra files after first
|
|
261
262
|
if (!this.isMultiple()) {
|
|
@@ -300,6 +301,12 @@ class FileComponent {
|
|
|
300
301
|
this.wFiles.set([]);
|
|
301
302
|
}
|
|
302
303
|
}
|
|
304
|
+
_cropStageWidth(width) {
|
|
305
|
+
return Math.min(820, Math.max(width, Math.round(width * 1.45)));
|
|
306
|
+
}
|
|
307
|
+
_cropStageHeight(height) {
|
|
308
|
+
return Math.min(620, Math.max(height, Math.round(height * 1.12)));
|
|
309
|
+
}
|
|
303
310
|
_applyNewUrls(urls) {
|
|
304
311
|
const mode = this.mode();
|
|
305
312
|
if (!urls.length) {
|
|
@@ -321,12 +328,12 @@ class FileComponent {
|
|
|
321
328
|
this.wFiles.set([...this.wFiles(), ...urls]);
|
|
322
329
|
}
|
|
323
330
|
}
|
|
324
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
325
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.2", type: FileComponent, isStandalone: true, selector: "ngx-file", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, cropWidth: { classPropertyName: "cropWidth", publicName: "cropWidth", isSignal: true, isRequired: false, transformFunction: null }, cropHeight: { classPropertyName: "cropHeight", publicName: "cropHeight", isSignal: true, isRequired: false, transformFunction: null }, t_item: { classPropertyName: "t_item", publicName: "t_item", isSignal: true, isRequired: false, transformFunction: null }, t_empty: { classPropertyName: "t_empty", publicName: "t_empty", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, wImage: { classPropertyName: "wImage", publicName: "wImage", isSignal: true, isRequired: false, transformFunction: null }, wFile: { classPropertyName: "wFile", publicName: "wFile", isSignal: true, isRequired: false, transformFunction: null }, wImages: { classPropertyName: "wImages", publicName: "wImages", isSignal: true, isRequired: false, transformFunction: null }, wFiles: { classPropertyName: "wFiles", publicName: "wFiles", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { wImage: "wImageChange", wFile: "wFileChange", wImages: "wImagesChange", wFiles: "wFilesChange" }, ngImport: i0, template: "@let _label = label(); @let _ph = placeholder(); @let _files = files(); @let\r\n_disabled = isDisabled(); @let _view = view();\r\n\r\n<div class=\"wfile\" [class._disabled]=\"_disabled\">\r\n\t@if (_label) {\r\n\t<div class=\"wfile__label\" [translate]=\"_label\"></div>\r\n\t}\r\n\r\n\t<input\r\n\t\t#fileInput\r\n\t\ttype=\"file\"\r\n\t\t[attr.accept]=\"accept()\"\r\n\t\t[attr.multiple]=\"isMultiple() ? '' : null\"\r\n\t\t(change)=\"onPicked(fileInput)\"\r\n\t\thidden\r\n\t/>\r\n\r\n\t@if (_view === 'thumb-only') {\r\n\t<div\r\n\t\tclass=\"wfile__body wfile__body--thumb-only\"\r\n\t\trole=\"button\"\r\n\t\ttabindex=\"0\"\r\n\t\t(click)=\"!_disabled && triggerPick(fileInput)\"\r\n\t\t(keydown.enter)=\"!_disabled && triggerPick(fileInput)\"\r\n\t\t(keydown.space)=\"!_disabled && triggerPick(fileInput); $event.preventDefault()\"\r\n\t>\r\n\t\t@if (_files.length === 0) {\r\n\t\t<ng-container [ngTemplateOutlet]=\"t_empty() || emptyTpl\"></ng-container>\r\n\t\t<ng-template #emptyTpl>\r\n\t\t\t<div class=\"wfile__empty\" [translate]=\"_ph\"></div>\r\n\t\t</ng-template>\r\n\t\t} @else {\r\n\t\t<ng-container\r\n\t\t\t[ngTemplateOutlet]=\"t_item() || itemTpl\"\r\n\t\t\t[ngTemplateOutletContext]=\"{ $implicit: _files[0], index: 0 }\"\r\n\t\t></ng-container>\r\n\r\n\t\t<ng-template #itemTpl let-src let-index=\"index\">\r\n\t\t\t@if (preview() && isImage(src)) {\r\n\t\t\t<img class=\"wfile__thumb\" [src]=\"src\" alt=\"preview\" />\r\n\t\t\t} @else {\r\n\t\t\t<span class=\"wfile__name\">{{ src }}</span>\r\n\t\t\t}\r\n\t\t</ng-template>\r\n\t\t} @if (clearable() && _files.length) {\r\n\t\t<button\r\n\t\t\ttype=\"button\"\r\n\t\t\tclass=\"wfile__remove material-icons\"\r\n\t\t\t(click)=\"clear(); $event.stopPropagation()\"\r\n\t\t\taria-label=\"Clear file\"\r\n\t\t>\r\n\t\t\tclose\r\n\t\t</button>\r\n\t\t}\r\n\t</div>\r\n\t} @else {\r\n\t<div class=\"wfile__body\">\r\n\t\t<div class=\"wfile__list\">\r\n\t\t\t@if (_files.length === 0) {\r\n\t\t\t<ng-container\r\n\t\t\t\t[ngTemplateOutlet]=\"t_empty() || emptyTpl\"\r\n\t\t\t></ng-container>\r\n\t\t\t<ng-template #emptyTpl>\r\n\t\t\t\t<div class=\"wfile__empty\" [translate]=\"_ph\"></div>\r\n\t\t\t</ng-template>\r\n\t\t\t} @else {\r\n\t\t\t<ul>\r\n\t\t\t\t@for (src of _files; track src; let i = $index) {\r\n\t\t\t\t<li class=\"wfile__item\">\r\n\t\t\t\t\t<ng-container\r\n\t\t\t\t\t\t[ngTemplateOutlet]=\"t_item() || itemTpl\"\r\n\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: src, index: i }\"\r\n\t\t\t\t\t></ng-container>\r\n\r\n\t\t\t\t\t<ng-template #itemTpl let-src let-index=\"index\">\r\n\t\t\t\t\t\t<span class=\"wfile__name\">{{ src }}</span>\r\n\r\n\t\t\t\t\t\t@if (preview() && isImage(src)) {\r\n\t\t\t\t\t\t<img class=\"wfile__thumb\" [src]=\"src\" alt=\"preview\" />\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\tclass=\"wfile__remove material-icons\"\r\n\t\t\t\t\t\t\t(click)=\"removeAt(index); $event.stopPropagation()\"\r\n\t\t\t\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t\t\t\taria-label=\"Remove file\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t\t}\r\n\t\t</div>\r\n\r\n\t\t<div class=\"wfile__actions\">\r\n\t\t\t<wbutton\r\n\t\t\t\ttype=\"primary\"\r\n\t\t\t\t[disableSubmit]=\"true\"\r\n\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t(wClick)=\"triggerPick(fileInput)\"\r\n\t\t\t>\r\n\t\t\t\t<span class=\"material-icons\">upload_file</span>\r\n\t\t\t\t<span translate>Browse</span>\r\n\t\t\t</wbutton>\r\n\r\n\t\t\t@if (clearable() && _files.length) {\r\n\t\t\t<wbutton\r\n\t\t\t\ttype=\"light\"\r\n\t\t\t\t[disableSubmit]=\"true\"\r\n\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t(wClick)=\"clear()\"\r\n\t\t\t>\r\n\t\t\t\t<span class=\"material-icons\">close</span>\r\n\t\t\t\t<span translate>Clear</span>\r\n\t\t\t</wbutton>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</div>\r\n\t}\r\n</div>\r\n", styles: [":host{display:block}.wfile._disabled{opacity:.6;pointer-events:none}.wfile__label{margin-bottom:6px}.wfile__body{border:1px solid var(--c-border);border-radius:var(--radius);overflow:hidden;background:var(--c-bg-secondary);box-shadow:var(--shadow-sm)}.wfile__body--thumb-only{display:inline-flex;align-items:center;justify-content:center;inline-size:100px;block-size:100px;padding:0}.wfile__empty{color:var(--c-placeholder);font-size:.85rem;text-align:center;padding:var(--sp-2)}.wfile__thumb{display:block;inline-size:100%;block-size:100%;object-fit:cover}.wfile__name{display:block;max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:var(--sp-2)}.wfile__remove{position:absolute;top:6px;right:6px;inline-size:28px;block-size:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-btn);border:1px solid var(--c-border);background:var(--c-bg-secondary);cursor:pointer}.wfile__remove:hover{background:var(--c-bg-tertiary)}.wfile__dropzone{display:flex;align-items:center;justify-content:center;gap:var(--sp-2);padding:var(--sp-4);background:var(--c-bg-tertiary);border-bottom:1px solid var(--c-border);color:var(--c-text-primary)}.wfile__dropzone._compact{padding:var(--sp-3)}.wfile__dropzone._clickable{cursor:pointer}.wfile__dropzone._clickable:hover{background:var(--c-bg-secondary)}.wfile__placeholder{color:var(--c-placeholder)}.wfile__actions{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-top:1px solid var(--c-border);background:var(--c-bg-secondary)}.wfile__files{display:grid;gap:var(--sp-2);padding:var(--sp-3)}.wfile__file{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border:1px solid var(--c-border);border-radius:var(--radius-card);background:var(--c-bg-secondary)}.wfile__file-meta{display:grid;gap:2px;min-width:0}.wfile__file-name{color:var(--c-text-primary);font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wfile__file-size{color:var(--c-text-muted);font-size:.85rem}.wfile__file-actions{display:inline-flex;gap:var(--sp-1)}.wfile__thumbs{display:grid;gap:var(--sp-2);grid-template-columns:repeat(auto-fill,minmax(88px,1fr));padding:var(--sp-3)}.wfile__thumb{position:relative;border:1px solid var(--c-border);border-radius:var(--radius-card);background:var(--c-bg-secondary);overflow:hidden;aspect-ratio:1/1}.wfile__thumb img{display:block;inline-size:100%;block-size:100%;object-fit:cover}.wfile__thumb-remove{position:absolute;top:6px;right:6px;inline-size:28px;block-size:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-btn);border:1px solid var(--c-border);background:var(--c-bg-secondary);cursor:pointer}.wfile__thumb-remove:hover{background:var(--c-bg-tertiary)}.wfile__preview{display:block;padding:var(--sp-3);border-top:1px solid var(--c-border);background:var(--c-bg-secondary)}.wfile__preview img{display:block;inline-size:100%;max-block-size:280px;object-fit:contain;border-radius:var(--radius-card);background:var(--c-bg-tertiary)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TranslateDirective, selector: "[translate]", inputs: ["translate", "vars"] }, { kind: "component", type: ButtonComponent, selector: "wbutton", inputs: ["type", "extraClass", "disabled", "disableSubmit", "isMultipleClicksAllowed"], outputs: ["wClick"] }] }); }
|
|
331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: FileComponent, isStandalone: true, selector: "ngx-file", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, cropWidth: { classPropertyName: "cropWidth", publicName: "cropWidth", isSignal: true, isRequired: false, transformFunction: null }, cropHeight: { classPropertyName: "cropHeight", publicName: "cropHeight", isSignal: true, isRequired: false, transformFunction: null }, t_item: { classPropertyName: "t_item", publicName: "t_item", isSignal: true, isRequired: false, transformFunction: null }, t_empty: { classPropertyName: "t_empty", publicName: "t_empty", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, wImage: { classPropertyName: "wImage", publicName: "wImage", isSignal: true, isRequired: false, transformFunction: null }, wFile: { classPropertyName: "wFile", publicName: "wFile", isSignal: true, isRequired: false, transformFunction: null }, wImages: { classPropertyName: "wImages", publicName: "wImages", isSignal: true, isRequired: false, transformFunction: null }, wFiles: { classPropertyName: "wFiles", publicName: "wFiles", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { wImage: "wImageChange", wFile: "wFileChange", wImages: "wImagesChange", wFiles: "wFilesChange" }, ngImport: i0, template: "@let _label = label(); @let _ph = placeholder(); @let _files = files(); @let\r\n_disabled = disabled(); @let _view = view();\r\n\r\n<div class=\"wfile\" [class._disabled]=\"_disabled\">\r\n\t@if (_label) {\r\n\t<div class=\"wfile__label\" [translate]=\"_label\"></div>\r\n\t}\r\n\r\n\t<input\r\n\t\t#fileInput\r\n\t\ttype=\"file\"\r\n\t\t[attr.accept]=\"accept()\"\r\n\t\t[attr.multiple]=\"isMultiple() ? '' : null\"\r\n\t\t(change)=\"onPicked(fileInput)\"\r\n\t\thidden\r\n\t/>\r\n\r\n\t@if (_view === 'thumb-only') {\r\n\t<div\r\n\t\tclass=\"wfile__body wfile__body--thumb-only\"\r\n\t\trole=\"button\"\r\n\t\ttabindex=\"0\"\r\n\t\t(click)=\"!_disabled && triggerPick(fileInput)\"\r\n\t\t(keydown.enter)=\"!_disabled && triggerPick(fileInput)\"\r\n\t\t(keydown.space)=\"!_disabled && triggerPick(fileInput); $event.preventDefault()\"\r\n\t>\r\n\t\t@if (_files.length === 0) {\r\n\t\t<ng-container [ngTemplateOutlet]=\"t_empty() || emptyTpl\"></ng-container>\r\n\t\t<ng-template #emptyTpl>\r\n\t\t\t<div class=\"wfile__empty\" [translate]=\"_ph\"></div>\r\n\t\t</ng-template>\r\n\t\t} @else {\r\n\t\t<ng-container\r\n\t\t\t[ngTemplateOutlet]=\"t_item() || itemTpl\"\r\n\t\t\t[ngTemplateOutletContext]=\"{ $implicit: _files[0], index: 0 }\"\r\n\t\t></ng-container>\r\n\r\n\t\t<ng-template #itemTpl let-src let-index=\"index\">\r\n\t\t\t@if (preview() && isImage(src)) {\r\n\t\t\t<img class=\"wfile__thumb\" [src]=\"src\" alt=\"preview\" />\r\n\t\t\t} @else {\r\n\t\t\t<span class=\"wfile__name\">{{ src }}</span>\r\n\t\t\t}\r\n\t\t</ng-template>\r\n\t\t} @if (clearable() && _files.length) {\r\n\t\t<button\r\n\t\t\ttype=\"button\"\r\n\t\t\tclass=\"wfile__remove material-icons\"\r\n\t\t\t(click)=\"clear(); $event.stopPropagation()\"\r\n\t\t\taria-label=\"Clear file\"\r\n\t\t>\r\n\t\t\tclose\r\n\t\t</button>\r\n\t\t}\r\n\t</div>\r\n\t} @else {\r\n\t<div class=\"wfile__body\">\r\n\t\t<div class=\"wfile__list\">\r\n\t\t\t@if (_files.length === 0) {\r\n\t\t\t<ng-container\r\n\t\t\t\t[ngTemplateOutlet]=\"t_empty() || emptyTpl\"\r\n\t\t\t></ng-container>\r\n\t\t\t<ng-template #emptyTpl>\r\n\t\t\t\t<div class=\"wfile__empty\" [translate]=\"_ph\"></div>\r\n\t\t\t</ng-template>\r\n\t\t\t} @else {\r\n\t\t\t<ul>\r\n\t\t\t\t@for (src of _files; track src; let i = $index) {\r\n\t\t\t\t<li class=\"wfile__item\">\r\n\t\t\t\t\t<ng-container\r\n\t\t\t\t\t\t[ngTemplateOutlet]=\"t_item() || itemTpl\"\r\n\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: src, index: i }\"\r\n\t\t\t\t\t></ng-container>\r\n\r\n\t\t\t\t\t<ng-template #itemTpl let-src let-index=\"index\">\r\n\t\t\t\t\t\t<span class=\"wfile__name\">{{ src }}</span>\r\n\r\n\t\t\t\t\t\t@if (preview() && isImage(src)) {\r\n\t\t\t\t\t\t<img class=\"wfile__thumb\" [src]=\"src\" alt=\"preview\" />\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\tclass=\"wfile__remove material-icons\"\r\n\t\t\t\t\t\t\t(click)=\"removeAt(index); $event.stopPropagation()\"\r\n\t\t\t\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t\t\t\taria-label=\"Remove file\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t\t}\r\n\t\t</div>\r\n\r\n\t\t<div class=\"wfile__actions\">\r\n\t\t\t<wbutton\r\n\t\t\t\ttype=\"primary\"\r\n\t\t\t\t[disableSubmit]=\"true\"\r\n\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t(wClick)=\"triggerPick(fileInput)\"\r\n\t\t\t>\r\n\t\t\t\t<span class=\"material-icons\">upload_file</span>\r\n\t\t\t\t<span translate>Browse</span>\r\n\t\t\t</wbutton>\r\n\r\n\t\t\t@if (clearable() && _files.length) {\r\n\t\t\t<wbutton\r\n\t\t\t\ttype=\"light\"\r\n\t\t\t\t[disableSubmit]=\"true\"\r\n\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t(wClick)=\"clear()\"\r\n\t\t\t>\r\n\t\t\t\t<span class=\"material-icons\">close</span>\r\n\t\t\t\t<span translate>Clear</span>\r\n\t\t\t</wbutton>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</div>\r\n\t}\r\n</div>\r\n", styles: [":host{display:block}.wfile._disabled{opacity:.6;pointer-events:none}.wfile__label{margin-bottom:6px}.wfile__body{border:1px solid var(--c-border);border-radius:var(--radius);overflow:hidden;background:var(--c-bg-secondary);box-shadow:var(--shadow-sm)}.wfile__body--thumb-only{display:inline-flex;align-items:center;justify-content:center;inline-size:100px;block-size:100px;padding:0}.wfile__empty{color:var(--c-placeholder);font-size:.85rem;text-align:center;padding:var(--sp-2)}.wfile__thumb{display:block;inline-size:100%;block-size:100%;object-fit:cover}.wfile__name{display:block;max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:var(--sp-2)}.wfile__remove{position:absolute;top:6px;right:6px;inline-size:28px;block-size:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-btn);border:1px solid var(--c-border);background:var(--c-bg-secondary);cursor:pointer}.wfile__remove:hover{background:var(--c-bg-tertiary)}.wfile__dropzone{display:flex;align-items:center;justify-content:center;gap:var(--sp-2);padding:var(--sp-4);background:var(--c-bg-tertiary);border-bottom:1px solid var(--c-border);color:var(--c-text-primary)}.wfile__dropzone._compact{padding:var(--sp-3)}.wfile__dropzone._clickable{cursor:pointer}.wfile__dropzone._clickable:hover{background:var(--c-bg-secondary)}.wfile__placeholder{color:var(--c-placeholder)}.wfile__actions{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-top:1px solid var(--c-border);background:var(--c-bg-secondary)}.wfile__files{display:grid;gap:var(--sp-2);padding:var(--sp-3)}.wfile__file{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border:1px solid var(--c-border);border-radius:var(--radius-card);background:var(--c-bg-secondary)}.wfile__file-meta{display:grid;gap:2px;min-width:0}.wfile__file-name{color:var(--c-text-primary);font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wfile__file-size{color:var(--c-text-muted);font-size:.85rem}.wfile__file-actions{display:inline-flex;gap:var(--sp-1)}.wfile__thumbs{display:grid;gap:var(--sp-2);grid-template-columns:repeat(auto-fill,minmax(88px,1fr));padding:var(--sp-3)}.wfile__thumb{position:relative;border:1px solid var(--c-border);border-radius:var(--radius-card);background:var(--c-bg-secondary);overflow:hidden;aspect-ratio:1/1}.wfile__thumb img{display:block;inline-size:100%;block-size:100%;object-fit:cover}.wfile__thumb-remove{position:absolute;top:6px;right:6px;inline-size:28px;block-size:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-btn);border:1px solid var(--c-border);background:var(--c-bg-secondary);cursor:pointer}.wfile__thumb-remove:hover{background:var(--c-bg-tertiary)}.wfile__preview{display:block;padding:var(--sp-3);border-top:1px solid var(--c-border);background:var(--c-bg-secondary)}.wfile__preview img{display:block;inline-size:100%;max-block-size:280px;object-fit:contain;border-radius:var(--radius-card);background:var(--c-bg-tertiary)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TranslateDirective, selector: "[translate]", inputs: ["translate", "vars"] }, { kind: "component", type: ButtonComponent, selector: "wbutton", inputs: ["type", "extraClass", "disabled", "disableSubmit", "isMultipleClicksAllowed"], outputs: ["wClick"] }] }); }
|
|
326
333
|
}
|
|
327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FileComponent, decorators: [{
|
|
328
335
|
type: Component,
|
|
329
|
-
args: [{ selector: 'ngx-file', imports: [NgTemplateOutlet, TranslateDirective, ButtonComponent], template: "@let _label = label(); @let _ph = placeholder(); @let _files = files(); @let\r\n_disabled =
|
|
336
|
+
args: [{ selector: 'ngx-file', imports: [NgTemplateOutlet, TranslateDirective, ButtonComponent], template: "@let _label = label(); @let _ph = placeholder(); @let _files = files(); @let\r\n_disabled = disabled(); @let _view = view();\r\n\r\n<div class=\"wfile\" [class._disabled]=\"_disabled\">\r\n\t@if (_label) {\r\n\t<div class=\"wfile__label\" [translate]=\"_label\"></div>\r\n\t}\r\n\r\n\t<input\r\n\t\t#fileInput\r\n\t\ttype=\"file\"\r\n\t\t[attr.accept]=\"accept()\"\r\n\t\t[attr.multiple]=\"isMultiple() ? '' : null\"\r\n\t\t(change)=\"onPicked(fileInput)\"\r\n\t\thidden\r\n\t/>\r\n\r\n\t@if (_view === 'thumb-only') {\r\n\t<div\r\n\t\tclass=\"wfile__body wfile__body--thumb-only\"\r\n\t\trole=\"button\"\r\n\t\ttabindex=\"0\"\r\n\t\t(click)=\"!_disabled && triggerPick(fileInput)\"\r\n\t\t(keydown.enter)=\"!_disabled && triggerPick(fileInput)\"\r\n\t\t(keydown.space)=\"!_disabled && triggerPick(fileInput); $event.preventDefault()\"\r\n\t>\r\n\t\t@if (_files.length === 0) {\r\n\t\t<ng-container [ngTemplateOutlet]=\"t_empty() || emptyTpl\"></ng-container>\r\n\t\t<ng-template #emptyTpl>\r\n\t\t\t<div class=\"wfile__empty\" [translate]=\"_ph\"></div>\r\n\t\t</ng-template>\r\n\t\t} @else {\r\n\t\t<ng-container\r\n\t\t\t[ngTemplateOutlet]=\"t_item() || itemTpl\"\r\n\t\t\t[ngTemplateOutletContext]=\"{ $implicit: _files[0], index: 0 }\"\r\n\t\t></ng-container>\r\n\r\n\t\t<ng-template #itemTpl let-src let-index=\"index\">\r\n\t\t\t@if (preview() && isImage(src)) {\r\n\t\t\t<img class=\"wfile__thumb\" [src]=\"src\" alt=\"preview\" />\r\n\t\t\t} @else {\r\n\t\t\t<span class=\"wfile__name\">{{ src }}</span>\r\n\t\t\t}\r\n\t\t</ng-template>\r\n\t\t} @if (clearable() && _files.length) {\r\n\t\t<button\r\n\t\t\ttype=\"button\"\r\n\t\t\tclass=\"wfile__remove material-icons\"\r\n\t\t\t(click)=\"clear(); $event.stopPropagation()\"\r\n\t\t\taria-label=\"Clear file\"\r\n\t\t>\r\n\t\t\tclose\r\n\t\t</button>\r\n\t\t}\r\n\t</div>\r\n\t} @else {\r\n\t<div class=\"wfile__body\">\r\n\t\t<div class=\"wfile__list\">\r\n\t\t\t@if (_files.length === 0) {\r\n\t\t\t<ng-container\r\n\t\t\t\t[ngTemplateOutlet]=\"t_empty() || emptyTpl\"\r\n\t\t\t></ng-container>\r\n\t\t\t<ng-template #emptyTpl>\r\n\t\t\t\t<div class=\"wfile__empty\" [translate]=\"_ph\"></div>\r\n\t\t\t</ng-template>\r\n\t\t\t} @else {\r\n\t\t\t<ul>\r\n\t\t\t\t@for (src of _files; track src; let i = $index) {\r\n\t\t\t\t<li class=\"wfile__item\">\r\n\t\t\t\t\t<ng-container\r\n\t\t\t\t\t\t[ngTemplateOutlet]=\"t_item() || itemTpl\"\r\n\t\t\t\t\t\t[ngTemplateOutletContext]=\"{ $implicit: src, index: i }\"\r\n\t\t\t\t\t></ng-container>\r\n\r\n\t\t\t\t\t<ng-template #itemTpl let-src let-index=\"index\">\r\n\t\t\t\t\t\t<span class=\"wfile__name\">{{ src }}</span>\r\n\r\n\t\t\t\t\t\t@if (preview() && isImage(src)) {\r\n\t\t\t\t\t\t<img class=\"wfile__thumb\" [src]=\"src\" alt=\"preview\" />\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\tclass=\"wfile__remove material-icons\"\r\n\t\t\t\t\t\t\t(click)=\"removeAt(index); $event.stopPropagation()\"\r\n\t\t\t\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t\t\t\taria-label=\"Remove file\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\tclose\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t\t}\r\n\t\t</div>\r\n\r\n\t\t<div class=\"wfile__actions\">\r\n\t\t\t<wbutton\r\n\t\t\t\ttype=\"primary\"\r\n\t\t\t\t[disableSubmit]=\"true\"\r\n\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t(wClick)=\"triggerPick(fileInput)\"\r\n\t\t\t>\r\n\t\t\t\t<span class=\"material-icons\">upload_file</span>\r\n\t\t\t\t<span translate>Browse</span>\r\n\t\t\t</wbutton>\r\n\r\n\t\t\t@if (clearable() && _files.length) {\r\n\t\t\t<wbutton\r\n\t\t\t\ttype=\"light\"\r\n\t\t\t\t[disableSubmit]=\"true\"\r\n\t\t\t\t[disabled]=\"_disabled\"\r\n\t\t\t\t(wClick)=\"clear()\"\r\n\t\t\t>\r\n\t\t\t\t<span class=\"material-icons\">close</span>\r\n\t\t\t\t<span translate>Clear</span>\r\n\t\t\t</wbutton>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</div>\r\n\t}\r\n</div>\r\n", styles: [":host{display:block}.wfile._disabled{opacity:.6;pointer-events:none}.wfile__label{margin-bottom:6px}.wfile__body{border:1px solid var(--c-border);border-radius:var(--radius);overflow:hidden;background:var(--c-bg-secondary);box-shadow:var(--shadow-sm)}.wfile__body--thumb-only{display:inline-flex;align-items:center;justify-content:center;inline-size:100px;block-size:100px;padding:0}.wfile__empty{color:var(--c-placeholder);font-size:.85rem;text-align:center;padding:var(--sp-2)}.wfile__thumb{display:block;inline-size:100%;block-size:100%;object-fit:cover}.wfile__name{display:block;max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:var(--sp-2)}.wfile__remove{position:absolute;top:6px;right:6px;inline-size:28px;block-size:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-btn);border:1px solid var(--c-border);background:var(--c-bg-secondary);cursor:pointer}.wfile__remove:hover{background:var(--c-bg-tertiary)}.wfile__dropzone{display:flex;align-items:center;justify-content:center;gap:var(--sp-2);padding:var(--sp-4);background:var(--c-bg-tertiary);border-bottom:1px solid var(--c-border);color:var(--c-text-primary)}.wfile__dropzone._compact{padding:var(--sp-3)}.wfile__dropzone._clickable{cursor:pointer}.wfile__dropzone._clickable:hover{background:var(--c-bg-secondary)}.wfile__placeholder{color:var(--c-placeholder)}.wfile__actions{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-top:1px solid var(--c-border);background:var(--c-bg-secondary)}.wfile__files{display:grid;gap:var(--sp-2);padding:var(--sp-3)}.wfile__file{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border:1px solid var(--c-border);border-radius:var(--radius-card);background:var(--c-bg-secondary)}.wfile__file-meta{display:grid;gap:2px;min-width:0}.wfile__file-name{color:var(--c-text-primary);font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wfile__file-size{color:var(--c-text-muted);font-size:.85rem}.wfile__file-actions{display:inline-flex;gap:var(--sp-1)}.wfile__thumbs{display:grid;gap:var(--sp-2);grid-template-columns:repeat(auto-fill,minmax(88px,1fr));padding:var(--sp-3)}.wfile__thumb{position:relative;border:1px solid var(--c-border);border-radius:var(--radius-card);background:var(--c-bg-secondary);overflow:hidden;aspect-ratio:1/1}.wfile__thumb img{display:block;inline-size:100%;block-size:100%;object-fit:cover}.wfile__thumb-remove{position:absolute;top:6px;right:6px;inline-size:28px;block-size:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-btn);border:1px solid var(--c-border);background:var(--c-bg-secondary);cursor:pointer}.wfile__thumb-remove:hover{background:var(--c-bg-tertiary)}.wfile__preview{display:block;padding:var(--sp-3);border-top:1px solid var(--c-border);background:var(--c-bg-secondary)}.wfile__preview img{display:block;inline-size:100%;max-block-size:280px;object-fit:contain;border-radius:var(--radius-card);background:var(--c-bg-tertiary)}\n"] }]
|
|
330
337
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], preview: [{ type: i0.Input, args: [{ isSignal: true, alias: "preview", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], cropWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "cropWidth", required: false }] }], cropHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "cropHeight", required: false }] }], t_item: [{ type: i0.Input, args: [{ isSignal: true, alias: "t_item", required: false }] }], t_empty: [{ type: i0.Input, args: [{ isSignal: true, alias: "t_empty", required: false }] }], container: [{ type: i0.Input, args: [{ isSignal: true, alias: "container", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], wImage: [{ type: i0.Input, args: [{ isSignal: true, alias: "wImage", required: false }] }, { type: i0.Output, args: ["wImageChange"] }], wFile: [{ type: i0.Input, args: [{ isSignal: true, alias: "wFile", required: false }] }, { type: i0.Output, args: ["wFileChange"] }], wImages: [{ type: i0.Input, args: [{ isSignal: true, alias: "wImages", required: false }] }, { type: i0.Output, args: ["wImagesChange"] }], wFiles: [{ type: i0.Input, args: [{ isSignal: true, alias: "wFiles", required: false }] }, { type: i0.Output, args: ["wFilesChange"] }] } });
|
|
331
338
|
|
|
332
339
|
class FileSelectorComponent {
|
|
@@ -335,16 +342,18 @@ class FileSelectorComponent {
|
|
|
335
342
|
this._translate = inject(TranslateService);
|
|
336
343
|
this.wModel = input(null, { ...(ngDevMode ? { debugName: "wModel" } : /* istanbul ignore next */ {}), alias: 'wModel' });
|
|
337
344
|
this.wChange = output();
|
|
338
|
-
this.items =
|
|
339
|
-
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
345
|
+
this.items = this._files.documents;
|
|
340
346
|
this.placeholder = this._translate.translate('Select file...');
|
|
341
347
|
}
|
|
342
|
-
|
|
343
|
-
|
|
348
|
+
onSelect(value) {
|
|
349
|
+
this.wChange.emit((value ?? null));
|
|
350
|
+
}
|
|
351
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FileSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
352
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: FileSelectorComponent, isStandalone: true, selector: "file-selector", inputs: { wModel: { classPropertyName: "wModel", publicName: "wModel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { wChange: "wChange" }, ngImport: i0, template: "<wselect\r\n\t[placeholder]=\"placeholder()\"\r\n\t[items]=\"items()\"\r\n\t[wModel]=\"wModel()\"\r\n\t(wChange)=\"onSelect($event)\"\r\n\tbindLabel=\"name\"\r\n\tbindValue=\"_id\"\r\n></wselect>\r\n", dependencies: [{ kind: "component", type: SelectComponent, selector: "wselect", inputs: ["disabled", "clearable", "placeholder", "multiple", "bindLabel", "bindValue", "label", "searchable", "searchableBy", "items", "buttons", "formField", "field", "wModel"], outputs: ["wModelChange", "wChange"] }] }); }
|
|
344
353
|
}
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FileSelectorComponent, decorators: [{
|
|
346
355
|
type: Component,
|
|
347
|
-
args: [{ selector: 'file-selector', imports: [SelectComponent], template: "<wselect\r\n\t[placeholder]=\"placeholder()\"\r\n\t[items]=\"items()\"\r\n\
|
|
356
|
+
args: [{ selector: 'file-selector', imports: [SelectComponent], template: "<wselect\r\n\t[placeholder]=\"placeholder()\"\r\n\t[items]=\"items()\"\r\n\t[wModel]=\"wModel()\"\r\n\t(wChange)=\"onSelect($event)\"\r\n\tbindLabel=\"name\"\r\n\tbindValue=\"_id\"\r\n></wselect>\r\n" }]
|
|
348
357
|
}], propDecorators: { wModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "wModel", required: false }] }], wChange: [{ type: i0.Output, args: ["wChange"] }] } });
|
|
349
358
|
|
|
350
359
|
const fileFormComponents = {
|
|
@@ -438,10 +447,10 @@ class FilesComponent {
|
|
|
438
447
|
_preCreate(file) {
|
|
439
448
|
delete file.__created;
|
|
440
449
|
}
|
|
441
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
442
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
450
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
451
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: FilesComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<wtable title=\"Files\" [columns]=\"columns\" [config]=\"config\" [rows]=\"rows\">\r\n\t<ng-template cell=\"img\" let-element>\r\n\t\t<img\r\n\t\t\t[src]=\"element.url || ''\"\r\n\t\t\t(click)=\"copy(element.url)\"\r\n\t\t\tstyle=\"height: 100px\"\r\n\t\t/>\r\n\t</ng-template>\r\n\t<ng-template cell=\"url\" let-element>\r\n\t\t<span (click)=\"copy(element.url || '')\">{{ element.url }}</span>\r\n\t</ng-template>\r\n</wtable>\r\n", dependencies: [{ kind: "component", type: TableComponent, selector: "wtable", inputs: ["bindValue", "rows", "config", "columns", "value", "title"], outputs: ["columnsChange", "onSearch"] }] }); }
|
|
443
452
|
}
|
|
444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FilesComponent, decorators: [{
|
|
445
454
|
type: Component,
|
|
446
455
|
args: [{ imports: [TableComponent], template: "<wtable title=\"Files\" [columns]=\"columns\" [config]=\"config\" [rows]=\"rows\">\r\n\t<ng-template cell=\"img\" let-element>\r\n\t\t<img\r\n\t\t\t[src]=\"element.url || ''\"\r\n\t\t\t(click)=\"copy(element.url)\"\r\n\t\t\tstyle=\"height: 100px\"\r\n\t\t/>\r\n\t</ng-template>\r\n\t<ng-template cell=\"url\" let-element>\r\n\t\t<span (click)=\"copy(element.url || '')\">{{ element.url }}</span>\r\n\t</ng-template>\r\n</wtable>\r\n" }]
|
|
447
456
|
}], ctorParameters: () => [] });
|
|
@@ -464,7 +473,8 @@ const DEFAULT_ACE_CONFIG = {
|
|
|
464
473
|
class AceFormComponent {
|
|
465
474
|
constructor() {
|
|
466
475
|
this._form = inject(FormService);
|
|
467
|
-
this.templateRef = viewChild.required('templateRef'
|
|
476
|
+
this.templateRef = viewChild.required('templateRef', /* @ts-ignore */
|
|
477
|
+
...(ngDevMode ? [{ debugName: "templateRef" }] : /* istanbul ignore next */ []));
|
|
468
478
|
}
|
|
469
479
|
ngOnInit() {
|
|
470
480
|
this._form.addTemplateComponent('Ace', this.templateRef());
|
|
@@ -626,10 +636,10 @@ class AceFormComponent {
|
|
|
626
636
|
return field;
|
|
627
637
|
return true;
|
|
628
638
|
}
|
|
629
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
630
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AceFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
640
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: AceFormComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-data>\r\n\t<div class=\"w-ace\" [class]=\"data.component?.class\">\r\n\t\t<ace\r\n\t\t\tclass=\"w-ace__editor\"\r\n\t\t\t(valueChange)=\"onValueChange(data, $event)\"\r\n\t\t\t[value]=\"getValue(data)\"\r\n\t\t\t[config]=\"getConfig(data)\"\r\n\t\t\t[mode]=\"$any(getMode(data))\"\r\n\t\t\t[theme]=\"$any(getTheme(data))\"\r\n\t\t\t[disabled]=\"isDisabled(data)\"\r\n\t\t\t[useAceClass]=\"getUseAceClass(data)\"\r\n\t\t></ace>\r\n\t</div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.w-ace{width:100%;background:var(--c-bg-secondary);color:var(--c-text-primary);border:1px solid var(--c-border);border-radius:var(--radius-card);box-shadow:var(--shadow-sm);overflow:hidden}.w-ace__editor{display:block;width:100%;height:clamp(240px,60vh,720px)}\n"], dependencies: [{ kind: "component", type: AceComponent, selector: "ace", inputs: ["disabled", "readOnly", "mode", "theme", "config", "useAceClass", "value"], outputs: ["valueChange", "blur", "focus", "copy", "paste", "change", "changeCursor", "changeSession", "changeSelection"], exportAs: ["ngxAce"] }] }); }
|
|
631
641
|
}
|
|
632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AceFormComponent, decorators: [{
|
|
633
643
|
type: Component,
|
|
634
644
|
args: [{ imports: [AceComponent], template: "<ng-template #templateRef let-data>\r\n\t<div class=\"w-ace\" [class]=\"data.component?.class\">\r\n\t\t<ace\r\n\t\t\tclass=\"w-ace__editor\"\r\n\t\t\t(valueChange)=\"onValueChange(data, $event)\"\r\n\t\t\t[value]=\"getValue(data)\"\r\n\t\t\t[config]=\"getConfig(data)\"\r\n\t\t\t[mode]=\"$any(getMode(data))\"\r\n\t\t\t[theme]=\"$any(getTheme(data))\"\r\n\t\t\t[disabled]=\"isDisabled(data)\"\r\n\t\t\t[useAceClass]=\"getUseAceClass(data)\"\r\n\t\t></ace>\r\n\t</div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.w-ace{width:100%;background:var(--c-bg-secondary);color:var(--c-text-primary);border:1px solid var(--c-border);border-radius:var(--radius-card);box-shadow:var(--shadow-sm);overflow:hidden}.w-ace__editor{display:block;width:100%;height:clamp(240px,60vh,720px)}\n"] }]
|
|
635
645
|
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }] } });
|
|
@@ -817,16 +827,17 @@ const aceForm = {
|
|
|
817
827
|
class ButtonFormComponent {
|
|
818
828
|
constructor() {
|
|
819
829
|
this._formService = inject(FormService);
|
|
820
|
-
this.templateRef = viewChild.required('templateRef'
|
|
830
|
+
this.templateRef = viewChild.required('templateRef', /* @ts-ignore */
|
|
831
|
+
...(ngDevMode ? [{ debugName: "templateRef" }] : /* istanbul ignore next */ []));
|
|
821
832
|
this.buttonDefaults = buttonDefaults;
|
|
822
833
|
}
|
|
823
834
|
ngOnInit() {
|
|
824
835
|
this._formService.addTemplateComponent('Button', this.templateRef());
|
|
825
836
|
}
|
|
826
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
827
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
837
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ButtonFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
838
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: ButtonFormComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-data>\r\n\t<wbutton\r\n\t\t[type]=\"data.props.type ?? buttonDefaults.type\"\r\n\t\t[extraClass]=\"data.props.extraClass ?? buttonDefaults.extraClass\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[disableSubmit]=\"data.props.disableSubmit ?? buttonDefaults.disableSubmit\"\r\n\t\t[isMultipleClicksAllowed]=\"\r\n\t\t\tdata.props.isMultipleClicksAllowed ??\r\n\t\t\tbuttonDefaults.isMultipleClicksAllowed\r\n\t\t\"\r\n\t\t(wClick)=\"data.props.onClick?.($event); data.wClick?.()\"\r\n\t>\r\n\t\t{{ data.props.label || data.props.text || 'Button' }}\r\n\t</wbutton>\r\n</ng-template>\r\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "wbutton", inputs: ["type", "extraClass", "disabled", "disableSubmit", "isMultipleClicksAllowed"], outputs: ["wClick"] }] }); }
|
|
828
839
|
}
|
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ButtonFormComponent, decorators: [{
|
|
830
841
|
type: Component,
|
|
831
842
|
args: [{ imports: [ButtonComponent], template: "<ng-template #templateRef let-data>\r\n\t<wbutton\r\n\t\t[type]=\"data.props.type ?? buttonDefaults.type\"\r\n\t\t[extraClass]=\"data.props.extraClass ?? buttonDefaults.extraClass\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[disableSubmit]=\"data.props.disableSubmit ?? buttonDefaults.disableSubmit\"\r\n\t\t[isMultipleClicksAllowed]=\"\r\n\t\t\tdata.props.isMultipleClicksAllowed ??\r\n\t\t\tbuttonDefaults.isMultipleClicksAllowed\r\n\t\t\"\r\n\t\t(wClick)=\"data.props.onClick?.($event); data.wClick?.()\"\r\n\t>\r\n\t\t{{ data.props.label || data.props.text || 'Button' }}\r\n\t</wbutton>\r\n</ng-template>\r\n" }]
|
|
832
843
|
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }] } });
|
|
@@ -909,7 +920,8 @@ const buttonForm = {
|
|
|
909
920
|
class FileFormComponent {
|
|
910
921
|
constructor() {
|
|
911
922
|
this._formService = inject(FormService);
|
|
912
|
-
this.templateRef = viewChild.required('templateRef'
|
|
923
|
+
this.templateRef = viewChild.required('templateRef', /* @ts-ignore */
|
|
924
|
+
...(ngDevMode ? [{ debugName: "templateRef" }] : /* istanbul ignore next */ []));
|
|
913
925
|
this.fileDefaults = fileDefaults;
|
|
914
926
|
}
|
|
915
927
|
ngOnInit() {
|
|
@@ -969,10 +981,10 @@ class FileFormComponent {
|
|
|
969
981
|
if (typeof data?.wChange === 'function')
|
|
970
982
|
data.wChange();
|
|
971
983
|
}
|
|
972
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
973
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
984
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FileFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
985
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: FileFormComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-data>\r\n\t@let mode = (data.props.mode ?? fileDefaults.mode); @switch (mode) { @case\r\n\t('single-image') {\r\n\t<ngx-file\r\n\t\t[label]=\"data.props.label ?? fileDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? fileDefaults.placeholder\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[clearable]=\"data.props.clearable ?? fileDefaults.clearable\"\r\n\t\t[accept]=\"data.props.accept ?? fileDefaults.accept\"\r\n\t\t[preview]=\"data.props.preview ?? fileDefaults.preview\"\r\n\t\t[mode]=\"mode\"\r\n\t\t[view]=\"data.props.view ?? fileDefaults.view\"\r\n\t\t[cropWidth]=\"data.props.cropWidth ?? fileDefaults.cropWidth\"\r\n\t\t[cropHeight]=\"data.props.cropHeight ?? fileDefaults.cropHeight\"\r\n\t\t[container]=\"data.props.container ?? fileDefaults.container\"\r\n\t\t[name]=\"data.props.name ?? fileDefaults.name\"\r\n\t\t[wImage]=\"getValue(data)\"\r\n\t\t(wImageChange)=\"onValueChange(data, $event)\"\r\n\t></ngx-file>\r\n\t} @case ('single-file') {\r\n\t<ngx-file\r\n\t\t[label]=\"data.props.label ?? fileDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? fileDefaults.placeholder\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[clearable]=\"data.props.clearable ?? fileDefaults.clearable\"\r\n\t\t[accept]=\"data.props.accept ?? fileDefaults.accept\"\r\n\t\t[preview]=\"data.props.preview ?? fileDefaults.preview\"\r\n\t\t[mode]=\"mode\"\r\n\t\t[view]=\"data.props.view ?? fileDefaults.view\"\r\n\t\t[cropWidth]=\"data.props.cropWidth ?? fileDefaults.cropWidth\"\r\n\t\t[cropHeight]=\"data.props.cropHeight ?? fileDefaults.cropHeight\"\r\n\t\t[container]=\"data.props.container ?? fileDefaults.container\"\r\n\t\t[name]=\"data.props.name ?? fileDefaults.name\"\r\n\t\t[wFile]=\"getValue(data)\"\r\n\t\t(wFileChange)=\"onValueChange(data, $event)\"\r\n\t></ngx-file>\r\n\t} @case ('multi-image') {\r\n\t<ngx-file\r\n\t\t[label]=\"data.props.label ?? fileDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? fileDefaults.placeholder\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[clearable]=\"data.props.clearable ?? fileDefaults.clearable\"\r\n\t\t[accept]=\"data.props.accept ?? fileDefaults.accept\"\r\n\t\t[preview]=\"data.props.preview ?? fileDefaults.preview\"\r\n\t\t[mode]=\"mode\"\r\n\t\t[view]=\"data.props.view ?? fileDefaults.view\"\r\n\t\t[cropWidth]=\"data.props.cropWidth ?? fileDefaults.cropWidth\"\r\n\t\t[cropHeight]=\"data.props.cropHeight ?? fileDefaults.cropHeight\"\r\n\t\t[container]=\"data.props.container ?? fileDefaults.container\"\r\n\t\t[name]=\"data.props.name ?? fileDefaults.name\"\r\n\t\t[wImages]=\"getValue(data)\"\r\n\t\t(wImagesChange)=\"onValueChange(data, $event)\"\r\n\t></ngx-file>\r\n\t} @default {\r\n\t<!-- multi-file (default) -->\r\n\t<ngx-file\r\n\t\t[label]=\"data.props.label ?? fileDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? fileDefaults.placeholder\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[clearable]=\"data.props.clearable ?? fileDefaults.clearable\"\r\n\t\t[accept]=\"data.props.accept ?? fileDefaults.accept\"\r\n\t\t[preview]=\"data.props.preview ?? fileDefaults.preview\"\r\n\t\t[mode]=\"mode\"\r\n\t\t[view]=\"data.props.view ?? fileDefaults.view\"\r\n\t\t[cropWidth]=\"data.props.cropWidth ?? fileDefaults.cropWidth\"\r\n\t\t[cropHeight]=\"data.props.cropHeight ?? fileDefaults.cropHeight\"\r\n\t\t[container]=\"data.props.container ?? fileDefaults.container\"\r\n\t\t[name]=\"data.props.name ?? fileDefaults.name\"\r\n\t\t[wFiles]=\"getValue(data)\"\r\n\t\t(wFilesChange)=\"onValueChange(data, $event)\"\r\n\t></ngx-file>\r\n\t} }\r\n</ng-template>\r\n", dependencies: [{ kind: "component", type: FileComponent, selector: "ngx-file", inputs: ["label", "placeholder", "disabled", "clearable", "accept", "preview", "mode", "view", "cropWidth", "cropHeight", "t_item", "t_empty", "container", "name", "wImage", "wFile", "wImages", "wFiles"], outputs: ["wImageChange", "wFileChange", "wImagesChange", "wFilesChange"] }] }); }
|
|
974
986
|
}
|
|
975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FileFormComponent, decorators: [{
|
|
976
988
|
type: Component,
|
|
977
989
|
args: [{ imports: [FileComponent], template: "<ng-template #templateRef let-data>\r\n\t@let mode = (data.props.mode ?? fileDefaults.mode); @switch (mode) { @case\r\n\t('single-image') {\r\n\t<ngx-file\r\n\t\t[label]=\"data.props.label ?? fileDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? fileDefaults.placeholder\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[clearable]=\"data.props.clearable ?? fileDefaults.clearable\"\r\n\t\t[accept]=\"data.props.accept ?? fileDefaults.accept\"\r\n\t\t[preview]=\"data.props.preview ?? fileDefaults.preview\"\r\n\t\t[mode]=\"mode\"\r\n\t\t[view]=\"data.props.view ?? fileDefaults.view\"\r\n\t\t[cropWidth]=\"data.props.cropWidth ?? fileDefaults.cropWidth\"\r\n\t\t[cropHeight]=\"data.props.cropHeight ?? fileDefaults.cropHeight\"\r\n\t\t[container]=\"data.props.container ?? fileDefaults.container\"\r\n\t\t[name]=\"data.props.name ?? fileDefaults.name\"\r\n\t\t[wImage]=\"getValue(data)\"\r\n\t\t(wImageChange)=\"onValueChange(data, $event)\"\r\n\t></ngx-file>\r\n\t} @case ('single-file') {\r\n\t<ngx-file\r\n\t\t[label]=\"data.props.label ?? fileDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? fileDefaults.placeholder\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[clearable]=\"data.props.clearable ?? fileDefaults.clearable\"\r\n\t\t[accept]=\"data.props.accept ?? fileDefaults.accept\"\r\n\t\t[preview]=\"data.props.preview ?? fileDefaults.preview\"\r\n\t\t[mode]=\"mode\"\r\n\t\t[view]=\"data.props.view ?? fileDefaults.view\"\r\n\t\t[cropWidth]=\"data.props.cropWidth ?? fileDefaults.cropWidth\"\r\n\t\t[cropHeight]=\"data.props.cropHeight ?? fileDefaults.cropHeight\"\r\n\t\t[container]=\"data.props.container ?? fileDefaults.container\"\r\n\t\t[name]=\"data.props.name ?? fileDefaults.name\"\r\n\t\t[wFile]=\"getValue(data)\"\r\n\t\t(wFileChange)=\"onValueChange(data, $event)\"\r\n\t></ngx-file>\r\n\t} @case ('multi-image') {\r\n\t<ngx-file\r\n\t\t[label]=\"data.props.label ?? fileDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? fileDefaults.placeholder\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[clearable]=\"data.props.clearable ?? fileDefaults.clearable\"\r\n\t\t[accept]=\"data.props.accept ?? fileDefaults.accept\"\r\n\t\t[preview]=\"data.props.preview ?? fileDefaults.preview\"\r\n\t\t[mode]=\"mode\"\r\n\t\t[view]=\"data.props.view ?? fileDefaults.view\"\r\n\t\t[cropWidth]=\"data.props.cropWidth ?? fileDefaults.cropWidth\"\r\n\t\t[cropHeight]=\"data.props.cropHeight ?? fileDefaults.cropHeight\"\r\n\t\t[container]=\"data.props.container ?? fileDefaults.container\"\r\n\t\t[name]=\"data.props.name ?? fileDefaults.name\"\r\n\t\t[wImages]=\"getValue(data)\"\r\n\t\t(wImagesChange)=\"onValueChange(data, $event)\"\r\n\t></ngx-file>\r\n\t} @default {\r\n\t<!-- multi-file (default) -->\r\n\t<ngx-file\r\n\t\t[label]=\"data.props.label ?? fileDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? fileDefaults.placeholder\"\r\n\t\t[disabled]=\"data.props.disabled === true || data.component?.disabled === true\"\r\n\t\t[clearable]=\"data.props.clearable ?? fileDefaults.clearable\"\r\n\t\t[accept]=\"data.props.accept ?? fileDefaults.accept\"\r\n\t\t[preview]=\"data.props.preview ?? fileDefaults.preview\"\r\n\t\t[mode]=\"mode\"\r\n\t\t[view]=\"data.props.view ?? fileDefaults.view\"\r\n\t\t[cropWidth]=\"data.props.cropWidth ?? fileDefaults.cropWidth\"\r\n\t\t[cropHeight]=\"data.props.cropHeight ?? fileDefaults.cropHeight\"\r\n\t\t[container]=\"data.props.container ?? fileDefaults.container\"\r\n\t\t[name]=\"data.props.name ?? fileDefaults.name\"\r\n\t\t[wFiles]=\"getValue(data)\"\r\n\t\t(wFilesChange)=\"onValueChange(data, $event)\"\r\n\t></ngx-file>\r\n\t} }\r\n</ng-template>\r\n" }]
|
|
978
990
|
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }] } });
|
|
@@ -1093,18 +1105,19 @@ const fileForm = {
|
|
|
1093
1105
|
class InputFormComponent {
|
|
1094
1106
|
constructor() {
|
|
1095
1107
|
this._formService = inject(FormService);
|
|
1096
|
-
this.templateRef = viewChild.required('templateRef'
|
|
1108
|
+
this.templateRef = viewChild.required('templateRef', /* @ts-ignore */
|
|
1109
|
+
...(ngDevMode ? [{ debugName: "templateRef" }] : /* istanbul ignore next */ []));
|
|
1097
1110
|
this.inputDefaults = inputDefaults;
|
|
1098
1111
|
}
|
|
1099
1112
|
ngOnInit() {
|
|
1100
1113
|
this._formService.addTemplateComponent('Input', this.templateRef());
|
|
1101
1114
|
}
|
|
1102
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1103
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
1115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: InputFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1116
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: InputFormComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-data>\r\n\t<winput\r\n\t\t[formField]=\"data.field\"\r\n\t\t[label]=\"data.props.label ?? inputDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? inputDefaults.placeholder\"\r\n\t\t[type]=\"data.props.type ?? inputDefaults.type\"\r\n\t\t[name]=\"data.props.name || data.key || inputDefaults.name\"\r\n\t\t[items]=\"data.props.items ?? inputDefaults.items\"\r\n\t\t[disabled]=\"!!data.props.disabled || !!data.component?.disabled\"\r\n\t\t[focused]=\"data.props.focused ?? inputDefaults.focused\"\r\n\t\t[clearable]=\"data.props.clearable ?? inputDefaults.clearable\"\r\n\t\t[wClass]=\"data.props.wClass ?? inputDefaults.wClass\"\r\n\t\t[autocomplete]=\"data.props.autocomplete ?? inputDefaults.autocomplete\"\r\n\t\t[error]=\"data.props.error ?? inputDefaults.error\"\r\n\t\t(wChange)=\"data.props.onChange?.($event); data.wChange?.()\"\r\n\t></winput>\r\n</ng-template>\r\n", dependencies: [{ kind: "component", type: InputComponent, selector: "winput", inputs: ["formField", "wModel", "type", "name", "label", "placeholder", "items", "icons", "disabled", "focused", "clearable", "wClass", "autocomplete", "error"], outputs: ["wModelChange", "wChange", "wSubmit", "wBlur", "wFocus", "wKeydown"] }] }); }
|
|
1104
1117
|
}
|
|
1105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: InputFormComponent, decorators: [{
|
|
1106
1119
|
type: Component,
|
|
1107
|
-
args: [{ imports: [InputComponent], template: "<ng-template #templateRef let-data>\r\n\t<winput\r\n\t\t[formField]=\"data.field\"\r\n\t\t[label]=\"data.props.label ?? inputDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? inputDefaults.placeholder\"\r\n\t\t[type]=\"data.props.type ?? inputDefaults.type\"\r\n\t\t[name]=\"data.props.name || data.key || inputDefaults.name\"\r\n\t\t[items]=\"data.props.items ?? inputDefaults.items\"\r\n\t\t[disabled]=\"!!data.props.disabled || !!data.component?.disabled\"\r\n\t\t[focused]=\"data.props.focused ?? inputDefaults.focused\"\r\n\t\t[clearable]=\"data.props.clearable ?? inputDefaults.clearable\"\r\n\t\t[wClass]=\"data.props.wClass ?? inputDefaults.wClass\"\r\n\t\t[autocomplete]=\"data.props.autocomplete ?? inputDefaults.autocomplete\"\r\n\t\t[error]=\"data.props.error ?? inputDefaults.error\"\r\n\t></winput>\r\n</ng-template>\r\n" }]
|
|
1120
|
+
args: [{ imports: [InputComponent], template: "<ng-template #templateRef let-data>\r\n\t<winput\r\n\t\t[formField]=\"data.field\"\r\n\t\t[label]=\"data.props.label ?? inputDefaults.label\"\r\n\t\t[placeholder]=\"data.props.placeholder ?? inputDefaults.placeholder\"\r\n\t\t[type]=\"data.props.type ?? inputDefaults.type\"\r\n\t\t[name]=\"data.props.name || data.key || inputDefaults.name\"\r\n\t\t[items]=\"data.props.items ?? inputDefaults.items\"\r\n\t\t[disabled]=\"!!data.props.disabled || !!data.component?.disabled\"\r\n\t\t[focused]=\"data.props.focused ?? inputDefaults.focused\"\r\n\t\t[clearable]=\"data.props.clearable ?? inputDefaults.clearable\"\r\n\t\t[wClass]=\"data.props.wClass ?? inputDefaults.wClass\"\r\n\t\t[autocomplete]=\"data.props.autocomplete ?? inputDefaults.autocomplete\"\r\n\t\t[error]=\"data.props.error ?? inputDefaults.error\"\r\n\t\t(wChange)=\"data.props.onChange?.($event); data.wChange?.()\"\r\n\t></winput>\r\n</ng-template>\r\n" }]
|
|
1108
1121
|
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }] } });
|
|
1109
1122
|
|
|
1110
1123
|
const inputForm = {
|
|
@@ -1227,18 +1240,19 @@ const inputForm = {
|
|
|
1227
1240
|
class SelectFormComponent {
|
|
1228
1241
|
constructor() {
|
|
1229
1242
|
this._formService = inject(FormService);
|
|
1230
|
-
this.templateRef = viewChild.required('templateRef'
|
|
1243
|
+
this.templateRef = viewChild.required('templateRef', /* @ts-ignore */
|
|
1244
|
+
...(ngDevMode ? [{ debugName: "templateRef" }] : /* istanbul ignore next */ []));
|
|
1231
1245
|
this.selectDefaults = selectDefaults;
|
|
1232
1246
|
}
|
|
1233
1247
|
ngOnInit() {
|
|
1234
1248
|
this._formService.addTemplateComponent('Select', this.templateRef());
|
|
1235
1249
|
}
|
|
1236
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1237
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
1250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: SelectFormComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-data>\r\n\t<wselect\r\n\t\t[formField]=\"data.field\"\r\n\t\t[items]=\"data.props.items ?? selectDefaults.items\"\r\n\t\t[placeholder]=\"\r\n\t\t\tdata.props.placeholder ?? selectDefaults.placeholder\r\n\t\t\"\r\n\t\t[label]=\"data.props.label ?? selectDefaults.label\"\r\n\t\t[bindLabel]=\"data.props.bindLabel ?? selectDefaults.bindLabel\"\r\n\t\t[bindValue]=\"data.props.bindValue ?? selectDefaults.bindValue\"\r\n\t\t[multiple]=\"data.props.multiple ?? selectDefaults.multiple\"\r\n\t\t[clearable]=\"data.props.clearable ?? selectDefaults.clearable\"\r\n\t\t[searchable]=\"data.props.searchable ?? selectDefaults.searchable\"\r\n\t\t[searchableBy]=\"\r\n\t\t\tdata.props.searchableBy ?? selectDefaults.searchableBy\r\n\t\t\"\r\n\t\t[buttons]=\"data.props.buttons ?? selectDefaults.buttons\"\r\n\t\t[disabled]=\"\r\n\t\t\tdata.props.disabled === true ||\r\n\t\t\tdata.component.disabled === true\r\n\t\t\"\r\n\t\t(wChange)=\"data.props.onChange?.($event); data.wChange?.()\"\r\n\t></wselect>\r\n</ng-template>\r\n", dependencies: [{ kind: "component", type: SelectComponent, selector: "wselect", inputs: ["disabled", "clearable", "placeholder", "multiple", "bindLabel", "bindValue", "label", "searchable", "searchableBy", "items", "buttons", "formField", "field", "wModel"], outputs: ["wModelChange", "wChange"] }] }); }
|
|
1238
1252
|
}
|
|
1239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectFormComponent, decorators: [{
|
|
1240
1254
|
type: Component,
|
|
1241
|
-
args: [{ imports: [SelectComponent], template: "<ng-template #templateRef let-data>\r\n\t<wselect\r\n\t\t[formField]=\"data.
|
|
1255
|
+
args: [{ imports: [SelectComponent], template: "<ng-template #templateRef let-data>\r\n\t<wselect\r\n\t\t[formField]=\"data.field\"\r\n\t\t[items]=\"data.props.items ?? selectDefaults.items\"\r\n\t\t[placeholder]=\"\r\n\t\t\tdata.props.placeholder ?? selectDefaults.placeholder\r\n\t\t\"\r\n\t\t[label]=\"data.props.label ?? selectDefaults.label\"\r\n\t\t[bindLabel]=\"data.props.bindLabel ?? selectDefaults.bindLabel\"\r\n\t\t[bindValue]=\"data.props.bindValue ?? selectDefaults.bindValue\"\r\n\t\t[multiple]=\"data.props.multiple ?? selectDefaults.multiple\"\r\n\t\t[clearable]=\"data.props.clearable ?? selectDefaults.clearable\"\r\n\t\t[searchable]=\"data.props.searchable ?? selectDefaults.searchable\"\r\n\t\t[searchableBy]=\"\r\n\t\t\tdata.props.searchableBy ?? selectDefaults.searchableBy\r\n\t\t\"\r\n\t\t[buttons]=\"data.props.buttons ?? selectDefaults.buttons\"\r\n\t\t[disabled]=\"\r\n\t\t\tdata.props.disabled === true ||\r\n\t\t\tdata.component.disabled === true\r\n\t\t\"\r\n\t\t(wChange)=\"data.props.onChange?.($event); data.wChange?.()\"\r\n\t></wselect>\r\n</ng-template>\r\n" }]
|
|
1242
1256
|
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }] } });
|
|
1243
1257
|
|
|
1244
1258
|
const selectForm = {
|
|
@@ -1333,7 +1347,8 @@ const selectForm = {
|
|
|
1333
1347
|
class TinymceFormComponent {
|
|
1334
1348
|
constructor() {
|
|
1335
1349
|
this._form = inject(FormService);
|
|
1336
|
-
this.templateRef = viewChild.required('templateRef'
|
|
1350
|
+
this.templateRef = viewChild.required('templateRef', /* @ts-ignore */
|
|
1351
|
+
...(ngDevMode ? [{ debugName: "templateRef" }] : /* istanbul ignore next */ []));
|
|
1337
1352
|
}
|
|
1338
1353
|
ngOnInit() {
|
|
1339
1354
|
this._form.addTemplateComponent('Tinymce', this.templateRef());
|
|
@@ -1516,10 +1531,10 @@ class TinymceFormComponent {
|
|
|
1516
1531
|
getPlaceholder(data) {
|
|
1517
1532
|
return data?.props?.['placeholder'] ?? '';
|
|
1518
1533
|
}
|
|
1519
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1520
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
1534
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TinymceFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1535
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: TinymceFormComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-data>\r\n\t<div class=\"w-tiny\" [class]=\"data.component?.class\">\r\n\t\t<tinymce\r\n\t\t\tclass=\"w-tiny__editor\"\r\n\t\t\t[ngModel]=\"getValue(data)\"\r\n\t\t\t(ngModelChange)=\"onValueChange(data, $event)\"\r\n\t\t\t[config]=\"getConfig(data)\"\r\n\t\t\t[disabled]=\"isDisabled(data)\"\r\n\t\t\t[inline]=\"isInline(data)\"\r\n\t\t\t[placeholder]=\"getPlaceholder(data)\"\r\n\t\t></tinymce>\r\n\t</div>\r\n</ng-template>\r\n", styles: [".w-tiny{width:100%;background:var(--c-bg-secondary);color:var(--c-text-primary);border:1px solid var(--c-border);border-radius:var(--radius-card);box-shadow:var(--shadow-sm);overflow:hidden;padding:var(--sp-2)}.w-tiny__editor{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: TinymceComponent, selector: "tinymce", inputs: ["config", "placeholder", "inline", "disabled", "delay", "loading"], outputs: ["ready"], exportAs: ["ngxTinymce"] }] }); }
|
|
1521
1536
|
}
|
|
1522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TinymceFormComponent, decorators: [{
|
|
1523
1538
|
type: Component,
|
|
1524
1539
|
args: [{ imports: [FormsModule, TinymceComponent], template: "<ng-template #templateRef let-data>\r\n\t<div class=\"w-tiny\" [class]=\"data.component?.class\">\r\n\t\t<tinymce\r\n\t\t\tclass=\"w-tiny__editor\"\r\n\t\t\t[ngModel]=\"getValue(data)\"\r\n\t\t\t(ngModelChange)=\"onValueChange(data, $event)\"\r\n\t\t\t[config]=\"getConfig(data)\"\r\n\t\t\t[disabled]=\"isDisabled(data)\"\r\n\t\t\t[inline]=\"isInline(data)\"\r\n\t\t\t[placeholder]=\"getPlaceholder(data)\"\r\n\t\t></tinymce>\r\n\t</div>\r\n</ng-template>\r\n", styles: [".w-tiny{width:100%;background:var(--c-bg-secondary);color:var(--c-text-primary);border:1px solid var(--c-border);border-radius:var(--radius-card);box-shadow:var(--shadow-sm);overflow:hidden;padding:var(--sp-2)}.w-tiny__editor{display:block;width:100%}\n"] }]
|
|
1525
1540
|
}], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }] } });
|
|
@@ -1853,8 +1868,7 @@ class UserService extends CrudService {
|
|
|
1853
1868
|
this.url = this._bosConfig.url;
|
|
1854
1869
|
this.roles = this._bosConfig.roles.concat(['admin']);
|
|
1855
1870
|
this.employees = this._bosConfig.roles;
|
|
1856
|
-
this.users =
|
|
1857
|
-
...(ngDevMode ? [{ debugName: "users" }] : /* istanbul ignore next */ []));
|
|
1871
|
+
this.users = this.documents;
|
|
1858
1872
|
this.user = signal(localStorage.getItem('waw_user')
|
|
1859
1873
|
? JSON.parse(localStorage.getItem('waw_user'))
|
|
1860
1874
|
: this.prepareDocument()(), /* @ts-ignore */
|
|
@@ -1863,7 +1877,9 @@ class UserService extends CrudService {
|
|
|
1863
1877
|
const thumb = this.user().thumb;
|
|
1864
1878
|
return !thumb || thumb.includes(this._bosConfig.defaultUserThumb)
|
|
1865
1879
|
? this._bosConfig.defaultUserThumb
|
|
1866
|
-
:
|
|
1880
|
+
: /^https?:\/\//i.test(thumb)
|
|
1881
|
+
? thumb
|
|
1882
|
+
: this.url + thumb;
|
|
1867
1883
|
}, /* @ts-ignore */
|
|
1868
1884
|
...(ngDevMode ? [{ debugName: "thumb" }] : /* istanbul ignore next */ []));
|
|
1869
1885
|
this.usersByRole = computed(() => {
|
|
@@ -1950,10 +1966,10 @@ class UserService extends CrudService {
|
|
|
1950
1966
|
name: 'admin',
|
|
1951
1967
|
});
|
|
1952
1968
|
}
|
|
1953
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1954
|
-
static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.
|
|
1969
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UserService, deps: [], target: i0.ɵɵFactoryTarget.Service }); }
|
|
1970
|
+
static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.8", ngImport: i0, type: UserService }); }
|
|
1955
1971
|
}
|
|
1956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UserService, decorators: [{
|
|
1957
1973
|
type: Service
|
|
1958
1974
|
}], ctorParameters: () => [] });
|
|
1959
1975
|
|
|
@@ -1996,10 +2012,10 @@ class UserSelectorComponent {
|
|
|
1996
2012
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1997
2013
|
this.onChange = output();
|
|
1998
2014
|
}
|
|
1999
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2000
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
2015
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UserSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2016
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: UserSelectorComponent, isStandalone: true, selector: "user-selector", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange" }, ngImport: i0, template: "<wselect\r\n\t(wChange)=\"onChange.emit($event)\"\r\n\tplaceholder=\"Select user...\"\r\n\t[items]=\"userService.users()\"\r\n\t[wModel]=\"value()\"\r\n></wselect>\r\n", styles: [""], dependencies: [{ kind: "component", type: SelectComponent, selector: "wselect", inputs: ["disabled", "clearable", "placeholder", "multiple", "bindLabel", "bindValue", "label", "searchable", "searchableBy", "items", "buttons", "formField", "field", "wModel"], outputs: ["wModelChange", "wChange"] }] }); }
|
|
2001
2017
|
}
|
|
2002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UserSelectorComponent, decorators: [{
|
|
2003
2019
|
type: Component,
|
|
2004
2020
|
args: [{ imports: [SelectComponent], selector: 'user-selector', template: "<wselect\r\n\t(wChange)=\"onChange.emit($event)\"\r\n\tplaceholder=\"Select user...\"\r\n\t[items]=\"userService.users()\"\r\n\t[wModel]=\"value()\"\r\n></wselect>\r\n" }]
|
|
2005
2021
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }] } });
|
|
@@ -2009,10 +2025,10 @@ class UserPreviewComponent {
|
|
|
2009
2025
|
this.userService = inject(UserService);
|
|
2010
2026
|
this.bosConfig = inject(NGX_BOS_CONFIG);
|
|
2011
2027
|
}
|
|
2012
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2013
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
2028
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UserPreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2029
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: UserPreviewComponent, isStandalone: true, selector: "user-preview", ngImport: i0, template: "<a\r\n\tclass=\"space__header-avatar\"\r\n\t[routerLink]=\"bosConfig.profilePath\"\r\n\taria-label=\"Profile\"\r\n>\r\n\t<img [src]=\"userService.thumb()\" alt=\"\" />\r\n</a>\r\n", styles: [".space__header-avatar{margin-inline-start:var(--sp-3);inline-size:32px;block-size:32px;border-radius:999px;overflow:hidden;display:inline-flex;cursor:pointer;text-decoration:none}.space__header-avatar:focus-visible{outline:none;box-shadow:var(--focus-ring)}.space__header-avatar img{inline-size:100%;block-size:100%;object-fit:cover;border-radius:inherit;display:block}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }] }); }
|
|
2014
2030
|
}
|
|
2015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UserPreviewComponent, decorators: [{
|
|
2016
2032
|
type: Component,
|
|
2017
2033
|
args: [{ selector: 'user-preview', imports: [RouterLink], template: "<a\r\n\tclass=\"space__header-avatar\"\r\n\t[routerLink]=\"bosConfig.profilePath\"\r\n\taria-label=\"Profile\"\r\n>\r\n\t<img [src]=\"userService.thumb()\" alt=\"\" />\r\n</a>\r\n", styles: [".space__header-avatar{margin-inline-start:var(--sp-3);inline-size:32px;block-size:32px;border-radius:999px;overflow:hidden;display:inline-flex;cursor:pointer;text-decoration:none}.space__header-avatar:focus-visible{outline:none;box-shadow:var(--focus-ring)}.space__header-avatar img{inline-size:100%;block-size:100%;object-fit:cover;border-radius:inherit;display:block}\n"] }]
|
|
2018
2034
|
}] });
|
|
@@ -2026,9 +2042,25 @@ class UsersComponent extends CrudComponent {
|
|
|
2026
2042
|
this.setDocuments();
|
|
2027
2043
|
});
|
|
2028
2044
|
}
|
|
2045
|
+
update(doc) {
|
|
2046
|
+
if (this.form.formId) {
|
|
2047
|
+
this._formService.reset(this.form.formId, doc);
|
|
2048
|
+
}
|
|
2049
|
+
this._formService.modal(this.form, {
|
|
2050
|
+
label: 'Update',
|
|
2051
|
+
click: (updated, close) => {
|
|
2052
|
+
close();
|
|
2053
|
+
Object.assign(doc, updated);
|
|
2054
|
+
this.userService.updateAdmin(doc).subscribe(() => {
|
|
2055
|
+
this.setDocuments();
|
|
2056
|
+
});
|
|
2057
|
+
},
|
|
2058
|
+
}, doc);
|
|
2059
|
+
}
|
|
2029
2060
|
constructor() {
|
|
2030
2061
|
super(userFormComponentsFactory(), inject(FormService), inject(UserService), 'user');
|
|
2031
2062
|
this.configType = 'local';
|
|
2063
|
+
this._formService = inject(FormService);
|
|
2032
2064
|
this._router = inject(Router);
|
|
2033
2065
|
this.userService = inject(UserService);
|
|
2034
2066
|
this.roles = this._router.url.includes('admin')
|
|
@@ -2041,12 +2073,18 @@ class UsersComponent extends CrudComponent {
|
|
|
2041
2073
|
this.columns.push(role);
|
|
2042
2074
|
}
|
|
2043
2075
|
}
|
|
2044
|
-
|
|
2045
|
-
|
|
2076
|
+
updateRole(user, role, value) {
|
|
2077
|
+
user.is[role] = value;
|
|
2078
|
+
this.userService.updateAdmin(user).subscribe(() => {
|
|
2079
|
+
this.setDocuments();
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UsersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2083
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UsersComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Users\"\r\n>\r\n\t@for (role of roles; track role) {\r\n\t<ng-template [cell]=\"role\" let-user>\r\n\t\t<winput\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t\t(wChange)=\"updateRole(user, role, !!$event)\"\n\t\t\t[wModel]=\"user.is[role]\"\r\n\t\t\ttype=\"checkbox\"\r\n\t\t/>\r\n\t</ng-template>\r\n\t}\r\n</wtable>\r\n<!-- ==================== -->\r\n", styles: [":host ::ng-deep .wtable__th:nth-child(n+3):not(:last-child),:host ::ng-deep .wtable__td:nth-child(n+3):not(:last-child){width:1%;padding-inline:var(--sp-2);white-space:nowrap}:host ::ng-deep .wtable__td:nth-child(n+3):not(:last-child) winput{display:inline-flex}\n"], dependencies: [{ kind: "component", type: TableComponent, selector: "wtable", inputs: ["bindValue", "rows", "config", "columns", "value", "title"], outputs: ["columnsChange", "onSearch"] }, { kind: "directive", type: CellDirective, selector: "ng-template[cell]", inputs: ["cell"] }, { kind: "component", type: InputComponent, selector: "winput", inputs: ["formField", "wModel", "type", "name", "label", "placeholder", "items", "icons", "disabled", "focused", "clearable", "wClass", "autocomplete", "error"], outputs: ["wModelChange", "wChange", "wSubmit", "wBlur", "wFocus", "wKeydown"] }] }); }
|
|
2046
2084
|
}
|
|
2047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UsersComponent, decorators: [{
|
|
2048
2086
|
type: Component,
|
|
2049
|
-
args: [{ imports: [TableComponent, CellDirective, InputComponent], template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Users\"\r\n>\r\n\t@for (role of roles; track role) {\r\n\t<ng-template [cell]=\"role\" let-user>\r\n\t\t<winput\
|
|
2087
|
+
args: [{ imports: [TableComponent, CellDirective, InputComponent], template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Users\"\r\n>\r\n\t@for (role of roles; track role) {\r\n\t<ng-template [cell]=\"role\" let-user>\r\n\t\t<winput\n\t\t\t(click)=\"$event.stopPropagation()\"\n\t\t\t(wChange)=\"updateRole(user, role, !!$event)\"\n\t\t\t[wModel]=\"user.is[role]\"\r\n\t\t\ttype=\"checkbox\"\r\n\t\t/>\r\n\t</ng-template>\r\n\t}\r\n</wtable>\r\n<!-- ==================== -->\r\n", styles: [":host ::ng-deep .wtable__th:nth-child(n+3):not(:last-child),:host ::ng-deep .wtable__td:nth-child(n+3):not(:last-child){width:1%;padding-inline:var(--sp-2);white-space:nowrap}:host ::ng-deep .wtable__td:nth-child(n+3):not(:last-child) winput{display:inline-flex}\n"] }]
|
|
2050
2088
|
}], ctorParameters: () => [] });
|
|
2051
2089
|
|
|
2052
2090
|
var users_component = /*#__PURE__*/Object.freeze({
|
|
@@ -2078,10 +2116,10 @@ class ClientsComponent extends CrudComponent {
|
|
|
2078
2116
|
// fetch first page from server using CrudComponent logic
|
|
2079
2117
|
this.setDocuments();
|
|
2080
2118
|
}
|
|
2081
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2082
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
2119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ClientsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2120
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: ClientsComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Clients\"\r\n></wtable>\r\n<!-- ==================== -->\r\n", styles: [""], dependencies: [{ kind: "component", type: TableComponent, selector: "wtable", inputs: ["bindValue", "rows", "config", "columns", "value", "title"], outputs: ["columnsChange", "onSearch"] }] }); }
|
|
2083
2121
|
}
|
|
2084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ClientsComponent, decorators: [{
|
|
2085
2123
|
type: Component,
|
|
2086
2124
|
args: [{ imports: [TableComponent], template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Clients\"\r\n></wtable>\r\n<!-- ==================== -->\r\n" }]
|
|
2087
2125
|
}], ctorParameters: () => [] });
|
|
@@ -2106,8 +2144,10 @@ class FormComponent extends CrudComponent {
|
|
|
2106
2144
|
allowUrl() {
|
|
2107
2145
|
return false;
|
|
2108
2146
|
}
|
|
2109
|
-
constructor(
|
|
2110
|
-
|
|
2147
|
+
constructor() {
|
|
2148
|
+
const formcomponentService = inject(FormcomponentService);
|
|
2149
|
+
const formService = inject(FormService);
|
|
2150
|
+
super(formcomponentForm, formService, formcomponentService, 'user');
|
|
2111
2151
|
this._router = inject(Router);
|
|
2112
2152
|
this._bosConfig = inject(NGX_BOS_CONFIG);
|
|
2113
2153
|
this.formId = this._router.url.split('form/')[1];
|
|
@@ -2120,14 +2160,14 @@ class FormComponent extends CrudComponent {
|
|
|
2120
2160
|
/** wtable config built by CrudComponent, aware of server mode */
|
|
2121
2161
|
this.config = this.getConfig();
|
|
2122
2162
|
effect(() => {
|
|
2123
|
-
if (
|
|
2163
|
+
if (formcomponentService.isLoaded()) {
|
|
2124
2164
|
this.setDocuments();
|
|
2125
2165
|
}
|
|
2126
2166
|
});
|
|
2127
2167
|
this.config.buttons.unshift({
|
|
2128
2168
|
icon: 'settings',
|
|
2129
2169
|
click: (doc) => {
|
|
2130
|
-
|
|
2170
|
+
formService.modal(FORM_COMPONENT_FORM(doc.name), {
|
|
2131
2171
|
label: 'Update',
|
|
2132
2172
|
click: async (updated, close) => {
|
|
2133
2173
|
close();
|
|
@@ -2135,19 +2175,19 @@ class FormComponent extends CrudComponent {
|
|
|
2135
2175
|
...doc.props,
|
|
2136
2176
|
...updated,
|
|
2137
2177
|
};
|
|
2138
|
-
|
|
2178
|
+
formcomponentService.update(doc);
|
|
2139
2179
|
},
|
|
2140
2180
|
}, doc.props || {});
|
|
2141
2181
|
},
|
|
2142
2182
|
});
|
|
2143
2183
|
}
|
|
2144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2145
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
2184
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2185
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: FormComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Forms\"\r\n>\r\n</wtable>\r\n<!-- ==================== -->\r\n", dependencies: [{ kind: "component", type: TableComponent, selector: "wtable", inputs: ["bindValue", "rows", "config", "columns", "value", "title"], outputs: ["columnsChange", "onSearch"] }] }); }
|
|
2146
2186
|
}
|
|
2147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FormComponent, decorators: [{
|
|
2148
2188
|
type: Component,
|
|
2149
2189
|
args: [{ imports: [TableComponent], template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Forms\"\r\n>\r\n</wtable>\r\n<!-- ==================== -->\r\n" }]
|
|
2150
|
-
}], ctorParameters: () => [
|
|
2190
|
+
}], ctorParameters: () => [] });
|
|
2151
2191
|
|
|
2152
2192
|
var form_component = /*#__PURE__*/Object.freeze({
|
|
2153
2193
|
__proto__: null,
|
|
@@ -2210,10 +2250,10 @@ class FormsComponent {
|
|
|
2210
2250
|
}));
|
|
2211
2251
|
});
|
|
2212
2252
|
}
|
|
2213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2214
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
2253
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FormsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2254
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: FormsComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Forms\"\r\n>\r\n</wtable>\r\n<!-- ==================== -->\r\n", dependencies: [{ kind: "component", type: TableComponent, selector: "wtable", inputs: ["bindValue", "rows", "config", "columns", "value", "title"], outputs: ["columnsChange", "onSearch"] }] }); }
|
|
2215
2255
|
}
|
|
2216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FormsComponent, decorators: [{
|
|
2217
2257
|
type: Component,
|
|
2218
2258
|
args: [{ imports: [TableComponent], template: "<!--==== Table Module ====-->\r\n<wtable\r\n\t[rows]=\"documents()\"\r\n\t[columns]=\"columns\"\r\n\t[config]=\"config\"\r\n\ttitle=\"Forms\"\r\n>\r\n</wtable>\r\n<!-- ==================== -->\r\n" }]
|
|
2219
2259
|
}], ctorParameters: () => [] });
|
|
@@ -2241,10 +2281,10 @@ class SpiderComponent {
|
|
|
2241
2281
|
this.end = input('', /* @ts-ignore */
|
|
2242
2282
|
...(ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []));
|
|
2243
2283
|
}
|
|
2244
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2245
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
2284
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SpiderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2285
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: SpiderComponent, isStandalone: true, selector: "icon-spider", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, start: { classPropertyName: "start", publicName: "start", isSignal: true, isRequired: false, transformFunction: null }, end: { classPropertyName: "end", publicName: "end", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--spider-w": "width", "style.--spider-h": "height", "style.--spider-start": "start", "style.--spider-end": "end" }, classAttribute: "spider" }, ngImport: i0, template: "<svg\r\n\tpreserveAspectRatio=\"xMidYMid meet\"\r\n\txmlns=\"http://www.w3.org/2000/svg\"\r\n\tviewBox=\"0 0 72 84\"\r\n\tclass=\"spider__svg\"\r\n\tfill=\"none\"\r\n>\r\n\t<path\r\n\t\td=\"M29.7441 38.2845C29.7441 38.2845 31.8474 35.0824 33.6034 33.46C35.2166 31.9737 35.9191 31.6079 36.0232 31.5575C36.1314 31.6079 36.8298 31.9737 38.443 33.46C40.1991 35.0824 42.3025 38.2845 42.3025 38.2845C42.3025 38.2845 47.196 35.9266 47.196 29.1802C47.196 22.4337 42.8736 18.9516 42.8736 18.9516C47.9679 27.7872 43.1013 33.2694 43.1013 33.2694C43.1013 33.2694 42.1364 33.1137 40.3998 31.0165C39.0996 29.5517 37.6333 28.246 36.031 27.126V27.1064V27.126C34.4245 28.2391 32.953 29.5384 31.6468 30.9971C29.9139 33.0942 28.9452 33.2498 28.9452 33.2498C28.9452 33.2498 24.0746 27.7679 29.1691 18.9321C29.1691 18.9321 24.8504 22.3948 24.8504 29.1607C24.8504 35.9266 29.7441 38.2845 29.7441 38.2845Z\"\r\n\t\tfill=\"url(#paint0_linear_5_30)\"\r\n\t/>\r\n\t<path\r\n\t\td=\"M31.1333 41.3775C30.7938 44.101 32.322 45.2097 32.322 45.2097C32.3393 44.5685 32.4233 43.9308 32.5729 43.3072C32.7736 42.7159 33.8967 41.3618 35.0583 41.3618H36.988C38.1459 41.3618 39.2727 42.7003 39.4772 43.3072C39.6241 43.9312 39.707 44.5688 39.7242 45.2097C39.7242 45.2097 41.268 44.101 40.9167 41.3775C40.5965 38.8135 36.5132 35.3236 36.0464 34.9306V34.8917H36.0232H36V34.9306C35.533 35.3236 31.4499 38.8135 31.1333 41.3775Z\"\r\n\t\tfill=\"url(#paint1_linear_5_30)\"\r\n\t/>\r\n\t<path\r\n\t\td=\"M43.2673 45.91C42.5186 47.5046 41.2429 48.7867 39.6587 49.5362C39.6587 49.5362 36.2085 44.7117 36.0386 44.5639V44.5406V44.5639C35.8688 44.7117 32.4224 49.5362 32.4224 49.5362C30.8254 48.7934 29.5365 47.5106 28.7792 45.91C27.6832 43.3578 28.7792 40.0742 28.7792 40.0742C27.8222 40.9534 25.823 45.91 28.0074 49.7775C28.644 50.9108 29.5247 51.8858 30.5848 52.6305C31.6448 53.3753 32.857 53.8708 34.1322 54.0805C34.1322 54.0805 33.395 52.9756 34.0125 51.1587C34.3557 50.1073 35.0716 49.2207 36.0232 48.6687C36.9748 49.2207 37.6907 50.1073 38.034 51.1587C38.6552 52.9756 37.9143 54.0805 37.9143 54.0805C39.1933 53.8718 40.4095 53.3761 41.473 52.6299C42.5364 51.8838 43.4201 50.9063 44.0583 49.7696C46.2235 45.879 44.2244 40.9456 43.2866 40.0663C43.2673 40.0742 44.3827 43.3578 43.2673 45.91Z\"\r\n\t\tfill=\"url(#paint2_linear_5_30)\"\r\n\t/>\r\n\t<path\r\n\t\td=\"M18.7064 30.4135C19.2274 31.2189 25.8191 39.9729 25.8191 39.9729C25.8191 39.9729 27.1042 37.4868 25.9232 36.0005C24.7424 34.5144 21.5507 30.3474 20.9486 29.363C20.4509 28.4918 20.1627 27.515 20.1073 26.5111C20.034 25.6902 19.0767 14.6757 19.0767 14.6757C19.8965 11.6482 21.2001 8.77554 22.9362 6.17063C24.3439 4.00548 25.9018 1.94346 27.5982 0C27.5982 0 23.0403 3.23317 20.4314 7.2717C18.8838 9.64045 17.6645 12.2114 16.8074 14.913C16.8074 14.913 17.4134 24.6125 17.5407 26.5189C17.5809 27.8983 17.9831 29.2421 18.7064 30.4135Z\"\r\n\t\tfill=\"url(#paint3_linear_5_30)\"\r\n\t/>\r\n\t<path\r\n\t\td=\"M19.0923 59.368C19.0923 59.368 19.0923 57.6639 20.1227 54.7848C21.1531 51.9056 24.7539 45.416 24.7539 45.416L25.0279 40.8056L24.3139 39.8095C24.3139 39.8095 19.096 37.7863 16.9811 36.6464C14.8663 35.5064 14.3105 35.1952 14.3105 35.1952C13.5116 33.6583 12.8328 32.0608 12.2805 30.4174C11.1922 27.3555 10.7599 25.9625 10.7599 25.9625C10.5214 22.9704 10.4609 19.9668 10.5785 16.9673C10.7599 11.781 11.0301 10.1158 11.0301 10.1158C11.0301 10.1158 9.72946 12.0067 9.15056 16.4031C8.57166 20.7996 8.44816 26.2622 8.44816 26.2622L11.7054 36.6152C11.7054 36.6152 14.407 38.4827 17.9074 40.4204C19.0234 41.0646 20.2047 41.5863 21.431 41.9767L12.4464 43.3735L3.91342 50.7658C2.51875 53.6073 1.48155 56.6135 0.825943 59.7142C-0.277831 64.9084 0.0540732 70.581 0.0540732 70.581C0.0540732 70.581 1.39713 64.9084 2.99104 59.8194C4.58495 54.7304 5.95501 52.3647 5.95501 52.3647L13.6737 46.3343L19.787 45.7468L15.0708 57.8078C15.0708 57.8078 15.0283 59.3641 15.7037 62.8657C16.3792 66.3673 19.266 75.67 19.266 75.67L26.6296 84L27.3397 83.8715L21.7822 74.6156L19.0923 59.368Z\"\r\n\t\tfill=\"url(#paint4_linear_5_30)\"\r\n\t/>\r\n\t<path\r\n\t\td=\"M52.923 14.6757C52.923 14.6757 51.9659 25.6786 51.8888 26.5111C51.8333 27.515 51.5451 28.4918 51.0475 29.363C50.4492 30.3513 47.2537 34.5105 46.0728 36.0005C44.8918 37.4907 46.1769 39.9729 46.1769 39.9729C46.1769 39.9729 52.7725 31.2189 53.2936 30.4135C54.0144 29.2429 54.4139 27.9002 54.4514 26.5228C54.5826 24.6164 55.1886 14.9169 55.1886 14.9169C54.3296 12.216 53.1105 9.64533 51.5646 7.27559C48.9596 3.23317 44.4017 0 44.4017 0C46.1041 1.94244 47.6672 4.00452 49.0791 6.17063C50.8088 8.7772 52.1069 11.6496 52.923 14.6757Z\"\r\n\t\tfill=\"url(#paint5_linear_5_30)\"\r\n\t/>\r\n\t<path\r\n\t\td=\"M71.1821 59.7027C70.5274 56.6015 69.4902 53.5952 68.0945 50.7541L59.5576 43.3617L50.5576 41.9689C51.7828 41.5784 52.9627 41.0566 54.0774 40.4126C57.5932 38.4673 60.2833 36.6075 60.2833 36.6075L63.5366 26.2544C63.5366 26.2544 63.4132 20.8074 62.8343 16.3992C62.2554 11.9911 60.9779 10.1158 60.9779 10.1158C60.9779 10.1158 61.248 11.7771 61.4295 16.9634C61.5448 19.9628 61.4841 22.9665 61.248 25.9586C61.248 25.9586 60.8081 27.3516 59.7313 30.4135C59.179 32.0569 58.5003 33.6544 57.7014 35.1913C57.7014 35.1913 57.1456 35.4986 55.0307 36.6425C52.9158 37.7863 47.6979 39.8056 47.6979 39.8056L46.9839 40.8017L47.2541 45.4121C47.2541 45.4121 50.8664 51.9017 51.8853 54.7808C52.9041 57.66 52.9158 59.3641 52.9158 59.3641L50.2142 74.6117L44.6528 83.8715L45.3629 84L52.7305 75.6778C52.7305 75.6778 55.6134 66.3868 56.2927 62.8735C56.972 59.3603 56.9256 57.8156 56.9256 57.8156L52.2094 45.7544L58.3189 46.3419L66.0375 52.3725C66.0375 52.3725 67.4115 54.738 69.0054 59.8272C70.5993 64.9162 71.9423 70.5888 71.9423 70.5888C71.9423 70.5888 72.2896 64.8967 71.1821 59.7027Z\"\r\n\t\tfill=\"url(#paint6_linear_5_30)\"\r\n\t/>\r\n\t<defs>\r\n\t\t<linearGradient\r\n\t\t\tid=\"paint0_linear_5_30\"\r\n\t\t\tx1=\"36.0232\"\r\n\t\t\ty1=\"18.9321\"\r\n\t\t\tx2=\"36.0232\"\r\n\t\t\ty2=\"38.2845\"\r\n\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t>\r\n\t\t\t<stop stop-color=\"#F6C93C\" />\r\n\t\t\t<stop offset=\"1\" stop-color=\"#A79F1E\" />\r\n\t\t</linearGradient>\r\n\t\t<linearGradient\r\n\t\t\tid=\"paint1_linear_5_30\"\r\n\t\t\tx1=\"36.0264\"\r\n\t\t\ty1=\"34.8917\"\r\n\t\t\tx2=\"36.0264\"\r\n\t\t\ty2=\"45.2097\"\r\n\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t>\r\n\t\t\t<stop stop-color=\"#F6C93C\" />\r\n\t\t\t<stop offset=\"1\" stop-color=\"#A79F1E\" />\r\n\t\t</linearGradient>\r\n\t\t<linearGradient\r\n\t\t\tid=\"paint2_linear_5_30\"\r\n\t\t\tx1=\"36.0264\"\r\n\t\t\ty1=\"40.0663\"\r\n\t\t\tx2=\"36.0264\"\r\n\t\t\ty2=\"54.0805\"\r\n\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t>\r\n\t\t\t<stop stop-color=\"#F6C93C\" />\r\n\t\t\t<stop offset=\"1\" stop-color=\"#A79F1E\" />\r\n\t\t</linearGradient>\r\n\t\t<linearGradient\r\n\t\t\tid=\"paint3_linear_5_30\"\r\n\t\t\tx1=\"22.2029\"\r\n\t\t\ty1=\"0\"\r\n\t\t\tx2=\"22.2029\"\r\n\t\t\ty2=\"39.9729\"\r\n\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t>\r\n\t\t\t<stop stop-color=\"#F6C93C\" />\r\n\t\t\t<stop offset=\"1\" stop-color=\"#A79F1E\" />\r\n\t\t</linearGradient>\r\n\t\t<linearGradient\r\n\t\t\tid=\"paint4_linear_5_30\"\r\n\t\t\tx1=\"13.6735\"\r\n\t\t\ty1=\"10.1158\"\r\n\t\t\tx2=\"13.6735\"\r\n\t\t\ty2=\"84\"\r\n\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t>\r\n\t\t\t<stop stop-color=\"#F6C93C\" />\r\n\t\t\t<stop offset=\"1\" stop-color=\"#A79F1E\" />\r\n\t\t</linearGradient>\r\n\t\t<linearGradient\r\n\t\t\tid=\"paint5_linear_5_30\"\r\n\t\t\tx1=\"49.7951\"\r\n\t\t\ty1=\"0\"\r\n\t\t\tx2=\"49.7951\"\r\n\t\t\ty2=\"39.9729\"\r\n\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t>\r\n\t\t\t<stop stop-color=\"#F6C93C\" />\r\n\t\t\t<stop offset=\"1\" stop-color=\"#A79F1E\" />\r\n\t\t</linearGradient>\r\n\t\t<linearGradient\r\n\t\t\tid=\"paint6_linear_5_30\"\r\n\t\t\tx1=\"58.3234\"\r\n\t\t\ty1=\"10.1158\"\r\n\t\t\tx2=\"58.3234\"\r\n\t\t\ty2=\"84\"\r\n\t\t\tgradientUnits=\"userSpaceOnUse\"\r\n\t\t>\r\n\t\t\t<stop stop-color=\"#F6C93C\" />\r\n\t\t\t<stop offset=\"1\" stop-color=\"#A79F1E\" />\r\n\t\t</linearGradient>\r\n\t</defs>\r\n</svg>\r\n", styles: [".spider{--spider-w: 100%;--spider-h: auto;display:inline-block;inline-size:var(--spider-w);block-size:var(--spider-h);line-height:0}.spider__svg{display:block;inline-size:100%;block-size:100%;max-inline-size:100%;max-block-size:100%;aspect-ratio:72/84}\n"] }); }
|
|
2246
2286
|
}
|
|
2247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SpiderComponent, decorators: [{
|
|
2248
2288
|
type: Component,
|
|
2249
2289
|
args: [{ selector: 'icon-spider', host: {
|
|
2250
2290
|
class: 'spider',
|
|
@@ -2263,10 +2303,10 @@ class PhonePipe {
|
|
|
2263
2303
|
const phone = parsePhoneNumberFromString(raw, country);
|
|
2264
2304
|
return phone ? phone.formatInternational() : raw;
|
|
2265
2305
|
}
|
|
2266
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
2267
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.
|
|
2306
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2307
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: PhonePipe, isStandalone: true, name: "phone" }); }
|
|
2268
2308
|
}
|
|
2269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
2309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PhonePipe, decorators: [{
|
|
2270
2310
|
type: Pipe,
|
|
2271
2311
|
args: [{ name: 'phone' }]
|
|
2272
2312
|
}] });
|
|
@@ -2277,7 +2317,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
2277
2317
|
* Reusable BOS contracts and services will be exported here as code moves from
|
|
2278
2318
|
* the source app into the package.
|
|
2279
2319
|
*/
|
|
2280
|
-
const NGX_BOS_VERSION = '22.0.
|
|
2320
|
+
const NGX_BOS_VERSION = '22.0.2';
|
|
2281
2321
|
|
|
2282
2322
|
/**
|
|
2283
2323
|
* Generated bundle index. Do not edit.
|