@getflip/swirl-components-angular 0.0.0-beta-20260114160010
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/.turbo/turbo-build.log +24 -0
- package/CHANGELOG.md +10424 -0
- package/README.md +4 -0
- package/angular.json +38 -0
- package/dist/component-library/fesm2022/getflip-swirl-components-angular.mjs +13567 -0
- package/dist/component-library/fesm2022/getflip-swirl-components-angular.mjs.map +1 -0
- package/dist/component-library/index.d.ts +5 -0
- package/dist/component-library/lib/component-library.module.d.ts +10 -0
- package/dist/component-library/lib/stencil-generated/angular-component-lib/utils.d.ts +9 -0
- package/dist/component-library/lib/stencil-generated/boolean-value-accessor.d.ts +9 -0
- package/dist/component-library/lib/stencil-generated/components.d.ts +4402 -0
- package/dist/component-library/lib/stencil-generated/index.d.ts +2 -0
- package/dist/component-library/lib/stencil-generated/select-value-accessor.d.ts +8 -0
- package/dist/component-library/lib/stencil-generated/text-value-accessor.d.ts +8 -0
- package/dist/component-library/lib/stencil-generated/value-accessor.d.ts +18 -0
- package/dist/component-library/public-api.d.ts +5 -0
- package/package.json +37 -0
- package/projects/component-library/ng-package.json +7 -0
- package/projects/component-library/package.json +11 -0
- package/projects/component-library/src/lib/component-library.module.ts +23 -0
- package/projects/component-library/src/lib/stencil-generated/angular-component-lib/utils.ts +65 -0
- package/projects/component-library/src/lib/stencil-generated/boolean-value-accessor.ts +28 -0
- package/projects/component-library/src/lib/stencil-generated/components.ts +11287 -0
- package/projects/component-library/src/lib/stencil-generated/index.ts +478 -0
- package/projects/component-library/src/lib/stencil-generated/select-value-accessor.ts +25 -0
- package/projects/component-library/src/lib/stencil-generated/text-value-accessor.ts +25 -0
- package/projects/component-library/src/lib/stencil-generated/value-accessor.ts +39 -0
- package/projects/component-library/src/public-api.ts +9 -0
- package/projects/component-library/tsconfig.lib.json +12 -0
- package/projects/component-library/tsconfig.lib.prod.json +10 -0
- package/projects/component-library/tsconfig.spec.json +10 -0
- package/tsconfig.json +33 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as d from './components';
|
|
2
|
+
export declare const DIRECTIVES: (typeof d.FileManager | typeof d.SwirlAccordion | typeof d.SwirlAccordionItem | typeof d.SwirlActionList | typeof d.SwirlActionListItem | typeof d.SwirlActionListSection | typeof d.SwirlAppBar | typeof d.SwirlAppIcon | typeof d.SwirlAppLayout | typeof d.SwirlAutocomplete | typeof d.SwirlAvatar | typeof d.SwirlAvatarGroup | typeof d.SwirlBadge | typeof d.SwirlBanner | typeof d.SwirlBox | typeof d.SwirlButton | typeof d.SwirlButtonGroup | typeof d.SwirlCard | typeof d.SwirlCarousel | typeof d.SwirlCarouselSlide | typeof d.SwirlCheckbox | typeof d.SwirlChip | typeof d.SwirlColorInput | typeof d.SwirlColumns | typeof d.SwirlConsoleLayout | typeof d.SwirlDataCell | typeof d.SwirlDataCellStack | typeof d.SwirlDateInput | typeof d.SwirlDatePicker | typeof d.SwirlDescriptionList | typeof d.SwirlDescriptionListItem | typeof d.SwirlDialog | typeof d.SwirlEmoji | typeof d.SwirlEmojiClap | typeof d.SwirlEmojiHappy | typeof d.SwirlEmojiIdea | typeof d.SwirlEmojiLove | typeof d.SwirlEmojiSad | typeof d.SwirlEmojiThumbsUp | typeof d.SwirlEmptyState | typeof d.SwirlFileChip | typeof d.SwirlFileUploader | typeof d.SwirlFileViewer | typeof d.SwirlFileViewerAudio | typeof d.SwirlFileViewerCsv | typeof d.SwirlFileViewerFallback | typeof d.SwirlFileViewerImage | typeof d.SwirlFileViewerPdf | typeof d.SwirlFileViewerText | typeof d.SwirlFileViewerVideo | typeof d.SwirlFormControl | typeof d.SwirlFormGroup | typeof d.SwirlHeading | typeof d.SwirlIcon | typeof d.SwirlIconAdd | typeof d.SwirlIconAddModerator | typeof d.SwirlIconAddPhoto | typeof d.SwirlIconAddReaction | typeof d.SwirlIconAdminPanelSettings | typeof d.SwirlIconAi | typeof d.SwirlIconAiFilled | typeof d.SwirlIconApps | typeof d.SwirlIconArrowBack | typeof d.SwirlIconArrowDownward | typeof d.SwirlIconArrowForward | typeof d.SwirlIconArrowLeft | typeof d.SwirlIconArrowRight | typeof d.SwirlIconArrowRightSmall | typeof d.SwirlIconArrowUpward | typeof d.SwirlIconAspectRatio | typeof d.SwirlIconAttachment | typeof d.SwirlIconAudioFile | typeof d.SwirlIconAutorenew | typeof d.SwirlIconBarChart | typeof d.SwirlIconBeachAccess | typeof d.SwirlIconBeachAccessFilled | typeof d.SwirlIconBlock | typeof d.SwirlIconBookmark | typeof d.SwirlIconBookmarkFilled | typeof d.SwirlIconCalendarAddOnFilled | typeof d.SwirlIconCalendarRespond | typeof d.SwirlIconCalendarToday | typeof d.SwirlIconCall | typeof d.SwirlIconCallEnd | typeof d.SwirlIconCancel | typeof d.SwirlIconCancelFilled | typeof d.SwirlIconCancelOutline | typeof d.SwirlIconChatBubble | typeof d.SwirlIconChats | typeof d.SwirlIconChatsFilled | typeof d.SwirlIconCheck | typeof d.SwirlIconCheckCircle | typeof d.SwirlIconCheckCircleFilled | typeof d.SwirlIconCheckSmall | typeof d.SwirlIconCheckStrong | typeof d.SwirlIconCheckboxFilled | typeof d.SwirlIconChevronLeft | typeof d.SwirlIconChevronRight | typeof d.SwirlIconClose | typeof d.SwirlIconCloseFullscreen | typeof d.SwirlIconCloseSmall | typeof d.SwirlIconCloudUpload | typeof d.SwirlIconColumn | typeof d.SwirlIconComment | typeof d.SwirlIconContrast | typeof d.SwirlIconCopy | typeof d.SwirlIconCrop | typeof d.SwirlIconDarkMode | typeof d.SwirlIconDateRange | typeof d.SwirlIconDelete | typeof d.SwirlIconDeployedCode | typeof d.SwirlIconDescription | typeof d.SwirlIconDesktop | typeof d.SwirlIconDirectory | typeof d.SwirlIconDirectoryFilled | typeof d.SwirlIconDiscover | typeof d.SwirlIconDockLeft | typeof d.SwirlIconDockLeftCollapse | typeof d.SwirlIconDockLeftExpand | typeof d.SwirlIconDoorOpen | typeof d.SwirlIconDot | typeof d.SwirlIconDoubleArrowLeft | typeof d.SwirlIconDoubleArrowRight | typeof d.SwirlIconDownload | typeof d.SwirlIconDragHandle | typeof d.SwirlIconEdit | typeof d.SwirlIconEditNote | typeof d.SwirlIconEmojiMood | typeof d.SwirlIconEmojiSatisfied | typeof d.SwirlIconEmojiSymbols | typeof d.SwirlIconError | typeof d.SwirlIconExpandLess | typeof d.SwirlIconExpandMore | typeof d.SwirlIconExperiment | typeof d.SwirlIconFile | typeof d.SwirlIconFileCopy | typeof d.SwirlIconFilter | typeof d.SwirlIconFolder | typeof d.SwirlIconFolderShared | typeof d.SwirlIconFormatHOne | typeof d.SwirlIconFormatListBulleted | typeof d.SwirlIconForward | typeof d.SwirlIconFullscreen | typeof d.SwirlIconFullscreenExit | typeof d.SwirlIconGif | typeof d.SwirlIconGroupAdd | typeof d.SwirlIconGroupAssign | typeof d.SwirlIconGroups | typeof d.SwirlIconGroupsFilled | typeof d.SwirlIconHamburgerMenu | typeof d.SwirlIconHealthAndSafety | typeof d.SwirlIconHelp | typeof d.SwirlIconHelpFilled | typeof d.SwirlIconHighlight | typeof d.SwirlIconHistory | typeof d.SwirlIconHome | typeof d.SwirlIconHomeFilled | typeof d.SwirlIconHrResting | typeof d.SwirlIconImage | typeof d.SwirlIconImproveText | typeof d.SwirlIconInfo | typeof d.SwirlIconInsertBelow | typeof d.SwirlIconInsertChart | typeof d.SwirlIconInsertOnTop | typeof d.SwirlIconInventory | typeof d.SwirlIconInventoryOff | typeof d.SwirlIconIphone | typeof d.SwirlIconKey | typeof d.SwirlIconKeyboard | typeof d.SwirlIconKeyboardHide | typeof d.SwirlIconLanguage | typeof d.SwirlIconLightMode | typeof d.SwirlIconLike | typeof d.SwirlIconLink | typeof d.SwirlIconLive | typeof d.SwirlIconLoad | typeof d.SwirlIconLocationOn | typeof d.SwirlIconLock | typeof d.SwirlIconLockOpen | typeof d.SwirlIconLockPerson | typeof d.SwirlIconLogin | typeof d.SwirlIconLogout | typeof d.SwirlIconLongText | typeof d.SwirlIconMail | typeof d.SwirlIconManageAccounts | typeof d.SwirlIconMarkChatRead | typeof d.SwirlIconMarkChatUnread | typeof d.SwirlIconMention | typeof d.SwirlIconMenu | typeof d.SwirlIconMenuBook | typeof d.SwirlIconMenuBookFilled | typeof d.SwirlIconMenuFilled | typeof d.SwirlIconMessage | typeof d.SwirlIconMic | typeof d.SwirlIconMicOff | typeof d.SwirlIconMoreHorizontal | typeof d.SwirlIconMoreVertikal | typeof d.SwirlIconNews | typeof d.SwirlIconNewsFilled | typeof d.SwirlIconNewsOff | typeof d.SwirlIconNextPlan | typeof d.SwirlIconNoteStack | typeof d.SwirlIconNoteStackFilled | typeof d.SwirlIconNotifications | typeof d.SwirlIconNotificationsActive | typeof d.SwirlIconNotificationsOff | typeof d.SwirlIconOpenInFull | typeof d.SwirlIconOpenInNew | typeof d.SwirlIconPatientList | typeof d.SwirlIconPause | typeof d.SwirlIconPauseCircle | typeof d.SwirlIconPeopleAlt | typeof d.SwirlIconPerson | typeof d.SwirlIconPersonCheck | typeof d.SwirlIconPersonOff | typeof d.SwirlIconPhone | typeof d.SwirlIconPhotoCamera | typeof d.SwirlIconPictureAsPdf | typeof d.SwirlIconPictureInPicture | typeof d.SwirlIconPin | typeof d.SwirlIconPinOff | typeof d.SwirlIconPlace | typeof d.SwirlIconPlayArrow | typeof d.SwirlIconPoll | typeof d.SwirlIconPostApproval | typeof d.SwirlIconPresent | typeof d.SwirlIconPreview | typeof d.SwirlIconPrint | typeof d.SwirlIconPublic | typeof d.SwirlIconPublicOff | typeof d.SwirlIconPublishedWithChanges | typeof d.SwirlIconRatioFourToThree | typeof d.SwirlIconRatioFreeform | typeof d.SwirlIconRatioSixteenToNine | typeof d.SwirlIconRatioSquare | typeof d.SwirlIconRatioThreeToFour | typeof d.SwirlIconRatioThreeToTwo | typeof d.SwirlIconRecieved | typeof d.SwirlIconRefresh | typeof d.SwirlIconRemove | typeof d.SwirlIconRemoveCircle | typeof d.SwirlIconRemoveModerator | typeof d.SwirlIconReply | typeof d.SwirlIconReport | typeof d.SwirlIconRoadmap | typeof d.SwirlIconRotateLeft | typeof d.SwirlIconRotateRight | typeof d.SwirlIconScreenshare | typeof d.SwirlIconScreenshareOff | typeof d.SwirlIconSearch | typeof d.SwirlIconSearchStrong | typeof d.SwirlIconSection | typeof d.SwirlIconSecure | typeof d.SwirlIconSend | typeof d.SwirlIconSettings | typeof d.SwirlIconShortText | typeof d.SwirlIconSimplify | typeof d.SwirlIconSpellcheck | typeof d.SwirlIconStars | typeof d.SwirlIconStickyNote | typeof d.SwirlIconStop | typeof d.SwirlIconStopCircle | typeof d.SwirlIconSunny | typeof d.SwirlIconSync | typeof d.SwirlIconTasks | typeof d.SwirlIconTasksFilled | typeof d.SwirlIconTerminal | typeof d.SwirlIconTime | typeof d.SwirlIconTimeFilled | typeof d.SwirlIconToday | typeof d.SwirlIconTodayFilled | typeof d.SwirlIconTranslate | typeof d.SwirlIconTreeStructure | typeof d.SwirlIconUndo | typeof d.SwirlIconUnlockPerson | typeof d.SwirlIconUpload | typeof d.SwirlIconUserAdd | typeof d.SwirlIconUserAssign | typeof d.SwirlIconVideoCamera | typeof d.SwirlIconVideoCameraOff | typeof d.SwirlIconVideoLibrary | typeof d.SwirlIconVideoPlayer | typeof d.SwirlIconViewAgenda | typeof d.SwirlIconVisibility | typeof d.SwirlIconVisibilityOff | typeof d.SwirlIconVoice | typeof d.SwirlIconVolumeUp | typeof d.SwirlIconWarning | typeof d.SwirlIconWebAsset | typeof d.SwirlIconWebAssetOff | typeof d.SwirlIconWork | typeof d.SwirlImageGrid | typeof d.SwirlImageGridItem | typeof d.SwirlInlineError | typeof d.SwirlInlineNotification | typeof d.SwirlInlineStatus | typeof d.SwirlLightbox | typeof d.SwirlLink | typeof d.SwirlList | typeof d.SwirlMenu | typeof d.SwirlMenuItem | typeof d.SwirlModal | typeof d.SwirlModalShell | typeof d.SwirlOptionList | typeof d.SwirlOptionListItem | typeof d.SwirlOptionListSection | typeof d.SwirlPagination | typeof d.SwirlPdfReader | typeof d.SwirlPopover | typeof d.SwirlPopoverTrigger | typeof d.SwirlProgressIndicator | typeof d.SwirlRadio | typeof d.SwirlRadioGroup | typeof d.SwirlResourceList | typeof d.SwirlResourceListFileItem | typeof d.SwirlResourceListItem | typeof d.SwirlResourceListSection | typeof d.SwirlSearch | typeof d.SwirlSelect | typeof d.SwirlSeparator | typeof d.SwirlShellLayout | typeof d.SwirlShellNavigationItem | typeof d.SwirlSkeletonBox | typeof d.SwirlSkeletonText | typeof d.SwirlSpinner | typeof d.SwirlStack | typeof d.SwirlStatusIndicator | typeof d.SwirlSwitch | typeof d.SwirlSymbol | typeof d.SwirlSymbolAcUnit | typeof d.SwirlSymbolAccountCircle | typeof d.SwirlSymbolAlternateEmail | typeof d.SwirlSymbolAndroid | typeof d.SwirlSymbolAnnouncement | typeof d.SwirlSymbolAutorenew | typeof d.SwirlSymbolBackup | typeof d.SwirlSymbolBadge | typeof d.SwirlSymbolBarcodeReader | typeof d.SwirlSymbolBarcodeScanner | typeof d.SwirlSymbolBatteryHoriz | typeof d.SwirlSymbolBeachAccess | typeof d.SwirlSymbolBolt | typeof d.SwirlSymbolBookmark | typeof d.SwirlSymbolCalendar | typeof d.SwirlSymbolCampaign | typeof d.SwirlSymbolCardsStar | typeof d.SwirlSymbolCloud | typeof d.SwirlSymbolConstruction | typeof d.SwirlSymbolContacts | typeof d.SwirlSymbolCoronavirus | typeof d.SwirlSymbolDesignServices | typeof d.SwirlSymbolDesktopWindows | typeof d.SwirlSymbolDirectionsCarFilled | typeof d.SwirlSymbolDiversity | typeof d.SwirlSymbolDraw | typeof d.SwirlSymbolEditCalendar | typeof d.SwirlSymbolEmail | typeof d.SwirlSymbolEmergency | typeof d.SwirlSymbolEmojiFoodBeverage | typeof d.SwirlSymbolEngineering | typeof d.SwirlSymbolEventMenu | typeof d.SwirlSymbolExplore | typeof d.SwirlSymbolExtension | typeof d.SwirlSymbolFacebook | typeof d.SwirlSymbolFavorite | typeof d.SwirlSymbolFitnessCenter | typeof d.SwirlSymbolFlag | typeof d.SwirlSymbolFlight | typeof d.SwirlSymbolFolder | typeof d.SwirlSymbolGlobe | typeof d.SwirlSymbolGroups | typeof d.SwirlSymbolHealing | typeof d.SwirlSymbolHealthAndSafety | typeof d.SwirlSymbolHelp | typeof d.SwirlSymbolHomeRepairService | typeof d.SwirlSymbolHomeStorage | typeof d.SwirlSymbolIdCard | typeof d.SwirlSymbolImage | typeof d.SwirlSymbolInfoMenu | typeof d.SwirlSymbolInstagram | typeof d.SwirlSymbolInventory | typeof d.SwirlSymbolInventory2 | typeof d.SwirlSymbolIos | typeof d.SwirlSymbolKey | typeof d.SwirlSymbolLanguage | typeof d.SwirlSymbolLeaderboard | typeof d.SwirlSymbolLightbulb | typeof d.SwirlSymbolLinkedin | typeof d.SwirlSymbolLocalShipping | typeof d.SwirlSymbolLocationOn | typeof d.SwirlSymbolLoyalty | typeof d.SwirlSymbolMap | typeof d.SwirlSymbolMapsHomeWork | typeof d.SwirlSymbolMenuBook | typeof d.SwirlSymbolMop | typeof d.SwirlSymbolNestEcoLeaf | typeof d.SwirlSymbolNotifications | typeof d.SwirlSymbolOpenInNew | typeof d.SwirlSymbolOrders | typeof d.SwirlSymbolPackage | typeof d.SwirlSymbolPalette | typeof d.SwirlSymbolPartlyCloudyDay | typeof d.SwirlSymbolPedalBike | typeof d.SwirlSymbolPercentDiscount | typeof d.SwirlSymbolPets | typeof d.SwirlSymbolPinterest | typeof d.SwirlSymbolPointOfSale | typeof d.SwirlSymbolPolicy | typeof d.SwirlSymbolPrecisionManufacturing | typeof d.SwirlSymbolPrint | typeof d.SwirlSymbolPushPin | typeof d.SwirlSymbolRecycling | typeof d.SwirlSymbolRedeem | typeof d.SwirlSymbolReportProblem | typeof d.SwirlSymbolRestaurant | typeof d.SwirlSymbolRoadmap | typeof d.SwirlSymbolRocketLaunch | typeof d.SwirlSymbolRoom | typeof d.SwirlSymbolSavings | typeof d.SwirlSymbolSchool | typeof d.SwirlSymbolSell | typeof d.SwirlSymbolSettingsVoice | typeof d.SwirlSymbolShoppingBag | typeof d.SwirlSymbolShoppingCart | typeof d.SwirlSymbolSmartphone | typeof d.SwirlSymbolSpa | typeof d.SwirlSymbolSportsSoccer | typeof d.SwirlSymbolStar | typeof d.SwirlSymbolSupervisorAccount | typeof d.SwirlSymbolTask | typeof d.SwirlSymbolTasks | typeof d.SwirlSymbolThumbsUpDown | typeof d.SwirlSymbolTimer | typeof d.SwirlSymbolToolsPowerDrill | typeof d.SwirlSymbolTrain | typeof d.SwirlSymbolTrophy | typeof d.SwirlSymbolTwitter | typeof d.SwirlSymbolVideo | typeof d.SwirlSymbolWarehouse | typeof d.SwirlSymbolWaterDrop | typeof d.SwirlSymbolWbSunny | typeof d.SwirlSymbolWechat | typeof d.SwirlSymbolWeibo | typeof d.SwirlSymbolWifi | typeof d.SwirlSymbolWork | typeof d.SwirlSymbolXing | typeof d.SwirlSymbolYoutube | typeof d.SwirlTab | typeof d.SwirlTabBar | typeof d.SwirlTable | typeof d.SwirlTableCell | typeof d.SwirlTableColumn | typeof d.SwirlTableRow | typeof d.SwirlTableRowGroup | typeof d.SwirlTabs | typeof d.SwirlTag | typeof d.SwirlText | typeof d.SwirlTextInput | typeof d.SwirlThemeProvider | typeof d.SwirlThumbnail | typeof d.SwirlTimeInput | typeof d.SwirlToast | typeof d.SwirlToastProvider | typeof d.SwirlToggleButton | typeof d.SwirlToggleGroup | typeof d.SwirlToolbar | typeof d.SwirlTooltip | typeof d.SwirlTreeNavigation | typeof d.SwirlTreeNavigationItem | typeof d.SwirlTreeView | typeof d.SwirlTreeViewItem | typeof d.SwirlVideoThumbnail | typeof d.SwirlVisuallyHidden)[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ValueAccessor } from './value-accessor';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectValueAccessor extends ValueAccessor {
|
|
5
|
+
constructor(el: ElementRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueAccessor, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectValueAccessor, "swirl-autocomplete[multi-select], swirl-autocomplete[multiSelect], swirl-option-list, swirl-select", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ValueAccessor } from './value-accessor';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TextValueAccessor extends ValueAccessor {
|
|
5
|
+
constructor(el: ElementRef);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextValueAccessor, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessor, "swirl-autocomplete:not([multi-select]):not([multiSelect]), swirl-color-input, swirl-date-input, swirl-radio-group, swirl-search, swirl-text-input, swirl-time-input", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ValueAccessor implements ControlValueAccessor {
|
|
5
|
+
protected el: ElementRef;
|
|
6
|
+
private onChange;
|
|
7
|
+
private onTouched;
|
|
8
|
+
protected lastValue: any;
|
|
9
|
+
constructor(el: ElementRef);
|
|
10
|
+
writeValue(value: any): void;
|
|
11
|
+
handleChangeEvent(value: any): void;
|
|
12
|
+
_handleBlurEvent(): void;
|
|
13
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
14
|
+
registerOnTouched(fn: () => void): void;
|
|
15
|
+
setDisabledState(isDisabled: boolean): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueAccessor, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueAccessor, never, never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./lib/stencil-generated/components";
|
|
2
|
+
export * from "./lib/stencil-generated/boolean-value-accessor";
|
|
3
|
+
export * from "./lib/stencil-generated/select-value-accessor";
|
|
4
|
+
export * from "./lib/stencil-generated/text-value-accessor";
|
|
5
|
+
export * from "./lib/component-library.module";
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@getflip/swirl-components-angular",
|
|
3
|
+
"version": "0.0.0-beta-20260114160010",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"ng": "ng",
|
|
6
|
+
"build": "ng build"
|
|
7
|
+
},
|
|
8
|
+
"module": "dist/component-library/fesm2022/getflip-swirl-components-angular.mjs",
|
|
9
|
+
"typings": "dist/component-library/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/component-library/index.d.ts",
|
|
13
|
+
"default": "./dist/component-library/fesm2022/getflip-swirl-components-angular.mjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@angular/animations": "19.2.18",
|
|
18
|
+
"@angular/common": "19.2.18",
|
|
19
|
+
"@angular/compiler": "19.2.18",
|
|
20
|
+
"@angular/core": "19.2.18",
|
|
21
|
+
"@angular/forms": "19.2.18",
|
|
22
|
+
"@angular/platform-browser": "19.2.18",
|
|
23
|
+
"@angular/platform-browser-dynamic": "19.2.18",
|
|
24
|
+
"@angular/router": "19.2.18",
|
|
25
|
+
"@getflip/swirl-components": "0.0.0-beta-20260114160010",
|
|
26
|
+
"rxjs": "7.8.2",
|
|
27
|
+
"tslib": "2.4.0",
|
|
28
|
+
"zone.js": "0.15.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@angular-devkit/build-angular": "19.2.18",
|
|
32
|
+
"@angular/cli": "19.2.18",
|
|
33
|
+
"@angular/compiler-cli": "19.2.18",
|
|
34
|
+
"ng-packagr": "19.2.2",
|
|
35
|
+
"typescript": "5.7.3"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
import { DIRECTIVES } from "./stencil-generated";
|
|
4
|
+
import { BooleanValueAccessor } from "./stencil-generated/boolean-value-accessor";
|
|
5
|
+
import { SelectValueAccessor } from "./stencil-generated/select-value-accessor";
|
|
6
|
+
import { TextValueAccessor } from "./stencil-generated/text-value-accessor";
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [
|
|
10
|
+
...DIRECTIVES,
|
|
11
|
+
BooleanValueAccessor,
|
|
12
|
+
SelectValueAccessor,
|
|
13
|
+
TextValueAccessor,
|
|
14
|
+
],
|
|
15
|
+
imports: [],
|
|
16
|
+
exports: [
|
|
17
|
+
...DIRECTIVES,
|
|
18
|
+
BooleanValueAccessor,
|
|
19
|
+
SelectValueAccessor,
|
|
20
|
+
TextValueAccessor,
|
|
21
|
+
],
|
|
22
|
+
})
|
|
23
|
+
export class SwirlComponentsModule {}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
import { fromEvent } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
export const proxyInputs = (Cmp: any, inputs: string[]) => {
|
|
6
|
+
const Prototype = Cmp.prototype;
|
|
7
|
+
inputs.forEach((item) => {
|
|
8
|
+
Object.defineProperty(Prototype, item, {
|
|
9
|
+
get() {
|
|
10
|
+
return this.el[item];
|
|
11
|
+
},
|
|
12
|
+
set(val: any) {
|
|
13
|
+
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* In the event that proxyInputs is called
|
|
17
|
+
* multiple times re-defining these inputs
|
|
18
|
+
* will cause an error to be thrown. As a result
|
|
19
|
+
* we set configurable: true to indicate these
|
|
20
|
+
* properties can be changed.
|
|
21
|
+
*/
|
|
22
|
+
configurable: true,
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const proxyMethods = (Cmp: any, methods: string[]) => {
|
|
28
|
+
const Prototype = Cmp.prototype;
|
|
29
|
+
methods.forEach((methodName) => {
|
|
30
|
+
Prototype[methodName] = function () {
|
|
31
|
+
const args = arguments;
|
|
32
|
+
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const proxyOutputs = (instance: any, el: any, events: string[]) => {
|
|
38
|
+
events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const defineCustomElement = (tagName: string, customElement: any) => {
|
|
42
|
+
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
|
|
43
|
+
customElements.define(tagName, customElement);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// tslint:disable-next-line: only-arrow-functions
|
|
48
|
+
export function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {
|
|
49
|
+
const decorator = function (cls: any) {
|
|
50
|
+
const { defineCustomElementFn, inputs, methods } = opts;
|
|
51
|
+
|
|
52
|
+
if (defineCustomElementFn !== undefined) {
|
|
53
|
+
defineCustomElementFn();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (inputs) {
|
|
57
|
+
proxyInputs(cls, inputs);
|
|
58
|
+
}
|
|
59
|
+
if (methods) {
|
|
60
|
+
proxyMethods(cls, methods);
|
|
61
|
+
}
|
|
62
|
+
return cls;
|
|
63
|
+
};
|
|
64
|
+
return decorator;
|
|
65
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Directive, ElementRef } from '@angular/core';
|
|
2
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
|
|
4
|
+
import { ValueAccessor } from './value-accessor';
|
|
5
|
+
|
|
6
|
+
@Directive({
|
|
7
|
+
/* tslint:disable-next-line:directive-selector */
|
|
8
|
+
selector: 'swirl-checkbox, swirl-resource-list-item, swirl-switch',
|
|
9
|
+
host: {
|
|
10
|
+
'(valueChange)': 'handleChangeEvent($event.target?.["checked"])'
|
|
11
|
+
},
|
|
12
|
+
providers: [
|
|
13
|
+
{
|
|
14
|
+
provide: NG_VALUE_ACCESSOR,
|
|
15
|
+
useExisting: BooleanValueAccessor,
|
|
16
|
+
multi: true
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
standalone: false
|
|
20
|
+
})
|
|
21
|
+
export class BooleanValueAccessor extends ValueAccessor {
|
|
22
|
+
constructor(el: ElementRef) {
|
|
23
|
+
super(el);
|
|
24
|
+
}
|
|
25
|
+
override writeValue(value: any) {
|
|
26
|
+
this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
|
|
27
|
+
}
|
|
28
|
+
}
|