@xsmusices/ui 2.0.0-rc.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +168 -0
- package/fesm2022/{xsmusices-ui-xs-map.xsstory-C__bUaLQ.mjs → xsmusices-ui-xs-map.xsstory-B0huSX4Q.mjs} +9 -2
- package/fesm2022/xsmusices-ui-xs-map.xsstory-B0huSX4Q.mjs.map +1 -0
- package/fesm2022/xsmusices-ui.mjs +192 -892
- package/fesm2022/xsmusices-ui.mjs.map +1 -1
- package/index.d.ts +23 -127
- package/package.json +3 -2
- package/fesm2022/xsmusices-ui-xs-map.xsstory-C__bUaLQ.mjs.map +0 -1
- package/fesm2022/xsmusices-ui-xs-send-scraper.xsstory-Cq6PuwN7.mjs +0 -79
- package/fesm2022/xsmusices-ui-xs-send-scraper.xsstory-Cq6PuwN7.mjs.map +0 -1
package/index.d.ts
CHANGED
|
@@ -3594,6 +3594,13 @@ declare class XSMapService {
|
|
|
3594
3594
|
zoom: number;
|
|
3595
3595
|
center: [number, number];
|
|
3596
3596
|
draggable: boolean;
|
|
3597
|
+
/**
|
|
3598
|
+
* URL personalizada de tiles (formato Leaflet `.../{z}/{x}/{y}...`).
|
|
3599
|
+
* Vacío = proveedor por defecto (CARTO dark, que puede exigir API key;
|
|
3600
|
+
* ver `getMapDark`). Permite a cada consumidor usar su propio proveedor
|
|
3601
|
+
* sin cambiar el comportamiento por defecto de la librería.
|
|
3602
|
+
*/
|
|
3603
|
+
tileUrl: string;
|
|
3597
3604
|
private coordinatesSubject;
|
|
3598
3605
|
coordinates$: rxjs.Observable<{
|
|
3599
3606
|
id: string;
|
|
@@ -3605,7 +3612,7 @@ declare class XSMapService {
|
|
|
3605
3612
|
private clickMapSubject;
|
|
3606
3613
|
clickMap$: rxjs.Observable<void>;
|
|
3607
3614
|
constructor(platformId: Object, windowService: XSWindowService, imageApiPipe: ImageApiPipe, avatarService: XSAvatarService);
|
|
3608
|
-
initValuesMap(center: [number, number], zoom: number, items: XSMarker[], draggable: boolean): void;
|
|
3615
|
+
initValuesMap(center: [number, number], zoom: number, items: XSMarker[], draggable: boolean, tileUrl?: string): void;
|
|
3609
3616
|
setSelectedMarker(markerId: string | null): void;
|
|
3610
3617
|
updateMarkers(): void;
|
|
3611
3618
|
private hasValidCoordinates;
|
|
@@ -3623,6 +3630,12 @@ declare class XSMapService {
|
|
|
3623
3630
|
getCenter(): [number, number];
|
|
3624
3631
|
insertLeaflet(): Promise<void>;
|
|
3625
3632
|
private addResetControl;
|
|
3633
|
+
/**
|
|
3634
|
+
* Capa de tiles activa: proveedor personalizado si `tileUrl` está
|
|
3635
|
+
* definido, o el proveedor por defecto (CARTO dark) en caso contrario.
|
|
3636
|
+
* El comportamiento por defecto no cambia.
|
|
3637
|
+
*/
|
|
3638
|
+
getTileLayer(L: LeafletNamespace): leaflet.TileLayer;
|
|
3626
3639
|
getMapDark(L: LeafletNamespace): leaflet.TileLayer;
|
|
3627
3640
|
getMapGoogleHybrid(L: LeafletNamespace): leaflet.TileLayer;
|
|
3628
3641
|
invalidateSize(): void;
|
|
@@ -3651,6 +3664,12 @@ declare class XSMapComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
|
3651
3664
|
selectedItem: _angular_core.InputSignal<XSMarker | undefined>;
|
|
3652
3665
|
isSingle: _angular_core.InputSignal<boolean>;
|
|
3653
3666
|
mapId: _angular_core.InputSignal<string | undefined>;
|
|
3667
|
+
/**
|
|
3668
|
+
* URL personalizada de tiles (formato Leaflet). Vacío = proveedor por
|
|
3669
|
+
* defecto de la librería (CARTO dark, que puede exigir API key).
|
|
3670
|
+
* Útil en entornos sin clave, p. ej. la demo usa OpenStreetMap.
|
|
3671
|
+
*/
|
|
3672
|
+
tileUrl: _angular_core.InputSignal<string>;
|
|
3654
3673
|
mapElement: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
3655
3674
|
readonly changeCoordinates: _angular_core.OutputEmitterRef<MapCoordinates>;
|
|
3656
3675
|
readonly clickMarker: _angular_core.OutputEmitterRef<XSMarker>;
|
|
@@ -3692,7 +3711,7 @@ declare class XSMapComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
|
3692
3711
|
handleCloseInfoBlock(): void;
|
|
3693
3712
|
ngOnDestroy(): void;
|
|
3694
3713
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XSMapComponent, never>;
|
|
3695
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XSMapComponent, "xs-map", never, { "center": { "alias": "center"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; "isSignal": true; }; "showInfoBlock": { "alias": "showInfoBlock"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "selectedMarkerId": { "alias": "selectedMarkerId"; "required": false; "isSignal": true; }; "selectedItem": { "alias": "selectedItem"; "required": false; "isSignal": true; }; "isSingle": { "alias": "isSingle"; "required": false; "isSignal": true; }; "mapId": { "alias": "mapId"; "required": false; "isSignal": true; }; }, { "changeCoordinates": "changeCoordinates"; "clickMarker": "clickMarker"; "clickMap": "clickMap"; "clickInfoItem": "clickInfoItem"; "clickInfoEvent": "clickInfoEvent"; }, never, ["*"], true, never>;
|
|
3714
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XSMapComponent, "xs-map", never, { "center": { "alias": "center"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; "isSignal": true; }; "showInfoBlock": { "alias": "showInfoBlock"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "selectedMarkerId": { "alias": "selectedMarkerId"; "required": false; "isSignal": true; }; "selectedItem": { "alias": "selectedItem"; "required": false; "isSignal": true; }; "isSingle": { "alias": "isSingle"; "required": false; "isSignal": true; }; "mapId": { "alias": "mapId"; "required": false; "isSignal": true; }; "tileUrl": { "alias": "tileUrl"; "required": false; "isSignal": true; }; }, { "changeCoordinates": "changeCoordinates"; "clickMarker": "clickMarker"; "clickMap": "clickMap"; "clickInfoItem": "clickInfoItem"; "clickInfoEvent": "clickInfoEvent"; }, never, ["*"], true, never>;
|
|
3696
3715
|
}
|
|
3697
3716
|
|
|
3698
3717
|
interface MapLibreItem {
|
|
@@ -4635,129 +4654,6 @@ declare class XSStepperComponent {
|
|
|
4635
4654
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XSStepperComponent, "xs-stepper", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; "current": { "alias": "current"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
4636
4655
|
}
|
|
4637
4656
|
|
|
4638
|
-
type SendScraperMode = 'track' | 'profile';
|
|
4639
|
-
type SendScraperSource = 'soundcloud' | 'youtube';
|
|
4640
|
-
|
|
4641
|
-
interface SendScraperLabels {
|
|
4642
|
-
stepperSource: string;
|
|
4643
|
-
stepperUrl: string;
|
|
4644
|
-
stepperResult: string;
|
|
4645
|
-
stepperForm: string;
|
|
4646
|
-
sourceTitle: string;
|
|
4647
|
-
sourceSoundcloud: string;
|
|
4648
|
-
sourceYoutube: string;
|
|
4649
|
-
sourceDescSingle: string;
|
|
4650
|
-
urlTitle: string;
|
|
4651
|
-
urlDescSoundcloud: string;
|
|
4652
|
-
urlDescYoutube: string;
|
|
4653
|
-
urlPlaceholderSoundcloud: string;
|
|
4654
|
-
urlPlaceholderYoutube: string;
|
|
4655
|
-
urlHintSoundcloud: string;
|
|
4656
|
-
urlHintYoutube: string;
|
|
4657
|
-
searchBtn: string;
|
|
4658
|
-
continueBtn: string;
|
|
4659
|
-
backBtn: string;
|
|
4660
|
-
loadingText: string;
|
|
4661
|
-
loadingDuplicate: string;
|
|
4662
|
-
errorInvalidUrl: string;
|
|
4663
|
-
errorInvalidUrlSoundcloud: string;
|
|
4664
|
-
errorInvalidUrlYoutube: string;
|
|
4665
|
-
errorNoData: string;
|
|
4666
|
-
errorApi: string;
|
|
4667
|
-
alreadyExistsTitle: string;
|
|
4668
|
-
alreadyExistsDesc: string;
|
|
4669
|
-
alreadyExistsLink: string;
|
|
4670
|
-
formTitle: string;
|
|
4671
|
-
formDesc: string;
|
|
4672
|
-
sendBtn: string;
|
|
4673
|
-
}
|
|
4674
|
-
interface SendScraperTrackResult {
|
|
4675
|
-
name: string;
|
|
4676
|
-
artist: string;
|
|
4677
|
-
image: string;
|
|
4678
|
-
source: string;
|
|
4679
|
-
sourceUrl: string;
|
|
4680
|
-
sourceId: string;
|
|
4681
|
-
year: number;
|
|
4682
|
-
style: string;
|
|
4683
|
-
info: string;
|
|
4684
|
-
freeDownloadLink: string | null;
|
|
4685
|
-
buyLink: string | null;
|
|
4686
|
-
}
|
|
4687
|
-
interface SendScraperProfileResult {
|
|
4688
|
-
name: string;
|
|
4689
|
-
country: string;
|
|
4690
|
-
style: string;
|
|
4691
|
-
image: string;
|
|
4692
|
-
info: string;
|
|
4693
|
-
soundcloudUrl: string;
|
|
4694
|
-
website?: string | null;
|
|
4695
|
-
}
|
|
4696
|
-
type SendScraperResult = SendScraperTrackResult | SendScraperProfileResult;
|
|
4697
|
-
|
|
4698
|
-
interface DuplicateInfo {
|
|
4699
|
-
exists: boolean;
|
|
4700
|
-
id?: string;
|
|
4701
|
-
type?: string;
|
|
4702
|
-
name?: string;
|
|
4703
|
-
slug?: string;
|
|
4704
|
-
url?: string;
|
|
4705
|
-
}
|
|
4706
|
-
declare class XSSendScraperComponent implements OnInit {
|
|
4707
|
-
private destroyRef;
|
|
4708
|
-
private http;
|
|
4709
|
-
private apiUrl;
|
|
4710
|
-
private translateService;
|
|
4711
|
-
private demoTimeouts;
|
|
4712
|
-
readonly mode: _angular_core.InputSignal<SendScraperMode>;
|
|
4713
|
-
readonly allowedSources: _angular_core.InputSignal<SendScraperSource[]>;
|
|
4714
|
-
readonly labels: _angular_core.InputSignal<SendScraperLabels>;
|
|
4715
|
-
readonly formFields: _angular_core.InputSignal<FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
4716
|
-
[additionalProperties: string]: any;
|
|
4717
|
-
}>[] | null>;
|
|
4718
|
-
readonly demoMode: _angular_core.InputSignal<boolean>;
|
|
4719
|
-
readonly dataResolved: _angular_core.OutputEmitterRef<SendScraperResult>;
|
|
4720
|
-
protected currentStep: _angular_core.WritableSignal<number>;
|
|
4721
|
-
protected selectedSource: _angular_core.WritableSignal<SendScraperSource | null>;
|
|
4722
|
-
protected urlValue: _angular_core.WritableSignal<string>;
|
|
4723
|
-
protected loading: _angular_core.WritableSignal<boolean>;
|
|
4724
|
-
protected checkingDuplicate: _angular_core.WritableSignal<boolean>;
|
|
4725
|
-
protected duplicateInfo: _angular_core.WritableSignal<DuplicateInfo | null>;
|
|
4726
|
-
protected previewData: _angular_core.WritableSignal<SendScraperResult | null>;
|
|
4727
|
-
protected errorMessage: _angular_core.WritableSignal<string | null>;
|
|
4728
|
-
protected formModel: _angular_core.WritableSignal<object>;
|
|
4729
|
-
protected formReady: _angular_core.WritableSignal<boolean>;
|
|
4730
|
-
protected stepLabels: _angular_core.Signal<string[]>;
|
|
4731
|
-
protected showSourceSelection: _angular_core.Signal<boolean>;
|
|
4732
|
-
protected canSearch: _angular_core.Signal<boolean>;
|
|
4733
|
-
protected primaryVariant: _angular_core.Signal<"youtube" | "soundcloud">;
|
|
4734
|
-
protected activeFormFields: _angular_core.Signal<FormlyFieldConfig<_ngx_formly_core.FormlyFieldProps & {
|
|
4735
|
-
[additionalProperties: string]: any;
|
|
4736
|
-
}>[]>;
|
|
4737
|
-
isMobile: () => boolean;
|
|
4738
|
-
constructor();
|
|
4739
|
-
ngOnInit(): void;
|
|
4740
|
-
private runDemo;
|
|
4741
|
-
/**
|
|
4742
|
-
* Datos falsos SOLO para demoMode (xsstory/demo-app).
|
|
4743
|
-
* En flujo real NUNCA se usa: ante fallo se muestra error, no un artista inventado.
|
|
4744
|
-
*/
|
|
4745
|
-
private useMockFallback;
|
|
4746
|
-
private buildFormModel;
|
|
4747
|
-
onFormReady(_form: object): void;
|
|
4748
|
-
selectSource(source: SendScraperSource): void;
|
|
4749
|
-
onUrlInput(value: string): void;
|
|
4750
|
-
private resolveUrl;
|
|
4751
|
-
private checkDuplicateAndShowPreview;
|
|
4752
|
-
onSearch(): void;
|
|
4753
|
-
onContinue(): void;
|
|
4754
|
-
goBack(): void;
|
|
4755
|
-
resetFlow(): void;
|
|
4756
|
-
protected readonly XSFormlyType: typeof XSFormlyType;
|
|
4757
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XSSendScraperComponent, never>;
|
|
4758
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XSSendScraperComponent, "xs-send-scraper", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "allowedSources": { "alias": "allowedSources"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "formFields": { "alias": "formFields"; "required": false; "isSignal": true; }; "demoMode": { "alias": "demoMode"; "required": false; "isSignal": true; }; }, { "dataResolved": "dataResolved"; }, never, never, true, never>;
|
|
4759
|
-
}
|
|
4760
|
-
|
|
4761
4657
|
type FeedbackVote = 'positive' | 'negative';
|
|
4762
4658
|
type FeedbackState = 'initial' | 'positive' | 'negative' | 'submitted';
|
|
4763
4659
|
interface FeedbackSurvey {
|
|
@@ -5537,5 +5433,5 @@ declare const LIB_STORIES: Array<() => Promise<any>>;
|
|
|
5537
5433
|
declare const uiComponents: Array<Type<unknown>>;
|
|
5538
5434
|
declare const uiComponentsExport: Array<Type<unknown>>;
|
|
5539
5435
|
|
|
5540
|
-
export { ApiService, BREADCRUMBS_PROVIDER, Comment, CountryFlagPipe, CountryNamePipe, DEFAULT_FLOW_LABELS, DateChatPipe, DateDisplayMode, DateFunctions, DateLocaleFormatPipe, DateLongPipe, DateToDayOrMonthPipe, Event$1 as Event, FilterArrayPipe, FixRegionPipe, ImageApiPipe, ImportantItems, IncludeEventPipe, LIB_STORIES, LeadStatusPipe, MediaType, NumberDaysPipe, NumberToMonthPipe, OnImageErrorDirective, OrganizationType, PipesModule, PrioritiesPipe, RandomImagePipe, RolePipe, STANDALONE_PIPES, STYLE_INTENSITIES, SiteType, SliceArrayPipe, SocialPipe, SoundcloudNamePipe, StateIconPipe, StateNamePipe, SuggestionTypePipe, TableLinkPipe, TimeAgoPipe, TitleMediaPipe, TruncateTextPipe, TypeESPipe, User, UserRole, UserType, VisitsMonthTotalPipe, XSActionSheetComponent, XSActionSheetService, XSAlertComponent, XSAlertGroupComponent, XSAlertTextsService, XSAuthComponent, XSAvatarService, XSBadgeComponent, XSBlockComponent, XSBrandMediaPipe, XSBreadcrumbsComponent, XSButtonComponent, XSButtonGroupService, XSButtonsGroupComponent, XSChartComponent, XSChatAlertComponent, XSChatConversationComponent, XSChatConversationInfoComponent, XSChatFloatingPanelComponent, XSChatListComponent, XSChatTextareaComponent, XSCustomizeProfileComponent, XSDateFormatPipe, XSDateMiniComponent, XSDatePipe, XSDocumentService, XSEmptyStateComponent, XSFeedbackComponent, XSFilterPanelComponent, XSFindLabelByValuePipe, XSFirstLetterPipe, XSFormlyAddressSearchComponent, XSFormlyArrayComponent, XSFormlyButtonComponent, XSFormlyCheckboxComponent, XSFormlyComponent, XSFormlyDateComponent, XSFormlyDateRangeComponent, XSFormlyDatetimeComponent, XSFormlyEntityPickerComponent, XSFormlyHiddenComponent, XSFormlyHtmlEditorComponent, XSFormlyInputComponent, XSFormlyInputWithActionsComponent, XSFormlyJsonComponent, XSFormlyJsonEditorComponent, XSFormlyLabelComponent, XSFormlyModule, XSFormlySelectButtonComponent, XSFormlySelectComponent, XSFormlySelectionListComponent, XSFormlySocialComponent, XSFormlyTextareaComponent, XSFormlyTextareaSimpleComponent, XSFormlyType, XSFormlyUploadImageComponent, XSFullImageComponent, XSFullImageService, XSIconComponent, XSImageComponent, XSImportMediaBottomBarComponent, XSImportMediaCardComponent, XSImportMediaFlowComponent, XSImportMediaHeaderComponent, XSInfoBlocksComponent, XSItemActionComponent, XSItemTypeArtistComponent, XSItemTypeBaseComponent, XSItemTypeComponent, XSItemTypeEquipmentComponent, XSItemTypeEventComponent, XSItemTypeLastLoginComponent, XSItemTypeLastVisitComponent, XSItemTypeMediaComponent, XSItemTypeOrganizationComponent, XSItemTypePlaylistComponent, XSItemTypeSiteComponent, XSItemTypeTipComponent, XSItemTypeTrackingComponent, XSItemTypeUserComponent, XSItemTypeUserStatsComponent, XSListComponent, XSMapComponent, XSMapInfoBlockComponent, XSMapLibreComponent, XSMapLibreMapperService, XSMapLibrePopupService, XSMapLibreService, XSMapService, XSMaxCountPipe, XSModalAuthComponent, XSModalClaimComponent, XSModalComponent, XSModalConfirmComponent, XSModalDateComponent, XSModalFormComponent, XSModalImageSearchComponent, XSModalInfoComponent, XSModalInputComponent, XSModalSavedFiltersComponent, XSModalService, XSNavbarComponent, XSNavbarSidebarComponent, XSOtaProgressBarComponent, XSPopoverInfoComponent, XSProfileCommentsComponent, XSProfileInfoComponent, XSProfileTopsComponent, XSSafeUrlPipe, XSScrollAreaComponent, XSSectionTitleComponent, XSSelectComponent,
|
|
5541
|
-
export type { BadgeSize, BadgeVariant, Breadcrumb, BreadcrumbsProvider, ButtonDto, ButtonGroupItem, ButtonIcon, ButtonLayout, ButtonType, ButtonVariant, ChartDataItem, ClaimType, Equipment, EquipmentSetupFormComponent, EquipmentType, FeedbackResponseData, FeedbackState, FeedbackSurvey, FeedbackVote, ImportMediaCardItem, ImportMediaFlowItem, ImportMediaFlowLabels, MapLibreItem, MapLibrePopupData, NavbarSidebarItem, NavbarSidebarSubItem, OrganizationsTypes, RawItemType$1 as RawItemType, ReportType,
|
|
5436
|
+
export { ApiService, BREADCRUMBS_PROVIDER, Comment, CountryFlagPipe, CountryNamePipe, DEFAULT_FLOW_LABELS, DateChatPipe, DateDisplayMode, DateFunctions, DateLocaleFormatPipe, DateLongPipe, DateToDayOrMonthPipe, Event$1 as Event, FilterArrayPipe, FixRegionPipe, ImageApiPipe, ImportantItems, IncludeEventPipe, LIB_STORIES, LeadStatusPipe, MediaType, NumberDaysPipe, NumberToMonthPipe, OnImageErrorDirective, OrganizationType, PipesModule, PrioritiesPipe, RandomImagePipe, RolePipe, STANDALONE_PIPES, STYLE_INTENSITIES, SiteType, SliceArrayPipe, SocialPipe, SoundcloudNamePipe, StateIconPipe, StateNamePipe, SuggestionTypePipe, TableLinkPipe, TimeAgoPipe, TitleMediaPipe, TruncateTextPipe, TypeESPipe, User, UserRole, UserType, VisitsMonthTotalPipe, XSActionSheetComponent, XSActionSheetService, XSAlertComponent, XSAlertGroupComponent, XSAlertTextsService, XSAuthComponent, XSAvatarService, XSBadgeComponent, XSBlockComponent, XSBrandMediaPipe, XSBreadcrumbsComponent, XSButtonComponent, XSButtonGroupService, XSButtonsGroupComponent, XSChartComponent, XSChatAlertComponent, XSChatConversationComponent, XSChatConversationInfoComponent, XSChatFloatingPanelComponent, XSChatListComponent, XSChatTextareaComponent, XSCustomizeProfileComponent, XSDateFormatPipe, XSDateMiniComponent, XSDatePipe, XSDocumentService, XSEmptyStateComponent, XSFeedbackComponent, XSFilterPanelComponent, XSFindLabelByValuePipe, XSFirstLetterPipe, XSFormlyAddressSearchComponent, XSFormlyArrayComponent, XSFormlyButtonComponent, XSFormlyCheckboxComponent, XSFormlyComponent, XSFormlyDateComponent, XSFormlyDateRangeComponent, XSFormlyDatetimeComponent, XSFormlyEntityPickerComponent, XSFormlyHiddenComponent, XSFormlyHtmlEditorComponent, XSFormlyInputComponent, XSFormlyInputWithActionsComponent, XSFormlyJsonComponent, XSFormlyJsonEditorComponent, XSFormlyLabelComponent, XSFormlyModule, XSFormlySelectButtonComponent, XSFormlySelectComponent, XSFormlySelectionListComponent, XSFormlySocialComponent, XSFormlyTextareaComponent, XSFormlyTextareaSimpleComponent, XSFormlyType, XSFormlyUploadImageComponent, XSFullImageComponent, XSFullImageService, XSIconComponent, XSImageComponent, XSImportMediaBottomBarComponent, XSImportMediaCardComponent, XSImportMediaFlowComponent, XSImportMediaHeaderComponent, XSInfoBlocksComponent, XSItemActionComponent, XSItemTypeArtistComponent, XSItemTypeBaseComponent, XSItemTypeComponent, XSItemTypeEquipmentComponent, XSItemTypeEventComponent, XSItemTypeLastLoginComponent, XSItemTypeLastVisitComponent, XSItemTypeMediaComponent, XSItemTypeOrganizationComponent, XSItemTypePlaylistComponent, XSItemTypeSiteComponent, XSItemTypeTipComponent, XSItemTypeTrackingComponent, XSItemTypeUserComponent, XSItemTypeUserStatsComponent, XSListComponent, XSMapComponent, XSMapInfoBlockComponent, XSMapLibreComponent, XSMapLibreMapperService, XSMapLibrePopupService, XSMapLibreService, XSMapService, XSMaxCountPipe, XSModalAuthComponent, XSModalClaimComponent, XSModalComponent, XSModalConfirmComponent, XSModalDateComponent, XSModalFormComponent, XSModalImageSearchComponent, XSModalInfoComponent, XSModalInputComponent, XSModalSavedFiltersComponent, XSModalService, XSNavbarComponent, XSNavbarSidebarComponent, XSOtaProgressBarComponent, XSPopoverInfoComponent, XSProfileCommentsComponent, XSProfileInfoComponent, XSProfileTopsComponent, XSSafeUrlPipe, XSScrollAreaComponent, XSSectionTitleComponent, XSSelectComponent, XSSetupNamePipe, XSSpinnerComponent, XSStatsCardComponent, XSStepperComponent, XSTableCheckboxComponent, XSTableComponent, XSTableItemsChatComponent, XSTableItemsComponent, XSTableItemsContactComponent, XSTableItemsCountryComponent, XSTableItemsDateComponent, XSTableItemsEntityComponent, XSTableItemsPromotionComponent, XSTableItemsRoleComponent, XSTableItemsStateComponent, XSTableItemsVisitsComponent, XSTabsComponent, XSThousandsSeparatorPipe, XSTitleCollapseComponent, XSToastChatComponent, XSToastComponent, XSToastGenericComponent, XSToastService, XSTranslateService, XSTypeUserPipe, XSWindowService, XS_ADMIN_URL, XS_API_URL, XS_CHART_DEFAULT_COLORS, XS_DEFAULT_ADMIN_USER_ID, XS_DEFAULT_IMAGE_PATH, XS_DEFAULT_LOGO_URL, XS_ENV_NAME, XsLongPressDirective, countries, countries_africa, countries_americas, countries_asia, countries_europe, countries_oceania, datetimeLocalToIso, deslugify, firstLetterCase, flags, getColorByType, getColors, getCountryItem, getCountryNameByCode, getNumberWithZero, getTitleMedia, getTypeForApi, getTypePlural, getTypeSingular, getUserTypes, iconNameForSocial, iconNameForType, isBrowser, isMobile, isMobileUI, registerXSUiIcons, stringifyId, titleCase, toDatetimeLocalInput, truncateText, typeToValidType, uiComponents, uiComponentsExport };
|
|
5437
|
+
export type { BadgeSize, BadgeVariant, Breadcrumb, BreadcrumbsProvider, ButtonDto, ButtonGroupItem, ButtonIcon, ButtonLayout, ButtonType, ButtonVariant, ChartDataItem, ClaimType, Equipment, EquipmentSetupFormComponent, EquipmentType, FeedbackResponseData, FeedbackState, FeedbackSurvey, FeedbackVote, ImportMediaCardItem, ImportMediaFlowItem, ImportMediaFlowLabels, MapLibreItem, MapLibrePopupData, NavbarSidebarItem, NavbarSidebarSubItem, OrganizationsTypes, RawItemType$1 as RawItemType, ReportType, ShowImageI, SpinnerDimensions, SpinnerSize, StateType, StepperSize, StepperVariant, StoryExample, StoryInputControl, StoryMeta, StoryNote, StorySlot, StyleIntensity, Tab, ToastConfig, ToastType, XSActionItemI, XSActionListItemI, XSActionSheetItemI, XSActionSheetType, XSAdminTableHeaderType, XSAlertGroupActionEvent, XSAlertGroupCloseEvent, XSAlertGroupItem, XSAlertType, XSAppTableHeaderType, XSAuthAction, XSAuthConfig, XSAuthEmailSubmitEvent, XSAuthForgotPasswordSubmitEvent, XSAuthMode, XSAuthOnAction, XSAuthRegisterSubmitEvent, XSAuthSocialButton, XSAuthSocialEvent, XSAuthTexts, XSBlockSelectOption, XSBlockState, XSButtonI, XSButtonIcon, XSButtonLayout, XSButtonType, XSButtonVariant, XSChartConfig, XSChartData, XSChartOptions, XSChartType, XSChat, XSChatAttachmentDraft, XSChatDropdownItem, XSChatInfo, XSChatItem, XSChatMessage, XSChatSendPayload, XSChatUser, XSCustomizeBlock, XSDateOptions, XSEmptyStateAction, XSEmptyStateButtonVariant, XSEmptyStateConfig, XSEmptyStateIllustration, XSEmptyStateLayout, XSEmptyStateSize, XSEmptyStateVariant, XSFilterChangeEvent, XSFilterGroup, XSFilterGroupType, XSFilterOption, XSFormGroup, XSFormlyFields, XSFormlyOptions, XSFormlyValueChange, XSGenericItemType, XSGenericSubItemType, XSImageConfig, XSImageEvent, XSImageItem, XSInfoBlockItem, XSLanguage, XSListBadgeI, XSListConfigI, XSMarker, XSMarkerData, XSModalClaim, XSModalConfirmOptions, XSModalFormOptions, XSModalImageSearchData, XSModalInfoOptions, XSModalInputOptions, XSModalOptions, XSModalRef, XSModalType, XSProfileCommentsTexts, XSProfileInfoTexts, XSProfileTopTextsI, XSProfileTopsClickEvent, XSProfileTopsI, XSProfileTopsPeriod, XSProfileTopsScope, XSProfileTopsTabEvent, XSSelectOption, XSSelectSize, XSTableActionButton, XSTableFilters, XSTableHeader, XSTableHeaderSet, XSTableHeaderType, XSTableItem, XSTableSelectedButton, XSTableToolbarButton, XSTitleCollapseConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsmusices/ui",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"fesm2022",
|
|
21
21
|
"index.d.ts",
|
|
22
|
-
"styles"
|
|
22
|
+
"styles",
|
|
23
|
+
"MIGRATION.md"
|
|
23
24
|
],
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"@angular/common": "^20.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xsmusices-ui-xs-map.xsstory-C__bUaLQ.mjs","sources":["../../../projects/xs-ui/src/lib/components/ui/map/xs-map.xsstory.ts"],"sourcesContent":["import { StoryMeta } from '../../../story.types';\nimport { XSMapComponent } from './xs-map.component';\nimport { XSMapInfoBlockComponent } from './info-block/xs-map-info-block.component';\n\nexport const story: StoryMeta = {\n id: 'map',\n name: 'Map',\n type: 'component',\n subtype: 'UI',\n status: 'active',\n usage: ['admin', 'app', 'monitor'],\n updated: '2026-02-17T11:00:00.000Z',\n created: '2026-01-15T08:15:50.647Z',\n description:\n 'Componente de mapa basado en Leaflet con soporte para Google Maps tiles, clusters de marcadores y soporte para modo oscuro.\\n\\nMultilenguaje: Sí — este componente dispone de traducciones por componente para textos del Info Block (ver carpeta i18n).',\n component: XSMapComponent,\n selector: 'xs-map',\n inputs: [\n {\n key: 'center',\n label: 'Centro (Lat, Lng)',\n type: 'json',\n default: [40.417244274063485, -3.7021285218467663],\n },\n {\n key: 'zoom',\n label: 'Zoom',\n type: 'number',\n default: 13,\n },\n {\n key: 'items',\n label: 'Marcadores',\n type: 'json',\n default: [\n {\n id: '1',\n lat: 40.417244274063485,\n lng: -3.7021285218467663,\n title: 'Puerta del Sol',\n image: 'https://via.placeholder.com/150',\n data: { type: 'landmark' },\n },\n ],\n },\n {\n key: 'draggable',\n label: 'Marcadores Arrastrables',\n type: 'boolean',\n default: false,\n },\n {\n key: 'isDarkMode',\n label: 'Modo Oscuro',\n type: 'boolean',\n default: true,\n },\n {\n key: 'style',\n label: 'Estilo (CSS)',\n type: 'text',\n default: 'height: 400px;',\n },\n {\n key: 'isSingle',\n label: 'Modo Single (Perfiles)',\n type: 'boolean',\n default: false,\n },\n ],\n examples: [\n {\n name: 'Madrid Centro',\n description:\n 'Vista básica con un marcador en la Puerta del Sol.',\n inputs: {\n center: [40.41701, -3.70344],\n zoom: 16,\n items: [\n {\n id: 'sol',\n lat: 40.41701,\n lng: -3.70344,\n title: 'Puerta del Sol',\n image:\n 'https://dummyimage.com/100x100/18181b/ffffff&text=SOL',\n },\n ],\n },\n },\n {\n name: 'Clustering de Discotecas',\n description:\n 'Muchos marcadores en una misma zona que se agrupan automáticamente.',\n inputs: {\n center: [40.41, -3.7],\n zoom: 12,\n items: [\n {\n id: '1',\n lat: 40.41,\n lng: -3.7,\n title: 'Club 1',\n image:\n 'https://dummyimage.com/100x100/18181b/ffffff&text=C1',\n },\n { id: '2', lat: 40.412, lng: -3.702, title: 'Club 2' },\n { id: '3', lat: 40.415, lng: -3.701, title: 'Club 3' },\n { id: '4', lat: 40.408, lng: -3.698, title: 'Club 4' },\n { id: '5', lat: 40.418, lng: -3.705, title: 'Club 5' },\n { id: '6', lat: 40.411, lng: -3.708, title: 'Club 6' },\n { id: '7', lat: 40.414, lng: -3.703, title: 'Club 7' },\n { id: '8', lat: 40.405, lng: -3.695, title: 'Club 8' },\n { id: '9', lat: 40.42, lng: -3.71, title: 'Club 9' },\n {\n id: '10',\n lat: 40.413,\n lng: -3.697,\n title: 'Club 10',\n },\n ],\n },\n },\n {\n name: 'Localizador Draggable',\n description:\n 'Útil para formularios donde el usuario puede mover el pin para precisar una ubicación.',\n inputs: {\n center: [41.3851, 2.1734],\n zoom: 14,\n draggable: true,\n items: [\n {\n id: 'bcn',\n lat: 41.3851,\n lng: 2.1734,\n title: 'Barcelona (Mueveme)',\n },\n ],\n },\n },\n {\n name: 'Interactivo con Info Block',\n description:\n 'Mapa que utiliza el contenido proyectado para mostrar el XSMapInfoBlockComponent.',\n inputs: {\n center: [40.416, -3.703],\n zoom: 15,\n items: [\n {\n id: 'info',\n lat: 40.416,\n lng: -3.703,\n title: 'Teatro Kapital',\n data: {\n name: 'Teatro Kapital',\n site: { name: 'Teatro Kapital' },\n address: {\n street: 'Calle de Atocha, 125',\n town: 'Madrid',\n country: { name: 'España', code: 'es' },\n },\n eventsFuture: 3,\n },\n },\n ],\n projectedInputs: {\n item: null, // Se llenará desde el marcador seleccionado\n type: 'site',\n },\n },\n projectedComponent: XSMapInfoBlockComponent,\n template: `\n <xs-map [center]=\"[40.416, -3.703]\" [zoom]=\"15\" [items]=\"[...]\">\n <xs-map-info-block [item]=\"...\" type=\"site\">\n </xs-map-info-block>\n </xs-map>\n `,\n },\n {\n name: 'Clusters en múltiples regiones',\n description:\n 'Visualización de múltiples focos de marcadores que se agrupan por cercanía.',\n inputs: {\n center: [40.4167, -3.70325],\n zoom: 6,\n items: [\n { id: 'm1', lat: 40.41, lng: -3.7, title: 'Madrid 1' },\n {\n id: 'm2',\n lat: 40.42,\n lng: -3.71,\n title: 'Madrid 2',\n },\n {\n id: 'm3',\n lat: 40.415,\n lng: -3.69,\n title: 'Madrid 3',\n },\n { id: 'b1', lat: 41.38, lng: 2.17, title: 'BCN 1' },\n { id: 'b2', lat: 41.39, lng: 2.18, title: 'BCN 2' },\n { id: 'b3', lat: 41.4, lng: 2.16, title: 'BCN 3' },\n {\n id: 'v1',\n lat: 39.46,\n lng: -0.37,\n title: 'Valencia 1',\n },\n {\n id: 'v2',\n lat: 39.47,\n lng: -0.38,\n title: 'Valencia 2',\n },\n {\n id: 's1',\n lat: 37.38,\n lng: -5.98,\n title: 'Sevilla 1',\n },\n ],\n },\n },\n {\n name: 'Modo Claro (Fuerza Light Map)',\n description:\n 'Ejemplo de mapa con fondo claro forzado mediante el input isDarkMode.',\n inputs: {\n center: [40.4167, -3.70325],\n zoom: 13,\n isDarkMode: false,\n items: [\n {\n id: 'light',\n lat: 40.4167,\n lng: -3.70325,\n title: 'Modo Claro',\n },\n ],\n },\n },\n {\n name: 'Modo Single (Perfiles)',\n description:\n 'Desactiva pop-ups e interacciones para mapas en perfiles de artistas/locales.',\n inputs: {\n center: [40.416, -3.703],\n zoom: 16,\n isSingle: true,\n items: [\n {\n id: 'info',\n lat: 40.416,\n lng: -3.703,\n title: 'Teatro Kapital',\n data: {\n name: 'Teatro Kapital',\n site: { name: 'Teatro Kapital' },\n },\n },\n ],\n },\n },\n ],\n multilanguage: true,\n notes: [],\n coverage: {\n statements: 74,\n branches: 53,\n functions: 69,\n lines: 75,\n },\n};\n"],"names":[],"mappings":";;AAIO,MAAM,KAAK,GAAc;AAC9B,IAAA,EAAE,EAAE,KAAK;AACT,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC;AAClC,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,WAAW,EACT,0PAA0P;AAC5P,IAAA,SAAS,EAAE,cAAc;AACzB,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,MAAM,EAAE;AACN,QAAA;AACE,YAAA,GAAG,EAAE,QAAQ;AACb,YAAA,KAAK,EAAE,mBAAmB;AAC1B,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,CAAC,kBAAkB,CAAC;AACnD,SAAA;AACD,QAAA;AACE,YAAA,GAAG,EAAE,MAAM;AACX,YAAA,KAAK,EAAE,MAAM;AACb,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,OAAO,EAAE,EAAE;AACZ,SAAA;AACD,QAAA;AACE,YAAA,GAAG,EAAE,OAAO;AACZ,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE;AACP,gBAAA;AACE,oBAAA,EAAE,EAAE,GAAG;AACP,oBAAA,GAAG,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AA,IAAI,EAAE,EAAE;AACR,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,EAAE,EAAE,MAAM;AACV,wBAAA,GAAG,EAAE,MAAM;wBACX,GAAG,EAAE,CAAC,KAAK;AACX,wBAAA,KAAK,EAAE,gBAAgB;AACvB,wBAAA,IAAI,EAAE;AACJ,4BAAA,IAAI,EAAE,gBAAgB;AACtB,4BAAA,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;AACjC,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,QAAQ,EAAE;AACR,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,SAAS,EAAE,EAAE;AACb,QAAA,KAAK,EAAE,EAAE;AACV,KAAA;;;;;"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { XSSendScraperComponent } from './xsmusices-ui.mjs';
|
|
2
|
-
|
|
3
|
-
const story = {
|
|
4
|
-
id: 'send-scraper',
|
|
5
|
-
name: 'Send Scraper',
|
|
6
|
-
type: 'component',
|
|
7
|
-
subtype: 'Base',
|
|
8
|
-
status: 'active',
|
|
9
|
-
usage: ['admin', 'app'],
|
|
10
|
-
updated: '2026-06-13T22:00:00.000Z',
|
|
11
|
-
created: '2026-06-13T22:00:00.000Z',
|
|
12
|
-
description: 'Flujo completo de envío con scraping vía URL. Incluye selección de fuente (SoundCloud/YouTube), entrada de URL, preview del resultado y formulario auto-rellenado. Disponible en modo track (media) y profile (artista/organización).',
|
|
13
|
-
component: XSSendScraperComponent,
|
|
14
|
-
selector: 'xs-send-scraper',
|
|
15
|
-
inputs: [
|
|
16
|
-
{
|
|
17
|
-
key: 'mode',
|
|
18
|
-
label: 'Modo',
|
|
19
|
-
type: 'select',
|
|
20
|
-
options: ['track', 'profile'],
|
|
21
|
-
default: 'track',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
key: 'allowedSources',
|
|
25
|
-
label: 'Fuentes permitidas',
|
|
26
|
-
type: 'json',
|
|
27
|
-
default: ['soundcloud', 'youtube'],
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
key: 'demoMode',
|
|
31
|
-
label: 'Demo automática',
|
|
32
|
-
type: 'boolean',
|
|
33
|
-
default: false,
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
examples: [
|
|
37
|
-
{
|
|
38
|
-
name: 'Media — Track',
|
|
39
|
-
description: 'Flujo completo para enviar un track desde SoundCloud/YouTube. Demo automática activada.',
|
|
40
|
-
inputs: {
|
|
41
|
-
mode: 'track',
|
|
42
|
-
allowedSources: ['soundcloud', 'youtube'],
|
|
43
|
-
demoMode: true,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: 'Artista — Perfil',
|
|
48
|
-
description: 'Flujo completo para enviar un artista desde SoundCloud. Demo automática activada.',
|
|
49
|
-
inputs: {
|
|
50
|
-
mode: 'profile',
|
|
51
|
-
allowedSources: ['soundcloud', 'youtube'],
|
|
52
|
-
demoMode: true,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: 'Media — Interactivo',
|
|
57
|
-
description: 'Modo interactivo sin demo. Haz clic en los pasos manualmente.',
|
|
58
|
-
inputs: {
|
|
59
|
-
mode: 'track',
|
|
60
|
-
allowedSources: ['soundcloud', 'youtube'],
|
|
61
|
-
demoMode: false,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
multilanguage: false,
|
|
66
|
-
notes: [
|
|
67
|
-
{
|
|
68
|
-
text: 'La demo automática avanza por los 4 pasos con delays simulados: selección → URL → búsqueda → formulario.',
|
|
69
|
-
type: 'info',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
text: 'Los datos mostrados son mock. En producción se obtienen de los endpoints de scraping del backend.',
|
|
73
|
-
type: 'warning',
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export { story };
|
|
79
|
-
//# sourceMappingURL=xsmusices-ui-xs-send-scraper.xsstory-Cq6PuwN7.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xsmusices-ui-xs-send-scraper.xsstory-Cq6PuwN7.mjs","sources":["../../../projects/xs-ui/src/lib/components/base/send-scraper/xs-send-scraper.xsstory.ts"],"sourcesContent":["import { StoryMeta } from '../../../story.types';\nimport { XSSendScraperComponent } from './xs-send-scraper.component';\n\nexport const story: StoryMeta = {\n id: 'send-scraper',\n name: 'Send Scraper',\n type: 'component',\n subtype: 'Base',\n status: 'active',\n usage: ['admin', 'app'],\n updated: '2026-06-13T22:00:00.000Z',\n created: '2026-06-13T22:00:00.000Z',\n description:\n 'Flujo completo de envío con scraping vía URL. Incluye selección de fuente (SoundCloud/YouTube), entrada de URL, preview del resultado y formulario auto-rellenado. Disponible en modo track (media) y profile (artista/organización).',\n component: XSSendScraperComponent,\n selector: 'xs-send-scraper',\n inputs: [\n {\n key: 'mode',\n label: 'Modo',\n type: 'select',\n options: ['track', 'profile'],\n default: 'track',\n },\n {\n key: 'allowedSources',\n label: 'Fuentes permitidas',\n type: 'json',\n default: ['soundcloud', 'youtube'],\n },\n {\n key: 'demoMode',\n label: 'Demo automática',\n type: 'boolean',\n default: false,\n },\n ],\n examples: [\n {\n name: 'Media — Track',\n description:\n 'Flujo completo para enviar un track desde SoundCloud/YouTube. Demo automática activada.',\n inputs: {\n mode: 'track' as const,\n allowedSources: ['soundcloud', 'youtube'],\n demoMode: true,\n },\n },\n {\n name: 'Artista — Perfil',\n description:\n 'Flujo completo para enviar un artista desde SoundCloud. Demo automática activada.',\n inputs: {\n mode: 'profile' as const,\n allowedSources: ['soundcloud', 'youtube'],\n demoMode: true,\n },\n },\n {\n name: 'Media — Interactivo',\n description:\n 'Modo interactivo sin demo. Haz clic en los pasos manualmente.',\n inputs: {\n mode: 'track' as const,\n allowedSources: ['soundcloud', 'youtube'],\n demoMode: false,\n },\n },\n ],\n multilanguage: false,\n notes: [\n {\n text: 'La demo automática avanza por los 4 pasos con delays simulados: selección → URL → búsqueda → formulario.',\n type: 'info',\n },\n {\n text: 'Los datos mostrados son mock. En producción se obtienen de los endpoints de scraping del backend.',\n type: 'warning',\n },\n ],\n};\n"],"names":[],"mappings":";;AAGO,MAAM,KAAK,GAAc;AAC9B,IAAA,EAAE,EAAE,cAAc;AAClB,IAAA,IAAI,EAAE,cAAc;AACpB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;AACvB,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,WAAW,EACT,uOAAuO;AACzO,IAAA,SAAS,EAAE,sBAAsB;AACjC,IAAA,QAAQ,EAAE,iBAAiB;AAC3B,IAAA,MAAM,EAAE;AACN,QAAA;AACE,YAAA,GAAG,EAAE,MAAM;AACX,YAAA,KAAK,EAAE,MAAM;AACb,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;AAC7B,YAAA,OAAO,EAAE,OAAO;AACjB,SAAA;AACD,QAAA;AACE,YAAA,GAAG,EAAE,gBAAgB;AACrB,YAAA,KAAK,EAAE,oBAAoB;AAC3B,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;AACnC,SAAA;AACD,QAAA;AACE,YAAA,GAAG,EAAE,UAAU;AACf,YAAA,KAAK,EAAE,iBAAiB;AACxB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,OAAO,EAAE,KA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