diff --git a/.editorconfig b/.editorconfig index 0a592d43..9641629b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,6 +11,7 @@ trim_trailing_whitespace = true [*.ts] quote_type = single +ij_typescript_use_double_quotes = false [*.md] max_line_length = off diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 8df41980..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "root": true, - "ignorePatterns": [ - "projects/**/*" - ], - "overrides": [ - { - "files": [ - "*.ts" - ], - "parserOptions": { - "project": [ - "./tsconfig.json" - ], - "createDefaultProgram": true - }, - "extends": [ - "plugin:@angular-eslint/recommended", - "plugin:@angular-eslint/template/process-inline-templates" - ], - "rules": { - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "c", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "c", - "style": "kebab-case" - } - ], - "@angular-eslint/no-conflicting-lifecycle": "off" - } - }, - { - "files": [ - "*.html" - ], - "extends": [ - "plugin:@angular-eslint/template/recommended" - ], - "rules": {} - } - ] -} diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 486f26ef..9af06c24 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -12,18 +12,20 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [22.x] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: project check + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Project check run: | - npm i npm run build:icons:prod npm run build:lib:prod npm run lint:lib diff --git a/.github/workflows/project-chartjs-check.yml b/.github/workflows/project-chartjs-check.yml index 988fe67b..331040ac 100644 --- a/.github/workflows/project-chartjs-check.yml +++ b/.github/workflows/project-chartjs-check.yml @@ -4,9 +4,11 @@ on: push: branches: - main + - v5.* pull_request: branches: - main + - v5.* jobs: build: @@ -14,18 +16,20 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [22.x] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: project check + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Project check run: | - npm i npm run build:chartjs:prod npm run lint:chartjs npm run test:chartjs:prod diff --git a/.github/workflows/project-icons-check.yml b/.github/workflows/project-icons-check.yml index 094773ec..20b119c4 100644 --- a/.github/workflows/project-icons-check.yml +++ b/.github/workflows/project-icons-check.yml @@ -4,9 +4,11 @@ on: push: branches: - main + - v5.* pull_request: branches: - main + - v5.* jobs: build: @@ -14,18 +16,20 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [22.x] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: project check + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Project check run: | - npm i npm run build:icons:prod npm run lint:icons npm run test:icons:prod diff --git a/.github/workflows/project-lib-check.yml b/.github/workflows/project-lib-check.yml index 97a418f2..7fd5192f 100644 --- a/.github/workflows/project-lib-check.yml +++ b/.github/workflows/project-lib-check.yml @@ -4,11 +4,11 @@ on: push: branches: - main - - v4.* + - v5.* pull_request: branches: - main - - v4.* + - v5.* jobs: build: @@ -16,18 +16,20 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [22.x] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: project check + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Project check run: | - npm i npm run build:icons:prod npm run build:lib:prod npm run lint:lib diff --git a/.gitignore b/.gitignore index eabd950d..5e916bd9 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ speed-measure-plugin*.json /libpeerconnection.log testem.log /typings +.nx/ # System files .DS_Store diff --git a/.prettierrc.js b/.prettierrc.js index f09ea4a9..3e85ffa2 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,7 +1,7 @@ module.exports = { semi: true, - trailingComma: "all", + trailingComma: 'none', singleQuote: true, - printWidth: 100, + printWidth: 120, tabWidth: 2 }; diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c8decc6..4a56d208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,726 @@ ### [@coreui/angular](https://coreui.io/angular/) changelog +--- + +#### `5.5.6` + +- chore(dependencies): update to `Angular 20.1.4` +- refactor(sidebar-nav-divider): signal inputs, test +- refactor(sidebar-nav-label): signal inputs, test +- refactor(sidebar-nav-title): signal inputs, test +- refactor(sidebar-nav-link): signal inputs, test + +--- + +#### `5.5.5` + +- refactor(breadcrumb-router): migrate breadcrumbs$ toSignal, use `attrib` prop for breadcrumb-item, test update, cleanup +- fix(breadcrumb-item): remove `attributes` input conflicting with Element's readonly property, use `attribs` instead + +--- + +#### `5.5.4` + +- chore(dependencies): update to `Angular 20.1` +- fix(tab-list): keyboard arrows handle for `rtl` +- refactor(rtl.service): ensure RTL detection works regardless of HTML attribute or CSS property direction (computed style check) + +--- + +#### `5.5.3` + +- chore(dependencies): update + +--- + +#### `5.5.2` + +- chore(dependencies): update + +--- + +#### `5.5.1` + +- fix(progress): TS2540: Cannot assign to `value` because it is a read-only property - conflicting on directive composition with ProgressBarDirective +- chore(dependencies): update + +--- + +#### `5.5.0` + +- chore(dependencies): update to `Angular 20` +- chore(migration): import `DOCUMENT` from `@angular/core` +- chore(migration): rename the `afterRender` lifecycle hook to `afterEveryRender` +- fix(collapse): NG0953: Unexpected emit for destroyed `OutputRef`. The owning directive/component is destroyed. +- refactor(carousel): carousel.config migrate to inject() + +--- + +#### `5.4.14` + +- fix(button): cButton directive loosing tabindex attribute, refactor; close #228 - thanks @bernik1980 +- fix(list-group-item): cListGroupItem directive loosing tabindex attribute, refactor +- fix(nav-link): cNavLink directive loosing tabindex attribute, refactor +- refactor(form): minor cleanups +- chore(dependencies): update + +--- + +#### `5.4.13` + +- fix(modal): scrollbar disappears on backdrop=false, closes #224 - thanks @tturbs +- chore(dependencies): update + +--- + +#### `5.4.12` + +- chore(dependencies): update + +--- + +#### `5.4.11` + +- chore(dependencies): update + +--- + +#### `5.4.10` + +- refactor(tabs-2): host bindings, host listeners, cleanup +- chore(dependencies): update + +--- + +#### `5.4.9` + +- chore(dependencies): update + +--- + +#### `5.4.8` + +- fix(form-check-input): checked prop overwrites checked from writeValue in ReactiveForms +- chore(dependencies): update + +--- + +#### `5.4.7` + +- fix(avatar): default size should be '' not `md` +- chore(dependencies): update + +--- + +#### `5.4.6` + +- chore(dependencies): update +- refactor(dropdown): migrate to contendChild(), constructor-based dependency injection to inject(), cleanup +- refactor(dropdown-item): add default role prop, cleanup +- refactor(dropdown-menu): migrate to contendChildren(), cleanup + +--- + +#### `5.4.5` + +- chore(dependencies): update +- refactor(coreui.types): add BooleanInput and NumberInput types + +--- + +#### `5.4.3` + +- chore(dependencies): update to `Angular 19.2` +- refactor(icon.component): cleanup, classList simplify +- refactor(chartjs.component): signal inputs, host bindings, cleanup +- fix(table-color): allow undefined type for color input prop +- fix(align): allow undefined type for align input prop + +--- + +#### `5.4.1` + +- chore(dependencies): update + +--- + +#### `5.4.0` + +- chore(dependencies): version bump and tilde `~` dependencies for @coreui/* packages with Sass modules + +--- + +#### `5.3.16` + +- chore(dependencies): tilde `~` dependencies for @coreui/* packages to avoid Sass modules mismatch + +--- + +#### `5.3.15` + +- refactor: linkedSignal source cleanup +- refactor(form): host binding, cleanup, tests +- refactor(form-floating): host binding, cleanup, tests +- test(form-select): coverage +- test(form-check-input): indeterminate coverage +- refactor(modal-toggle): host binding, cleanup, tests +- refactor(navbar-toggler): host binding, cleanup, tests +- refactor(template-id): signal inputs, cleanup, tests +- test(bg-color): css classes coverage +- test(border): css classes coverage +- fix(border): border input boolean +- test(rounded): css classes coverage +- fix(rounded): border input boolean +- refactor(text-bg-color): host binding, cleanup, tests +- refactor(text-color): host binding, cleanup, tests +- test(shadow-on-scroll): coverage +- test(visible): coverage +- refactor(utilities): module minor cleanups +- refactor(sidebar-toggler): signal inputs, host bindings, cleanup +- refactor(sidebar-toggle): signal inputs, host bindings, cleanup +- refactor(sidebar-nav-link): signal output +- refactor(sidebar-brand): signal inputs, host bindings, cleanup +- refactor(sidebar): signal inputs, host bindings, cleanup, use inert attribute +- chore(dependencies): update + +--- + +#### `5.3.14` + +- fix(carousel): when paused (interval=0) and manually changed slide, it does not restart when interval>0 +- refactor(carousel-item): add attribute role = "group" +- refactor(carousel-inner): add aria-live "off" for interval > 0, otherwise "polite" +- fix(carousel-control): allow custom content (regression) +- refactor(carousel): add interval to carousel state +- fix(carousel.config): set default interval to 0 +- fix(theme.directive): use colorScheme if dark not set +- refactor(progress-bar): set default value=0 +- refactor(dropdown): signal inputs, host bindings, cleanup, tests +- refactor(dropdown-item): set default value of disabled prop to false +- refactor(dropdown-close): set default value of disabled prop to false +- chore(dependencies): update + +--- + +#### `5.3.12` + +- fix(carousel): first image slides in for `crossfade` transition, animations refactor, closes #213 - thanks @baloo32 +- fix(carousel): `interval` prop value change should set/reset timer, closes #214 - thanks @baloo32 +- chore(dependencies): update + +--- + +#### `5.3.10` + +- fix(offcanvas): offcanvas hides on animation.done toState visible, refactor +- refactor(backdrop): minor cleanups + +--- + +#### `5.3.9` + +- chore(dependencies): update +- fix(accordion): accordion item not expanded when visible=true on init (regression) +- refactor(alert): signal inputs, host bindings, cleanup, tests +- refactor(breadcrumb): signal inputs, host bindings, cleanup, tests +- refactor(grid): signal inputs, host bindings, cleanup, tests +- refactor(header): signal inputs, host bindings, cleanup, tests +- refactor(theme.directive): signal inputs, host bindings, cleanup, tests +- refactor(offcanvas): signal inputs, host bindings, cleanup, tests +- refactor(pagination): signal inputs, host bindings, cleanup, tests +- refactor(carousel): signal inputs, host bindings, cleanup, tests +- feat(carousel-indicators): allow custom content via TemplateId directive, refactor +- test(accordion): coverage +- test(backdrop): coverage +- test(card-img): coverage +- test(collapse): coverage +- test(element-ref): update +- test(placeholder): coverage +- test(popover): coverage +- test(tooltip): coverage + +--- + +#### `5.3.8` + +- chore(dependencies): update to `Angular 19.1` +- refactor(form-control): signal inputs, host bindings, cleanup +- refactor(form-select): signal inputs, host bindings, cleanup +- refactor(form-label): signal inputs, host bindings, cleanup +- refactor(form-feedback): signal inputs, host bindings, cleanup +- refactor(form-check): signal inputs, host bindings, cleanup +- refactor(form): signal inputs, host bindings, cleanup +- refactor(input-group): cleanup +- refactor(nav): signal inputs, host bindings, cleanup, tests +- refactor(modal): signal inputs, host bindings, cleanup, +- refactor(progress): signal inputs, host bindings, cleanup, tests, service introduction +- refactor(table-active): signal inputs, host bindings, cleanup, tests +- refactor(table-color): signal inputs, host bindings, cleanup, tests +- refactor(table): signal inputs, host bindings, cleanup, tests +- refactor(tab): signal inputs, host bindings, cleanup, tests +- refactor(toast): signal inputs, host bindings, cleanup +- refactor(align): signal inputs, host bindings, cleanup, tests +- refactor(bg-color): signal inputs, host bindings, cleanup, tests +- refactor(border): signal inputs, host bindings, cleanup, tests +- refactor(rounded): signal inputs, host bindings, cleanup, tests +- refactor(shadow-on-scroll): signal inputs, host bindings, cleanup +- refactor(visible): signal inputs, cleanup +- refactor: make EffectRef #private + +--- + +#### `5.3.7` + +- fix(collapse): collapse not expanded when initial visible=true +- fix(offcanvas): use `inert` attribute instead of `aria-hidden` +- chore(dependencies): update + +--- + +#### `5.3.5` + +- chore(dependencies): update +- feat(services): uid service +- feat(services): rtl service +- refactor(form-floating): signal inputs, host bindings, cleanup +- test(progress): cleanup + +--- + +#### `5.3.4` + +- chore(dependencies): update +- refactor: migrate constructor-based dependency injection to inject function +- fix(tab-panel): avoid initial transition + +--- + +#### `5.3.3` + +- chore(dependencies): update +- fix(accordion): accordion item not expanded on init when visible=true +- refactor(avatar): remove NgOptimizedImage directive, add object-fit: cover +- chore(workflows): update node-version to 22.x + +--- + +#### `5.3.2` +- chore(dependencies): update +- chore(workflows): update with npm ci +- fix(package-lock): rebuild + +--- + +#### `5.3.1` + +- chore(dependencies): update +- fix(tabs): NG0950 required input is accessed before a value is set tempfix + +--- + +#### `5.3.0` + +- chore(dependencies): update to `Angular 19` +- refactor: directives, components and pipes are now standalone by default +- refactor: remove deprecated 'allowSignalWrites' flag for effect() - writes are allowed by default + +--- + +#### `5.2.25` + +- chore(dependencies): update to Angular `18.2.12` +- fix(tabs-list): allowSignalWrites for tabsService effect + +--- + +#### `5.2.24` + +- chore(dependencies): update to Angular `18.2.11` +- refactor(tab-panel): animateChild for optional nested animations + +--- + +#### `5.2.23` + +- chore(dependencies): update +- refactor(html-attr.directive): signal input, cleanup +- refactor(icon): signal inputs, host bindings, cleanup + +--- + +#### `5.2.22` + +- chore(dependencies): update +- refactor(collapse): input signals, host bindings +- refactor(navbar): input signals, host bindings +- refactor(icon.directive): host binding innerHtml +- refactor(offcanvas): minor fixes +- refactor(sidebar-nav): minor fixes + +--- + +#### `5.2.21` + +- chore(dependencies): update + +--- + +#### `5.2.20` + +- chore(dependencies): update to Angular `18.2.8` +- refactor(accordion): input signals, host bindings +- refactor(toaster.service): readonly props + +--- + +#### `5.2.19` + +- chore(dependencies): update to Angular `18.2.6` +- refactor(spinner): input signals, host bindings, ng-content default fallback content + +--- + +#### `5.2.18` + +- chore(dependencies): update to Angular `18.2.5` +- fix(progress-bar): bar animation fails for no style width on 0 percent +- refactor(popover): use ComponentRef setInput() api, input signals, host bindings +- refactor(tooltip): use ComponentRef setInput() api, input signals, host bindings +- refactor(toast): use ComponentRef setInput() api, input signals +- fix(widget-stat-f): rounded-start-1 bg for icon without padding, text-color for value prop +- refactor(callout): input signals, host bindings +- refactor(card-header-actions): host bindings +- refactor(card-img): input signals, host bindings +- refactor(card): host bindings +- refactor(input-group): input signals, host bindings +- refactor(container): input signals, host bindings +- refactor(header): input signals, host bindings +- refactor(widgets): input signals, host bindings +- refactor(collapse): input signals, host bindings + +--- + +#### `5.2.17` + +- refactor(img): input signals, host bindings +- refactor(list-group): input signals, host bindings +- chore(dependencies): update to Angular `18.2.2` + - see also: vulnerability [Webpack AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS](https://github.com/advisories/GHSA-4vvj-4cpr-p986) + +--- + +#### `5.2.16` + +- refactor(footer): input signals, host bindings +- refactor(placeholder): input signals, host bindings +- chore(dependencies): update `eslint` to `^9.9.1` +- chore(dependencies): update `typescript-eslint` to `~8.3.0` +- chore(dependencies): update `tslib` to `^2.7.0` +- chore(dependencies): update `micromatch` to `4.0.8` + - see also: vulnerability [Regular Expression Denial of Service (ReDoS) in micromatch](https://github.com/advisories/GHSA-952p-6rrq-rcjv) + +--- + +#### `5.2.15` + +- refactor(button): input signals, host bindings +- refactor(button-close): input signals, host bindings +- refactor(avatar): host bindings +- refactor(badge): host bindings +- chore(dependencies): update to Angular `18.2.1` +- chore(dependencies): update to typescript-eslint `~8.2.0` + +--- + +#### `5.2.14` + +- chore(dependencies): update to Angular `18.2` +- chore(dependencies): update to typescript `~5.5.4` +- chore(dependencies): update to typescript-eslint `~8.1.0` +- chore(dependencies): update to angular-eslint `~18.3.0` +- refactor(button): input signals + +--- + +#### `5.2.13` + +- chore(dependencies): update +- chore(karma.conf): add custom chrome launcher with `--disable-search-engine-choice-screen` flag +- refactor: remove empty constructors, wrapper components host class cleanups + +--- + +#### `5.2.12` + +- chore(dependencies): update +- chore(eslint): update `eslint` to v9, `angular-eslint`, `typescript-eslint` +- refactor: eslint minor syntax cleanups + +--- + +#### `5.2.11` + +- feat(schematics): ng-add basic integration +- chore(dependencies): update + +--- + +#### `5.2.7` + +- chore(dependencies): update + +--- + +#### `5.2.5` + +- chore(dependencies): update to Angular 18.1 +- refactor: update calls to `afterRender` with an explicit phase to the new API + +--- + +#### `5.2.3` + +- chore(dependencies): update +- refactor(accordion): minor cleanup, add host class metadata +- refactor(avatar): template default ng-content, host class metadata, input signals +- refactor(badge): host class metadata, input signals +- refactor(card): host class metadata, input signals +- refactor(text-bg-color): input signals +- refactor(text-color): input signals +- refactor(widget-stat-b): input signals +- refactor(modal): minor syntax cleanup + +--- + +#### `5.2.2` + +- chore(dependencies): update +- fix(tabs2): missing exportAs +- fix(tab.directive): missing disabled attribute + +--- + +#### `5.2.1` + +- chore(dependencies): update + +--- + +#### `5.2.0` + +- chore(dependencies): update to `Angular 18` +- feat(tabs): Angular tabs reimagined structure, keyboard interactions and WAI-ARIA support + +--- + +#### `5.1.2` + +- chore(dependencies): update (js-yaml vulnerability) +- fix(avatar): add `alt` prop for img alternate text +- fix(footer): set default `role="contentinfo"` +- fix(header): set default `role="banner"` +- fix(sidebar-nav): set default `role="navigation"` +- fix(tab-pane): add default `role="tabpanel"` +- fix(TabContentRef): add `aria-selected` attribute and default `role="tab"` + +--- + +#### `5.1.1` + +- chore(dependencies): update +- fix(dropdown): add aria-expanded attribute, refactor + +--- + +#### `5.1.0` + +- chore(dependencies): update +- feat: element-ref directive +- feat(tooltip): reference input for positioning the tooltip on reference element, refactor with signals +- refactor(listeners.service): add focusin Trigger +- refactor(template-id.directive): cleanup, add missing test + +--- + +#### `5.0.4` + +- chore(dependencies): update +- fix(tooltip): do not show the tooltip for empty content, refactor with input() + +--- + +#### `5.0.3` + +- chore(dependencies): update +- test: add missing tests, refactor + +--- + +#### `5.0.2` + +- chore(dependencies): update +- fix(icon): cIcon directive [name] binding does not refresh icon in angular 17 #203 +- refactor(icons-angular): use Angular signals +- test(icons-angular): update + +--- + +#### `5.0.1` + +- chore(dependencies): update +- fix(color-mode.service): afterNextRender() for SSR +- fix(local-storage.service): provide null for empty Storage.getItem() value + +--- + +#### `5.0.0` + +- chore(dependencies): update to `Angular 17.3` +- chore(dependencies): update to `CoreUI 5` +- refactor(sidebar): drop sidebar-toggler component, use directive instead, use control flow, use Input() transform +- refactor(widget): update to v5 +- fix(tooltip): update offset for v5 +- refactor(toast): use Input() transform +- feat(utilities): shadow-on-scroll directive +- refactor(tabs): use Input() transform +- refactor(table.type): Partial attributes +- feat: ThemeDirective +- feat(services): v5 color-mode, local-storage, in-memory-storage, script-injector +- refactor(progress): add progress-stacked component, update testing, rewrite with signals +- refactor(progress): add progress-bar props for simplified use with [value] +- fix(popover): update offset for v5 +- refactor(placeholder): use Input() transform +- refactor(offcanvas): use ThemeDirective composition for dark prop +- refactor(navbar): colorScheme prop replaced with ThemeDirective composition +- fix(row): row-cols-n for xs="n" +- refactor(form-check-input): use Input() transform +- refactor(dropdown): allow to select a dropdown-item with up/down arrows, testing update, use Input() transform +- refactor(dropdown): implement FocusableOption interface for items +- refactor(dropdown): use ThemeDirective composition for dark prop +- refactor(collapse): use Input() transform +- refactor(carousel): control flow, use Input() transform, ThemeDirective composition for dark prop +- refactor(card): use TextColorDirective composition +- refactor(button-close): deprecate white input prop, use ThemeDirective composition for dark prop +- refactor(breadcrumb): cleanups, add routeSnapshot.title as fallback value, use control flow, use Input() transform +- refactor(badge): update TextColors, use TextColorDirective composition +- chore(backdrop.service): cleanup +- refactor(avatar): update TextColors, use TextColorDirective composition, use control flow +- refactor(alert): use Input() transform, use control flow +- refactor(coreui.types): update to v5 +- refactor(accordion): use Input() transform +- refactor(chartjs): update to ChartJS 4.x, types cleanup, use afterRender for SSR +- refactor(icon): add afterNextRender for SSR, add aria-hidden attribute, improve testing +- feat(utilities): TextBgColor directive +- refactor(badge): improve background and text color handling with TextBgColor directive composition api +- refactor(card): improve background and text color handling with TextBgColor directive composition api + +--- + +#### `4.7.18` + +- chore(dependencies): update + +--- + +#### `4.7.17` + +- chore(dependencies): update to `Angular 17.3` + +--- + +#### `4.7.16` + +- chore(dependencies): update + +--- + +#### `4.7.15` + +- fix(sidebar-nav-group): typo on control flow migration - thanks @meriturva, closes #200 +- chore(workflows): update github actions to v4 - checkout, setup-node + +--- + +#### `4.7.14` + +- chore(dependencies): update to `Angular 17.2` + +--- + +#### `4.7.13` + +- refactor(@coreui/angular): use control flow +- fix(chartjs): canvas already in use, refactor + +--- + +#### `4.7.12` + +- chore(dependencies): update +- fix(chartjs): use afterRender, afterNextRender fails - temp fix + +--- + +#### `4.7.10` + +- fix(toast): types +- fix(carousel): types +- fix(sidebar): missing export SidebarNavHelper +- chore(dependencies): update + +--- + +#### `4.7.8` + +- refactor: allow getComputedStyle() to be undefined for SSR +- refactor(tooltip): for use with IntersectionService providedIn root +- refactor(popover): for use with IntersectionService providedIn root +- refactor(carousel): for use with IntersectionService providedIn root +- refactor(IntersectionService): providedIn root, allow multiple observers, add unobserve() method +- refactor(icon): afterNextRender in case of SSR +- refactor(chartjs): afterNextRender in case of SSR + +--- + +#### `4.7.7` + +- chore(dependencies): update + +--- + +#### `4.7.6` + +- chore(dependencies): update + +--- + +#### `4.7.3` + +- refactor(backdrop, modal, offcanvas): move scrollbar adjustments to offcanvas, cleanups + feat(modal): restore focus on modal hide, set focus to visible modal +- fix(backdrop): add missing export +- chore(dependencies): update + +--- + +#### `4.7.0` + +- chore(dependencies): update to `Angular 17` + - `Angular 17` + - `TypeScript ~5.2` + - `zone.js ~0.14.2` +- chore: update tsconfig and eslintrc +- refactor: minor cleanups - typings, tests +- chore: update `.github/workfows` for node-version 20 + +--- + +#### `4.5.28` + +- chore(dependencies): update + +--- + #### `4.5.27` - chore(dependencies): update @@ -23,7 +744,7 @@ see: [Babel vulnerable to arbitrary code execution when compiling specifically c #### `4.5.15` -- chore(dependencies): update to Angular 16.2 +- chore(dependencies): update to Angular 16.2 - fix(icon): check name value for undefined --- @@ -75,8 +796,8 @@ see: [Babel vulnerable to arbitrary code execution when compiling specifically c #### `4.5.0` - chore: dependencies update - - `Angular 16` - - `TypeScript ~4.9.3` + - `Angular 16` + - `TypeScript ~4.9.3` - refactor(breadcrumb-router.service): router.events takeUntilDestroyed() - refactor(toaster): remove ComponentFactoryResolver @@ -104,7 +825,7 @@ see: [Babel vulnerable to arbitrary code execution when compiling specifically c --- #### `4.4.1` - + - fix(alert): typo in template - refactor(html-attr): cleanup - refactor(icon, icon-set): cleanup @@ -131,28 +852,28 @@ see: [Babel vulnerable to arbitrary code execution when compiling specifically c - `@coreui/angular` - `@coreui/angular-chartjs` - `@coreui/icons-angular` - - chore: dependencies update + - chore: dependencies update --- #### `4.3.16` - `@coreui/angular` - - chore: dependencies update + - chore: dependencies update - `@coreui/angular-chartjs` - - chore: dependencies update + - chore: dependencies update - `@coreui/icons-angular` - - feat(cIcon): standalone directive - - chore: dependencies update + - feat(cIcon): standalone directive + - chore: dependencies update --- -#### `4.3.15` +#### `4.3.15` - `@coreui/angular-chartjs` - - feat(c-chart): emit chartRef on new Chart() - - feat(c-chart): standalone component - - chore: dependencies update + - feat(c-chart): emit chartRef on new Chart() + - feat(c-chart): standalone component + - chore: dependencies update --- @@ -164,7 +885,7 @@ see: [Babel vulnerable to arbitrary code execution when compiling specifically c #### `4.4.0-next.0` -- feat: standalone components (wip) +- feat: standalone components (wip) --- @@ -193,6 +914,7 @@ see: [Babel vulnerable to arbitrary code execution when compiling specifically c #### `4.3.7` update to: + - `Angular 15.1` --- @@ -200,8 +922,9 @@ update to: #### `4.3.0` update to: + - `Angular 15` - `TypeScript 4.8` - `RxJS 7.5` - + --- diff --git a/CLI.md b/CLI.md index 451e5cd9..5bc98951 100644 --- a/CLI.md +++ b/CLI.md @@ -1,27 +1,59 @@ -# @coreui/angular v4 +# @coreui/angular v5 -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.3. +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.0.2. ## Development server -Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files. +To start a local development server, run: + +```bash +ng serve +``` + +Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files. ## Code scaffolding -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` -## Build +## Building -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. +To build the project run: + +```bash +ng build +``` + +This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed. ## Running unit tests -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` ## Running end-to-end tests -Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. -## Further help +## Additional Resources -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/LICENSE b/LICENSE index 027b8813..fbb053e0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 creativeLabs Łukasz Holeczek +Copyright (c) 2025 creativeLabs Łukasz Holeczek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c5c0e03f..0854d27f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- + CoreUI logo

-

CoreUI for Angular

+

CoreUI Components for Angular

- Angular Components Library built on top of Bootstrap 5 and TypeScript. + Angular Components Library built on top of Bootstrap 5.3 and TypeScript 5.8
-
Explore CoreUI for Angular docs » + Explore CoreUI for Angular docs and examples »
-
- Report a bug + CoreUI Docs + · + Report a bug · - Request a feature + Request a feature · - Blog + Blog

+
+

+Featured CoreUI for Angular libraries: +
CoreUI Components for Angular +
CoreUI Angular wrapper for Chart.js v4 +
CoreUI Icons for Angular +

+
+ -## Status +### Status ![angular][angular-badge] +[![npm-coreui-angular-v5-ng20][npm-coreui-angular-badge-v5-ng20]][npm-coreui-angular] [![npm-coreui-angular-latest][npm-coreui-angular-badge-latest]][npm-coreui-angular] [![npm-coreui-angular-next][npm-coreui-angular-badge-next]][npm-coreui-angular] -[![NPM downloads][npm-coreui-angular-download]][npm-coreui-angular] +[![NPM downloads][npm-coreui-angular-download]][npm-coreui-angular] [![Build](https://github.com/coreui/coreui-angular/actions/workflows/build-check.yml/badge.svg)](https://github.com/coreui/coreui-angular/actions/workflows/build-check.yml) -[npm-coreui-angular-badge-latest]: https://img.shields.io/npm/v/@coreui/angular/latest?style=flat-square&color=brightgreen -[npm-coreui-angular-badge-next]: https://img.shields.io/npm/v/@coreui/angular/next?style=flat-square&color=red -[npm-coreui-angular]: https://www.npmjs.com/package/@coreui/angular -[npm-coreui-angular-download]: https://img.shields.io/npm/dm/@coreui/angular.svg?style=flat-square -[angular-badge]: https://img.shields.io/badge/angular-^16.1.0-lightgrey.svg?style=flat-square&logo=angular ## Table of contents - [Status](#status) +- [Table of contents](#table-of-contents) - [Quick start](#quick-start) + - [Prerequisites](#prerequisites) + - [Node.js](#nodejs) + - [Angular CLI](#angular-cli) + - [Installation](#installation) + - [CoreUI CSS files](#coreui-css-files) + - [Installation](#installation-1) + - [Basic usage](#basic-usage) + - [Bootstrap CSS files](#bootstrap-css-files) + - [Installation (optional)](#installation-optional) - [Templates](#templates) - [Bugs and feature requests](#bugs-and-feature-requests) - [Documentation](#documentation) @@ -59,7 +78,7 @@ Before you begin, make sure your development environment includes `Node.js®` and `npm` package manager. ###### Node.js -[**Angular 16.1**](https://angular.io/guide/what-is-angular) requires `Node.js` LTS version `^16.14` or `^18.10`. +[**Angular 20**](https://angular.dev/overview) requires `Node.js` LTS version `^20.19`, `^22.12` or `^24.0`. - To check your version, run `node -v` in a terminal/console window. - To get `Node.js`, go to [nodejs.org](https://nodejs.org/). @@ -73,11 +92,12 @@ npm install -g @angular/cli ### Installation Several quick start options are available (pick one): - -- [Download the latest release](https://github.com/coreui/coreui-angular/) -- Clone the repo: `git clone https://github.com/coreui/coreui-angular.git` -- Install with [npm](https://www.npmjs.com/): `npm install @coreui/angular` -- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/angular` +- Add CoreUI to your Angular project: + - Install with [Angular CLI](https://angular.dev/cli/add): `ng add @coreui/angular` + - Install with [npm](https://www.npmjs.com/): `npm install @coreui/angular @coreui/icons-angular @coreui/coreui` +- Get the source code: + - [Download the latest release](https://github.com/coreui/coreui-angular/) + - Clone the repo: `git clone https://github.com/coreui/coreui-angular.git` Read the [Getting started page](https://coreui.io/angular/docs/) for information on the framework contents, templates and examples, and more. @@ -118,7 +138,7 @@ The documentation for the CoreUI & CoreUI PRO is hosted at our website [CoreUI f ## Frameworks -CoreUI supports most popular frameworks. +CoreUI supports the most popular frameworks. - [CoreUI for Bootstap(Vanilla JS)](https://github.com/coreui/coreui) - [CoreUI for React](https://github.com/coreui/coreui-react) @@ -209,4 +229,11 @@ Thanks to all the backers and sponsors! Support this project by [becoming a back ## Copyright and license -Copyright 2023 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). +Copyright 2025 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). + +[npm-coreui-angular-badge-v5-ng20]: https://img.shields.io/npm/v/@coreui/angular/v5-ng20?style=flat-square&color=brightgreen +[npm-coreui-angular-badge-latest]: https://img.shields.io/npm/v/@coreui/angular/latest?style=flat-square&color=brightgreen +[npm-coreui-angular-badge-next]: https://img.shields.io/npm/v/@coreui/angular/next?style=flat-square&color=red +[npm-coreui-angular]: https://www.npmjs.com/package/@coreui/angular +[npm-coreui-angular-download]: https://img.shields.io/npm/dm/@coreui/angular.svg?style=flat-square +[angular-badge]: https://img.shields.io/badge/angular-^20.1.0-lightgrey.svg?style=flat-square&logo=angular diff --git a/angular.json b/angular.json index a1c89c92..adaf53cd 100644 --- a/angular.json +++ b/angular.json @@ -21,7 +21,7 @@ "prefix": "c", "architect": { "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", + "builder": "@angular/build:ng-packagr", "options": { "project": "projects/coreui-angular/ng-package.json" }, @@ -36,7 +36,7 @@ "defaultConfiguration": "production" }, "test": { - "builder": "@angular-devkit/build-angular:karma", + "builder": "@angular/build:karma", "options": { "main": "projects/coreui-angular/src/test.ts", "tsConfig": "projects/coreui-angular/tsconfig.spec.json", @@ -53,7 +53,8 @@ "lintFilePatterns": [ "projects/coreui-angular/**/*.ts", "projects/coreui-angular/**/*.html" - ] + ], + "eslintConfig": "projects/coreui-angular/eslint.config.js" } } } @@ -70,7 +71,7 @@ "prefix": "c", "architect": { "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", + "builder": "@angular/build:ng-packagr", "options": { "project": "projects/coreui-angular-chartjs/ng-package.json" }, @@ -85,7 +86,7 @@ "defaultConfiguration": "production" }, "test": { - "builder": "@angular-devkit/build-angular:karma", + "builder": "@angular/build:karma", "options": { "main": "projects/coreui-angular-chartjs/src/test.ts", "tsConfig": "projects/coreui-angular-chartjs/tsconfig.spec.json", @@ -102,7 +103,8 @@ "lintFilePatterns": [ "projects/coreui-angular-chartjs/**/*.ts", "projects/coreui-angular-chartjs/**/*.html" - ] + ], + "eslintConfig": "projects/coreui-angular-chartjs/eslint.config.js" } } } @@ -119,7 +121,7 @@ "prefix": "c", "architect": { "build": { - "builder": "@angular-devkit/build-angular:ng-packagr", + "builder": "@angular/build:ng-packagr", "options": { "project": "projects/coreui-icons-angular/ng-package.json" }, @@ -134,7 +136,7 @@ "defaultConfiguration": "production" }, "test": { - "builder": "@angular-devkit/build-angular:karma", + "builder": "@angular/build:karma", "options": { "main": "projects/coreui-icons-angular/src/test.ts", "tsConfig": "projects/coreui-icons-angular/tsconfig.spec.json", @@ -151,7 +153,8 @@ "lintFilePatterns": [ "projects/coreui-icons-angular/**/*.ts", "projects/coreui-icons-angular/**/*.html" - ] + ], + "eslintConfig": "projects/coreui-icons-angular/eslint.config.js" } } } @@ -163,6 +166,34 @@ }, "@angular-eslint/schematics:library": { "setParserOptionsProject": true + }, + "@schematics/angular:component": { + "standalone": true, + "style": "scss", + "type": "component" + }, + "@schematics/angular:directive": { + "standalone": true, + "type": "directive" + }, + "@schematics/angular:pipe": { + "standalone": true, + "typeSeparator": "." + }, + "@schematics/angular:service": { + "type": "service" + }, + "@schematics/angular:guard": { + "typeSeparator": "." + }, + "@schematics/angular:interceptor": { + "typeSeparator": "." + }, + "@schematics/angular:module": { + "typeSeparator": "." + }, + "@schematics/angular:resolver": { + "typeSeparator": "." } } } diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000..1919ce9a --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,53 @@ +// @ts-check +const eslint = require('@eslint/js'); +const tseslint = require('typescript-eslint'); +const angular = require('angular-eslint'); + +module.exports = tseslint.config( + { + files: ['**/*.ts'], + extends: [ + eslint.configs.recommended, + ...tseslint.configs.recommended, + ...tseslint.configs.stylistic, + ...angular.configs.tsRecommended + ], + processor: angular.processInlineTemplates, + rules: { + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'c', + style: 'camelCase' + } + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'c', + style: 'kebab-case' + } + ], + '@angular-eslint/no-input-rename': 'warn', + '@angular-eslint/no-output-rename': 'warn', + '@typescript-eslint/consistent-indexed-object-style': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-inferrable-types': 'off', + '@typescript-eslint/no-unused-expressions': 'off', + 'no-unused-private-class-members': 'warn' + } + }, + { + files: ['**/*.html'], + extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility], + rules: { + '@angular-eslint/template/elements-content': 'off', + '@angular-eslint/template/alt-text': 'off', + '@angular-eslint/template/interactive-supports-focus': 'warn', + '@angular-eslint/template/click-events-have-key-events': 'warn', + '@angular-eslint/template/label-has-associated-control': 'warn' + } + } +); diff --git a/package-lock.json b/package-lock.json index 11c9b168..8623f2d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,267 +1,304 @@ { "name": "coreui-angular-dev", - "version": "4.5.27", + "version": "5.5.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coreui-angular-dev", - "version": "4.5.27", - "license": "MIT", - "dependencies": { - "@angular/animations": "^16.2.10", - "@angular/cdk": "^16.2.9", - "@angular/common": "^16.2.10", - "@angular/compiler": "^16.2.10", - "@angular/core": "^16.2.10", - "@angular/forms": "^16.2.10", - "@angular/localize": "^16.2.10", - "@angular/platform-browser": "^16.2.10", - "@angular/platform-browser-dynamic": "^16.2.10", - "@angular/router": "^16.2.10", - "@coreui/chartjs": "^3.1.2", - "@popperjs/core": "~2.11.6", - "chart.js": "^3.9.1", + "version": "5.5.6", + "license": "MIT", + "dependencies": { + "@angular/animations": "^20.1.4", + "@angular/cdk": "^20.1.4", + "@angular/common": "^20.1.4", + "@angular/compiler": "^20.1.4", + "@angular/core": "^20.1.4", + "@angular/forms": "^20.1.4", + "@angular/localize": "^20.1.4", + "@angular/platform-browser": "^20.1.4", + "@angular/platform-browser-dynamic": "^20.1.4", + "@angular/router": "^20.1.4", + "@coreui/chartjs": "~4.1.0", + "@coreui/icons": "^3.0.1", + "@popperjs/core": "~2.11.8", + "chart.js": "^4.5.0", "lodash-es": "^4.17.21", - "rxjs": "~7.8.1", - "tslib": "^2.3.0", - "zone.js": "~0.13.1" + "rxjs": "~7.8.2", + "tslib": "^2.8.1", + "zone.js": "~0.15.1" }, "devDependencies": { - "@angular-devkit/build-angular": "^16.2.7", - "@angular-eslint/builder": "^16.2.0", - "@angular-eslint/eslint-plugin": "^16.2.0", - "@angular-eslint/eslint-plugin-template": "^16.2.0", - "@angular-eslint/schematics": "^16.2.0", - "@angular-eslint/template-parser": "^16.2.0", - "@angular/cli": "^16.2.7", - "@angular/compiler-cli": "^16.2.10", - "@angular/language-service": "^16.2.10", - "@coreui/icons": "^3.0.1", - "@types/jasmine": "^5.1.1", - "@types/lodash-es": "^4.17.10", - "@types/node": "^18.18.6", - "@typescript-eslint/eslint-plugin": "^5.62.0", - "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.51.0", - "jasmine-core": "^5.1.1", - "karma": "^6.4.2", + "@angular-devkit/schematics": "^20.1.4", + "@angular/build": "^20.1.4", + "@angular/cli": "^20.1.4", + "@angular/compiler-cli": "^20.1.4", + "@angular/language-service": "^20.1.4", + "@types/jasmine": "^5.1.8", + "@types/lodash-es": "^4.17.12", + "@types/node": "^22.17.0", + "angular-eslint": "^20.1.1", + "copyfiles": "^2.4.1", + "eslint": "^9.32.0", + "jasmine-core": "^5.9.0", + "karma": "^6.4.4", "karma-chrome-launcher": "^3.2.0", "karma-coverage": "^2.2.1", "karma-jasmine": "^5.1.0", "karma-jasmine-html-reporter": "^2.1.0", - "ng-packagr": "^16.2.3", - "prettier": "^3.0.3", - "typescript": "~4.9.5" + "ng-packagr": "^20.1.0", + "prettier": "^3.6.2", + "typescript": "~5.8.3", + "typescript-eslint": "^8.38.0" }, "engines": { - "node": "^16.14.0 || ^18.10.0", - "npm": ">=6" + "node": "^20.19.0 || ^22.12.0 || ^24.0.0", + "npm": ">=9" } }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "node_modules/@algolia/client-abtesting": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/client-abtesting/-/client-abtesting-5.32.0.tgz", + "integrity": "sha512-HG/6Eib6DnJYm/B2ijWFXr4txca/YOuA4K7AsEU0JBrOZSB+RU7oeDyNBPi3c0v0UDDqlkBqM3vBU/auwZlglA==", "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 14.0.0" } }, - "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "node_modules/@algolia/client-analytics": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-5.32.0.tgz", + "integrity": "sha512-8Y9MLU72WFQOW3HArYv16+Wvm6eGmsqbxxM1qxtm0hvSASJbxCm+zQAZe5stqysTlcWo4BJ82KEH1PfgHbJAmQ==", + "dev": true, + "license": "MIT", "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" }, "engines": { - "node": ">=6.0.0" + "node": ">= 14.0.0" } }, - "node_modules/@angular-devkit/architect": { - "version": "0.1602.7", - "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1602.7.tgz", - "integrity": "sha512-r6+z4jRE+e9VNeTmJCGz5VI5azRagOqE4SIDqaywz75eHOJ9UPSo9MHy8zFw1eLt1WcvCDqk+Pk9+krh2E+B8Q==", + "node_modules/@algolia/client-common": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-5.32.0.tgz", + "integrity": "sha512-w8L+rgyXMCPBKmEdOT+RfgMrF0mT6HK60vPYWLz8DBs/P7yFdGo7urn99XCJvVLMSKXrIbZ2FMZ/i50nZTXnuQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-insights": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/client-insights/-/client-insights-5.32.0.tgz", + "integrity": "sha512-AdWfynhUeX7jz/LTiFU3wwzJembTbdLkQIOLs4n7PyBuxZ3jz4azV1CWbIP8AjUOFmul6uXbmYza+KqyS5CzOA==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-devkit/core": "16.2.7", - "rxjs": "7.8.1" + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0", - "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", - "yarn": ">= 1.13.0" + "node": ">= 14.0.0" } }, - "node_modules/@angular-devkit/build-angular": { - "version": "16.2.7", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-16.2.7.tgz", - "integrity": "sha512-OTH4qzXmWXifhvH0iXwPUhElWEU9SUcIZyWYbv2NR5ImAw/GE07vDuBljGRJeSEC9MpFbThwEFbHD8oRWiLUag==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "2.2.1", - "@angular-devkit/architect": "0.1602.7", - "@angular-devkit/build-webpack": "0.1602.7", - "@angular-devkit/core": "16.2.7", - "@babel/core": "7.22.9", - "@babel/generator": "7.22.9", - "@babel/helper-annotate-as-pure": "7.22.5", - "@babel/helper-split-export-declaration": "7.22.6", - "@babel/plugin-proposal-async-generator-functions": "7.20.7", - "@babel/plugin-transform-async-to-generator": "7.22.5", - "@babel/plugin-transform-runtime": "7.22.9", - "@babel/preset-env": "7.22.9", - "@babel/runtime": "7.22.6", - "@babel/template": "7.22.5", - "@discoveryjs/json-ext": "0.5.7", - "@ngtools/webpack": "16.2.7", - "@vitejs/plugin-basic-ssl": "1.0.1", - "ansi-colors": "4.1.3", - "autoprefixer": "10.4.14", - "babel-loader": "9.1.3", - "babel-plugin-istanbul": "6.1.1", - "browserslist": "^4.21.5", - "chokidar": "3.5.3", - "copy-webpack-plugin": "11.0.0", - "critters": "0.0.20", - "css-loader": "6.8.1", - "esbuild-wasm": "0.18.17", - "fast-glob": "3.3.1", - "guess-parser": "0.4.22", - "https-proxy-agent": "5.0.1", - "inquirer": "8.2.4", - "jsonc-parser": "3.2.0", - "karma-source-map-support": "1.4.0", - "less": "4.1.3", - "less-loader": "11.1.0", - "license-webpack-plugin": "4.0.2", - "loader-utils": "3.2.1", - "magic-string": "0.30.1", - "mini-css-extract-plugin": "2.7.6", - "mrmime": "1.0.1", - "open": "8.4.2", - "ora": "5.4.1", - "parse5-html-rewriting-stream": "7.0.0", - "picomatch": "2.3.1", - "piscina": "4.0.0", - "postcss": "8.4.31", - "postcss-loader": "7.3.3", - "resolve-url-loader": "5.0.0", - "rxjs": "7.8.1", - "sass": "1.64.1", - "sass-loader": "13.3.2", - "semver": "7.5.4", - "source-map-loader": "4.0.1", - "source-map-support": "0.5.21", - "terser": "5.19.2", - "text-table": "0.2.0", - "tree-kill": "1.2.2", - "tslib": "2.6.1", - "vite": "4.4.7", - "webpack": "5.88.2", - "webpack-dev-middleware": "6.1.1", - "webpack-dev-server": "4.15.1", - "webpack-merge": "5.9.0", - "webpack-subresource-integrity": "5.1.0" - }, - "engines": { - "node": "^16.14.0 || >=18.10.0", - "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", - "yarn": ">= 1.13.0" + "node_modules/@algolia/client-personalization": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-5.32.0.tgz", + "integrity": "sha512-bTupJY4xzGZYI4cEQcPlSjjIEzMvv80h7zXGrXY1Y0KC/n/SLiMv84v7Uy+B6AG1Kiy9FQm2ADChBLo1uEhGtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" }, - "optionalDependencies": { - "esbuild": "0.18.17" + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-query-suggestions": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/client-query-suggestions/-/client-query-suggestions-5.32.0.tgz", + "integrity": "sha512-if+YTJw1G3nDKL2omSBjQltCHUQzbaHADkcPQrGFnIGhVyHU3Dzq4g46uEv8mrL5sxL8FjiS9LvekeUlL2NRqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" }, - "peerDependencies": { - "@angular/compiler-cli": "^16.0.0", - "@angular/localize": "^16.0.0", - "@angular/platform-server": "^16.0.0", - "@angular/service-worker": "^16.0.0", - "jest": "^29.5.0", - "jest-environment-jsdom": "^29.5.0", - "karma": "^6.3.0", - "ng-packagr": "^16.0.0", - "protractor": "^7.0.0", - "tailwindcss": "^2.0.0 || ^3.0.0", - "typescript": ">=4.9.3 <5.2" + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-search": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-5.32.0.tgz", + "integrity": "sha512-kmK5nVkKb4DSUgwbveMKe4X3xHdMsPsOVJeEzBvFJ+oS7CkBPmpfHAEq+CcmiPJs20YMv6yVtUT9yPWL5WgAhg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" }, - "peerDependenciesMeta": { - "@angular/localize": { - "optional": true - }, - "@angular/platform-server": { - "optional": true - }, - "@angular/service-worker": { - "optional": true - }, - "jest": { - "optional": true - }, - "jest-environment-jsdom": { - "optional": true - }, - "karma": { - "optional": true - }, - "ng-packagr": { - "optional": true - }, - "protractor": { - "optional": true - }, - "tailwindcss": { - "optional": true - } + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/ingestion": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/@algolia/ingestion/-/ingestion-1.32.0.tgz", + "integrity": "sha512-PZTqjJbx+fmPuT2ud1n4vYDSF1yrT//vOGI9HNYKNA0PM0xGUBWigf5gRivHsXa3oBnUlTyHV9j7Kqx5BHbVHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/monitoring": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/@algolia/monitoring/-/monitoring-1.32.0.tgz", + "integrity": "sha512-kYYoOGjvNQAmHDS1v5sBj+0uEL9RzYqH/TAdq8wmcV+/22weKt/fjh+6LfiqkS1SCZFYYrwGnirrUhUM36lBIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/recommend": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/recommend/-/recommend-5.32.0.tgz", + "integrity": "sha512-jyIBLdskjPAL7T1g57UMfUNx+PzvYbxKslwRUKBrBA6sNEsYCFdxJAtZSLUMmw6MC98RDt4ksmEl5zVMT5bsuw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-browser-xhr": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.32.0.tgz", + "integrity": "sha512-eDp14z92Gt6JlFgiexImcWWH+Lk07s/FtxcoDaGrE4UVBgpwqOO6AfQM6dXh1pvHxlDFbMJihHc/vj3gBhPjqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-fetch": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.32.0.tgz", + "integrity": "sha512-rnWVglh/K75hnaLbwSc2t7gCkbq1ldbPgeIKDUiEJxZ4mlguFgcltWjzpDQ/t1LQgxk9HdIFcQfM17Hid3aQ6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0" + }, + "engines": { + "node": ">= 14.0.0" } }, - "node_modules/@angular-devkit/build-angular/node_modules/tslib": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", - "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==", - "dev": true + "node_modules/@algolia/requester-node-http": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.32.0.tgz", + "integrity": "sha512-LbzQ04+VLkzXY4LuOzgyjqEv/46Gwrk55PldaglMJ4i4eDXSRXGKkwJpXFwsoU+c1HMQlHIyjJBhrfsfdyRmyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.32.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } }, - "node_modules/@angular-devkit/build-webpack": { - "version": "0.1602.7", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1602.7.tgz", - "integrity": "sha512-3+MV9ehn65XUUMSBBgfg5K2zZs2jhif75ypI+BBUfZDUWeKR5MeGJy0aDHZ+2H94kPkmSD3PrkOuitWdnDjTgA==", + "node_modules/@angular-devkit/architect": { + "version": "0.2001.4", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2001.4.tgz", + "integrity": "sha512-lZ9wYv1YDcw2Ggi2/TXXhYs7JAukAJHdZGZn6Co5s1QE774bVled1qK8pf46rSsG1BGn1a9VFsRFOlB/sx6WjA==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-devkit/architect": "0.1602.7", - "rxjs": "7.8.1" + "@angular-devkit/core": "20.1.4", + "rxjs": "7.8.2" }, "engines": { - "node": "^16.14.0 || >=18.10.0", + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", "yarn": ">= 1.13.0" - }, - "peerDependencies": { - "webpack": "^5.30.0", - "webpack-dev-server": "^4.0.0" } }, "node_modules/@angular-devkit/core": { - "version": "16.2.7", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-16.2.7.tgz", - "integrity": "sha512-XskObYrg7NRdEuHnSVZOM7OeinEL8HzugjmKnawAa+dAbFCCoGsVWjMliA/Q8sb1yfGkyL0WW7DZABZj7EGwWA==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.1.4.tgz", + "integrity": "sha512-I5CllQoDrVL20/+0JZk/gmR14n/+mwYIoD1RfBDwnaiHlO9o2whRsJj+LeUd9IA5Hf9MPPx+EkOVQt3vsYU0sQ==", "dev": true, + "license": "MIT", "dependencies": { - "ajv": "8.12.0", - "ajv-formats": "2.1.1", - "jsonc-parser": "3.2.0", - "picomatch": "2.3.1", - "rxjs": "7.8.1", + "ajv": "8.17.1", + "ajv-formats": "3.0.1", + "jsonc-parser": "3.3.1", + "picomatch": "4.0.2", + "rxjs": "7.8.2", "source-map": "0.7.4" }, "engines": { - "node": "^16.14.0 || >=18.10.0", + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", "yarn": ">= 1.13.0" }, "peerDependencies": { - "chokidar": "^3.5.2" + "chokidar": "^4.0.0" }, "peerDependenciesMeta": { "chokidar": { @@ -270,261 +307,371 @@ } }, "node_modules/@angular-devkit/schematics": { - "version": "16.2.7", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-16.2.7.tgz", - "integrity": "sha512-zu3xHwA4w+kXHkyyjGl3i7uSU2/kKLPKuyyixw0WLcKUQCYd7TWmu8OC0qCDa42XkxP9gGL091dJFu56exgneA==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.1.4.tgz", + "integrity": "sha512-dyvlQcXf5XKPRC1qTqzIGkltFHh8mYujPk6qt6Ah2nKp7UeA80ZSAocwOmlBg8t7GjN8ICe4Kese5scT1ByFXQ==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-devkit/core": "16.2.7", - "jsonc-parser": "3.2.0", - "magic-string": "0.30.1", - "ora": "5.4.1", - "rxjs": "7.8.1" + "@angular-devkit/core": "20.1.4", + "jsonc-parser": "3.3.1", + "magic-string": "0.30.17", + "ora": "8.2.0", + "rxjs": "7.8.2" }, "engines": { - "node": "^16.14.0 || >=18.10.0", + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", "yarn": ">= 1.13.0" } }, "node_modules/@angular-eslint/builder": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/builder/-/builder-16.2.0.tgz", - "integrity": "sha512-SZjXOi3YIjuX2CocuRsR2QH6k1ca9lRO6IMm0YIYMmBPFCRP2KFHkL6aQnXM6DSaymQNN2TXfpuvUd45NxhU1w==", + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/builder/-/builder-20.1.1.tgz", + "integrity": "sha512-pfCYfocX79CZ5nokZF4gVScUGyLWRKQHZsUkQ5V/1hsaGsahvzDRjxsYz0J9rO0ligSa2pwgUCXEwSY8hhHQBw==", "dev": true, + "license": "MIT", "dependencies": { - "@nx/devkit": "16.5.1", - "nx": "16.5.1" + "@angular-devkit/architect": ">= 0.2000.0 < 0.2100.0", + "@angular-devkit/core": ">= 20.0.0 < 21.0.0" }, "peerDependencies": { - "eslint": "^7.20.0 || ^8.0.0", + "eslint": "^8.57.0 || ^9.0.0", "typescript": "*" } }, "node_modules/@angular-eslint/bundled-angular-compiler": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-16.2.0.tgz", - "integrity": "sha512-ct9orDYxkMl2+uvM7UBfgV28Dq57V4dEs+Drh7cD673JIMa6sXbgmd0QEtm8W3cmyK/jcTzmuoufxbH7hOxd6g==", - "dev": true + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-20.1.1.tgz", + "integrity": "sha512-hEWh/upyTj2bhyRmbNnGtlOXhBSEHwLg8/9YYhwmiNApQwKcvcg7lkstZMEVrKievNHZT6Wh4dWZvjRjMqLNSg==", + "dev": true, + "license": "MIT" }, "node_modules/@angular-eslint/eslint-plugin": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin/-/eslint-plugin-16.2.0.tgz", - "integrity": "sha512-zdiAIox1T+B71HL+A8m+1jWdU34nvPGLhCRw/uZNwHzknsF4tYzNQ9W7T/SC/g/2s1yT2yNosEVNJSGSFvunJg==", + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin/-/eslint-plugin-20.1.1.tgz", + "integrity": "sha512-h+D6T35UGIuG0keYPH7dc6OTdfTVJ8GoIhCIpoAmVGhdIdfXIISvDvvX/QPiZtTcefik3vEZEGRiI/Nzc5xImw==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-eslint/utils": "16.2.0", - "@typescript-eslint/utils": "5.62.0" + "@angular-eslint/bundled-angular-compiler": "20.1.1", + "@angular-eslint/utils": "20.1.1", + "ts-api-utils": "^2.1.0" }, "peerDependencies": { - "eslint": "^7.20.0 || ^8.0.0", + "@typescript-eslint/utils": "^7.11.0 || ^8.0.0", + "eslint": "^8.57.0 || ^9.0.0", "typescript": "*" } }, "node_modules/@angular-eslint/eslint-plugin-template": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-16.2.0.tgz", - "integrity": "sha512-YFdQ6hHX6NlQj0lfogZwfyKjU8pqkJU+Zsk0ehjlXP8VfKFVmDeQT5/Xr6Df9C8pveC3hvq6Jgd8vo67S9Enxg==", + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-20.1.1.tgz", + "integrity": "sha512-dRqfxYvgOC4DZqvRTmxoIUMeIqTzcIkRcMVEuP8qvR10KHAWDkV7xT4f7BAee9deI/lzoAk3tk5wkQg6POQo7Q==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-eslint/bundled-angular-compiler": "16.2.0", - "@angular-eslint/utils": "16.2.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "aria-query": "5.3.0", - "axobject-query": "3.2.1" + "@angular-eslint/bundled-angular-compiler": "20.1.1", + "@angular-eslint/utils": "20.1.1", + "aria-query": "5.3.2", + "axobject-query": "4.1.0" }, "peerDependencies": { - "eslint": "^7.20.0 || ^8.0.0", + "@angular-eslint/template-parser": "20.1.1", + "@typescript-eslint/types": "^7.11.0 || ^8.0.0", + "@typescript-eslint/utils": "^7.11.0 || ^8.0.0", + "eslint": "^8.57.0 || ^9.0.0", "typescript": "*" } }, "node_modules/@angular-eslint/schematics": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/schematics/-/schematics-16.2.0.tgz", - "integrity": "sha512-2JUVR7hAKx37mgWeDjvyWEMH5uSeeksYuaQT5wwlgIzgrO4BNFuqs6Rgyp2jiYa7BFMX/qHULSa+bSq5J5ceEA==", + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/schematics/-/schematics-20.1.1.tgz", + "integrity": "sha512-4sXU0Gr/RhdW3xSBFRzjhTO9mk6ugXUhUIPc1FRta1pmNnbmkvx22ewnKZE8IeRl8PMyk6xJuxZHq19CW1oWOA==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-eslint/eslint-plugin": "16.2.0", - "@angular-eslint/eslint-plugin-template": "16.2.0", - "@nx/devkit": "16.5.1", - "ignore": "5.2.4", - "nx": "16.5.1", - "strip-json-comments": "3.1.1", - "tmp": "0.2.1" - }, - "peerDependencies": { - "@angular/cli": ">= 16.0.0 < 17.0.0" + "@angular-devkit/core": ">= 20.0.0 < 21.0.0", + "@angular-devkit/schematics": ">= 20.0.0 < 21.0.0", + "@angular-eslint/eslint-plugin": "20.1.1", + "@angular-eslint/eslint-plugin-template": "20.1.1", + "ignore": "7.0.5", + "semver": "7.7.2", + "strip-json-comments": "3.1.1" } }, "node_modules/@angular-eslint/template-parser": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-16.2.0.tgz", - "integrity": "sha512-v2jVKTy2wN7iM9nHpBkxLn2wfL8jSl4IlPrXThIqj8No2VHtpLQZPKuXbGPUXQX05VS2Mj5feScQ36ZVGS8Rbw==", + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-20.1.1.tgz", + "integrity": "sha512-giIMYORf8P8MbBxh6EUfiR/7Y+omxJtK2C7a8lYTtLSOIGO0D8c8hXx9hTlPcdupVX+xZXDuZ85c9JDen+JSSA==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-eslint/bundled-angular-compiler": "16.2.0", - "eslint-scope": "^7.0.0" + "@angular-eslint/bundled-angular-compiler": "20.1.1", + "eslint-scope": "^8.0.2" }, "peerDependencies": { - "eslint": "^7.20.0 || ^8.0.0", + "eslint": "^8.57.0 || ^9.0.0", "typescript": "*" } }, "node_modules/@angular-eslint/utils": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-16.2.0.tgz", - "integrity": "sha512-NxMRwnlIgzmbJQfWkfd9y3Sz0hzjFdK5LH44i+3D5NhpPdZ6SzwHAjMYWoYsmmNQX5tlDXoicYF9Mz9Wz8DJ/A==", + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-20.1.1.tgz", + "integrity": "sha512-hqbzGqa/0Ua90r4TMn4oZVnLuwIF6dqEfH7SlstB224h/7+nKoi67aHkmUq7VItWXpDDe+f1opeR01GKS9fNog==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-eslint/bundled-angular-compiler": "16.2.0", - "@typescript-eslint/utils": "5.62.0" + "@angular-eslint/bundled-angular-compiler": "20.1.1" }, "peerDependencies": { - "eslint": "^7.20.0 || ^8.0.0", + "@typescript-eslint/utils": "^7.11.0 || ^8.0.0", + "eslint": "^8.57.0 || ^9.0.0", "typescript": "*" } }, "node_modules/@angular/animations": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-16.2.10.tgz", - "integrity": "sha512-UudunZoyFWWNpuWkwiBxC3cleLCVJGHIfMgypFwC35YjtiIlRJ0r4nVkc96Rq1xd4mT71Dbk1kQHc8urB8A7aw==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-20.1.4.tgz", + "integrity": "sha512-y4mq2r6jhAj5QuA3UnWkVfok0EcA22uH+XVb4HBKY7q23/xaQYu2CGdVOVpdUsaPTf3zRD1DkAnTkV3J3ZHIiA==", + "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/core": "16.2.10" + "@angular/common": "20.1.4", + "@angular/core": "20.1.4" } }, - "node_modules/@angular/cdk": { - "version": "16.2.9", - "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-16.2.9.tgz", - "integrity": "sha512-TrLV68YpddUx3t2rs8W29CPk8YkgNGA8PKHwjB4Xvo1yaEH5XUnsw3MQCh42Ee7FKseaqzFgG85USZXAK0IB0A==", + "node_modules/@angular/build": { + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/build/-/build-20.1.4.tgz", + "integrity": "sha512-DClI15kl0t1YijptthQfw0cRSj8Opf8ACsZa1xT3o77BALpeusxS2QzSy6xGH+QnwesTyJFux1oRYjtAKmE2YA==", + "dev": true, + "license": "MIT", "dependencies": { - "tslib": "^2.3.0" + "@ampproject/remapping": "2.3.0", + "@angular-devkit/architect": "0.2001.4", + "@babel/core": "7.27.7", + "@babel/helper-annotate-as-pure": "7.27.3", + "@babel/helper-split-export-declaration": "7.24.7", + "@inquirer/confirm": "5.1.13", + "@vitejs/plugin-basic-ssl": "2.1.0", + "beasties": "0.3.4", + "browserslist": "^4.23.0", + "esbuild": "0.25.5", + "https-proxy-agent": "7.0.6", + "istanbul-lib-instrument": "6.0.3", + "jsonc-parser": "3.3.1", + "listr2": "8.3.3", + "magic-string": "0.30.17", + "mrmime": "2.0.1", + "parse5-html-rewriting-stream": "7.1.0", + "picomatch": "4.0.2", + "piscina": "5.1.2", + "rollup": "4.44.1", + "sass": "1.89.2", + "semver": "7.7.2", + "source-map-support": "0.5.21", + "tinyglobby": "0.2.14", + "vite": "7.0.6", + "watchpack": "2.4.4" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" }, "optionalDependencies": { - "parse5": "^7.1.2" + "lmdb": "3.4.1" + }, + "peerDependencies": { + "@angular/compiler": "^20.0.0", + "@angular/compiler-cli": "^20.0.0", + "@angular/core": "^20.0.0", + "@angular/localize": "^20.0.0", + "@angular/platform-browser": "^20.0.0", + "@angular/platform-server": "^20.0.0", + "@angular/service-worker": "^20.0.0", + "@angular/ssr": "^20.1.4", + "karma": "^6.4.0", + "less": "^4.2.0", + "ng-packagr": "^20.0.0", + "postcss": "^8.4.0", + "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0", + "tslib": "^2.3.0", + "typescript": ">=5.8 <5.9", + "vitest": "^3.1.1" + }, + "peerDependenciesMeta": { + "@angular/core": { + "optional": true + }, + "@angular/localize": { + "optional": true + }, + "@angular/platform-browser": { + "optional": true + }, + "@angular/platform-server": { + "optional": true + }, + "@angular/service-worker": { + "optional": true + }, + "@angular/ssr": { + "optional": true + }, + "karma": { + "optional": true + }, + "less": { + "optional": true + }, + "ng-packagr": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tailwindcss": { + "optional": true + }, + "vitest": { + "optional": true + } + } + }, + "node_modules/@angular/cdk": { + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-20.1.4.tgz", + "integrity": "sha512-Uz0fLZRWpKG7xniXSw3Hr4QEvTlVurov07BBz6nRWseGxeHCDkFqKc3UEriovCQ7ylJdR6miIu7j+h4PWLH48g==", + "license": "MIT", + "dependencies": { + "parse5": "^8.0.0", + "tslib": "^2.3.0" }, "peerDependencies": { - "@angular/common": "^16.0.0 || ^17.0.0", - "@angular/core": "^16.0.0 || ^17.0.0", + "@angular/common": "^20.0.0 || ^21.0.0", + "@angular/core": "^20.0.0 || ^21.0.0", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/cli": { - "version": "16.2.7", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-16.2.7.tgz", - "integrity": "sha512-30yBAYzbrj/WM4tLiX4IU5byw0b5Y5LEzcpjYZglv/RXPrnevGlRXmgCulpt8wIdkd668N7kXEQ23nipuJDXMg==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-20.1.4.tgz", + "integrity": "sha512-VAQ/EBelBPiX1vV57TZJRPcao/e+Ee9IeLK43fsE2xL+GuEjrJ/fQXqt7OesrgIJHJBwUiX+j8pMMT6VfT1xSA==", "dev": true, + "license": "MIT", "dependencies": { - "@angular-devkit/architect": "0.1602.7", - "@angular-devkit/core": "16.2.7", - "@angular-devkit/schematics": "16.2.7", - "@schematics/angular": "16.2.7", + "@angular-devkit/architect": "0.2001.4", + "@angular-devkit/core": "20.1.4", + "@angular-devkit/schematics": "20.1.4", + "@inquirer/prompts": "7.6.0", + "@listr2/prompt-adapter-inquirer": "2.0.22", + "@modelcontextprotocol/sdk": "1.13.3", + "@schematics/angular": "20.1.4", "@yarnpkg/lockfile": "1.1.0", - "ansi-colors": "4.1.3", - "ini": "4.1.1", - "inquirer": "8.2.4", - "jsonc-parser": "3.2.0", - "npm-package-arg": "10.1.0", - "npm-pick-manifest": "8.0.1", - "open": "8.4.2", - "ora": "5.4.1", - "pacote": "15.2.0", - "resolve": "1.22.2", - "semver": "7.5.4", - "symbol-observable": "4.0.0", - "yargs": "17.7.2" + "algoliasearch": "5.32.0", + "ini": "5.0.0", + "jsonc-parser": "3.3.1", + "listr2": "8.3.3", + "npm-package-arg": "12.0.2", + "npm-pick-manifest": "10.0.0", + "pacote": "21.0.0", + "resolve": "1.22.10", + "semver": "7.7.2", + "yargs": "18.0.0", + "zod": "3.25.75" }, "bin": { "ng": "bin/ng.js" }, "engines": { - "node": "^16.14.0 || >=18.10.0", + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", "yarn": ">= 1.13.0" } }, "node_modules/@angular/common": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-16.2.10.tgz", - "integrity": "sha512-cLth66aboInNcWFjDBRmK30jC5KN10nKDDcv4U/r3TDTBpKOtnmTjNFFr7dmjfUmVhHFy/66piBMfpjZI93Rxg==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-20.1.4.tgz", + "integrity": "sha512-AL+HdsY5xL2iM1zZ55ce33U+w2LgPJZQwKvHXJJ/Hpk3rpFNamWtRPmJBeq8Z0dQV1lLTMM+2pUatH6p+5pvEg==", + "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/core": "16.2.10", + "@angular/core": "20.1.4", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/compiler": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-16.2.10.tgz", - "integrity": "sha512-ty6SfqkZlV2bLU/SSi3wmxrEFgPrK+WVslCNIr3FlTnCBdqpIbadHN2QB3A1d9XaNc7c4Tq5DQKh34cwMwNbuw==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.1.4.tgz", + "integrity": "sha512-gQbchh2ziK9QxZuHgEf7BUMCm/ayu6Zr9hst6itSecinUJgUeeSp3Z4vXjIBNBUKMPB135tWw9RGiVbW8saBmg==", + "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0" - }, - "peerDependencies": { - "@angular/core": "16.2.10" - }, - "peerDependenciesMeta": { - "@angular/core": { - "optional": true - } + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" } }, "node_modules/@angular/compiler-cli": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-16.2.10.tgz", - "integrity": "sha512-swgmtm4R23vQV9nJTXdDEFpOyIw3kz80mdT9qo3VId/2rqenOK253JsFypoqEj/fKzjV9gwXtTbmrMlhVyuyxw==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-20.1.4.tgz", + "integrity": "sha512-I603/3EmclgX4VUryBo3bxlF+8+fVucrW/V0leqNlt72ppFTphDiKiopogoJFWJxuULTo2V+7Koq8Em7kUO67Q==", + "license": "MIT", "dependencies": { - "@babel/core": "7.23.2", + "@babel/core": "7.28.0", "@jridgewell/sourcemap-codec": "^1.4.14", - "chokidar": "^3.0.0", + "chokidar": "^4.0.0", "convert-source-map": "^1.5.1", - "reflect-metadata": "^0.1.2", + "reflect-metadata": "^0.2.0", "semver": "^7.0.0", "tslib": "^2.3.0", - "yargs": "^17.2.1" + "yargs": "^18.0.0" }, "bin": { "ng-xi18n": "bundles/src/bin/ng_xi18n.js", - "ngc": "bundles/src/bin/ngc.js", - "ngcc": "bundles/ngcc/index.js" + "ngc": "bundles/src/bin/ngc.js" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/compiler": "16.2.10", - "typescript": ">=4.9.3 <5.2" + "@angular/compiler": "20.1.4", + "typescript": ">=5.8 <5.9" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/@angular/compiler-cli/node_modules/@babel/core": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.2.tgz", - "integrity": "sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.0.tgz", + "integrity": "sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==", + "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helpers": "^7.23.2", - "@babel/parser": "^7.23.0", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.23.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.0", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.27.3", + "@babel/helpers": "^7.27.6", + "@babel/parser": "^7.28.0", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.0", + "@babel/types": "^7.28.0", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -542,92 +689,81 @@ "node_modules/@angular/compiler-cli/node_modules/@babel/core/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "license": "MIT" }, "node_modules/@angular/compiler-cli/node_modules/@babel/core/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, - "node_modules/@angular/compiler-cli/node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", - "dependencies": { - "@babel/types": "^7.23.0", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@angular/compiler-cli/node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@angular/core": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-16.2.10.tgz", - "integrity": "sha512-0XTsPjNflFhOl2CfNEdGeDOklG2t+m/D3g10Y7hg9dBjC1dURUEqTmM4d6J7JNbBURrP+/iP7uLsn3WRSipGUw==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-20.1.4.tgz", + "integrity": "sha512-aWDux64a9usuVU2SnF0epqjXAj8JO8jViUzZAJAuFKSCtkeNzqP+Z6DjkqsCKrNvGP7xkX1XhhepUygxgh7/6A==", + "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { + "@angular/compiler": "20.1.4", "rxjs": "^6.5.3 || ^7.4.0", - "zone.js": "~0.13.0" + "zone.js": "~0.15.0" + }, + "peerDependenciesMeta": { + "@angular/compiler": { + "optional": true + }, + "zone.js": { + "optional": true + } } }, "node_modules/@angular/forms": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-16.2.10.tgz", - "integrity": "sha512-TZliEtSWIL1UzY8kjed4QcMawWS8gk/H60KVgzCh83NGE0wd1OGv20Z5OR7O8j07dxB9vaxY7CQz/8eCz5KaNQ==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.1.4.tgz", + "integrity": "sha512-5gUwcV+JpzJ2rSPo1nR6iNz2Dm3iRcVCvRTsVnKhFbZCIbGLihLpoCuittsgUY/C9wh/rnmXlatmLJ7giSuUZA==", + "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/common": "16.2.10", - "@angular/core": "16.2.10", - "@angular/platform-browser": "16.2.10", + "@angular/common": "20.1.4", + "@angular/core": "20.1.4", + "@angular/platform-browser": "20.1.4", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/language-service": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-16.2.10.tgz", - "integrity": "sha512-r3KNXizhZDtj5/L68xnrtgHp5iSYf4NPyWHovoyAWClabsZ64cK38fOzMNCT/otrwqJWlz9ELnW/b/pxR+M9sw==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-20.1.4.tgz", + "integrity": "sha512-uesg1dNjHkORfYWEXJwfPUyYVEUf5Bb8taxt1AwgYx+NxKKWaNdJQlJu6sAwmPSFlWYMX44Dzk/geLHAq++Nhg==", "dev": true, + "license": "MIT", "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" } }, "node_modules/@angular/localize": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-16.2.10.tgz", - "integrity": "sha512-LrumtnstYOJ7h1FoXrO7bFxAgtoeQmhkRWHUSIV0J5hhnembPL5Kgc7hsGsMhPyIJQ1Opgx6Gdi7+NWQHpC/wg==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/localize/-/localize-20.1.4.tgz", + "integrity": "sha512-yDkQef11JBkVIRiaDA2Iq/GYcu0OK4NMun2r56jTW/Kq+LnKn5q/6usWcN5rbvg7kQpc1ZOxwDGMACiyIYWHmQ==", + "license": "MIT", "dependencies": { - "@babel/core": "7.23.2", - "fast-glob": "3.3.0", - "yargs": "^17.2.1" + "@babel/core": "7.28.0", + "@types/babel__core": "7.20.5", + "tinyglobby": "^0.2.12", + "yargs": "^18.0.0" }, "bin": { "localize-extract": "tools/bundles/src/extract/cli.js", @@ -635,28 +771,29 @@ "localize-translate": "tools/bundles/src/translate/cli.js" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/compiler": "16.2.10", - "@angular/compiler-cli": "16.2.10" + "@angular/compiler": "20.1.4", + "@angular/compiler-cli": "20.1.4" } }, "node_modules/@angular/localize/node_modules/@babel/core": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.2.tgz", - "integrity": "sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.0.tgz", + "integrity": "sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==", + "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helpers": "^7.23.2", - "@babel/parser": "^7.23.0", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.23.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.0", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.27.3", + "@babel/helpers": "^7.27.6", + "@babel/parser": "^7.28.0", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.0", + "@babel/types": "^7.28.0", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -671,75 +808,36 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@angular/localize/node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", - "dependencies": { - "@babel/types": "^7.23.0", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@angular/localize/node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@angular/localize/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" - }, - "node_modules/@angular/localize/node_modules/fast-glob": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", - "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "license": "MIT" }, "node_modules/@angular/localize/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/@angular/platform-browser": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-16.2.10.tgz", - "integrity": "sha512-TOZiK7ji550F8G39Ri255NnK1+2Xlr74RiElJdQct4TzfN0lqNf2KRDFFNwDohkP/78FUzcP4qBxs+Nf8M7OuQ==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.1.4.tgz", + "integrity": "sha512-z86NsGSwm5pXCACdWBbp7SC1Xn+UGvuoRqTsi0dNUXT/3WrP6MvZT3TfNKwM63GLUqFAICSt7uFXS84D72ukvA==", + "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/animations": "16.2.10", - "@angular/common": "16.2.10", - "@angular/core": "16.2.10" + "@angular/animations": "20.1.4", + "@angular/common": "20.1.4", + "@angular/core": "20.1.4" }, "peerDependenciesMeta": { "@angular/animations": { @@ -748,84 +846,84 @@ } }, "node_modules/@angular/platform-browser-dynamic": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-16.2.10.tgz", - "integrity": "sha512-YVmhAjOmsp2SWRonv6Mr/qXuKroCiew9asd1IlAZ//wqcml9ZrNAcX3WlDa8ZqdmOplQb0LuvvirfNB/6Is/jg==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-20.1.4.tgz", + "integrity": "sha512-bH4CjZ2O2oqRaKd36Xe/EhZDHx769pPf9oR4oITsZJ10bIhkWcaG9pgaW+W1PGc+nMevVpJ7XfG9m9n6+3bEfw==", + "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/common": "16.2.10", - "@angular/compiler": "16.2.10", - "@angular/core": "16.2.10", - "@angular/platform-browser": "16.2.10" + "@angular/common": "20.1.4", + "@angular/compiler": "20.1.4", + "@angular/core": "20.1.4", + "@angular/platform-browser": "20.1.4" } }, "node_modules/@angular/router": { - "version": "16.2.10", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-16.2.10.tgz", - "integrity": "sha512-ndiq2NkGZ8hTsyL/KK8qsiR3UA0NjOFIn1jtGXOKtHryXZ6vSTtkhtkE4h4+G6/QNTL1IKtocFhOQt/xsc7DUA==", + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-20.1.4.tgz", + "integrity": "sha512-Etd2V2Qw+clQhJORBm7tMphCCweLNKbZvUc+lh1r7yrbBPnZvK3yd69W9ZQoRzrSSI25VGQDyzQXgpLUlHoE+w==", + "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { - "@angular/common": "16.2.10", - "@angular/core": "16.2.10", - "@angular/platform-browser": "16.2.10", + "@angular/common": "20.1.4", + "@angular/core": "20.1.4", + "@angular/platform-browser": "20.1.4", "rxjs": "^6.5.3 || ^7.4.0" } }, - "node_modules/@assemblyscript/loader": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz", - "integrity": "sha512-H71nDOOL8Y7kWRLqf6Sums+01Q5msqBW2KhDUTemh1tvY04eSkSXrK0uj/4mmY0Xr16/3zyZmsrxN7CKuRbNRg==", - "dev": true - }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "license": "MIT", "dependencies": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.2.tgz", - "integrity": "sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.0.tgz", + "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", - "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.7.tgz", + "integrity": "sha512-BU2f9tlKQ5CAthiMIgpzAh4eDTLWo1mqi9jqE2OxMG0E/OM199VJt2q8BztTxpnSW0i1ymdwLXRJnYzvDM5r2w==", + "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.9", - "@babel/helper-compilation-targets": "^7.22.9", - "@babel/helper-module-transforms": "^7.22.9", - "@babel/helpers": "^7.22.6", - "@babel/parser": "^7.22.7", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.8", - "@babel/types": "^7.22.5", - "convert-source-map": "^1.7.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.27.5", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.27.3", + "@babel/helpers": "^7.27.6", + "@babel/parser": "^7.27.7", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.27.7", + "@babel/types": "^7.27.7", + "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2", + "json5": "^2.2.3", "semver": "^6.3.1" }, "engines": { @@ -836,60 +934,59 @@ "url": "https://opencollective.com/babel" } }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "license": "MIT" + }, "node_modules/@babel/core/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/generator": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.9.tgz", - "integrity": "sha512-KtLMbmicyuK2Ak/FTCJVbDnkN1SlT8/kceFTiuDiiRUUSMnHMidxSCdG4ndkTOHHpoomWe/4xkvHkEOncwjYIw==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.0.tgz", + "integrity": "sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" + "@babel/parser": "^7.28.0", + "@babel/types": "^7.28.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", - "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", - "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.22.15" + "@babel/types": "^7.27.3" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -901,51 +998,42 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz", - "integrity": "sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-member-expression-to-functions": "^7.22.15", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "semver": "^6.3.1" - }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "license": "MIT", "engines": { "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", - "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", - "dev": true, + "node_modules/@babel/helper-module-transforms": { + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.27.3.tgz", + "integrity": "sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg==", + "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "regexpu-core": "^5.3.1", - "semver": "^6.3.1" + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.27.3" }, "engines": { "node": ">=6.9.0" @@ -954,2779 +1042,2508 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz", - "integrity": "sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug==", + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz", + "integrity": "sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" + "@babel/types": "^7.24.7" }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-function-name/node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "node_modules/@babel/helpers": { + "version": "7.28.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.2.tgz", + "integrity": "sha512-/V9771t+EgXz62aCcyofnQhGM8DQACbRhvzKFsXKC9QM+5MadF8ZmIm0crDMaz3+o0h0zXfJnd4EhbYbxsrcFw==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", - "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", - "dev": true, + "node_modules/@babel/parser": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", + "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.23.0" + "@babel/types": "^7.28.0" + }, + "bin": { + "parser": "bin/babel-parser.js" }, "engines": { - "node": ">=6.9.0" + "node": ">=6.0.0" } }, - "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.22.15" + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz", - "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==", + "node_modules/@babel/traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.0.tgz", + "integrity": "sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg==", + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.0", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.0", + "debug": "^4.3.1" }, "engines": { "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", - "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", - "dev": true, + "node_modules/@babel/types": { + "version": "7.28.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.2.tgz", + "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": ">=0.1.90" } }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", - "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", - "dev": true, + "node_modules/@coreui/chartjs": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@coreui/chartjs/-/chartjs-4.1.0.tgz", + "integrity": "sha512-EzYUABhRKmJC8P7B0gP2xfcywig7HWTSHHF0H5hwOcJ1f5MZkXVGIdulkINCAKLUuWQopynuErFJS7wb+M0t3A==", + "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-wrap-function": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "@coreui/coreui": "^5.3.0", + "chart.js": "^4.4.7" } }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", - "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", - "dev": true, + "node_modules/@coreui/coreui": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/@coreui/coreui/-/coreui-5.4.1.tgz", + "integrity": "sha512-uDWb6yz914HG5GA7GQX9QUAV1PdU9xLkDwzsaNKENmzs3ryrAocykOp11TtsCyJR0ep5wi+1tQtFjhr4k/YSbQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/coreui" + } + ], + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-member-expression-to-functions": "^7.22.15", - "@babel/helper-optimise-call-expression": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" + "html-entities": "^2.6.0", + "html-to-md": "^0.8.8" }, "peerDependencies": { - "@babel/core": "^7.0.0" + "@popperjs/core": "^2.11.8" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } + "node_modules/@coreui/icons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@coreui/icons/-/icons-3.0.1.tgz", + "integrity": "sha512-u9UKEcRMyY9pa4jUoLij8pAR03g5g6TLWV33/Mx2ix8sffyi0eO4fLV8DSTQljDCw938zt7KYog5cVKEAJUxxg==", + "license": "MIT" }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", - "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.5.tgz", + "integrity": "sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==", + "cpu": [ + "ppc64" + ], "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dependencies": { - "@babel/types": "^7.22.5" - }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.5.tgz", + "integrity": "sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "node_modules/@esbuild/android-arm64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.5.tgz", + "integrity": "sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "node_modules/@esbuild/android-x64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.5.tgz", + "integrity": "sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/helper-validator-option": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", - "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.5.tgz", + "integrity": "sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", - "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.5.tgz", + "integrity": "sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-function-name": "^7.22.5", - "@babel/template": "^7.22.15", - "@babel/types": "^7.22.19" - }, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/helper-wrap-function/node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.5.tgz", + "integrity": "sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/helpers": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.2.tgz", - "integrity": "sha512-lzchcp8SjTSVe/fPmLwtWVBFC7+Tbn8LGHDVfDp9JGxpAY5opSaEFgt8UQvrnECWOTdji2mOWMz1rOhkHscmGQ==", - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.23.0" - }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.5.tgz", + "integrity": "sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/helpers/node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.5.tgz", + "integrity": "sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" - }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.5.tgz", + "integrity": "sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6.9.0" + "node": ">=18" } }, - "node_modules/@babel/parser": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", - "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", - "bin": { - "parser": "bin/babel-parser.js" - }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.5.tgz", + "integrity": "sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6.0.0" + "node": ">=18" } }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.15.tgz", - "integrity": "sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg==", + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.5.tgz", + "integrity": "sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==", + "cpu": [ + "loong64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "node": ">=18" } }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.15.tgz", - "integrity": "sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ==", + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.5.tgz", + "integrity": "sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==", + "cpu": [ + "mips64el" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.22.15" - }, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" + "node": ">=18" } }, - "node_modules/@babel/plugin-proposal-async-generator-functions": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz", - "integrity": "sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.", + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.5.tgz", + "integrity": "sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==", + "cpu": [ + "ppc64" + ], "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.5.tgz", + "integrity": "sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==", + "cpu": [ + "riscv64" + ], "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.", + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.5.tgz", + "integrity": "sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==", + "cpu": [ + "s390x" + ], "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "node_modules/@esbuild/linux-x64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.5.tgz", + "integrity": "sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.5.tgz", + "integrity": "sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.5.tgz", + "integrity": "sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.5.tgz", + "integrity": "sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.5.tgz", + "integrity": "sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz", - "integrity": "sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==", + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.5.tgz", + "integrity": "sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.5.tgz", - "integrity": "sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==", + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.5.tgz", + "integrity": "sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.5.tgz", + "integrity": "sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==", + "cpu": [ + "ia32" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "node_modules/@esbuild/win32-x64": { + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.5.tgz", + "integrity": "sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "node_modules/@eslint-community/eslint-utils": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", + "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "node_modules/@eslint/config-array": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "brace-expansion": "^1.1.7" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "engines": { + "node": "*" } }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "node_modules/@eslint/config-helpers": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", + "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "node_modules/@eslint/core": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", + "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" + "@types/json-schema": "^7.0.15" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" }, "engines": { - "node": ">=6.9.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz", - "integrity": "sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==", + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.2.tgz", - "integrity": "sha512-BBYVGxbDVHfoeXbOwcagAkOQAm9NxoTdMGfTqghu1GrvadSaw6iW3Je6IcL5PNOw8VwjxqBECXy50/iCQSY/lQ==", + "node_modules/@eslint/eslintrc/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.20", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, + "license": "MIT", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">= 4" } }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.22.5.tgz", - "integrity": "sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==", + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { - "@babel/helper-module-imports": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.5" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": "*" } }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz", - "integrity": "sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==", + "node_modules/@eslint/js": { + "version": "9.32.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz", + "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://eslint.org/donate" } }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.0.tgz", - "integrity": "sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g==", + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "Apache-2.0", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.5.tgz", - "integrity": "sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==", + "node_modules/@eslint/plugin-kit": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.4.tgz", + "integrity": "sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@eslint/core": "^0.15.1", + "levn": "^0.4.1" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.11.tgz", - "integrity": "sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g==", + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.11", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, + "license": "Apache-2.0", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" + "node": ">=18.18.0" } }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz", - "integrity": "sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==", + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.9", - "@babel/helper-split-export-declaration": "^7.22.6", - "globals": "^11.1.0" + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18.18.0" } }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz", - "integrity": "sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==", + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/template": "^7.22.5" - }, + "license": "Apache-2.0", "engines": { - "node": ">=6.9.0" + "node": ">=18.18" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.0.tgz", - "integrity": "sha512-vaMdgNXFkYrB+8lbgniSYWHsgqK5gjaMNcc84bMIOMRLH0L9AqYq3hwMdvnyqj1OPqea8UtjPEuS/DCenah1wg==", + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "Apache-2.0", "engines": { - "node": ">=6.9.0" + "node": ">=12.22" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz", - "integrity": "sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==", + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "Apache-2.0", "engines": { - "node": ">=6.9.0" + "node": ">=18.18" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz", - "integrity": "sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==", + "node_modules/@inquirer/checkbox": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.2.0.tgz", + "integrity": "sha512-fdSw07FLJEU5vbpOPzXo5c6xmMGDzbZE2+niuDHX5N6mc6V0Ebso/q3xiHra4D73+PMsC8MJmcaZKuAAoaQsSA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@inquirer/core": "^10.1.15", + "@inquirer/figures": "^1.0.13", + "@inquirer/type": "^3.0.8", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.11.tgz", - "integrity": "sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA==", + "node_modules/@inquirer/confirm": { + "version": "5.1.13", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.13.tgz", + "integrity": "sha512-EkCtvp67ICIVVzjsquUiVSd+V5HRGOGQfsqA4E4vMWhYnB7InUL0pa0TIWt1i+OfP16Gkds8CdIu6yGZwOM1Yw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" + "@inquirer/core": "^10.1.14", + "@inquirer/type": "^3.0.7" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz", - "integrity": "sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==", + "node_modules/@inquirer/core": { + "version": "10.1.15", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.15.tgz", + "integrity": "sha512-8xrp836RZvKkpNbVvgWUlxjT4CraKk2q+I3Ksy+seI2zkcE+y6wNs1BVhgcv8VyImFecUhdQrYLdW32pAjwBdA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "@inquirer/figures": "^1.0.13", + "@inquirer/type": "^3.0.8", + "ansi-escapes": "^4.3.2", + "cli-width": "^4.1.0", + "mute-stream": "^2.0.0", + "signal-exit": "^4.1.0", + "wrap-ansi": "^6.2.0", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.11.tgz", - "integrity": "sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw==", + "node_modules/@inquirer/editor": { + "version": "4.2.15", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.15.tgz", + "integrity": "sha512-wst31XT8DnGOSS4nNJDIklGKnf+8shuauVrWzgKegWUe28zfCftcWZ2vktGdzJgcylWSS2SrDnYUb6alZcwnCQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + "@inquirer/core": "^10.1.15", + "@inquirer/type": "^3.0.8", + "external-editor": "^3.1.0" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz", - "integrity": "sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==", + "node_modules/@inquirer/expand": { + "version": "4.0.17", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.17.tgz", + "integrity": "sha512-PSqy9VmJx/VbE3CT453yOfNa+PykpKg/0SYP7odez1/NWBGuDXgPhp4AeGYYKjhLn5lUUavVS/JbeYMPdH50Mw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@inquirer/core": "^10.1.15", + "@inquirer/type": "^3.0.8", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz", - "integrity": "sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==", + "node_modules/@inquirer/figures": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.13.tgz", + "integrity": "sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw==", "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "MIT", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.11.tgz", - "integrity": "sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw==", + "node_modules/@inquirer/input": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.2.1.tgz", + "integrity": "sha512-tVC+O1rBl0lJpoUZv4xY+WGWY8V5b0zxU1XDsMsIHYregdh7bN5X5QnIONNBAl0K765FYlAfNHS2Bhn7SSOVow==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" + "@inquirer/core": "^10.1.15", + "@inquirer/type": "^3.0.8" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz", - "integrity": "sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==", + "node_modules/@inquirer/number": { + "version": "3.0.17", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.17.tgz", + "integrity": "sha512-GcvGHkyIgfZgVnnimURdOueMk0CztycfC8NZTiIY9arIAkeOgt6zG57G+7vC59Jns3UX27LMkPKnKWAOF5xEYg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@inquirer/core": "^10.1.15", + "@inquirer/type": "^3.0.8" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.11.tgz", - "integrity": "sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ==", + "node_modules/@inquirer/password": { + "version": "4.0.17", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.17.tgz", + "integrity": "sha512-DJolTnNeZ00E1+1TW+8614F7rOJJCM4y4BAGQ3Gq6kQIG+OJ4zr3GLjIjVVJCbKsk2jmkmv6v2kQuN/vriHdZA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + "@inquirer/core": "^10.1.15", + "@inquirer/type": "^3.0.8", + "ansi-escapes": "^4.3.2" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz", - "integrity": "sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==", + "node_modules/@inquirer/prompts": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.6.0.tgz", + "integrity": "sha512-jAhL7tyMxB3Gfwn4HIJ0yuJ5pvcB5maYUcouGcgd/ub79f9MqZ+aVnBtuFf+VC2GTkCBF+R+eo7Vi63w5VZlzw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@inquirer/checkbox": "^4.1.9", + "@inquirer/confirm": "^5.1.13", + "@inquirer/editor": "^4.2.14", + "@inquirer/expand": "^4.0.16", + "@inquirer/input": "^4.2.0", + "@inquirer/number": "^3.0.16", + "@inquirer/password": "^4.0.16", + "@inquirer/rawlist": "^4.1.4", + "@inquirer/search": "^3.0.16", + "@inquirer/select": "^4.2.4" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.0.tgz", - "integrity": "sha512-xWT5gefv2HGSm4QHtgc1sYPbseOyf+FFDo2JbpE25GWl5BqTGO9IMwTYJRoIdjsF85GE+VegHxSCUt5EvoYTAw==", + "node_modules/@inquirer/rawlist": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.5.tgz", + "integrity": "sha512-R5qMyGJqtDdi4Ht521iAkNqyB6p2UPuZUbMifakg1sWtu24gc2Z8CJuw8rP081OckNDMgtDCuLe42Q2Kr3BolA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5" + "@inquirer/core": "^10.1.15", + "@inquirer/type": "^3.0.8", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.0.tgz", - "integrity": "sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ==", + "node_modules/@inquirer/search": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.1.0.tgz", + "integrity": "sha512-PMk1+O/WBcYJDq2H7foV0aAZSmDdkzZB9Mw2v/DmONRJopwA/128cS9M/TXWLKKdEQKZnKwBzqu2G4x/2Nqx8Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5" + "@inquirer/core": "^10.1.15", + "@inquirer/figures": "^1.0.13", + "@inquirer/type": "^3.0.8", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.0.tgz", - "integrity": "sha512-qBej6ctXZD2f+DhlOC9yO47yEYgUh5CZNz/aBoH4j/3NOlRfJXJbY7xDQCqQVf9KbrqGzIWER1f23doHGrIHFg==", + "node_modules/@inquirer/select": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.3.1.tgz", + "integrity": "sha512-Gfl/5sqOF5vS/LIrSndFgOh7jgoe0UXEizDqahFRkq5aJBLegZ6WjuMh/hVEJwlFQjyLq1z9fRtvUMkb7jM1LA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.20" + "@inquirer/core": "^10.1.15", + "@inquirer/figures": "^1.0.13", + "@inquirer/type": "^3.0.8", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz", - "integrity": "sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==", + "node_modules/@inquirer/type": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.8.tgz", + "integrity": "sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw==", "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": ">=18" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", - "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, + "license": "MIT", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "node": "20 || >=22" } }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz", - "integrity": "sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==", + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "@isaacs/balanced-match": "^4.0.1" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": "20 || >=22" } }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.11.tgz", - "integrity": "sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg==", + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, + "license": "ISC", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=12" } }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.11.tgz", - "integrity": "sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg==", + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, + "license": "MIT", "engines": { - "node": ">=6.9.0" + "node": ">=12" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.15.tgz", - "integrity": "sha512-fEB+I1+gAmfAyxZcX1+ZUwLeAuuf8VIg67CTznZE0MqVFumWkh8xWtn58I4dxdVf080wn7gzWoF8vndOViJe9Q==", + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.22.15" + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=6.9.0" + "node": ">=12" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz", - "integrity": "sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==", + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.5" + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=6.9.0" + "node": ">=12" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.11.tgz", - "integrity": "sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ==", + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", "dev": true, + "license": "ISC", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + "minipass": "^7.0.4" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18.0.0" } }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.0.tgz", - "integrity": "sha512-sBBGXbLJjxTzLBF5rFWaikMnOGOk/BmK6vVByIdEggZ7Vn6CvWXZyRkkLFK6WE0IF8jSliyOkUN6SScFgzCM0g==", + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, + "license": "MIT", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=8" } }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz", - "integrity": "sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==", - "dev": true, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.12", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", + "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.5.tgz", - "integrity": "sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=6.0.0" } }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.22.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.11.tgz", - "integrity": "sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.22.11", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", + "license": "MIT" }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz", - "integrity": "sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==", - "dev": true, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.29", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", + "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.10.tgz", - "integrity": "sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==", + "node_modules/@kurkle/color": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.4.tgz", + "integrity": "sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==", + "license": "MIT" + }, + "node_modules/@listr2/prompt-adapter-inquirer": { + "version": "2.0.22", + "resolved": "https://registry.npmjs.org/@listr2/prompt-adapter-inquirer/-/prompt-adapter-inquirer-2.0.22.tgz", + "integrity": "sha512-hV36ZoY+xKL6pYOt1nPNnkciFkn89KZwqLhAFzJvYysAvL5uBQdiADZx/8bIDXIukzzwG0QlPYolgMzQUtKgpQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "regenerator-transform": "^0.15.2" + "@inquirer/type": "^1.5.5" }, "engines": { - "node": ">=6.9.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@inquirer/prompts": ">= 3 < 8" } }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz", - "integrity": "sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==", + "node_modules/@listr2/prompt-adapter-inquirer/node_modules/@inquirer/type": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-1.5.5.tgz", + "integrity": "sha512-MzICLu4yS7V8AA61sANROZ9vT1H3ooca5dSmI1FjZkzq7o/koMsRfQSzRtFo+F3Ao4Sf1C0bpLKejpKB/+j6MA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" + "mute-stream": "^1.0.0" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-transform-runtime": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.9.tgz", - "integrity": "sha512-9KjBH61AGJetCPYp/IEyLEp47SyybZb0nDRpBvmtEkm+rUIwxdlKpyNHI1TmsGkeuLclJdleQHRZ8XLBnnh8CQ==", + "node_modules/@listr2/prompt-adapter-inquirer/node_modules/mute-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", + "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "babel-plugin-polyfill-corejs2": "^0.4.4", - "babel-plugin-polyfill-corejs3": "^0.8.2", - "babel-plugin-polyfill-regenerator": "^0.5.1", - "semver": "^6.3.1" - }, + "license": "ISC", "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/@lmdb/lmdb-darwin-arm64": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-arm64/-/lmdb-darwin-arm64-3.4.1.tgz", + "integrity": "sha512-kKeP5PaY3bFrrF6GY5aDd96iuh1eoS+5CHJ+7hIP629KIEwzGNwbIzBmEX9TAhRJOivSRDTHCIsbu//+NsYKkg==", + "cpu": [ + "arm64" + ], "dev": true, - "bin": { - "semver": "bin/semver.js" - } + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz", - "integrity": "sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==", + "node_modules/@lmdb/lmdb-darwin-x64": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-darwin-x64/-/lmdb-darwin-x64-3.4.1.tgz", + "integrity": "sha512-9CMB3seTyHs3EOVWdKiB8IIEDBJ3Gq00Tqyi0V7DS3HL90BjM/AkbZGuhzXwPrfeFazR24SKaRrUQF74f+CmWw==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz", - "integrity": "sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==", + "node_modules/@lmdb/lmdb-linux-arm": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm/-/lmdb-linux-arm-3.4.1.tgz", + "integrity": "sha512-1Mi69vU0akHgCI7tF6YbimPaNEKJiBm/p5A+aM8egr0joj27cQmCCOm2mZQ+Ht2BqmCfZaIgQnMg4gFYNMlpCA==", + "cpu": [ + "arm" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz", - "integrity": "sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==", + "node_modules/@lmdb/lmdb-linux-arm64": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-arm64/-/lmdb-linux-arm64-3.4.1.tgz", + "integrity": "sha512-d0vuXOdoKjHHJYZ/CRWopnkOiUpev+bgBBW+1tXtWsYWUj8uxl9ZmTBEmsL5mjUlpQDrlYiJSrhOU1hg5QWBSw==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz", - "integrity": "sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==", + "node_modules/@lmdb/lmdb-linux-x64": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-linux-x64/-/lmdb-linux-x64-3.4.1.tgz", + "integrity": "sha512-00RbEpvfnyPodlICiGFuiOmyvWaL9nzCRSqZz82BVFsGTiSQnnF0gpD1C8tO6OvtptELbtRuM7BS9f97LcowZw==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz", - "integrity": "sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==", + "node_modules/@lmdb/lmdb-win32-arm64": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-win32-arm64/-/lmdb-win32-arm64-3.4.1.tgz", + "integrity": "sha512-4h8tm3i1ODf+28UyqQZLP7c2jmRM26AyEEyYp994B4GiBdGvGAsYUu3oiHANYK9xFpvLuFzyGeqFm1kdNC0D1A==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.10.tgz", - "integrity": "sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==", + "node_modules/@lmdb/lmdb-win32-x64": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@lmdb/lmdb-win32-x64/-/lmdb-win32-x64-3.4.1.tgz", + "integrity": "sha512-HqqKIhTbq6piJhkJpTTf3w1m/CgrmwXRAL9R9j7Ru5xdZSeO7Mg4AWiBC9B00uXR+LvVZKtUyRMVZfhmIZztmQ==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.5.tgz", - "integrity": "sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==", + "node_modules/@modelcontextprotocol/sdk": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.13.3.tgz", + "integrity": "sha512-bGwA78F/U5G2jrnsdRkPY3IwIwZeWUEfb5o764b79lb0rJmMT76TLwKhdNZOWakOQtedYefwIR4emisEMvInKA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" + "ajv": "^6.12.6", + "content-type": "^1.0.5", + "cors": "^2.8.5", + "cross-spawn": "^7.0.5", + "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", + "express": "^5.0.1", + "express-rate-limit": "^7.5.0", + "pkce-challenge": "^5.0.0", + "raw-body": "^3.0.0", + "zod": "^3.23.8", + "zod-to-json-schema": "^3.24.1" }, "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "node": ">=18" } }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz", - "integrity": "sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==", + "node_modules/@modelcontextprotocol/sdk/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.5.tgz", - "integrity": "sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==", + "node_modules/@modelcontextprotocol/sdk/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.9.tgz", - "integrity": "sha512-wNi5H/Emkhll/bqPjsjQorSykrlfY5OWakd6AulLvMEytpKasMVUpVy8RL4qBIBs5Ac6/5i0/Rv0b/Fg6Eag/g==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-compilation-targets": "^7.22.9", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.5", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.5", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.5", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.22.5", - "@babel/plugin-syntax-import-attributes": "^7.22.5", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.22.5", - "@babel/plugin-transform-async-generator-functions": "^7.22.7", - "@babel/plugin-transform-async-to-generator": "^7.22.5", - "@babel/plugin-transform-block-scoped-functions": "^7.22.5", - "@babel/plugin-transform-block-scoping": "^7.22.5", - "@babel/plugin-transform-class-properties": "^7.22.5", - "@babel/plugin-transform-class-static-block": "^7.22.5", - "@babel/plugin-transform-classes": "^7.22.6", - "@babel/plugin-transform-computed-properties": "^7.22.5", - "@babel/plugin-transform-destructuring": "^7.22.5", - "@babel/plugin-transform-dotall-regex": "^7.22.5", - "@babel/plugin-transform-duplicate-keys": "^7.22.5", - "@babel/plugin-transform-dynamic-import": "^7.22.5", - "@babel/plugin-transform-exponentiation-operator": "^7.22.5", - "@babel/plugin-transform-export-namespace-from": "^7.22.5", - "@babel/plugin-transform-for-of": "^7.22.5", - "@babel/plugin-transform-function-name": "^7.22.5", - "@babel/plugin-transform-json-strings": "^7.22.5", - "@babel/plugin-transform-literals": "^7.22.5", - "@babel/plugin-transform-logical-assignment-operators": "^7.22.5", - "@babel/plugin-transform-member-expression-literals": "^7.22.5", - "@babel/plugin-transform-modules-amd": "^7.22.5", - "@babel/plugin-transform-modules-commonjs": "^7.22.5", - "@babel/plugin-transform-modules-systemjs": "^7.22.5", - "@babel/plugin-transform-modules-umd": "^7.22.5", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", - "@babel/plugin-transform-new-target": "^7.22.5", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.5", - "@babel/plugin-transform-numeric-separator": "^7.22.5", - "@babel/plugin-transform-object-rest-spread": "^7.22.5", - "@babel/plugin-transform-object-super": "^7.22.5", - "@babel/plugin-transform-optional-catch-binding": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.22.6", - "@babel/plugin-transform-parameters": "^7.22.5", - "@babel/plugin-transform-private-methods": "^7.22.5", - "@babel/plugin-transform-private-property-in-object": "^7.22.5", - "@babel/plugin-transform-property-literals": "^7.22.5", - "@babel/plugin-transform-regenerator": "^7.22.5", - "@babel/plugin-transform-reserved-words": "^7.22.5", - "@babel/plugin-transform-shorthand-properties": "^7.22.5", - "@babel/plugin-transform-spread": "^7.22.5", - "@babel/plugin-transform-sticky-regex": "^7.22.5", - "@babel/plugin-transform-template-literals": "^7.22.5", - "@babel/plugin-transform-typeof-symbol": "^7.22.5", - "@babel/plugin-transform-unicode-escapes": "^7.22.5", - "@babel/plugin-transform-unicode-property-regex": "^7.22.5", - "@babel/plugin-transform-unicode-regex": "^7.22.5", - "@babel/plugin-transform-unicode-sets-regex": "^7.22.5", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.22.5", - "babel-plugin-polyfill-corejs2": "^0.4.4", - "babel-plugin-polyfill-corejs3": "^0.8.2", - "babel-plugin-polyfill-regenerator": "^0.5.1", - "core-js-compat": "^3.31.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } + "license": "MIT" }, - "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.3.tgz", + "integrity": "sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==", + "cpu": [ + "arm64" + ], "dev": true, - "bin": { - "semver": "bin/semver.js" - } + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] }, - "node_modules/@babel/preset-modules": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6.tgz", - "integrity": "sha512-ID2yj6K/4lKfhuU3+EX4UvNbIt7eACFbHmNUjzA+ep+B5971CknnA/9DEWKbRokfbbtblxxxXFJJrH47UEAMVg==", + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.3.tgz", + "integrity": "sha512-mdzd3AVzYKuUmiWOQ8GNhl64/IoFGol569zNRdkLReh6LRLHOXxU4U8eq0JwaD8iFHdVGqSy4IjFL4reoWCDFw==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", - "dev": true + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] }, - "node_modules/@babel/runtime": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", - "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", - "dev": true, - "dependencies": { - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", - "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", - "dependencies": { - "@babel/code-frame": "^7.22.5", - "@babel/parser": "^7.22.5", - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", - "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.0", - "@babel/types": "^7.23.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", - "dependencies": { - "@babel/types": "^7.23.0", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", - "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", - "dependencies": { - "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@colors/colors": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", - "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", - "dev": true, - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/@coreui/chartjs": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@coreui/chartjs/-/chartjs-3.1.2.tgz", - "integrity": "sha512-d3MGk3KZNAt29VRKP/XYiGmT56KTqtuOhLEg5HNwb7P7ZmEgOJoHxFHVCVE4I36hfgQCjZZVknsuk2ZTfF/2fw==", - "dependencies": { - "@coreui/coreui": "^4.2.6", - "chart.js": "^3.9.1" - } - }, - "node_modules/@coreui/coreui": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@coreui/coreui/-/coreui-4.3.2.tgz", - "integrity": "sha512-SKGY6E6v7QGq0P3YTnZQRSrU8t0euLQ3UV/FH5j0JmHYBBu7Mv0Hd9g8AESnj8xrCelKZ5bdZKZhmKaIdG5clw==", - "dependencies": { - "postcss-combine-duplicated-selectors": "^10.0.3" - }, - "peerDependencies": { - "@popperjs/core": "^2.11.6" - } - }, - "node_modules/@coreui/icons": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@coreui/icons/-/icons-3.0.1.tgz", - "integrity": "sha512-u9UKEcRMyY9pa4jUoLij8pAR03g5g6TLWV33/Mx2ix8sffyi0eO4fLV8DSTQljDCw938zt7KYog5cVKEAJUxxg==", - "dev": true - }, - "node_modules/@discoveryjs/json-ext": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "dev": true, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.17.tgz", - "integrity": "sha512-wHsmJG/dnL3OkpAcwbgoBTTMHVi4Uyou3F5mf58ZtmUyIKfcdA7TROav/6tCzET4A3QW2Q2FC+eFneMU+iyOxg==", + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.3.tgz", + "integrity": "sha512-fg0uy/dG/nZEXfYilKoRe7yALaNmHoYeIoJuJ7KJ+YyU2bvY8vPv27f7UKhGRpY6euFYqEVhxCFZgAUNQBM3nw==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "android" - ], - "engines": { - "node": ">=12" - } + "linux" + ] }, - "node_modules/@esbuild/android-arm64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.17.tgz", - "integrity": "sha512-9np+YYdNDed5+Jgr1TdWBsozZ85U1Oa3xW0c7TWqH0y2aGghXtZsuT8nYRbzOMcl0bXZXjOGbksoTtVOlWrRZg==", + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.3.tgz", + "integrity": "sha512-YxQL+ax0XqBJDZiKimS2XQaf+2wDGVa1enVRGzEvLLVFeqa5kx2bWbtcSXgsxjQB7nRqqIGFIcLteF/sHeVtQg==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "android" - ], - "engines": { - "node": ">=12" - } + "linux" + ] }, - "node_modules/@esbuild/android-x64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.17.tgz", - "integrity": "sha512-O+FeWB/+xya0aLg23hHEM2E3hbfwZzjqumKMSIqcHbNvDa+dza2D0yLuymRBQQnC34CWrsJUXyH2MG5VnLd6uw==", + "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.3.tgz", + "integrity": "sha512-cvwNfbP07pKUfq1uH+S6KJ7dT9K8WOE4ZiAcsrSes+UY55E/0jLYc+vq+DO7jlmqRb5zAggExKm0H7O/CBaesg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "android" - ], - "engines": { - "node": ">=12" - } + "linux" + ] }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.17.tgz", - "integrity": "sha512-M9uJ9VSB1oli2BE/dJs3zVr9kcCBBsE883prage1NWz6pBS++1oNn/7soPNS3+1DGj0FrkSvnED4Bmlu1VAE9g==", + "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.3.tgz", + "integrity": "sha512-x0fWaQtYp4E6sktbsdAqnehxDgEc/VwM7uLsRCYWaiGu0ykYdZPiS8zCWdnjHwyiumousxfBm4SO31eXqwEZhQ==", "cpu": [ - "arm64" + "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } + "win32" + ] }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.17.tgz", - "integrity": "sha512-XDre+J5YeIJDMfp3n0279DFNrGCXlxOuGsWIkRb1NThMZ0BsrWXoTg23Jer7fEXQ9Ye5QjrvXpxnhzl3bHtk0g==", + "node_modules/@napi-rs/nice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice/-/nice-1.0.4.tgz", + "integrity": "sha512-Sqih1YARrmMoHlXGgI9JrrgkzxcaaEso0AH+Y7j8NHonUs+xe4iDsgC3IBIDNdzEewbNpccNN6hip+b5vmyRLw==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "optionalDependencies": { + "@napi-rs/nice-android-arm-eabi": "1.0.4", + "@napi-rs/nice-android-arm64": "1.0.4", + "@napi-rs/nice-darwin-arm64": "1.0.4", + "@napi-rs/nice-darwin-x64": "1.0.4", + "@napi-rs/nice-freebsd-x64": "1.0.4", + "@napi-rs/nice-linux-arm-gnueabihf": "1.0.4", + "@napi-rs/nice-linux-arm64-gnu": "1.0.4", + "@napi-rs/nice-linux-arm64-musl": "1.0.4", + "@napi-rs/nice-linux-ppc64-gnu": "1.0.4", + "@napi-rs/nice-linux-riscv64-gnu": "1.0.4", + "@napi-rs/nice-linux-s390x-gnu": "1.0.4", + "@napi-rs/nice-linux-x64-gnu": "1.0.4", + "@napi-rs/nice-linux-x64-musl": "1.0.4", + "@napi-rs/nice-win32-arm64-msvc": "1.0.4", + "@napi-rs/nice-win32-ia32-msvc": "1.0.4", + "@napi-rs/nice-win32-x64-msvc": "1.0.4" + } + }, + "node_modules/@napi-rs/nice-android-arm-eabi": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-android-arm-eabi/-/nice-android-arm-eabi-1.0.4.tgz", + "integrity": "sha512-OZFMYUkih4g6HCKTjqJHhMUlgvPiDuSLZPbPBWHLjKmFTv74COzRlq/gwHtmEVaR39mJQ6ZyttDl2HNMUbLVoA==", "cpu": [ - "x64" + "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "darwin" + "android" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.17.tgz", - "integrity": "sha512-cjTzGa3QlNfERa0+ptykyxs5A6FEUQQF0MuilYXYBGdBxD3vxJcKnzDlhDCa1VAJCmAxed6mYhA2KaJIbtiNuQ==", + "node_modules/@napi-rs/nice-android-arm64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-android-arm64/-/nice-android-arm64-1.0.4.tgz", + "integrity": "sha512-k8u7cjeA64vQWXZcRrPbmwjH8K09CBnNaPnI9L1D5N6iMPL3XYQzLcN6WwQonfcqCDv5OCY3IqX89goPTV4KMw==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "freebsd" + "android" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.17.tgz", - "integrity": "sha512-sOxEvR8d7V7Kw8QqzxWc7bFfnWnGdaFBut1dRUYtu+EIRXefBc/eIsiUiShnW0hM3FmQ5Zf27suDuHsKgZ5QrA==", + "node_modules/@napi-rs/nice-darwin-arm64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-darwin-arm64/-/nice-darwin-arm64-1.0.4.tgz", + "integrity": "sha512-GsLdQvUcuVzoyzmtjsThnpaVEizAqH5yPHgnsBmq3JdVoVZHELFo7PuJEdfOH1DOHi2mPwB9sCJEstAYf3XCJA==", "cpu": [ - "x64" + "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "freebsd" + "darwin" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-arm": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.17.tgz", - "integrity": "sha512-2d3Lw6wkwgSLC2fIvXKoMNGVaeY8qdN0IC3rfuVxJp89CRfA3e3VqWifGDfuakPmp90+ZirmTfye1n4ncjv2lg==", + "node_modules/@napi-rs/nice-darwin-x64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-darwin-x64/-/nice-darwin-x64-1.0.4.tgz", + "integrity": "sha512-1y3gyT3e5zUY5SxRl3QDtJiWVsbkmhtUHIYwdWWIQ3Ia+byd/IHIEpqAxOGW1nhhnIKfTCuxBadHQb+yZASVoA==", "cpu": [ - "arm" + "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "linux" + "darwin" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.17.tgz", - "integrity": "sha512-c9w3tE7qA3CYWjT+M3BMbwMt+0JYOp3vCMKgVBrCl1nwjAlOMYzEo+gG7QaZ9AtqZFj5MbUc885wuBBmu6aADQ==", + "node_modules/@napi-rs/nice-freebsd-x64": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-freebsd-x64/-/nice-freebsd-x64-1.0.4.tgz", + "integrity": "sha512-06oXzESPRdXUuzS8n2hGwhM2HACnDfl3bfUaSqLGImM8TA33pzDXgGL0e3If8CcFWT98aHows5Lk7xnqYNGFeA==", "cpu": [ - "arm64" + "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "linux" + "freebsd" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.17.tgz", - "integrity": "sha512-1DS9F966pn5pPnqXYz16dQqWIB0dmDfAQZd6jSSpiT9eX1NzKh07J6VKR3AoXXXEk6CqZMojiVDSZi1SlmKVdg==", + "node_modules/@napi-rs/nice-linux-arm-gnueabihf": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-arm-gnueabihf/-/nice-linux-arm-gnueabihf-1.0.4.tgz", + "integrity": "sha512-CgklZ6g8WL4+EgVVkxkEvvsi2DSLf9QIloxWO0fvQyQBp6VguUSX3eHLeRpqwW8cRm2Hv/Q1+PduNk7VK37VZw==", "cpu": [ - "ia32" + "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.17.tgz", - "integrity": "sha512-EvLsxCk6ZF0fpCB6w6eOI2Fc8KW5N6sHlIovNe8uOFObL2O+Mr0bflPHyHwLT6rwMg9r77WOAWb2FqCQrVnwFg==", + "node_modules/@napi-rs/nice-linux-arm64-gnu": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-arm64-gnu/-/nice-linux-arm64-gnu-1.0.4.tgz", + "integrity": "sha512-wdAJ7lgjhAlsANUCv0zi6msRwq+D4KDgU+GCCHssSxWmAERZa2KZXO0H2xdmoJ/0i03i6YfK/sWaZgUAyuW2oQ==", "cpu": [ - "loong64" + "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.17.tgz", - "integrity": "sha512-e0bIdHA5p6l+lwqTE36NAW5hHtw2tNRmHlGBygZC14QObsA3bD4C6sXLJjvnDIjSKhW1/0S3eDy+QmX/uZWEYQ==", + "node_modules/@napi-rs/nice-linux-arm64-musl": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-arm64-musl/-/nice-linux-arm64-musl-1.0.4.tgz", + "integrity": "sha512-4b1KYG+sriufhFrpUS9uNOEYYJqSfcbnwGx6uGX7JjrH8tELG90cOpCawz5THNIwlS3DhLgnCOcn0+4p6z26QA==", "cpu": [ - "mips64el" + "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.17.tgz", - "integrity": "sha512-BAAilJ0M5O2uMxHYGjFKn4nJKF6fNCdP1E0o5t5fvMYYzeIqy2JdAP88Az5LHt9qBoUa4tDaRpfWt21ep5/WqQ==", + "node_modules/@napi-rs/nice-linux-ppc64-gnu": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-ppc64-gnu/-/nice-linux-ppc64-gnu-1.0.4.tgz", + "integrity": "sha512-iaf3vMRgr23oe1PUaKpxaH3DS0IMN0+N9iEiWVwYPm/U15vZFYdqVegGfN2PzrZLUl5lc8ZxbmEKDfuqslhAMA==", "cpu": [ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.17.tgz", - "integrity": "sha512-Wh/HW2MPnC3b8BqRSIme/9Zhab36PPH+3zam5pqGRH4pE+4xTrVLx2+XdGp6fVS3L2x+DrsIcsbMleex8fbE6g==", + "node_modules/@napi-rs/nice-linux-riscv64-gnu": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-riscv64-gnu/-/nice-linux-riscv64-gnu-1.0.4.tgz", + "integrity": "sha512-UXoREY6Yw6rHrGuTwQgBxpfjK34t6mTjibE9/cXbefL9AuUCJ9gEgwNKZiONuR5QGswChqo9cnthjdKkYyAdDg==", "cpu": [ "riscv64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.17.tgz", - "integrity": "sha512-j/34jAl3ul3PNcK3pfI0NSlBANduT2UO5kZ7FCaK33XFv3chDhICLY8wJJWIhiQ+YNdQ9dxqQctRg2bvrMlYgg==", + "node_modules/@napi-rs/nice-linux-s390x-gnu": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-s390x-gnu/-/nice-linux-s390x-gnu-1.0.4.tgz", + "integrity": "sha512-eFbgYCRPmsqbYPAlLYU5hYTNbogmIDUvknilehHsFhCH1+0/kN87lP+XaLT0Yeq4V/rpwChSd9vlz4muzFArtw==", "cpu": [ "s390x" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/linux-x64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.17.tgz", - "integrity": "sha512-QM50vJ/y+8I60qEmFxMoxIx4de03pGo2HwxdBeFd4nMh364X6TIBZ6VQ5UQmPbQWUVWHWws5MmJXlHAXvJEmpQ==", + "node_modules/@napi-rs/nice-linux-x64-gnu": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-x64-gnu/-/nice-linux-x64-gnu-1.0.4.tgz", + "integrity": "sha512-4T3E6uTCwWT6IPnwuPcWVz3oHxvEp/qbrCxZhsgzwTUBEwu78EGNXGdHfKJQt3soth89MLqZJw+Zzvnhrsg1mQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.17.tgz", - "integrity": "sha512-/jGlhWR7Sj9JPZHzXyyMZ1RFMkNPjC6QIAan0sDOtIo2TYk3tZn5UDrkE0XgsTQCxWTTOcMPf9p6Rh2hXtl5TQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.17.tgz", - "integrity": "sha512-rSEeYaGgyGGf4qZM2NonMhMOP/5EHp4u9ehFiBrg7stH6BYEEjlkVREuDEcQ0LfIl53OXLxNbfuIj7mr5m29TA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.17.tgz", - "integrity": "sha512-Y7ZBbkLqlSgn4+zot4KUNYst0bFoO68tRgI6mY2FIM+b7ZbyNVtNbDP5y8qlu4/knZZ73fgJDlXID+ohY5zt5g==", + "node_modules/@napi-rs/nice-linux-x64-musl": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-linux-x64-musl/-/nice-linux-x64-musl-1.0.4.tgz", + "integrity": "sha512-NtbBkAeyBPLvCBkWtwkKXkNSn677eaT0cX3tygq+2qVv71TmHgX4gkX6o9BXjlPzdgPGwrUudavCYPT9tzkEqQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "sunos" + "linux" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.17.tgz", - "integrity": "sha512-bwPmTJsEQcbZk26oYpc4c/8PvTY3J5/QK8jM19DVlEsAB41M39aWovWoHtNm78sd6ip6prilxeHosPADXtEJFw==", + "node_modules/@napi-rs/nice-win32-arm64-msvc": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-win32-arm64-msvc/-/nice-win32-arm64-msvc-1.0.4.tgz", + "integrity": "sha512-vubOe3i+YtSJGEk/++73y+TIxbuVHi+W8ZzrRm2eETCjCRwNlgbfToQZ85dSA+4iBB/NJRGNp+O4hfdbbttZWA==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.17.tgz", - "integrity": "sha512-H/XaPtPKli2MhW+3CQueo6Ni3Avggi6hP/YvgkEe1aSaxw+AeO8MFjq8DlgfTd9Iz4Yih3QCZI6YLMoyccnPRg==", + "node_modules/@napi-rs/nice-win32-ia32-msvc": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-win32-ia32-msvc/-/nice-win32-ia32-msvc-1.0.4.tgz", + "integrity": "sha512-BMOVrUDZeg1RNRKVlh4eyLv5djAAVLiSddfpuuQ47EFjBcklg0NUeKMFKNrKQR4UnSn4HAiACLD7YK7koskwmg==", "cpu": [ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@esbuild/win32-x64": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.17.tgz", - "integrity": "sha512-fGEb8f2BSA3CW7riJVurug65ACLuQAzKq0SSqkY2b2yHHH0MzDfbLyKIGzHwOI/gkHcxM/leuSW6D5w/LMNitA==", + "node_modules/@napi-rs/nice-win32-x64-msvc": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@napi-rs/nice-win32-x64-msvc/-/nice-win32-x64-msvc-1.0.4.tgz", + "integrity": "sha512-kCNk6HcRZquhw/whwh4rHsdPyOSCQCgnVDVik+Y9cuSVTDy3frpiCJTScJqPPS872h4JgZKkr/+CwcwttNEo9Q==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { - "node": ">=12" + "node": ">= 10" } }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, + "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.3.0" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + "node": ">= 8" } }, - "node_modules/@eslint-community/regexpp": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.1.tgz", - "integrity": "sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==", + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, + "license": "MIT", "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + "node": ">= 8" } }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", - "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, + "license": "MIT", "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">= 8" } }, - "node_modules/@eslint/eslintrc/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/@npmcli/agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/agent/-/agent-3.0.0.tgz", + "integrity": "sha512-S79NdEgDQd/NGCay6TCoVzXSj74skRZIKJcpJjC5lOq34SZzyI6MqtiiWoiVWoVrTcGjNeC4ipbh1VIHlpfF5Q==", "dev": true, + "license": "ISC", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "agent-base": "^7.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.1", + "lru-cache": "^10.0.1", + "socks-proxy-agent": "^8.0.3" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@eslint/eslintrc/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "node_modules/@npmcli/agent/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.23.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", - "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "node_modules/@npmcli/fs": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-4.0.0.tgz", + "integrity": "sha512-/xGlezI6xfGO9NwuJlnwz/K14qD1kCSAGtacBHnGzeAIuJGazcp45KP5NuyARXoKb7cwulAGWVsbeSxdG/cb0Q==", "dev": true, + "license": "ISC", "dependencies": { - "type-fest": "^0.20.2" + "semver": "^7.3.5" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "node_modules/@npmcli/git": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-6.0.3.tgz", + "integrity": "sha512-GUYESQlxZRAdhs3UhbB6pVRNUELQOHXwK9ruDkwmCv2aZ5y0SApQzUJCg02p3A7Ue2J5hxvlk1YI53c00NmRyQ==", "dev": true, + "license": "ISC", "dependencies": { - "argparse": "^2.0.1" + "@npmcli/promise-spawn": "^8.0.0", + "ini": "^5.0.0", + "lru-cache": "^10.0.1", + "npm-pick-manifest": "^10.0.0", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^5.0.0" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/@npmcli/git/node_modules/isexe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", "dev": true, + "license": "ISC", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=16" } }, - "node_modules/@eslint/js": { - "version": "8.51.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.51.0.tgz", - "integrity": "sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==", + "node_modules/@npmcli/git/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } + "license": "ISC" }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.12", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.12.tgz", - "integrity": "sha512-NlGesA1usRNn6ctHCZ21M4/dKPgW9Nn1FypRdIKKgZOKzkVV4T1FlK5mBiLhHBCDmEbdQG0idrcXlbZfksJ+RA==", + "node_modules/@npmcli/git/node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", "dev": true, + "license": "ISC", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.0", - "debug": "^4.1.1", - "minimatch": "^3.0.5" + "isexe": "^3.1.1" }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" + "bin": { + "node-which": "bin/which.js" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.0.tgz", - "integrity": "sha512-9S9QrXY2K0L4AGDcSgTi9vgiCcG8VcBv4Mp7/1hDPYoswIy6Z6KO5blYto82BT8M0MZNRWmCFLpCs3HlpYGGdw==", - "dev": true - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "node_modules/@npmcli/installed-package-contents": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-3.0.0.tgz", + "integrity": "sha512-fkxoPuFGvxyrH+OQzyTkX2LUEamrF4jZSmxjAtPPHHGO0dqsQ8tTKjnIS8SAnPHdk2I03BDtSMR5K/4loKg79Q==", "dev": true, + "license": "ISC", "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + "npm-bundled": "^4.0.0", + "npm-normalize-package-bin": "^4.0.0" + }, + "bin": { + "installed-package-contents": "bin/index.js" }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "node_modules/@npmcli/node-gyp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-4.0.0.tgz", + "integrity": "sha512-+t5DZ6mO/QFh78PByMq1fGSAub/agLJZDRfJRMeOSNCt8s9YVlTjmGpIPwPhvXTGUIJk+WszlT0rQa1W33yzNA==", "dev": true, + "license": "ISC", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "node_modules/@npmcli/package-json": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/@npmcli/package-json/-/package-json-6.2.0.tgz", + "integrity": "sha512-rCNLSB/JzNvot0SEyXqWZ7tX2B5dD2a1br2Dp0vSYVo5jh8Z0EZ7lS9TsZ1UtziddB1UfNUaMCc538/HztnJGA==", "dev": true, - "engines": { - "node": ">=12" + "license": "ISC", + "dependencies": { + "@npmcli/git": "^6.0.0", + "glob": "^10.2.2", + "hosted-git-info": "^8.0.0", + "json-parse-even-better-errors": "^4.0.0", + "proc-log": "^5.0.0", + "semver": "^7.5.3", + "validate-npm-package-license": "^3.0.4" }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/@npmcli/package-json/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dev": true, + "license": "ISC", "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" }, - "engines": { - "node": ">=12" + "bin": { + "glob": "dist/esm/bin.mjs" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "node_modules/@npmcli/promise-spawn": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-8.0.2.tgz", + "integrity": "sha512-/bNJhjc+o6qL+Dwz/bqfTQClkEO5nTQ1ZEcdCkAQjhkZMHIh22LPG7fNh1enJP1NKWDqYiiABnjFCY7E0zHYtQ==", "dev": true, + "license": "ISC", "dependencies": { - "ansi-regex": "^6.0.1" + "which": "^5.0.0" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "node_modules/@npmcli/promise-spawn/node_modules/isexe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", "dev": true, - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, + "license": "ISC", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "node": ">=16" } }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "node_modules/@npmcli/promise-spawn/node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", "dev": true, + "license": "ISC", "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" }, "engines": { - "node": ">=8" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "node_modules/@npmcli/redact": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@npmcli/redact/-/redact-3.2.2.tgz", + "integrity": "sha512-7VmYAmk4csGv08QzrDKScdzn11jHPFGyqJW39FyPgPuAp3zIaUmuCo1yxw9aGs+NEJuTGQ9Gwqpt93vtJubucg==", "dev": true, + "license": "ISC", "engines": { - "node": ">=8" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "node_modules/@npmcli/run-script": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-9.1.0.tgz", + "integrity": "sha512-aoNSbxtkePXUlbZB+anS1LqsJdctG5n3UVhfU47+CDdwMi6uNTBMF9gPcQRnqghQd2FGzcwwIFBruFMxjhBewg==", + "dev": true, + "license": "ISC", "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@npmcli/node-gyp": "^4.0.0", + "@npmcli/package-json": "^6.0.0", + "@npmcli/promise-spawn": "^8.0.0", + "node-gyp": "^11.0.0", + "proc-log": "^5.0.0", + "which": "^5.0.0" }, "engines": { - "node": ">=6.0.0" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@jridgewell/resolve-uri": { + "node_modules/@npmcli/run-script/node_modules/isexe": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", + "dev": true, + "license": "ISC", "engines": { - "node": ">=6.0.0" + "node": ">=16" } }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "node_modules/@npmcli/run-script/node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", "dev": true, + "license": "ISC", "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@leichtgewicht/ip-codec": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", - "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==", - "dev": true - }, - "node_modules/@ngtools/webpack": { - "version": "16.2.7", - "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-16.2.7.tgz", - "integrity": "sha512-QnVoYpMNMuV387VgmP/c/ylD9qUIZpN02LMg3rQqz7NDej0jboBZaxqLJ+7jQaCoEIFVGIgL/RR/X1kponxJZg==", - "dev": true, - "engines": { - "node": "^16.14.0 || >=18.10.0", - "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", - "yarn": ">= 1.13.0" + "isexe": "^3.1.1" }, - "peerDependencies": { - "@angular/compiler-cli": "^16.0.0", - "typescript": ">=4.9.3 <5.2", - "webpack": "^5.54.0" + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "node_modules/@parcel/watcher": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz", + "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "detect-libc": "^1.0.3", + "is-glob": "^4.0.3", + "micromatch": "^4.0.5", + "node-addon-api": "^7.0.0" }, "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@npmcli/fs": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-3.1.0.tgz", - "integrity": "sha512-7kZUAaLscfgbwBQRbvdMYaZOWyMEcPTH/tJjnyAWJ/dvvs9Ef+CERx/qJb9GExJpl1qipaDGn7KqHnFGGixd0w==", - "dev": true, - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/git": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-4.1.0.tgz", - "integrity": "sha512-9hwoB3gStVfa0N31ymBmrX+GuDGdVA/QWShZVqE0HK2Af+7QGGrCTbZia/SW0ImUTjTne7SP91qxDmtXvDHRPQ==", - "dev": true, - "dependencies": { - "@npmcli/promise-spawn": "^6.0.0", - "lru-cache": "^7.4.4", - "npm-pick-manifest": "^8.0.0", - "proc-log": "^3.0.0", - "promise-inflight": "^1.0.1", - "promise-retry": "^2.0.1", - "semver": "^7.3.5", - "which": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/git/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@npmcli/git/node_modules/which": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.1.tgz", - "integrity": "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/which.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/installed-package-contents": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-2.0.2.tgz", - "integrity": "sha512-xACzLPhnfD51GKvTOOuNX2/V4G4mz9/1I2MfDoye9kBM3RYe5g2YbscsaGoTlaWqkxeiapBWyseULVKpSVHtKQ==", - "dev": true, - "dependencies": { - "npm-bundled": "^3.0.0", - "npm-normalize-package-bin": "^3.0.0" - }, - "bin": { - "installed-package-contents": "lib/index.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/node-gyp": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz", - "integrity": "sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/promise-spawn": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-6.0.2.tgz", - "integrity": "sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==", - "dev": true, - "dependencies": { - "which": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/promise-spawn/node_modules/which": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.1.tgz", - "integrity": "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/which.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/run-script": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-6.0.2.tgz", - "integrity": "sha512-NCcr1uQo1k5U+SYlnIrbAh3cxy+OQT1VtqiAbxdymSlptbzBb62AjH2xXgjNCoP073hoa1CfCAcwoZ8k96C4nA==", - "dev": true, - "dependencies": { - "@npmcli/node-gyp": "^3.0.0", - "@npmcli/promise-spawn": "^6.0.0", - "node-gyp": "^9.0.0", - "read-package-json-fast": "^3.0.0", - "which": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/run-script/node_modules/which": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.1.tgz", - "integrity": "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/which.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@nrwl/devkit": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nrwl/devkit/-/devkit-16.5.1.tgz", - "integrity": "sha512-NB+DE/+AFJ7lKH/WBFyatJEhcZGj25F24ncDkwjZ6MzEiSOGOJS0LaV/R+VUsmS5EHTPXYOpn3zHWWAcJhyOmA==", - "dev": true, - "dependencies": { - "@nx/devkit": "16.5.1" - } - }, - "node_modules/@nrwl/tao": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-16.5.1.tgz", - "integrity": "sha512-x+gi/fKdM6uQNIti9exFlm3V5LBP3Y8vOEziO42HdOigyrXa0S0HD2WMpccmp6PclYKhwEDUjKJ39xh5sdh4Ig==", - "dev": true, - "dependencies": { - "nx": "16.5.1" + "node": ">= 10.0.0" }, - "bin": { - "tao": "index.js" - } - }, - "node_modules/@nx/devkit": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-16.5.1.tgz", - "integrity": "sha512-T1acZrVVmJw/sJ4PIGidCBYBiBqlg/jT9e8nIGXLSDS20xcLvfo4zBQf8UZLrmHglnwwpDpOWuVJCp2rYA5aDg==", - "dev": true, - "dependencies": { - "@nrwl/devkit": "16.5.1", - "ejs": "^3.1.7", - "ignore": "^5.0.4", - "semver": "7.5.3", - "tmp": "~0.2.1", - "tslib": "^2.3.0" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" }, - "peerDependencies": { - "nx": ">= 15 <= 17" - } - }, - "node_modules/@nx/devkit/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.5.1", + "@parcel/watcher-darwin-arm64": "2.5.1", + "@parcel/watcher-darwin-x64": "2.5.1", + "@parcel/watcher-freebsd-x64": "2.5.1", + "@parcel/watcher-linux-arm-glibc": "2.5.1", + "@parcel/watcher-linux-arm-musl": "2.5.1", + "@parcel/watcher-linux-arm64-glibc": "2.5.1", + "@parcel/watcher-linux-arm64-musl": "2.5.1", + "@parcel/watcher-linux-x64-glibc": "2.5.1", + "@parcel/watcher-linux-x64-musl": "2.5.1", + "@parcel/watcher-win32-arm64": "2.5.1", + "@parcel/watcher-win32-ia32": "2.5.1", + "@parcel/watcher-win32-x64": "2.5.1" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", + "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=10" - } - }, - "node_modules/@nx/devkit/node_modules/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "node": ">= 10.0.0" }, - "engines": { - "node": ">=10" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/devkit/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/@nx/nx-darwin-arm64": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-16.5.1.tgz", - "integrity": "sha512-q98TFI4B/9N9PmKUr1jcbtD4yAFs1HfYd9jUXXTQOlfO9SbDjnrYJgZ4Fp9rMNfrBhgIQ4x1qx0AukZccKmH9Q==", + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", + "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-darwin-x64": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-16.5.1.tgz", - "integrity": "sha512-j9HmL1l8k7EVJ3eOM5y8COF93gqrydpxCDoz23ZEtsY+JHY77VAiRQsmqBgEx9GGA2dXi9VEdS67B0+1vKariw==", + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", + "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-freebsd-x64": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-16.5.1.tgz", - "integrity": "sha512-CXSPT01aVS869tvCCF2tZ7LnCa8l41wJ3mTVtWBkjmRde68E5Up093hklRMyXb3kfiDYlfIKWGwrV4r0eH6x1A==", + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", + "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-linux-arm-gnueabihf": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-16.5.1.tgz", - "integrity": "sha512-BhrumqJSZCWFfLFUKl4CAUwR0Y0G2H5EfFVGKivVecEQbb+INAek1aa6c89evg2/OvetQYsJ+51QknskwqvLsA==", + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", + "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-linux-arm64-gnu": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-16.5.1.tgz", - "integrity": "sha512-x7MsSG0W+X43WVv7JhiSq2eKvH2suNKdlUHEG09Yt0vm3z0bhtym1UCMUg3IUAK7jy9hhLeDaFVFkC6zo+H/XQ==", + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", + "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", "cpu": [ - "arm64" + "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-linux-arm64-musl": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-16.5.1.tgz", - "integrity": "sha512-J+/v/mFjOm74I0PNtH5Ka+fDd+/dWbKhpcZ2R1/6b9agzZk+Ff/SrwJcSYFXXWKbPX+uQ4RcJoytT06Zs3s0ow==", + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", + "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-linux-x64-gnu": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-16.5.1.tgz", - "integrity": "sha512-igooWJ5YxQ94Zft7IqgL+Lw0qHaY15Btw4gfK756g/YTYLZEt4tTvR1y6RnK/wdpE3sa68bFTLVBNCGTyiTiDQ==", + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", + "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", "cpu": [ - "x64" + "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-linux-x64-musl": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-16.5.1.tgz", - "integrity": "sha512-zF/exnPqFYbrLAduGhTmZ7zNEyADid2bzNQiIjJkh8Y6NpDwrQIwVIyvIxqynsjMrIs51kBH+8TUjKjj2Jgf5A==", + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", + "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-win32-arm64-msvc": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-16.5.1.tgz", - "integrity": "sha512-qtqiLS9Y9TYyAbbpq58kRoOroko4ZXg5oWVqIWFHoxc5bGPweQSJCROEqd1AOl2ZDC6BxfuVHfhDDop1kK05WA==", + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", + "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", "cpu": [ - "arm64" + "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ - "win32" + "linux" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@nx/nx-win32-x64-msvc": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-16.5.1.tgz", - "integrity": "sha512-kUJBLakK7iyA9WfsGGQBVennA4jwf5XIgm0lu35oMOphtZIluvzItMt0EYBmylEROpmpEIhHq0P6J9FA+WH0Rg==", + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", + "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", "cpu": [ - "x64" + "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { - "node": ">= 10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@parcel/watcher": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.0.4.tgz", - "integrity": "sha512-cTDi+FUDBIUOBKEtj+nhiJ71AZVlkAsQFuGQTun5tV9mwQBQgZvhCzG+URPQc8myeN32yRVZEfVAPCs1RW+Jvg==", + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", + "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", + "cpu": [ + "ia32" + ], "dev": true, - "hasInstallScript": true, - "dependencies": { - "node-addon-api": "^3.2.1", - "node-gyp-build": "^4.3.0" + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", + "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], "engines": { "node": ">= 10.0.0" }, @@ -3735,11 +3552,34 @@ "url": "https://opencollective.com/parcel" } }, + "node_modules/@parcel/watcher/node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/@parcel/watcher/node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT", + "optional": true + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", "dev": true, + "license": "MIT", "optional": true, "engines": { "node": ">=14" @@ -3749,18 +3589,20 @@ "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/popperjs" } }, "node_modules/@rollup/plugin-json": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.0.1.tgz", - "integrity": "sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.1.0.tgz", + "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==", "dev": true, + "license": "MIT", "dependencies": { - "@rollup/pluginutils": "^5.0.1" + "@rollup/pluginutils": "^5.1.0" }, "engines": { "node": ">=14.0.0" @@ -3774,40 +3616,16 @@ } } }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "15.2.3", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz", - "integrity": "sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "@types/resolve": "1.20.2", - "deepmerge": "^4.2.2", - "is-builtin-module": "^3.2.1", - "is-module": "^1.0.0", - "resolve": "^1.22.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^2.78.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, "node_modules/@rollup/pluginutils": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.5.tgz", - "integrity": "sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.2.0.tgz", + "integrity": "sha512-qWJ2ZTbmumwiLFomfzTyt5Kng4hwPi9rwCYN4SHb6eaRU1KNO4ccxINHr/VhH4GgPlt1XfSTLX2LBTme8ne4Zw==", "dev": true, + "license": "MIT", "dependencies": { "@types/estree": "^1.0.0", "estree-walker": "^2.0.2", - "picomatch": "^2.3.1" + "picomatch": "^4.0.2" }, "engines": { "node": ">=14.0.0" @@ -3821,478 +3639,678 @@ } } }, - "node_modules/@schematics/angular": { - "version": "16.2.7", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-16.2.7.tgz", - "integrity": "sha512-sL+7vmwYPdo29rp99XYlm8gibqcjjOL5LKEleVQlv63SRES3HLMt7DeYivUfizcMENu/1hDtX41ig4Mu1SpNzg==", + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.1.tgz", + "integrity": "sha512-JAcBr1+fgqx20m7Fwe1DxPUl/hPkee6jA6Pl7n1v2EFiktAHenTaXl5aIFjUIEsfn9w3HE4gK1lEgNGMzBDs1w==", + "cpu": [ + "arm" + ], "dev": true, - "dependencies": { - "@angular-devkit/core": "16.2.7", - "@angular-devkit/schematics": "16.2.7", - "jsonc-parser": "3.2.0" - }, - "engines": { - "node": "^16.14.0 || >=18.10.0", - "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", - "yarn": ">= 1.13.0" - } + "license": "MIT", + "optional": true, + "os": [ + "android" + ] }, - "node_modules/@sigstore/bundle": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-1.1.0.tgz", - "integrity": "sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog==", + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.44.1.tgz", + "integrity": "sha512-RurZetXqTu4p+G0ChbnkwBuAtwAbIwJkycw1n6GvlGlBuS4u5qlr5opix8cBAYFJgaY05TWtM+LaoFggUmbZEQ==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@sigstore/protobuf-specs": "^0.2.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } + "license": "MIT", + "optional": true, + "os": [ + "android" + ] }, - "node_modules/@sigstore/protobuf-specs": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@sigstore/protobuf-specs/-/protobuf-specs-0.2.1.tgz", - "integrity": "sha512-XTWVxnWJu+c1oCshMLwnKvz8ZQJJDVOlciMfgpJBQbThVjKTCG8dwyhgLngBD2KN0ap9F/gOV8rFDEx8uh7R2A==", + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.1.tgz", + "integrity": "sha512-fM/xPesi7g2M7chk37LOnmnSTHLG/v2ggWqKj3CCA1rMA4mm5KVBT1fNoswbo1JhPuNNZrVwpTvlCVggv8A2zg==", + "cpu": [ + "arm64" + ], "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] }, - "node_modules/@sigstore/sign": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@sigstore/sign/-/sign-1.0.0.tgz", - "integrity": "sha512-INxFVNQteLtcfGmcoldzV6Je0sbbfh9I16DM4yJPw3j5+TFP8X6uIiA18mvpEa9yyeycAKgPmOA3X9hVdVTPUA==", + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.1.tgz", + "integrity": "sha512-gDnWk57urJrkrHQ2WVx9TSVTH7lSlU7E3AFqiko+bgjlh78aJ88/3nycMax52VIVjIm3ObXnDL2H00e/xzoipw==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "@sigstore/bundle": "^1.1.0", - "@sigstore/protobuf-specs": "^0.2.0", - "make-fetch-happen": "^11.0.1" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] }, - "node_modules/@sigstore/tuf": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@sigstore/tuf/-/tuf-1.0.3.tgz", - "integrity": "sha512-2bRovzs0nJZFlCN3rXirE4gwxCn97JNjMmwpecqlbgV9WcxX7WRuIrgzx/X7Ib7MYRbyUTpBYE0s2x6AmZXnlg==", + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.44.1.tgz", + "integrity": "sha512-wnFQmJ/zPThM5zEGcnDcCJeYJgtSLjh1d//WuHzhf6zT3Md1BvvhJnWoy+HECKu2bMxaIcfWiu3bJgx6z4g2XA==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "@sigstore/protobuf-specs": "^0.2.0", - "tuf-js": "^1.1.7" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@socket.io/component-emitter": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", - "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==", - "dev": true + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.44.1.tgz", + "integrity": "sha512-uBmIxoJ4493YATvU2c0upGz87f99e3wop7TJgOA/bXMFd2SvKCI7xkxY/5k50bv7J6dw1SXT4MQBQSLn8Bb/Uw==", + "cpu": [ + "x64" + ], "dev": true, - "engines": { - "node": ">= 6" - } + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] }, - "node_modules/@tufjs/canonical-json": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-1.0.0.tgz", - "integrity": "sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ==", + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.44.1.tgz", + "integrity": "sha512-n0edDmSHlXFhrlmTK7XBuwKlG5MbS7yleS1cQ9nn4kIeW+dJH+ExqNgQ0RrFRew8Y+0V/x6C5IjsHrJmiHtkxQ==", + "cpu": [ + "arm" + ], "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@tufjs/models": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tufjs/models/-/models-1.0.4.tgz", - "integrity": "sha512-qaGV9ltJP0EO25YfFUPhxRVK0evXFIAGicsVXuRim4Ed9cjPxYhNnNJ49SFmbeLgtxpslIkX317IgpfcHPVj/A==", + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.44.1.tgz", + "integrity": "sha512-8WVUPy3FtAsKSpyk21kV52HCxB+me6YkbkFHATzC2Yd3yuqHwy2lbFL4alJOLXKljoRw08Zk8/xEj89cLQ/4Nw==", + "cpu": [ + "arm" + ], "dev": true, - "dependencies": { - "@tufjs/canonical-json": "1.0.0", - "minimatch": "^9.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@tufjs/models/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.1.tgz", + "integrity": "sha512-yuktAOaeOgorWDeFJggjuCkMGeITfqvPgkIXhDqsfKX8J3jGyxdDZgBV/2kj/2DyPaLiX6bPdjJDTu9RB8lUPQ==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@tufjs/models/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.1.tgz", + "integrity": "sha512-W+GBM4ifET1Plw8pdVaecwUgxmiH23CfAUj32u8knq0JPFyK4weRy6H7ooxYFD19YxBulL0Ktsflg5XS7+7u9g==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@types/body-parser": { - "version": "1.19.4", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.4.tgz", - "integrity": "sha512-N7UDG0/xiPQa2D/XrVJXjkWbpqHCd2sBaB32ggRF2l83RhPfamgKGF8gwwqyksS95qUS5ZYF9aF+lLPRlwI2UA==", + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.44.1.tgz", + "integrity": "sha512-1zqnUEMWp9WrGVuVak6jWTl4fEtrVKfZY7CvcBmUUpxAJ7WcSowPSAWIKa/0o5mBL/Ij50SIf9tuirGx63Ovew==", + "cpu": [ + "loong64" + ], "dev": true, - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@types/bonjour": { - "version": "3.5.12", - "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.12.tgz", - "integrity": "sha512-ky0kWSqXVxSqgqJvPIkgFkcn4C8MnRog308Ou8xBBIVo39OmUFy+jqNe0nPwLCDFxUpmT9EvT91YzOJgkDRcFg==", + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.44.1.tgz", + "integrity": "sha512-Rl3JKaRu0LHIx7ExBAAnf0JcOQetQffaw34T8vLlg9b1IhzcBgaIdnvEbbsZq9uZp3uAH+JkHd20Nwn0h9zPjA==", + "cpu": [ + "ppc64" + ], "dev": true, - "dependencies": { - "@types/node": "*" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@types/connect": { - "version": "3.4.37", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.37.tgz", - "integrity": "sha512-zBUSRqkfZ59OcwXon4HVxhx5oWCJmc0OtBTK05M+p0dYjgN6iTwIL2T/WbsQZrEsdnwaF9cWQ+azOnpPvIqY3Q==", + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.44.1.tgz", + "integrity": "sha512-j5akelU3snyL6K3N/iX7otLBIl347fGwmd95U5gS/7z6T4ftK288jKq3A5lcFKcx7wwzb5rgNvAg3ZbV4BqUSw==", + "cpu": [ + "riscv64" + ], "dev": true, - "dependencies": { - "@types/node": "*" - } + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@types/connect-history-api-fallback": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.2.tgz", - "integrity": "sha512-gX2j9x+NzSh4zOhnRPSdPPmTepS4DfxES0AvIFv3jGv5QyeAJf6u6dY5/BAoAJU9Qq1uTvwOku8SSC2GnCRl6Q==", + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.44.1.tgz", + "integrity": "sha512-ppn5llVGgrZw7yxbIm8TTvtj1EoPgYUAbfw0uDjIOzzoqlZlZrLJ/KuiE7uf5EpTpCTrNt1EdtzF0naMm0wGYg==", + "cpu": [ + "riscv64" + ], "dev": true, - "dependencies": { - "@types/express-serve-static-core": "*", - "@types/node": "*" - } - }, - "node_modules/@types/cookie": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz", - "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==", - "dev": true + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] }, - "node_modules/@types/cors": { - "version": "2.8.15", - "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.15.tgz", - "integrity": "sha512-n91JxbNLD8eQIuXDIChAN1tCKNWCEgpceU9b7ZMbFA+P+Q4yIeh80jizFLEvolRPc1ES0VdwFlGv+kJTSirogw==", + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.44.1.tgz", + "integrity": "sha512-Hu6hEdix0oxtUma99jSP7xbvjkUM/ycke/AQQ4EC5g7jNRLLIwjcNwaUy95ZKBJJwg1ZowsclNnjYqzN4zwkAw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.44.1.tgz", + "integrity": "sha512-EtnsrmZGomz9WxK1bR5079zee3+7a+AdFlghyd6VbAjgRJDbTANJ9dcPIPAi76uG05micpEL+gPGmAKYTschQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.1.tgz", + "integrity": "sha512-iAS4p+J1az6Usn0f8xhgL4PaU878KEtutP4hqw52I4IO6AGoyOkHCxcc4bqufv1tQLdDWFx8lR9YlwxKuv3/3g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.1.tgz", + "integrity": "sha512-NtSJVKcXwcqozOl+FwI41OH3OApDyLk3kqTJgx8+gp6On9ZEt5mYhIsKNPGuaZr3p9T6NWPKGU/03Vw4CNU9qg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.44.1.tgz", + "integrity": "sha512-JYA3qvCOLXSsnTR3oiyGws1Dm0YTuxAAeaYGVlGpUsHqloPcFjPg+X0Fj2qODGLNwQOAcCiQmHub/V007kiH5A==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.1.tgz", + "integrity": "sha512-J8o22LuF0kTe7m+8PvW9wk3/bRq5+mRo5Dqo6+vXb7otCm3TPhYOJqOaQtGU9YMWQSL3krMnoOxMr0+9E6F3Ug==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/wasm-node": { + "version": "4.46.2", + "resolved": "https://registry.npmjs.org/@rollup/wasm-node/-/wasm-node-4.46.2.tgz", + "integrity": "sha512-lZRiZl+B1R3VhqZgORtuUpc2YYbgIv+X6g3LgQHS5sjlf1ENiK1HZ6N5e8pEZ04nAWiwYM0JX7rP0eyxflkJRg==", "dev": true, + "license": "MIT", "dependencies": { - "@types/node": "*" + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, - "node_modules/@types/eslint": { - "version": "8.44.6", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.6.tgz", - "integrity": "sha512-P6bY56TVmX8y9J87jHNgQh43h6VVU+6H7oN7hgvivV81K2XY8qJZ5vqPy/HdUoVIelii2kChYVzQanlswPWVFw==", + "node_modules/@schematics/angular": { + "version": "20.1.4", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-20.1.4.tgz", + "integrity": "sha512-TNpm15NKf4buxPYnGaB3JY2B/3sbL19SdlpPDxkgyVY8WDDeZX95m3Tz2qlKpsYxy2XCGUj4Sxh7zJNGC9e/4g==", "dev": true, + "license": "MIT", "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" + "@angular-devkit/core": "20.1.4", + "@angular-devkit/schematics": "20.1.4", + "jsonc-parser": "3.3.1" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0", + "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", + "yarn": ">= 1.13.0" } }, - "node_modules/@types/eslint-scope": { - "version": "3.7.6", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.6.tgz", - "integrity": "sha512-zfM4ipmxVKWdxtDaJ3MP3pBurDXOCoyjvlpE3u6Qzrmw4BPbfm4/ambIeTk/r/J0iq/+2/xp0Fmt+gFvXJY2PQ==", + "node_modules/@sigstore/bundle": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-3.1.0.tgz", + "integrity": "sha512-Mm1E3/CmDDCz3nDhFKTuYdB47EdRFRQMOE/EAbiG1MJW77/w1b3P7Qx7JSrVJs8PfwOLOVcKQCHErIwCTyPbag==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" + "@sigstore/protobuf-specs": "^0.4.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@types/estree": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.3.tgz", - "integrity": "sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ==", - "dev": true + "node_modules/@sigstore/core": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sigstore/core/-/core-2.0.0.tgz", + "integrity": "sha512-nYxaSb/MtlSI+JWcwTHQxyNmWeWrUXJJ/G4liLrGG7+tS4vAz6LF3xRXqLH6wPIVUoZQel2Fs4ddLx4NCpiIYg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } }, - "node_modules/@types/express": { - "version": "4.17.20", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.20.tgz", - "integrity": "sha512-rOaqlkgEvOW495xErXMsmyX3WKBInbhG5eqojXYi3cGUaLoRDlXa5d52fkfWZT963AZ3v2eZ4MbKE6WpDAGVsw==", + "node_modules/@sigstore/protobuf-specs": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@sigstore/protobuf-specs/-/protobuf-specs-0.4.3.tgz", + "integrity": "sha512-fk2zjD9117RL9BjqEwF7fwv7Q/P9yGsMV4MUJZ/DocaQJ6+3pKr+syBq1owU5Q5qGw5CUbXzm+4yJ2JVRDQeSA==", "dev": true, - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" + "license": "Apache-2.0", + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@types/express-serve-static-core": { - "version": "4.17.39", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.39.tgz", - "integrity": "sha512-BiEUfAiGCOllomsRAZOiMFP7LAnrifHpt56pc4Z7l9K6ACyN06Ns1JLMBxwkfLOjJRlSf06NwWsT7yzfpaVpyQ==", + "node_modules/@sigstore/sign": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@sigstore/sign/-/sign-3.1.0.tgz", + "integrity": "sha512-knzjmaOHOov1Ur7N/z4B1oPqZ0QX5geUfhrVaqVlu+hl0EAoL4o+l0MSULINcD5GCWe3Z0+YJO8ues6vFlW0Yw==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" + "@sigstore/bundle": "^3.1.0", + "@sigstore/core": "^2.0.0", + "@sigstore/protobuf-specs": "^0.4.0", + "make-fetch-happen": "^14.0.2", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@types/http-errors": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.3.tgz", - "integrity": "sha512-pP0P/9BnCj1OVvQR2lF41EkDG/lWWnDyA203b/4Fmi2eTyORnBtcDoKDwjWQthELrBvWkMOrvSOnZ8OVlW6tXA==", - "dev": true - }, - "node_modules/@types/http-proxy": { - "version": "1.17.13", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.13.tgz", - "integrity": "sha512-GkhdWcMNiR5QSQRYnJ+/oXzu0+7JJEPC8vkWXK351BkhjraZF+1W13CUYARUvX9+NqIU2n6YHA4iwywsc/M6Sw==", + "node_modules/@sigstore/tuf": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@sigstore/tuf/-/tuf-3.1.1.tgz", + "integrity": "sha512-eFFvlcBIoGwVkkwmTi/vEQFSva3xs5Ot3WmBcjgjVdiaoelBLQaQ/ZBfhlG0MnG0cmTYScPpk7eDdGDWUcFUmg==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@types/node": "*" + "@sigstore/protobuf-specs": "^0.4.1", + "tuf-js": "^3.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@types/jasmine": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-5.1.1.tgz", - "integrity": "sha512-qL4GoZHHJl1JQ0vK31OtXMfkfGxYJnysmYz9kk0E8j5W96ThKykBF90uD3PcVmQUAzulbsaus2eFiBhCH5itfw==", - "dev": true + "node_modules/@sigstore/verify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@sigstore/verify/-/verify-2.1.1.tgz", + "integrity": "sha512-hVJD77oT67aowHxwT4+M6PGOp+E2LtLdTK3+FC0lBO9T7sYwItDMXZ7Z07IDCvR1M717a4axbIWckrW67KMP/w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^3.1.0", + "@sigstore/core": "^2.0.0", + "@sigstore/protobuf-specs": "^0.4.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } }, - "node_modules/@types/json-schema": { - "version": "7.0.14", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.14.tgz", - "integrity": "sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw==", - "dev": true + "node_modules/@socket.io/component-emitter": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", + "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==", + "dev": true, + "license": "MIT" }, - "node_modules/@types/lodash": { - "version": "4.14.200", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.200.tgz", - "integrity": "sha512-YI/M/4HRImtNf3pJgbF+W6FrXovqj+T+/HpENLTooK9PnkacBsDpeP3IpHab40CClUfhNmdM2WTNP2sa2dni5Q==", - "dev": true + "node_modules/@tufjs/canonical-json": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz", + "integrity": "sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^16.14.0 || >=18.0.0" + } }, - "node_modules/@types/lodash-es": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.10.tgz", - "integrity": "sha512-YJP+w/2khSBwbUSFdGsSqmDvmnN3cCKoPOL7Zjle6s30ZtemkkqhjVfFqGwPN7ASil5VyjE2GtyU/yqYY6mC0A==", + "node_modules/@tufjs/models": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@tufjs/models/-/models-3.0.1.tgz", + "integrity": "sha512-UUYHISyhCU3ZgN8yaear3cGATHb3SMuKHsQ/nVbHXcmnBf+LzQ/cQfhNG+rfaSHgqGKNEm2cOCLVLELStUQ1JA==", "dev": true, + "license": "MIT", "dependencies": { - "@types/lodash": "*" + "@tufjs/canonical-json": "2.0.0", + "minimatch": "^9.0.5" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@types/mime": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.4.tgz", - "integrity": "sha512-1Gjee59G25MrQGk8bsNvC6fxNiRgUlGn2wlhGf95a59DrprnnHk80FIMMFG9XHMdrfsuA119ht06QPDXA1Z7tw==", - "dev": true - }, - "node_modules/@types/node": { - "version": "18.18.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.6.tgz", - "integrity": "sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w==", - "dev": true - }, - "node_modules/@types/qs": { - "version": "6.9.9", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.9.tgz", - "integrity": "sha512-wYLxw35euwqGvTDx6zfY1vokBFnsK0HNrzc6xNHchxfO2hpuRg74GbkEW7e3sSmPvj0TjCDT1VCa6OtHXnubsg==", - "dev": true - }, - "node_modules/@types/range-parser": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.6.tgz", - "integrity": "sha512-+0autS93xyXizIYiyL02FCY8N+KkKPhILhcUSA276HxzreZ16kl+cmwvV2qAM/PuCCwPXzOXOWhiPcw20uSFcA==", - "dev": true - }, - "node_modules/@types/resolve": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", - "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", - "dev": true - }, - "node_modules/@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", - "dev": true + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } }, - "node_modules/@types/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ==", - "dev": true + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } }, - "node_modules/@types/send": { - "version": "0.17.3", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.3.tgz", - "integrity": "sha512-/7fKxvKUoETxjFUsuFlPB9YndePpxxRAOfGC/yJdc9kTjTeP5kRCTzfnE8kPUKCeyiyIZu0YQ76s50hCedI1ug==", - "dev": true, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "license": "MIT", "dependencies": { - "@types/mime": "^1", - "@types/node": "*" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "node_modules/@types/serve-index": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.3.tgz", - "integrity": "sha512-4KG+yMEuvDPRrYq5fyVm/I2uqAJSAwZK9VSa+Zf+zUq9/oxSSvy3kkIqyL+jjStv6UCVi8/Aho0NHtB1Fwosrg==", - "dev": true, + "node_modules/@types/babel__traverse": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", + "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", + "license": "MIT", "dependencies": { - "@types/express": "*" + "@babel/types": "^7.20.7" } }, - "node_modules/@types/serve-static": { - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.4.tgz", - "integrity": "sha512-aqqNfs1XTF0HDrFdlY//+SGUxmdSUbjeRXb5iaZc3x0/vMbYmdw9qvOgHWOyyLFxSSRnUuP5+724zBgfw8/WAw==", + "node_modules/@types/cors": { + "version": "2.8.19", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz", + "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==", "dev": true, + "license": "MIT", "dependencies": { - "@types/http-errors": "*", - "@types/mime": "*", "@types/node": "*" } }, - "node_modules/@types/sockjs": { - "version": "0.3.35", - "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.35.tgz", - "integrity": "sha512-tIF57KB+ZvOBpAQwSaACfEu7htponHXaFzP7RfKYgsOS0NoYnn+9+jzp7bbq4fWerizI3dTB4NfAZoyeQKWJLw==", + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/jasmine": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-5.1.8.tgz", + "integrity": "sha512-u7/CnvRdh6AaaIzYjCgUuVbREFgulhX05Qtf6ZtW+aOcjCKKVvKgpkPYJBFTZSHtFBYimzU4zP0V2vrEsq9Wcg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", "dev": true, + "license": "MIT", "dependencies": { - "@types/node": "*" + "@types/lodash": "*" } }, - "node_modules/@types/ws": { - "version": "8.5.8", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.8.tgz", - "integrity": "sha512-flUksGIQCnJd6sZ1l5dqCEG/ksaoAg/eUwiLAGTJQcfgvZJKF++Ta4bJA6A5aPSJmsr+xlseHn4KLgVlNnvPTg==", + "node_modules/@types/node": { + "version": "22.17.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.17.0.tgz", + "integrity": "sha512-bbAKTCqX5aNVryi7qXVMi+OkB3w/OyblodicMbvE38blyAz7GxXf6XYhklokijuPwwVg9sDLKRxt0ZHXQwZVfQ==", "dev": true, + "license": "MIT", "dependencies": { - "@types/node": "*" + "undici-types": "~6.21.0" } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", - "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.38.0.tgz", + "integrity": "sha512-CPoznzpuAnIOl4nhj4tRr4gIPj5AfKgkiJmGQDaq+fQnRJTYlcBjbX3wbciGmpoPf8DREufuPRe1tNMZnGdanA==", "dev": true, + "license": "MIT", "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.38.0", + "@typescript-eslint/type-utils": "8.38.0", + "@typescript-eslint/utils": "8.38.0", + "@typescript-eslint/visitor-keys": "8.38.0", "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "ignore": "^7.0.0", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.1.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "@typescript-eslint/parser": "^8.38.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", - "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.38.0.tgz", + "integrity": "sha512-Zhy8HCvBUEfBECzIl1PKqF4p11+d0aUJS1GeUiuqK9WmOug8YCmC4h4bjyBvMyAMI9sbRczmrYL5lKg/YMbrcQ==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/scope-manager": "8.38.0", + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/typescript-estree": "8.38.0", + "@typescript-eslint/visitor-keys": "8.38.0", "debug": "^4.3.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.38.0.tgz", + "integrity": "sha512-dbK7Jvqcb8c9QfH01YB6pORpqX1mn5gDZc9n63Ak/+jD67oWXn3Gs0M6vddAN+eDXBCS5EmNWzbSxsn9SzFWWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.38.0", + "@typescript-eslint/types": "^8.38.0", + "debug": "^4.3.4" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.38.0.tgz", + "integrity": "sha512-WJw3AVlFFcdT9Ri1xs/lg8LwDqgekWXWhH3iAF+1ZM+QPd7oxQ6jvtW/JPwzAScxitILUIFs0/AnQ/UWHzbATQ==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/visitor-keys": "8.38.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.38.0.tgz", + "integrity": "sha512-Lum9RtSE3EroKk/bYns+sPOodqb2Fv50XOl/gMviMKNvanETUuUcC9ObRbzrJ4VSd2JalPqgSAavwrPiPvnAiQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", - "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.38.0.tgz", + "integrity": "sha512-c7jAvGEZVf0ao2z+nnz8BUaHZD09Agbh+DY7qvBQqLiz8uJzRgVPj5YvOh8I8uEiH8oIUGIfHzMwUcGVco/SJg==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/typescript-estree": "8.38.0", + "@typescript-eslint/utils": "8.38.0", "debug": "^4.3.4", - "tsutils": "^3.21.0" + "ts-api-utils": "^2.1.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.38.0.tgz", + "integrity": "sha512-wzkUfX3plUqij4YwWaJyqhiPE5UCRVlFpKn1oCRn2O1bJ592XxWJj8ROQ3JD5MYXLORW84063z3tZTb/cs4Tyw==", "dev": true, + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -4300,449 +4318,139 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.38.0.tgz", + "integrity": "sha512-fooELKcAKzxux6fA6pxOflpNS0jc+nOQEEOipXFNjSlBS6fqrJOVY/whSn70SScHrcJ2LDsxWrneFoWYSVfqhQ==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", + "@typescript-eslint/project-service": "8.38.0", + "@typescript-eslint/tsconfig-utils": "8.38.0", + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/visitor-keys": "8.38.0", "debug": "^4.3.4", - "globby": "^11.1.0", + "fast-glob": "^3.3.2", "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.38.0.tgz", + "integrity": "sha512-hHcMA86Hgt+ijJlrD8fX0j1j8w4C92zue/8LOPAFioIno+W0+L7KqE8QZKCcPGc/92Vs9x36w/4MPTJhqXdyvg==", "dev": true, + "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.38.0", + "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/typescript-estree": "8.38.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.38.0.tgz", + "integrity": "sha512-pWrTcoFNWuwHlA9CvlfSsGWs14JxfN1TH25zM5L7o0pRLhsoZkDnTsXfQRJBEWJoV5DL0jf+Z+sxiud+K0mq1g==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" + "@typescript-eslint/types": "8.38.0", + "eslint-visitor-keys": "^4.2.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@vitejs/plugin-basic-ssl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.0.1.tgz", - "integrity": "sha512-pcub+YbFtFhaGRTo1832FQHQSHvMrlb43974e2eS8EKleR3p1cDdkJFPci1UhwkEf1J9Bz+wKBSzqpKp7nNj2A==", + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">=14.6.0" - }, - "peerDependencies": { - "vite": "^3.0.0 || ^4.0.0" - } - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", - "dev": true, - "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", - "dev": true, - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", - "dev": true, - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", - "dev": true, - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", - "dev": true - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@wessberg/ts-evaluator": { - "version": "0.0.27", - "resolved": "https://registry.npmjs.org/@wessberg/ts-evaluator/-/ts-evaluator-0.0.27.tgz", - "integrity": "sha512-7gOpVm3yYojUp/Yn7F4ZybJRxyqfMNf0LXK5KJiawbPfL0XTsJV+0mgrEDjOIR6Bi0OYk2Cyg4tjFu1r8MCZaA==", - "deprecated": "this package has been renamed to ts-evaluator. Please install ts-evaluator instead", - "dev": true, - "dependencies": { - "chalk": "^4.1.0", - "jsdom": "^16.4.0", - "object-path": "^0.11.5", - "tslib": "^2.0.3" - }, - "engines": { - "node": ">=10.1.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/wessberg/ts-evaluator?sponsor=1" - }, - "peerDependencies": { - "typescript": ">=3.2.x || >= 4.x" - } - }, - "node_modules/@wessberg/ts-evaluator/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@wessberg/ts-evaluator/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@wessberg/ts-evaluator/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "url": "https://opencollective.com/eslint" } }, - "node_modules/@wessberg/ts-evaluator/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@wessberg/ts-evaluator/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@vitejs/plugin-basic-ssl": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-2.1.0.tgz", + "integrity": "sha512-dOxxrhgyDIEUADhb/8OlV9JIqYLgos03YorAueTIeOUskLJSEsfwCByjbu98ctXitUN3znXKp0bYD/WHSudCeA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" - } - }, - "node_modules/@wessberg/ts-evaluator/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, - "engines": { - "node": ">=8" + "peerDependencies": { + "vite": "^6.0.0 || ^7.0.0" } }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, "node_modules/@yarnpkg/lockfile": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", - "dev": true - }, - "node_modules/@yarnpkg/parsers": { - "version": "3.0.0-rc.46", - "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.0-rc.46.tgz", - "integrity": "sha512-aiATs7pSutzda/rq8fnuPwTglyVwjM22bNnK2ZgjrpAjQHSSl3lztd2f9evst1W/qnC58DRz7T7QndUDumAR4Q==", "dev": true, - "dependencies": { - "js-yaml": "^3.10.0", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=14.15.0" - } + "license": "BSD-2-Clause" }, - "node_modules/@zkochan/js-yaml": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@zkochan/js-yaml/-/js-yaml-0.0.6.tgz", - "integrity": "sha512-nzvgl3VfhcELQ8LyVrYOru+UtAy1nrygk2+AGbTm8a5YcO6o8lSjAT+pfg3vJWxIoZKOUhrK6UU7xW/+00kQrg==", + "node_modules/abbrev": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz", + "integrity": "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==", "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@zkochan/js-yaml/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "dev": true - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true - }, "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", "dev": true, + "license": "MIT", "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" }, "engines": { "node": ">= 0.6" } }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, + "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -4750,107 +4458,37 @@ "node": ">=0.4.0" } }, - "node_modules/acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "dev": true, - "peerDependencies": { - "acorn": "^8" - } - }, "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, + "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/adjust-sourcemap-loader": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", - "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", - "dev": true, - "dependencies": { - "loader-utils": "^2.0.0", - "regex-parser": "^2.2.11" - }, - "engines": { - "node": ">=8.9" - } - }, - "node_modules/adjust-sourcemap-loader/node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/agentkeepalive": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", - "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", - "dev": true, - "dependencies": { - "humanize-ms": "^1.2.1" - }, - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "dev": true, - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 14" } }, "node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dev": true, + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "require-from-string": "^2.0.2" }, "funding": { "type": "github", @@ -4858,10 +4496,11 @@ } }, "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "^8.0.0" }, @@ -4874,16 +4513,52 @@ } } }, - "node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "node_modules/algoliasearch": { + "version": "5.32.0", + "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.32.0.tgz", + "integrity": "sha512-84xBncKNPBK8Ae89F65+SyVcOihrIbm/3N7to+GpRBHEUXGjA3ydWTMpcRW6jmFzkBQ/eqYy/y+J+NBpJWYjBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-abtesting": "5.32.0", + "@algolia/client-analytics": "5.32.0", + "@algolia/client-common": "5.32.0", + "@algolia/client-insights": "5.32.0", + "@algolia/client-personalization": "5.32.0", + "@algolia/client-query-suggestions": "5.32.0", + "@algolia/client-search": "5.32.0", + "@algolia/ingestion": "1.32.0", + "@algolia/monitoring": "1.32.0", + "@algolia/recommend": "5.32.0", + "@algolia/requester-browser-xhr": "5.32.0", + "@algolia/requester-fetch": "5.32.0", + "@algolia/requester-node-http": "5.32.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/angular-eslint": { + "version": "20.1.1", + "resolved": "https://registry.npmjs.org/angular-eslint/-/angular-eslint-20.1.1.tgz", + "integrity": "sha512-sJ/7vdBMmmYGq5054UHfBXCWHABo79bPbNiXVznqBu6mV85RZsT+IBV1JKLHmV4JtfHoNx1ElkSL2hR3ZeJbkQ==", "dev": true, + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.3" + "@angular-devkit/core": ">= 20.0.0 < 21.0.0", + "@angular-devkit/schematics": ">= 20.0.0 < 21.0.0", + "@angular-eslint/builder": "20.1.1", + "@angular-eslint/eslint-plugin": "20.1.1", + "@angular-eslint/eslint-plugin-template": "20.1.1", + "@angular-eslint/schematics": "20.1.1", + "@angular-eslint/template-parser": "20.1.1", + "@typescript-eslint/types": "^8.0.0", + "@typescript-eslint/utils": "^8.0.0" }, "peerDependencies": { - "ajv": "^8.8.2" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": "*", + "typescript-eslint": "^8.0.0" } }, "node_modules/ansi-colors": { @@ -4891,6 +4566,7 @@ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -4900,6 +4576,7 @@ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, + "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -4910,41 +4587,40 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ansi-html-community": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", - "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", - "dev": true, - "engines": [ - "node >= 0.8.0" - ], - "bin": { - "ansi-html": "bin/ansi-html" - } - }, "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -4953,375 +4629,151 @@ "node": ">= 8" } }, - "node_modules/aproba": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", - "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", - "dev": true - }, - "node_modules/are-we-there-yet": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", - "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, + "license": "MIT", "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } + "license": "Python-2.0" }, "node_modules/aria-query": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", - "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", - "dev": true, - "dependencies": { - "dequal": "^2.0.3" - } - }, - "node_modules/array-flatten": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", - "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", - "dev": true - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", - "dev": true - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true - }, - "node_modules/autoprefixer": { - "version": "10.4.14", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", - "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - } - ], - "dependencies": { - "browserslist": "^4.21.5", - "caniuse-lite": "^1.0.30001464", - "fraction.js": "^4.2.0", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/axios": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.1.tgz", - "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==", - "dev": true, - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/axios/node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, + "license": "Apache-2.0", "engines": { - "node": ">= 6" + "node": ">= 0.4" } }, "node_modules/axobject-query": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", - "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", - "dev": true, - "dependencies": { - "dequal": "^2.0.3" - } - }, - "node_modules/babel-loader": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.1.3.tgz", - "integrity": "sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw==", - "dev": true, - "dependencies": { - "find-cache-dir": "^4.0.0", - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 14.15.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0", - "webpack": ">=5" - } - }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, + "license": "Apache-2.0", "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz", - "integrity": "sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.4.3", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.5.tgz", - "integrity": "sha512-Q6CdATeAvbScWPNLB8lzSO7fgUVBkQt6zLgNlfyeCr/EQaEQR+bWiBYYPYAFyE528BMjRhL+1QBMOI4jc/c5TA==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.3", - "core-js-compat": "^3.32.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz", - "integrity": "sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.3" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + "node": ">= 0.4" } }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "license": "MIT" }, "node_modules/base64id": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", "dev": true, + "license": "MIT", "engines": { "node": "^4.5.0 || >= 5.9" } }, - "node_modules/batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", - "dev": true - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "node_modules/beasties": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/beasties/-/beasties-0.3.4.tgz", + "integrity": "sha512-NmzN1zN1cvGccXFyZ73335+ASXwBlVWcUPssiUDIlFdfyatHPRRufjCd5w8oPaQPvVnf9ELklaCGb1gi9FBwIw==", "dev": true, + "license": "Apache-2.0", + "dependencies": { + "css-select": "^5.1.0", + "css-what": "^6.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "htmlparser2": "^10.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.49", + "postcss-media-query-parser": "^0.2.3" + }, "engines": { - "node": "*" + "node": ">=14.0.0" } }, "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", "engines": { "node": ">=8" - } - }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/body-parser": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", - "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz", + "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==", "dev": true, + "license": "MIT", "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" + "bytes": "^3.1.2", + "content-type": "^1.0.5", + "debug": "^4.4.0", + "http-errors": "^2.0.0", + "iconv-lite": "^0.6.3", + "on-finished": "^2.4.1", + "qs": "^6.14.0", + "raw-body": "^3.0.0", + "type-is": "^2.0.0" }, "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/bonjour-service": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", - "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", - "dev": true, - "dependencies": { - "array-flatten": "^2.1.2", - "dns-equal": "^1.0.0", - "fast-deep-equal": "^3.1.3", - "multicast-dns": "^7.2.5" + "node": ">=18" } }, "node_modules/boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, + "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "balanced-match": "^1.0.0" } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, - "node_modules/browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "version": "4.25.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz", + "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", "funding": [ { "type": "opencollective", @@ -5336,11 +4788,12 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" + "caniuse-lite": "^1.0.30001726", + "electron-to-chromium": "^1.5.173", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" }, "bin": { "browserslist": "cli.js" @@ -5349,180 +4802,174 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/builtins": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", - "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==", "dev": true, - "dependencies": { - "semver": "^7.0.0" - } + "license": "MIT" }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/cacache": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-18.0.0.tgz", - "integrity": "sha512-I7mVOPl3PUCeRub1U8YoGz2Lqv9WOBpobZ8RyWFXmReuILz+3OAyTa5oH3QPdtKZD7N0Yk00aLfzn0qvp8dZ1w==", + "version": "19.0.1", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-19.0.1.tgz", + "integrity": "sha512-hdsUxulXCi5STId78vRVYEtDAjq99ICAUktLTeTYsLoTE6Z8dS0c8pWNCxwdrk9YfJeobDZc2Y186hD/5ZQgFQ==", "dev": true, + "license": "ISC", "dependencies": { - "@npmcli/fs": "^3.1.0", + "@npmcli/fs": "^4.0.0", "fs-minipass": "^3.0.0", "glob": "^10.2.2", "lru-cache": "^10.0.1", "minipass": "^7.0.3", - "minipass-collect": "^1.0.2", + "minipass-collect": "^2.0.1", "minipass-flush": "^1.0.5", "minipass-pipeline": "^1.2.4", - "p-map": "^4.0.0", - "ssri": "^10.0.0", - "tar": "^6.1.11", - "unique-filename": "^3.0.0" + "p-map": "^7.0.2", + "ssri": "^12.0.0", + "tar": "^7.4.3", + "unique-filename": "^4.0.0" }, "engines": { - "node": "^16.14.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/cacache/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "node_modules/cacache/node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" } }, "node_modules/cacache/node_modules/glob": { - "version": "10.3.10", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dev": true, + "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/cacache/node_modules/lru-cache": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz", - "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==", + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true, - "engines": { - "node": "14 || >=16.14" - } + "license": "ISC" }, - "node_modules/cacache/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "node_modules/cacache/node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/call-bind": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", - "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "node_modules/cacache/node_modules/tar": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz", + "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==", "dev": true, + "license": "ISC", "dependencies": { - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.1", - "set-function-length": "^1.1.1" + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.0.1", + "mkdirp": "^3.0.1", + "yallist": "^5.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=18" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/cacache/node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", "dev": true, + "license": "BlueOak-1.0.0", "engines": { - "node": ">=6" + "node": ">=18" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001551", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001551.tgz", - "integrity": "sha512-vtBAez47BoGMMzlbYhfXrMV1kvRF2WP/lqiMuDu1Sb4EE4LKEgjopFDSRtZfdVnslNRpOqV/woE+Xgrwj6VQlg==", + "version": "1.0.30001731", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001731.tgz", + "integrity": "sha512-lDdp2/wrOmTRWuoB5DpfNkC0rJDU8DqRa6nYL6HK6sytw70QMopt/NIc/9SM7ylItlBWfACXk0tEn37UWM/+mg==", "funding": [ { "type": "opencollective", @@ -5536,56 +4983,58 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/chardet": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/chart.js": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.9.1.tgz", - "integrity": "sha512-Ro2JbLmvg83gXF5F4sniaQ+lTbSv18E+TIf2cOeiH1Iqd2PGFOtem+DUufMZsCJwFE7ywPOpfXFBwRTGq7dh6w==" + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.5.0.tgz", + "integrity": "sha512-aYeC/jDgSEx8SHWZvANYMioYMZ2KX02W6f6uVfyteuCGcadDLcYVHdfdygsTQkQ4TKn5lghoojAsPj5pu0SnvQ==", + "license": "MIT", + "dependencies": { + "@kurkle/color": "^0.3.0" + }, + "engines": { + "pnpm": ">=8" + } }, "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "license": "MIT", "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" + "readdirp": "^4.0.1" }, "engines": { - "node": ">= 8.10.0" + "node": ">= 14.16.0" }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/chownr": { @@ -5593,227 +5042,167 @@ "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", "dev": true, + "license": "ISC", "engines": { "node": ">=10" } }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "node_modules/cli-cursor": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", + "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", "dev": true, + "license": "MIT", + "dependencies": { + "restore-cursor": "^5.0.0" + }, "engines": { - "node": ">=6.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "node_modules/cli-truncate": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz", + "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==", "dev": true, + "license": "MIT", "dependencies": { - "restore-cursor": "^3.1.0" + "slice-ansi": "^5.0.0", + "string-width": "^7.0.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/cli-spinners": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", - "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==", - "dev": true, - "engines": { - "node": ">=6" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/cli-width": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", - "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", + "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", "dev": true, + "license": "ISC", "engines": { - "node": ">= 10" + "node": ">= 12" } }, "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "license": "ISC", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=20" } }, - "node_modules/clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "dev": true, + "node_modules/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "license": "MIT", "engines": { - "node": ">=0.8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", + "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", + "license": "MIT", "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=6" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", "dependencies": { - "color-name": "1.1.3" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true, - "bin": { - "color-support": "bin.js" - } + "license": "MIT" }, "node_modules/colorette": { "version": "2.0.20", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "dev": true - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } + "license": "MIT" }, "node_modules/commander": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", - "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.0.tgz", + "integrity": "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=16" + "node": ">=20" } }, "node_modules/common-path-prefix": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==", - "dev": true - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "dev": true - }, - "node_modules/compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "dev": true, - "dependencies": { - "mime-db": ">= 1.43.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "dev": true, - "dependencies": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/compression/node_modules/bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/compression/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/compression/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/compression/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "license": "ISC" }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/connect": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", "dev": true, + "license": "MIT", "dependencies": { "debug": "2.6.9", "finalhandler": "1.1.2", @@ -5824,41 +5213,81 @@ "node": ">= 0.10.0" } }, - "node_modules/connect-history-api-fallback": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", - "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", - "dev": true, - "engines": { - "node": ">=0.8" - } - }, "node_modules/connect/node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.0.0" } }, + "node_modules/connect/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/connect/node_modules/finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/connect/node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true + "dev": true, + "license": "MIT" }, - "node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", - "dev": true + "node_modules/connect/node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "dev": true, + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/connect/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } }, "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", + "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", "dev": true, + "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" }, @@ -5871,6 +5300,7 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -5878,28 +5308,35 @@ "node_modules/convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "license": "MIT" }, "node_modules/cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } }, "node_modules/copy-anything": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz", "integrity": "sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==", "dev": true, + "license": "MIT", "dependencies": { "is-what": "^3.14.1" }, @@ -5907,239 +5344,191 @@ "url": "https://github.com/sponsors/mesqueeb" } }, - "node_modules/copy-webpack-plugin": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz", - "integrity": "sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==", + "node_modules/copyfiles": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/copyfiles/-/copyfiles-2.4.1.tgz", + "integrity": "sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==", "dev": true, + "license": "MIT", "dependencies": { - "fast-glob": "^3.2.11", - "glob-parent": "^6.0.1", - "globby": "^13.1.1", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "glob": "^7.0.5", + "minimatch": "^3.0.3", + "mkdirp": "^1.0.4", + "noms": "0.0.0", + "through2": "^2.0.1", + "untildify": "^4.0.0", + "yargs": "^16.1.0" }, - "peerDependencies": { - "webpack": "^5.1.0" + "bin": { + "copyfiles": "copyfiles", + "copyup": "copyfiles" } }, - "node_modules/copy-webpack-plugin/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "node_modules/copyfiles/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, + "license": "MIT", "engines": { - "node": ">=10.13.0" + "node": ">=8" } }, - "node_modules/copy-webpack-plugin/node_modules/globby": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", - "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", + "node_modules/copyfiles/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, + "license": "MIT", "dependencies": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.3.0", - "ignore": "^5.2.4", - "merge2": "^1.4.1", - "slash": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/copy-webpack-plugin/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/core-js-compat": { - "version": "3.33.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.1.tgz", - "integrity": "sha512-6pYKNOgD/j/bkC5xS5IIg6bncid3rfrI42oBH1SQJbsmYPKF7rhzcFzYCcxYMmNQQ0rCEB8WqpW7QHndOggaeQ==", + "node_modules/copyfiles/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, + "license": "ISC", "dependencies": { - "browserslist": "^4.22.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" } }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true + "node_modules/copyfiles/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "node_modules/copyfiles/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, + "license": "MIT", "engines": { - "node": ">= 0.10" + "node": ">=8" } }, - "node_modules/cosmiconfig": { - "version": "8.3.6", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", - "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "node_modules/copyfiles/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": "*" } }, - "node_modules/cosmiconfig/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/cosmiconfig/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "node_modules/copyfiles/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { - "argparse": "^2.0.1" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/critters": { - "version": "0.0.20", - "resolved": "https://registry.npmjs.org/critters/-/critters-0.0.20.tgz", - "integrity": "sha512-CImNRorKOl5d8TWcnAz5n5izQ6HFsvz29k327/ELy6UFcmbiZNOsinaKvzv16WZR0P6etfSWYzE47C4/56B3Uw==", - "dev": true, - "dependencies": { - "chalk": "^4.1.0", - "css-select": "^5.1.0", - "dom-serializer": "^2.0.0", - "domhandler": "^5.0.2", - "htmlparser2": "^8.0.2", - "postcss": "^8.4.23", - "pretty-bytes": "^5.3.0" + "engines": { + "node": ">=8" } }, - "node_modules/critters/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/copyfiles/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" + "ansi-regex": "^5.0.1" }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/critters/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/copyfiles/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/critters/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/copyfiles/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, + "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" }, "engines": { - "node": ">=7.0.0" + "node": ">=10" } }, - "node_modules/critters/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/critters/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/copyfiles/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, + "license": "ISC", "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/critters/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", "dev": true, + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "object-assign": "^4", + "vary": "^1" }, "engines": { - "node": ">=8" + "node": ">= 0.10" } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -6149,37 +5538,12 @@ "node": ">= 8" } }, - "node_modules/css-loader": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz", - "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==", - "dev": true, - "dependencies": { - "icss-utils": "^5.1.0", - "postcss": "^8.4.21", - "postcss-modules-extract-imports": "^3.0.0", - "postcss-modules-local-by-default": "^4.0.3", - "postcss-modules-scope": "^3.0.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.2.0", - "semver": "^7.3.8" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, "node_modules/css-select": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", - "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz", + "integrity": "sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "boolbase": "^1.0.0", "css-what": "^6.1.0", @@ -6192,10 +5556,11 @@ } }, "node_modules/css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz", + "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">= 6" }, @@ -6203,82 +5568,30 @@ "url": "https://github.com/sponsors/fb55" } }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - }, - "node_modules/cuint": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/cuint/-/cuint-0.2.2.tgz", - "integrity": "sha512-d4ZVpCW31eWwCMe1YT3ur7mUDnTXbgwyzaL320DrcRT45rfjYxkt5QWLrmOJ+/UEAI2+fQgKe/fCjR8l4TpRgw==", - "dev": true - }, "node_modules/custom-event": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz", "integrity": "sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg==", - "dev": true - }, - "node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", "dev": true, - "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "engines": { - "node": ">=10" - } + "license": "MIT" }, "node_modules/date-format": { "version": "4.0.14", "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.0" } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -6289,185 +5602,68 @@ } } }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true - }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "dev": true, + "license": "MIT" }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">= 0.8" } }, - "node_modules/default-gateway": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", - "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "node_modules/dependency-graph": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-1.0.0.tgz", + "integrity": "sha512-cW3gggJ28HZ/LExwxP2B++aiKxhJXMSIt9K48FOXQkm+vuG5gyatXnLsONRJdzO/7VfjDIiaOOa/bs4l464Lwg==", "dev": true, - "dependencies": { - "execa": "^5.0.0" - }, + "license": "MIT", "engines": { - "node": ">= 10" + "node": ">=4" } }, - "node_modules/defaults": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", - "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", "dev": true, - "dependencies": { - "clone": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/define-data-property": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", - "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, + "license": "MIT", "engines": { - "node": ">= 0.4" + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "node_modules/detect-libc": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz", + "integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==", "dev": true, + "license": "Apache-2.0", + "optional": true, "engines": { "node": ">=8" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", - "dev": true - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/dependency-graph": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", - "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", - "dev": true - }, "node_modules/di": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz", "integrity": "sha512-uJaamHkagcZtHPqCIHZxnFrXlunQXgBOsZSUOWwFw31QJCAbyTBoHMW75YOTur5ZNx8pIeAKgf6GWIgaqqiLhA==", - "dev": true - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dns-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==", - "dev": true - }, - "node_modules/dns-packet": { - "version": "5.6.1", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.1.tgz", - "integrity": "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==", - "dev": true, - "dependencies": { - "@leichtgewicht/ip-codec": "^2.0.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } + "license": "MIT" }, "node_modules/dom-serialize": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/dom-serialize/-/dom-serialize-2.2.1.tgz", "integrity": "sha512-Yra4DbvoW7/Z6LBN560ZwXMjoNOSAN2wRsKFGc4iBeso+mpIA6qj1vfdf9HpMaKAqG6wXTy+1SYEzmNpKXOSsQ==", "dev": true, + "license": "MIT", "dependencies": { "custom-event": "~1.0.0", "ent": "~2.2.0", @@ -6480,6 +5676,7 @@ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", "dev": true, + "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", @@ -6499,34 +5696,15 @@ "type": "github", "url": "https://github.com/sponsors/fb55" } - ] - }, - "node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dev": true, - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true, - "engines": { - "node": ">=8" - } + ], + "license": "BSD-2-Clause" }, "node_modules/domhandler": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "domelementtype": "^2.3.0" }, @@ -6538,10 +5716,11 @@ } }, "node_modules/domutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", - "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", + "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", @@ -6551,72 +5730,53 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, "engines": { - "node": ">=10" + "node": ">= 0.4" } }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", - "dev": true - }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true - }, - "node_modules/ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", "dev": true, - "dependencies": { - "jake": "^10.8.5" - }, - "bin": { - "ejs": "bin/cli.js" - }, - "engines": { - "node": ">=0.10.0" - } + "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.4.561", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.561.tgz", - "integrity": "sha512-eS5t4ulWOBfVHdq9SW2dxEaFarj1lPjvJ8PaYMOjY0DecBaj/t4ARziL2IPpDr4atyWwjLFGQ2vo/VCgQFezVQ==" + "version": "1.5.193", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.193.tgz", + "integrity": "sha512-eePuBZXM9OVCwfYUhd2OzESeNGnWmLyeu0XAEjf7xjijNjHFdeJSzuRUGN4ueT2tEYo5YqjHramKEFxz67p3XA==", + "license": "ISC" }, "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "dev": true, - "engines": { - "node": ">= 4" - } + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", + "license": "MIT" }, "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -6626,120 +5786,130 @@ "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { "iconv-lite": "^0.6.2" } }, - "node_modules/encoding/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "optional": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "dependencies": { - "once": "^1.4.0" - } - }, "node_modules/engine.io": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.5.3.tgz", - "integrity": "sha512-IML/R4eG/pUS5w7OfcDE0jKrljWS9nwnEfsxWCIJF5eO6AHo6+Hlv+lQbdlAYsiJPHzUthLm1RUjnBzWOs45cw==", + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.6.4.tgz", + "integrity": "sha512-ZCkIjSYNDyGn0R6ewHDtXgns/Zre/NT6Agvq1/WobF7JXgFff4SeDroKiCO3fNJreU9YG429Sc81o4w5ok/W5g==", "dev": true, + "license": "MIT", "dependencies": { - "@types/cookie": "^0.4.1", "@types/cors": "^2.8.12", "@types/node": ">=10.0.0", "accepts": "~1.3.4", "base64id": "2.0.0", - "cookie": "~0.4.1", + "cookie": "~0.7.2", "cors": "~2.8.5", "debug": "~4.3.1", "engine.io-parser": "~5.2.1", - "ws": "~8.11.0" + "ws": "~8.17.1" }, "engines": { "node": ">=10.2.0" } }, "node_modules/engine.io-parser": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.1.tgz", - "integrity": "sha512-9JktcM3u18nU9N2Lz3bWeBgxVgOKpw7yhRaoxQA3FUDZzzw+9WlA6p4G4u0RixNkg14fH7EfEc/RhpurtiROTQ==", + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", + "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.0.0" } }, - "node_modules/engine.io/node_modules/ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "node_modules/engine.io/node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, "engines": { - "node": ">=10.0.0" + "node": ">= 0.6" + } + }, + "node_modules/engine.io/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "engines": { + "node": ">=6.0" }, "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { + "supports-color": { "optional": true } } }, - "node_modules/enhanced-resolve": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", - "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "node_modules/engine.io/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, + "license": "MIT", "engines": { - "node": ">=10.13.0" + "node": ">= 0.6" } }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "node_modules/engine.io/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-colors": "^4.1.1" + "mime-db": "1.52.0" }, "engines": { - "node": ">=8.6" + "node": ">= 0.6" + } + }, + "node_modules/engine.io/node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" } }, "node_modules/ent": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", - "integrity": "sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==", - "dev": true + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.2.tgz", + "integrity": "sha512-kKvD1tO6BM+oK9HzCPpUdRb4vKFQY/FPTFmurMvh6LlN68VMrdj77w8yp51/kDbpkFOS9J8w5W6zIzgM2H8/hw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "punycode": "^1.4.1", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } }, "node_modules/entities": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "devOptional": true, + "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.12" }, @@ -6752,21 +5922,37 @@ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, + "node_modules/environment": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz", + "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/err-code": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/errno": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { "prr": "~1.0.1" @@ -6775,74 +5961,85 @@ "errno": "cli.js" } }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" + "license": "MIT", + "engines": { + "node": ">= 0.4" } }, - "node_modules/es-module-lexer": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.1.tgz", - "integrity": "sha512-JUFAyicQV9mXc3YRxPnDlrfBKpqt6hUYzz9/boprUJHs4e4KVr3XwOF70doO6gwXUor6EWZJAyWAfKki84t20Q==", - "dev": true + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } }, "node_modules/esbuild": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.17.tgz", - "integrity": "sha512-1GJtYnUxsJreHYA0Y+iQz2UEykonY66HNWOb0yXYZi9/kNrORUEHVg87eQsCtqh59PEJ5YVZJO98JHznMJSWjg==", + "version": "0.25.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.5.tgz", + "integrity": "sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==", "dev": true, "hasInstallScript": true, + "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, "engines": { - "node": ">=12" + "node": ">=18" }, "optionalDependencies": { - "@esbuild/android-arm": "0.18.17", - "@esbuild/android-arm64": "0.18.17", - "@esbuild/android-x64": "0.18.17", - "@esbuild/darwin-arm64": "0.18.17", - "@esbuild/darwin-x64": "0.18.17", - "@esbuild/freebsd-arm64": "0.18.17", - "@esbuild/freebsd-x64": "0.18.17", - "@esbuild/linux-arm": "0.18.17", - "@esbuild/linux-arm64": "0.18.17", - "@esbuild/linux-ia32": "0.18.17", - "@esbuild/linux-loong64": "0.18.17", - "@esbuild/linux-mips64el": "0.18.17", - "@esbuild/linux-ppc64": "0.18.17", - "@esbuild/linux-riscv64": "0.18.17", - "@esbuild/linux-s390x": "0.18.17", - "@esbuild/linux-x64": "0.18.17", - "@esbuild/netbsd-x64": "0.18.17", - "@esbuild/openbsd-x64": "0.18.17", - "@esbuild/sunos-x64": "0.18.17", - "@esbuild/win32-arm64": "0.18.17", - "@esbuild/win32-ia32": "0.18.17", - "@esbuild/win32-x64": "0.18.17" - } - }, - "node_modules/esbuild-wasm": { - "version": "0.18.17", - "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.18.17.tgz", - "integrity": "sha512-9OHGcuRzy+I8ziF9FzjfKLWAPbvi0e/metACVg9k6bK+SI4FFxeV6PcZsz8RIVaMD4YNehw+qj6UMR3+qj/EuQ==", - "dev": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" + "@esbuild/aix-ppc64": "0.25.5", + "@esbuild/android-arm": "0.25.5", + "@esbuild/android-arm64": "0.25.5", + "@esbuild/android-x64": "0.25.5", + "@esbuild/darwin-arm64": "0.25.5", + "@esbuild/darwin-x64": "0.25.5", + "@esbuild/freebsd-arm64": "0.25.5", + "@esbuild/freebsd-x64": "0.25.5", + "@esbuild/linux-arm": "0.25.5", + "@esbuild/linux-arm64": "0.25.5", + "@esbuild/linux-ia32": "0.25.5", + "@esbuild/linux-loong64": "0.25.5", + "@esbuild/linux-mips64el": "0.25.5", + "@esbuild/linux-ppc64": "0.25.5", + "@esbuild/linux-riscv64": "0.25.5", + "@esbuild/linux-s390x": "0.25.5", + "@esbuild/linux-x64": "0.25.5", + "@esbuild/netbsd-arm64": "0.25.5", + "@esbuild/netbsd-x64": "0.25.5", + "@esbuild/openbsd-arm64": "0.25.5", + "@esbuild/openbsd-x64": "0.25.5", + "@esbuild/sunos-x64": "0.25.5", + "@esbuild/win32-arm64": "0.25.5", + "@esbuild/win32-ia32": "0.25.5", + "@esbuild/win32-x64": "0.25.5" } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", "engines": { "node": ">=6" } @@ -6851,112 +6048,95 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/escodegen": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", - "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, + "license": "MIT", "engines": { - "node": ">=6.0" + "node": ">=10" }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.10.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint": { - "version": "8.51.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.51.0.tgz", - "integrity": "sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==", + "version": "9.32.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.32.0.tgz", + "integrity": "sha512-LSehfdpgMeWcTZkWZVIJl+tkZ2nuSkyyB9C27MZqFWXuph7DvaowgcTvKqxvpLW1JZIk8PN7hFY3Rj9LQ7m7lg==", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.51.0", - "@humanwhocodes/config-array": "^0.11.11", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.0", + "@eslint/core": "^0.15.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.32.0", + "@eslint/plugin-kit": "^0.3.4", + "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", + "cross-spawn": "^7.0.6", "debug": "^4.3.2", - "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", + "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" + "optionator": "^0.9.3" }, "bin": { "eslint": "bin/eslint.js" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -6967,6 +6147,7 @@ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, + "license": "Apache-2.0", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -6979,6 +6160,7 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -6990,247 +6172,97 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, + "license": "MIT", "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/eslint/node_modules/globals": { - "version": "13.23.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", - "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, + "license": "Apache-2.0", "engines": { - "node": ">=8" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/eslint/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "node": ">= 4" } }, "node_modules/eslint/node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/eslint/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "license": "MIT" }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { - "has-flag": "^4.0.0" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "*" } }, "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.9.0", + "acorn": "^8.15.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "eslint-visitor-keys": "^4.2.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, + "license": "Apache-2.0", "engines": { - "node": ">=4" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" }, @@ -7243,6 +6275,7 @@ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" }, @@ -7255,6 +6288,7 @@ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } @@ -7263,13 +6297,15 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } @@ -7279,209 +6315,120 @@ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, - "node_modules/eventemitter-asyncresource": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/eventemitter-asyncresource/-/eventemitter-asyncresource-1.0.0.tgz", - "integrity": "sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ==", - "dev": true - }, "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "dev": true + "dev": true, + "license": "MIT" }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "node_modules/eventsource": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", + "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", "dev": true, + "license": "MIT", + "dependencies": { + "eventsource-parser": "^3.0.1" + }, "engines": { - "node": ">=0.8.x" + "node": ">=18.0.0" } }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "node_modules/eventsource-parser": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.3.tgz", + "integrity": "sha512-nVpZkTMM9rF6AQ9gPJpFsNAMt48wIzB5TQgiTLdHiuO8XEDhUgZEhqKlZWXbIzo9VmJ/HvysHqEaVeD5v9TPvA==", "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, + "license": "MIT", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "node": ">=20.0.0" } }, "node_modules/exponential-backoff": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", - "integrity": "sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==", - "dev": true + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.2.tgz", + "integrity": "sha512-8QxYTVXUkuy7fIIoitQkPwGonB8F3Zj8eEO8Sqg9Zv/bkI7RJAzowee4gr81Hak/dUTpA2Z7VfQgoijjPNlUZA==", + "dev": true, + "license": "Apache-2.0" }, "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "dev": true, - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz", + "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.0", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" }, "engines": { - "node": ">= 0.10.0" + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/express/node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true - }, - "node_modules/express/node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/express/node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "node_modules/express-rate-limit": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.1.tgz", + "integrity": "sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" + "node": ">= 16" }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/express/node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" + "funding": { + "url": "https://github.com/sponsors/express-rate-limit" }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/express/node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "engines": { - "node": ">= 0.8" + "peerDependencies": { + "express": ">= 4.11" } }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", "dev": true, + "license": "MIT", "dependencies": { "chardet": "^0.7.0", "iconv-lite": "^0.4.24", @@ -7491,133 +6438,130 @@ "node": ">=4" } }, - "node_modules/external-editor/node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "node_modules/external-editor/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, + "license": "MIT", "dependencies": { - "os-tmpdir": "~1.0.2" + "safer-buffer": ">= 2.1.2 < 3" }, "engines": { - "node": ">=0.6.0" + "node": ">=0.10.0" } }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "micromatch": "^4.0.8" }, "engines": { "node": ">=8.6.0" } }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "dev": true, - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "license": "MIT" }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/fast-uri": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", + "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" }, - "node_modules/filelist": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", - "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", "dev": true, + "license": "ISC", "dependencies": { - "minimatch": "^5.0.1" + "reusify": "^1.0.4" } }, - "node_modules/filelist/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" + "node_modules/fdir": { + "version": "6.4.6", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", + "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", + "license": "MIT", + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } } }, - "node_modules/filelist/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" + "flat-cache": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=16.0.0" } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -7626,112 +6570,95 @@ } }, "node_modules/finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/finalhandler/node_modules/on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", + "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", "dev": true, + "license": "MIT", "dependencies": { - "ee-first": "1.1.1" + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" }, "engines": { "node": ">= 0.8" } }, - "node_modules/find-cache-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-4.0.0.tgz", - "integrity": "sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg==", + "node_modules/find-cache-directory": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/find-cache-directory/-/find-cache-directory-6.0.0.tgz", + "integrity": "sha512-CvFd5ivA6HcSHbD+59P7CyzINHXzwhuQK8RY7CxJZtgDSAtRlHiCaQpZQ2lMR/WRyUIEmzUvL6G2AGurMfegZA==", "dev": true, + "license": "MIT", "dependencies": { "common-path-prefix": "^3.0.0", - "pkg-dir": "^7.0.0" + "pkg-dir": "^8.0.0" }, "engines": { - "node": ">=14.16" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "license": "MIT", "dependencies": { - "locate-path": "^5.0.0", + "locate-path": "^6.0.0", "path-exists": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "node_modules/find-up-simple": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.1.tgz", + "integrity": "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==", "dev": true, - "bin": { - "flat": "cli.js" + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/flat-cache": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", - "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, + "license": "MIT", "dependencies": { "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "keyv": "^4.5.4" }, "engines": { - "node": ">=12.0.0" + "node": ">=16" } }, "node_modules/flatted": { - "version": "3.2.9", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", - "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", - "dev": true + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", "dev": true, "funding": [ { @@ -7739,6 +6666,7 @@ "url": "https://github.com/sponsors/RubenVerborgh" } ], + "license": "MIT", "engines": { "node": ">=4.0" }, @@ -7749,12 +6677,13 @@ } }, "node_modules/foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", "dev": true, + "license": "ISC", "dependencies": { - "cross-spawn": "^7.0.0", + "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" }, "engines": { @@ -7764,81 +6693,39 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/foreground-child/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, - "node_modules/fraction.js": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", - "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", - "dev": true, - "engines": { - "node": "*" - }, - "funding": { - "type": "patreon", - "url": "https://github.com/sponsors/rawify" - } - }, "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.6" + "node": ">= 0.8" } }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true - }, "node_modules/fs-extra": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", "dev": true, + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" }, "engines": { - "node": ">=14.14" + "node": ">=6 <7 || >=8" } }, "node_modules/fs-minipass": { @@ -7846,6 +6733,7 @@ "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.3.tgz", "integrity": "sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==", "dev": true, + "license": "ISC", "dependencies": { "minipass": "^7.0.3" }, @@ -7853,23 +6741,20 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/fs-monkey": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.5.tgz", - "integrity": "sha512-8uMbBjrhzW76TYgEV27Y5E//W2f/lTFmx78P2w19FZSxarhI/798APGQyuGCwmkNxgwGRhrLfvWyLBvNtuOmew==", - "dev": true - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -7883,33 +6768,16 @@ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/gauge": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", - "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", - "dev": true, - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.3", - "console-control-strings": "^1.1.0", - "has-unicode": "^2.0.1", - "signal-exit": "^3.0.7", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.5" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -7918,51 +6786,69 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "node_modules/get-east-asian-width": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", + "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", + "license": "MIT", + "engines": { + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, "engines": { - "node": ">=8.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "dev": true, - "engines": { - "node": ">=10" + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">= 0.4" } }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -7979,57 +6865,70 @@ } }, "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", "dependencies": { - "is-glob": "^4.0.1" + "is-glob": "^4.0.3" }, "engines": { - "node": ">= 6" + "node": ">=10.13.0" } }, "node_modules/glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true + "dev": true, + "license": "BSD-2-Clause" }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "engines": { - "node": ">=4" + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=10" + "node": "*" + } + }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" + "license": "MIT", + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -8039,66 +6938,32 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/guess-parser": { - "version": "0.4.22", - "resolved": "https://registry.npmjs.org/guess-parser/-/guess-parser-0.4.22.tgz", - "integrity": "sha512-KcUWZ5ACGaBM69SbqwVIuWGoSAgD+9iJnchR9j/IarVI1jHVeXv+bUXBIMeqVMSKt3zrn0Dgf9UpcOEpPBLbSg==", - "dev": true, - "dependencies": { - "@wessberg/ts-evaluator": "0.0.27" - }, - "peerDependencies": { - "typescript": ">=3.7.5" - } - }, - "node_modules/handle-thing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", - "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", - "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", "dev": true, - "engines": { - "node": ">= 0.4.0" - } + "license": "MIT" }, "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "license": "MIT", + "engines": { + "node": ">=8" } }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -8106,11 +6971,15 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, "engines": { "node": ">= 0.4" }, @@ -8118,109 +6987,43 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", - "dev": true - }, - "node_modules/hdr-histogram-js": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/hdr-histogram-js/-/hdr-histogram-js-2.0.3.tgz", - "integrity": "sha512-Hkn78wwzWHNCp2uarhzQ2SGFLU3JY8SBDDd3TAABK4fc30wm+MuPOrg5QVFVfkKOQd6Bfz3ukJEI+q9sXEkK1g==", + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, + "license": "MIT", "dependencies": { - "@assemblyscript/loader": "^0.10.1", - "base64-js": "^1.2.0", - "pako": "^1.0.3" + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/hdr-histogram-percentiles-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/hdr-histogram-percentiles-obj/-/hdr-histogram-percentiles-obj-3.0.0.tgz", - "integrity": "sha512-7kIufnBqdsBGcSZLPJwqHT3yhk1QTsSlFsVD3kx5ixH/AlgBs9yM1q6DPhXZ8f8gtdqgh7N7/5btRLpQsS2gHw==", - "dev": true - }, "node_modules/hosted-git-info": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.1.tgz", - "integrity": "sha512-r0EI+HBMcXadMrugk0GCQ+6BQV39PiWAZVfq7oIckeGiN7sjRGyQxPdft3nQekFTCQbYxLBH+/axZMeH8UX6+w==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-8.1.0.tgz", + "integrity": "sha512-Rw/B2DNQaPBICNXEm8balFz9a6WpZrkCGpcWFpy7nCj+NyhSdqXipmfvtmWt9xGfp0wZnBxB+iVpLmQMYt47Tw==", "dev": true, + "license": "ISC", "dependencies": { - "lru-cache": "^7.5.1" + "lru-cache": "^10.0.1" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - } - }, - "node_modules/hpack.js/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/hpack.js/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/hpack.js/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true, - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "engines": { - "node": ">=10" - } + "license": "ISC" }, "node_modules/html-entities": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.4.0.tgz", - "integrity": "sha512-igBTJcNNNhvZFRtm8uA6xMY6xYleeDwn3PeBCkDz7tHttv4F2hsDI2aPgNERWzvRcNYHNT3ymRaQzllmXj4YsQ==", - "dev": true, + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz", + "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==", "funding": [ { "type": "github", @@ -8230,18 +7033,26 @@ "type": "patreon", "url": "https://patreon.com/mdevils" } - ] + ], + "license": "MIT" }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/html-to-md": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/html-to-md/-/html-to-md-0.8.8.tgz", + "integrity": "sha512-lgK3KKagobOguNi1XOfNaTtFSsjySir1CPfzewzVUjFM4x0RASnyZu47Hoe9nStpWFwpOwIrdxXzhxLIRbWllQ==", + "license": "MIT" }, "node_modules/htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.0.0.tgz", + "integrity": "sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==", "dev": true, "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", @@ -8250,30 +7061,40 @@ "url": "https://github.com/sponsors/fb55" } ], + "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" + "domutils": "^3.2.1", + "entities": "^6.0.0" } }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", - "dev": true + "node_modules/htmlparser2/node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } }, - "node_modules/http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==", - "dev": true + "node_modules/http-cache-semantics": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", + "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "dev": true, + "license": "BSD-2-Clause" }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", "dev": true, + "license": "MIT", "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", @@ -8290,21 +7111,17 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } }, - "node_modules/http-parser-js": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", - "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==", - "dev": true - }, "node_modules/http-proxy": { "version": "1.18.1", "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", "dev": true, + "license": "MIT", "dependencies": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", @@ -8315,158 +7132,80 @@ } }, "node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dev": true, + "license": "MIT", "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" + "agent-base": "^7.1.0", + "debug": "^4.3.4" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, - "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "dev": true, + "license": "MIT", "dependencies": { - "@types/http-proxy": "^1.17.8", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" + "agent-base": "^7.1.2", + "debug": "4" }, "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "@types/express": "^4.17.13" - }, - "peerDependenciesMeta": { - "@types/express": { - "optional": true - } + "node": ">= 14" } }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, + "license": "MIT", "dependencies": { - "agent-base": "6", - "debug": "4" + "safer-buffer": ">= 2.1.2 < 3.0.0" }, "engines": { - "node": ">= 6" + "node": ">=0.10.0" } }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10.17.0" + "node": ">= 4" } }, - "node_modules/humanize-ms": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", - "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "node_modules/ignore-walk": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-8.0.0.tgz", + "integrity": "sha512-FCeMZT4NiRQGh+YkeKMtWrOmBgWjHjMJ26WQWrRQyoyzqevdaGSakUaJW5xQYmjLlUVk2qUnCjYVBax9EKKg8A==", "dev": true, + "license": "ISC", "dependencies": { - "ms": "^2.0.0" + "minimatch": "^10.0.3" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "node_modules/ignore-walk/node_modules/minimatch": { + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "dev": true, + "license": "ISC", "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/ignore-walk": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-6.0.3.tgz", - "integrity": "sha512-C7FfFoTA+bI10qfeydT8aZbvr91vAEU+2W5BZUlzPec47oNb07SsOfwYrtxuvOYdUApPP/Qlh4DtAO51Ekk2QA==", - "dev": true, - "dependencies": { - "minimatch": "^9.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/ignore-walk/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/ignore-walk/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -8477,6 +7216,7 @@ "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==", "dev": true, + "license": "MIT", "optional": true, "bin": { "image-size": "bin/image-size.js" @@ -8486,16 +7226,18 @@ } }, "node_modules/immutable": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.4.tgz", - "integrity": "sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==", - "dev": true + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.3.tgz", + "integrity": "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg==", + "dev": true, + "license": "MIT" }, "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "dev": true, + "license": "MIT", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -8507,38 +7249,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.19" } }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -8548,147 +7275,59 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/ini": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.1.tgz", - "integrity": "sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-5.0.0.tgz", + "integrity": "sha512-+N0ngpO3e7cRUWOJAS7qw0IZIVc6XPrW4MlFBdD066F2L4k1L6ker3hLqSq7iXxU5tgS4WGkIUElWn5vogAEnw==", "dev": true, + "license": "ISC", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/injection-js": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/injection-js/-/injection-js-2.4.0.tgz", - "integrity": "sha512-6jiJt0tCAo9zjHbcwLiPL+IuNe9SQ6a9g0PEzafThW3fOQi0mrmiJGBJvDD6tmhPh8cQHIQtCOrJuBfQME4kPA==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/injection-js/-/injection-js-2.5.0.tgz", + "integrity": "sha512-UpY2ONt4xbht4GhSqQ2zMJ1rBIQq4uOY+DlR6aOeYyqK7xadXt7UQbJIyxmgk288bPMkIZKjViieHm0O0i72Jw==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.0" } }, - "node_modules/inquirer": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.4.tgz", - "integrity": "sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==", - "dev": true, - "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.1", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.21", - "mute-stream": "0.0.8", - "ora": "^5.4.1", - "run-async": "^2.4.0", - "rxjs": "^7.5.5", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/inquirer/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/inquirer/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/inquirer/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/inquirer/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/inquirer/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inquirer/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", "dev": true, + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" }, "engines": { - "node": ">=8" + "node": ">= 12" } }, - "node_modules/ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", - "dev": true - }, "node_modules/ipaddr.js": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz", - "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 10" + "node": ">= 0.10" } }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -8696,68 +7335,51 @@ "node": ">=8" } }, - "node_modules/is-builtin-module": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", - "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", - "dev": true, - "dependencies": { - "builtin-modules": "^3.3.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, + "license": "MIT", "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "bin": { - "is-docker": "cli.js" + "hasown": "^2.0.2" }, "engines": { - "node": ">=8" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", + "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -8766,92 +7388,62 @@ } }, "node_modules/is-interactive": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", + "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-lambda": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", - "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", - "dev": true - }, - "node_modules/is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", - "dev": true - }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=0.12.0" } }, - "node_modules/is-plain-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "license": "MIT" }, - "node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", "dev": true, + "license": "MIT", "dependencies": { - "isobject": "^3.0.1" + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -8861,31 +7453,22 @@ "version": "3.14.1", "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz", "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==", - "dev": true - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dev": true, - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } + "license": "MIT" }, "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true, + "license": "MIT" }, "node_modules/isbinaryfile": { "version": "4.0.10", "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8.0.0" }, @@ -8897,49 +7480,34 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "license": "ISC" }, "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=8" } }, "node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" + "semver": "^7.5.4" }, "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "node": ">=10" } }, "node_modules/istanbul-lib-report": { @@ -8947,6 +7515,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -8956,32 +7525,12 @@ "node": ">=10" } }, - "node_modules/istanbul-lib-report/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/istanbul-lib-source-maps": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -8996,15 +7545,17 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/istanbul-reports": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", - "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -9014,16 +7565,14 @@ } }, "node_modules/jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, - "engines": { - "node": ">=14" - }, "funding": { "url": "https://github.com/sponsors/isaacs" }, @@ -9031,256 +7580,87 @@ "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/jake": { - "version": "10.8.7", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", - "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", - "dev": true, - "dependencies": { - "async": "^3.2.3", - "chalk": "^4.0.2", - "filelist": "^1.0.4", - "minimatch": "^3.1.2" - }, - "bin": { - "jake": "bin/cli.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jake/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jake/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jake/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jake/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jake/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jake/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/jasmine-core": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.1.1.tgz", - "integrity": "sha512-UrzO3fL7nnxlQXlvTynNAenL+21oUQRlzqQFsA2U11ryb4+NLOCOePZ70PTojEaUKhiFugh7dG0Q+I58xlPdWg==", - "dev": true - }, - "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/jiti": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz", - "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==", + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.9.0.tgz", + "integrity": "sha512-OMUvF1iI6+gSRYOhMrH4QYothVLN9C3EJ6wm4g7zLJlnaTl8zbaPOr0bTw70l7QxkoM7sVFOWo83u9B2Fe2Zng==", "dev": true, - "bin": { - "jiti": "bin/jiti.js" - } + "license": "MIT" }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" }, "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, + "license": "MIT", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", + "dev": true, + "license": "MIT" }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-4.0.0.tgz", + "integrity": "sha512-lR4MXjGNgkJc7tkQ97kb2nuEMnNCyU//XYVH0MKTGcXEiSudQ5MKGKen3C5QubYy0vmq+JGitUg92uuywGEwIA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -9289,19 +7669,18 @@ } }, "node_modules/jsonc-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", - "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", - "dev": true + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", + "dev": true, + "license": "MIT" }, "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, + "license": "MIT", "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -9313,13 +7692,15 @@ "dev": true, "engines": [ "node >= 0.2.0" - ] + ], + "license": "MIT" }, "node_modules/karma": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/karma/-/karma-6.4.2.tgz", - "integrity": "sha512-C6SU/53LB31BEgRg+omznBEMY4SjHU3ricV6zBcAe1EeILKkeScr+fZXtaI5WyDbkVowJxxAI6h73NcFPmXolQ==", + "version": "6.4.4", + "resolved": "https://registry.npmjs.org/karma/-/karma-6.4.4.tgz", + "integrity": "sha512-LrtUxbdvt1gOpo3gxG+VAJlJAEMhbWlM4YrFQgql98FwF7+K8K12LYO4hnDdUkNjeztYrOXEMqgTajSWgmtI/w==", "dev": true, + "license": "MIT", "dependencies": { "@colors/colors": "1.5.0", "body-parser": "^1.19.0", @@ -9340,7 +7721,7 @@ "qjobs": "^1.2.0", "range-parser": "^1.2.1", "rimraf": "^3.0.2", - "socket.io": "^4.4.1", + "socket.io": "^4.7.2", "source-map": "^0.6.1", "tmp": "^0.2.1", "ua-parser-js": "^0.7.30", @@ -9358,6 +7739,7 @@ "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-3.2.0.tgz", "integrity": "sha512-rE9RkUPI7I9mAxByQWkGJFXfFD6lE4gC5nPuZdobf/QdTEJI6EU4yIay/cfU/xV4ZxlM5JiTv7zWYgA64NpS5Q==", "dev": true, + "license": "MIT", "dependencies": { "which": "^1.2.1" } @@ -9367,6 +7749,7 @@ "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -9379,6 +7762,7 @@ "resolved": "https://registry.npmjs.org/karma-coverage/-/karma-coverage-2.2.1.tgz", "integrity": "sha512-yj7hbequkQP2qOSb20GuNSIyE//PgJWHwC2IydLE6XRtsnaflv+/OSGNssPjobYUlhVVagy99TQpqUt3vAUG7A==", "dev": true, + "license": "MIT", "dependencies": { "istanbul-lib-coverage": "^3.2.0", "istanbul-lib-instrument": "^5.1.0", @@ -9391,11 +7775,63 @@ "node": ">=10.0.0" } }, + "node_modules/karma-coverage/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/karma-coverage/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/karma-coverage/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/karma-coverage/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/karma-jasmine": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-5.1.0.tgz", "integrity": "sha512-i/zQLFrfEpRyQoJF9fsCdTMOF5c2dK7C7OmsuKg2D0YSsuZSfQDiLuaiktbuio6F2wiCsZSnSnieIQ0ant/uzQ==", "dev": true, + "license": "MIT", "dependencies": { "jasmine-core": "^4.1.0" }, @@ -9411,6 +7847,7 @@ "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-2.1.0.tgz", "integrity": "sha512-sPQE1+nlsn6Hwb5t+HHwyy0A1FNCVKuL1192b+XNauMYWThz2kweiBVW1DqloRpVvZIJkIoHVB7XRpK78n1xbQ==", "dev": true, + "license": "MIT", "peerDependencies": { "jasmine-core": "^4.0.0 || ^5.0.0", "karma": "^6.0.0", @@ -9418,627 +7855,897 @@ } }, "node_modules/karma-jasmine/node_modules/jasmine-core": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-4.6.0.tgz", - "integrity": "sha512-O236+gd0ZXS8YAjFx8xKaJ94/erqUliEkJTDedyE7iHvv4ZVqi+q+8acJxu05/WJDKm512EUNn809In37nWlAQ==", - "dev": true + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-4.6.1.tgz", + "integrity": "sha512-VYz/BjjmC3klLJlLwA4Kw8ytk0zDSmbbDLNs794VnWmkcCB7I9aAL/D48VNQtmITyPvea2C3jdUMfc3kAoy0PQ==", + "dev": true, + "license": "MIT" }, - "node_modules/karma-source-map-support": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz", - "integrity": "sha512-RsBECncGO17KAoJCYXjv+ckIz+Ii9NCi+9enk+rq6XC81ezYkb4/RHE6CTXdA7IOJqoF3wcaLfVG0CPmE5ca6A==", + "node_modules/karma/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "dependencies": { - "source-map-support": "^0.5.5" + "license": "MIT", + "engines": { + "node": ">=8" } }, - "node_modules/karma/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "node_modules/karma/node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", "dev": true, + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/karma/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "node_modules/karma/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, + "license": "MIT", "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/karma/node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" }, "engines": { - "node": ">=10" + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, - "node_modules/karma/node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "node_modules/karma/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, - "engines": { - "node": ">=10" + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" } }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "node_modules/karma/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, + "license": "MIT", "dependencies": { - "json-buffer": "3.0.1" + "ms": "2.0.0" } }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "node_modules/karma/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/karma/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 6" } }, - "node_modules/klona": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", - "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", + "node_modules/karma/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, "engines": { - "node": ">= 8" + "node": ">=0.10.0" } }, - "node_modules/launch-editor": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.1.tgz", - "integrity": "sha512-eB/uXmFVpY4zezmGp5XtU21kwo7GBbKB+EQ+UZeWtGb9yAM5xt/Evk+lYH3eRNAtId+ej4u7TYPFZ07w4s7rRw==", + "node_modules/karma/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "dependencies": { - "picocolors": "^1.0.0", - "shell-quote": "^1.8.1" + "license": "MIT", + "engines": { + "node": ">=8" } }, - "node_modules/less": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/less/-/less-4.1.3.tgz", - "integrity": "sha512-w16Xk/Ta9Hhyei0Gpz9m7VS8F28nieJaL/VyShID7cYvP6IL5oHeL6p4TXSDJqZE/lNv0oJ2pGVjJsRkfwm5FA==", + "node_modules/karma/node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", "dev": true, - "dependencies": { - "copy-anything": "^2.0.1", - "parse-node-version": "^1.0.1", - "tslib": "^2.3.0" - }, - "bin": { - "lessc": "bin/lessc" - }, + "license": "MIT", "engines": { - "node": ">=6" - }, - "optionalDependencies": { - "errno": "^0.1.1", - "graceful-fs": "^4.1.2", - "image-size": "~0.5.0", - "make-dir": "^2.1.0", - "mime": "^1.4.1", - "needle": "^3.1.0", - "source-map": "~0.6.0" + "node": ">= 0.6" } }, - "node_modules/less-loader": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-11.1.0.tgz", - "integrity": "sha512-C+uDBV7kS7W5fJlUjq5mPBeBVhYpTIm5gB09APT9o3n/ILeaXVsiSFTbZpTJCJwQ/Crczfn3DmfQFwxYusWFug==", + "node_modules/karma/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, - "dependencies": { - "klona": "^2.0.4" - }, + "license": "MIT", "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "less": "^3.5.0 || ^4.0.0", - "webpack": "^5.0.0" + "node": ">= 0.6" } }, - "node_modules/less/node_modules/make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "node_modules/karma/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, - "optional": true, + "license": "MIT", "dependencies": { - "pify": "^4.0.1", - "semver": "^5.6.0" + "mime-db": "1.52.0" }, "engines": { - "node": ">=6" + "node": ">= 0.6" } }, - "node_modules/less/node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "node_modules/karma/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "optional": true, - "bin": { - "mime": "cli.js" + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=4" + "node": "*" } }, - "node_modules/less/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "node_modules/karma/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "dev": true, - "optional": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.6" + }, "bin": { - "semver": "bin/semver" + "mkdirp": "bin/cmd.js" } }, - "node_modules/less/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "node_modules/karma/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true, - "optional": true, + "license": "MIT" + }, + "node_modules/karma/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "node_modules/karma/node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" + "side-channel": "^1.0.6" }, "engines": { - "node": ">= 0.8.0" + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/license-webpack-plugin": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", - "integrity": "sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw==", + "node_modules/karma/node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", "dev": true, + "license": "MIT", "dependencies": { - "webpack-sources": "^3.0.0" + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" }, - "peerDependenciesMeta": { - "webpack": { - "optional": true - }, - "webpack-sources": { - "optional": true - } - } - }, - "node_modules/lines-and-columns": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.3.tgz", - "integrity": "sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w==", - "dev": true, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">= 0.8" } }, - "node_modules/loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "node_modules/karma/node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, "engines": { - "node": ">=6.11.5" + "node": ">=8.10.0" } }, - "node_modules/loader-utils": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", - "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", + "node_modules/karma/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { - "node": ">= 12.13.0" + "node": ">=0.10.0" } }, - "node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/karma/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { - "p-locate": "^4.1.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash-es": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "node_modules/karma/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" + "ansi-regex": "^5.0.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/karma/node_modules/tmp": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", + "integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.14" + } + }, + "node_modules/karma/node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" + "media-typer": "0.3.0", + "mime-types": "~2.1.24" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 0.6" } }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/karma/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/karma/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, + "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" }, "engines": { - "node": ">=7.0.0" + "node": ">=10" } }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/karma/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, + "license": "ISC", "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "json-buffer": "3.0.1" } }, - "node_modules/log4js": { - "version": "6.9.1", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.9.1.tgz", - "integrity": "sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g==", + "node_modules/less": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/less/-/less-4.4.0.tgz", + "integrity": "sha512-kdTwsyRuncDfjEs0DlRILWNvxhDG/Zij4YLO4TMJgDLW+8OzpfkdPnRgrsRuY1o+oaxJGWsps5f/RVBgGmmN0w==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "date-format": "^4.0.14", - "debug": "^4.3.4", - "flatted": "^3.2.7", - "rfdc": "^1.3.0", - "streamroller": "^3.1.5" + "copy-anything": "^2.0.1", + "parse-node-version": "^1.0.1", + "tslib": "^2.3.0" + }, + "bin": { + "lessc": "bin/lessc" }, "engines": { - "node": ">=8.0" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dependencies": { - "yallist": "^3.0.2" + "node": ">=14" + }, + "optionalDependencies": { + "errno": "^0.1.1", + "graceful-fs": "^4.1.2", + "image-size": "~0.5.0", + "make-dir": "^2.1.0", + "mime": "^1.4.1", + "needle": "^3.1.0", + "source-map": "~0.6.0" } }, - "node_modules/magic-string": { - "version": "0.30.1", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.1.tgz", - "integrity": "sha512-mbVKXPmS0z0G4XqFDCTllmDQ6coZzn94aMlb0o/A4HEHJCKcanlDZwYJgwnkmgD3jyWhUgj9VsPrfd972yPffA==", + "node_modules/less/node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", "dev": true, + "license": "MIT", + "optional": true, "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.15" + "pify": "^4.0.1", + "semver": "^5.6.0" }, "engines": { - "node": ">=12" + "node": ">=6" } }, - "node_modules/make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "node_modules/less/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "dev": true, - "dependencies": { - "semver": "^7.5.3" + "license": "MIT", + "optional": true, + "bin": { + "mime": "cli.js" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, - "node_modules/make-fetch-happen": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.1.1.tgz", - "integrity": "sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w==", + "node_modules/less/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, - "dependencies": { - "agentkeepalive": "^4.2.1", - "cacache": "^17.0.0", - "http-cache-semantics": "^4.1.1", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.0", - "is-lambda": "^1.0.1", - "lru-cache": "^7.7.1", - "minipass": "^5.0.0", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^7.0.0", - "ssri": "^10.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "license": "ISC", + "optional": true, + "bin": { + "semver": "bin/semver" } }, - "node_modules/make-fetch-happen/node_modules/@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "node_modules/less/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", + "optional": true, "engines": { - "node": ">= 10" + "node": ">=0.10.0" } }, - "node_modules/make-fetch-happen/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, + "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" } }, - "node_modules/make-fetch-happen/node_modules/cacache": { - "version": "17.1.4", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-17.1.4.tgz", - "integrity": "sha512-/aJwG2l3ZMJ1xNAnqbMpA40of9dj/pIH3QfiuQSqjfPJF747VR0J/bHn+/KdNnHKc6XQcWt/AfRSBft82W1d2A==", + "node_modules/listr2": { + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.3.3.tgz", + "integrity": "sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==", "dev": true, + "license": "MIT", "dependencies": { - "@npmcli/fs": "^3.1.0", - "fs-minipass": "^3.0.0", - "glob": "^10.2.2", - "lru-cache": "^7.7.1", - "minipass": "^7.0.3", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "p-map": "^4.0.0", - "ssri": "^10.0.0", - "tar": "^6.1.11", - "unique-filename": "^3.0.0" + "cli-truncate": "^4.0.0", + "colorette": "^2.0.20", + "eventemitter3": "^5.0.1", + "log-update": "^6.1.0", + "rfdc": "^1.4.1", + "wrap-ansi": "^9.0.0" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=18.0.0" } }, - "node_modules/make-fetch-happen/node_modules/cacache/node_modules/minipass": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", - "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "node_modules/listr2/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, + "license": "MIT", "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/make-fetch-happen/node_modules/glob": { - "version": "10.3.10", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "node_modules/listr2/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "dev": true, + "license": "MIT" + }, + "node_modules/listr2/node_modules/wrap-ansi": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", + "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", "dev": true, + "license": "MIT", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/make-fetch-happen/node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "node_modules/lmdb": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/lmdb/-/lmdb-3.4.1.tgz", + "integrity": "sha512-hoG9RIv42kdGJiieyElgWcKCTaw5S6Jqwyd1gLSVdsJ3+8MVm8e4yLronThiRJI9DazFAAs9xfB9nWeMQ2DWKA==", "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" + "msgpackr": "^1.11.2", + "node-addon-api": "^6.1.0", + "node-gyp-build-optional-packages": "5.2.2", + "ordered-binary": "^1.5.3", + "weak-lru-cache": "^1.2.2" }, - "engines": { - "node": ">= 6" + "bin": { + "download-lmdb-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@lmdb/lmdb-darwin-arm64": "3.4.1", + "@lmdb/lmdb-darwin-x64": "3.4.1", + "@lmdb/lmdb-linux-arm": "3.4.1", + "@lmdb/lmdb-linux-arm64": "3.4.1", + "@lmdb/lmdb-linux-x64": "3.4.1", + "@lmdb/lmdb-win32-arm64": "3.4.1", + "@lmdb/lmdb-win32-x64": "3.4.1" } }, - "node_modules/make-fetch-happen/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/log-symbols": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz", + "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^5.3.0", + "is-unicode-supported": "^1.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/is-unicode-supported": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", + "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", + "dev": true, + "license": "MIT", "engines": { "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/make-fetch-happen/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "node_modules/log-update": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz", + "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" + "ansi-escapes": "^7.0.0", + "cli-cursor": "^5.0.0", + "slice-ansi": "^7.1.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/ansi-escapes": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.0.0.tgz", + "integrity": "sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "environment": "^1.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-update/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/make-fetch-happen/node_modules/minipass": { + "node_modules/log-update/node_modules/is-fullwidth-code-point": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz", + "integrity": "sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==", "dev": true, + "license": "MIT", + "dependencies": { + "get-east-asian-width": "^1.0.0" + }, "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "node_modules/log-update/node_modules/slice-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.0.tgz", + "integrity": "sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "is-fullwidth-code-point": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/log-update/node_modules/wrap-ansi": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", + "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/memfs": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.3.tgz", - "integrity": "sha512-UERzLsxzllchadvbPs5aolHh65ISpKpM+ccLbOJ8/vvpBKmAWf+la7dXFy7Mr0ySHbdHrFv5kGFCUHHe6GFEmw==", + "node_modules/log4js": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.9.1.tgz", + "integrity": "sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "fs-monkey": "^1.0.4" + "date-format": "^4.0.14", + "debug": "^4.3.4", + "flatted": "^3.2.7", + "rfdc": "^1.3.0", + "streamroller": "^3.1.5" }, "engines": { - "node": ">= 4.0.0" + "node": ">=8.0" } }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", - "dev": true + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-fetch-happen": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-14.0.3.tgz", + "integrity": "sha512-QMjGbFTP0blj97EeidG5hk/QhKQ3T4ICckQGLgz38QF7Vgbk6e6FTARN8KhKxyBbWn8R0HU+bnw8aSoFPD4qtQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "@npmcli/agent": "^3.0.0", + "cacache": "^19.0.1", + "http-cache-semantics": "^4.1.1", + "minipass": "^7.0.2", + "minipass-fetch": "^4.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^1.0.0", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1", + "ssri": "^12.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", + "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } }, - "node_modules/merge-stream": { + "node_modules/merge-descriptors": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.6" + "node": ">= 8" } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { "node": ">=8.6" } }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/mime": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", "dev": true, + "license": "MIT", "bin": { "mime": "cli.js" }, @@ -10047,70 +8754,55 @@ } }, "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz", + "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==", "dev": true, + "license": "MIT", "dependencies": { - "mime-db": "1.52.0" + "mime-db": "^1.54.0" }, "engines": { "node": ">= 0.6" } }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/mini-css-extract-plugin": { - "version": "2.7.6", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", - "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", + "node_modules/mimic-function": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", + "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", "dev": true, - "dependencies": { - "schema-utils": "^4.0.0" - }, + "license": "MIT", "engines": { - "node": ">= 12.13.0" + "node": ">=18" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, + "license": "ISC", "dependencies": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^2.0.1" }, "engines": { - "node": "*" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/minimist": { @@ -10118,61 +8810,47 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/minipass": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", - "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, + "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" } }, "node_modules/minipass-collect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", - "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-2.0.1.tgz", + "integrity": "sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==", "dev": true, + "license": "ISC", "dependencies": { - "minipass": "^3.0.0" + "minipass": "^7.0.3" }, "engines": { - "node": ">= 8" + "node": ">=16 || 14 >=14.17" } }, - "node_modules/minipass-collect/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-collect/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/minipass-fetch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.4.tgz", - "integrity": "sha512-jHAqnA728uUpIaFm7NWsCnqKT6UqZz7GcI/bDpPATuwYyKwJwW0remxSCxUlKiEty+eopHGa3oc8WxgQ1FFJqg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-4.0.1.tgz", + "integrity": "sha512-j7U11C5HXigVuutxebFadoYBbd7VSdZWggSe64NVdvWNBqGAiXPL2QVCehjmw7lY1oF9gOllYbORh+hiNgfPgQ==", "dev": true, + "license": "MIT", "dependencies": { "minipass": "^7.0.3", "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" + "minizlib": "^3.0.1" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" }, "optionalDependencies": { "encoding": "^0.1.13" @@ -10183,6 +8861,7 @@ "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", "dev": true, + "license": "ISC", "dependencies": { "minipass": "^3.0.0" }, @@ -10195,6 +8874,7 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dev": true, + "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -10206,41 +8886,15 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/minipass-json-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minipass-json-stream/-/minipass-json-stream-1.0.1.tgz", - "integrity": "sha512-ODqY18UZt/I8k+b7rl2AENgbWE8IDYam+undIJONvigAz8KR5GWblsFTEfQs0WODsjbSXWlm+JHEv8Gr6Tfdbg==", - "dev": true, - "dependencies": { - "jsonparse": "^1.3.1", - "minipass": "^3.0.0" - } - }, - "node_modules/minipass-json-stream/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-json-stream/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "license": "ISC" }, "node_modules/minipass-pipeline": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", "dev": true, + "license": "ISC", "dependencies": { "minipass": "^3.0.0" }, @@ -10253,6 +8907,7 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dev": true, + "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -10264,13 +8919,15 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/minipass-sized": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", "dev": true, + "license": "ISC", "dependencies": { "minipass": "^3.0.0" }, @@ -10283,6 +8940,7 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dev": true, + "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -10294,94 +8952,107 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", "dev": true, - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } + "license": "ISC" }, - "node_modules/minizlib/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "node_modules/minizlib": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz", + "integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==", "dev": true, + "license": "MIT", "dependencies": { - "yallist": "^4.0.0" + "minipass": "^7.1.2" }, "engines": { - "node": ">=8" + "node": ">= 18" } }, - "node_modules/minizlib/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "dev": true, - "dependencies": { - "minimist": "^1.2.6" - }, + "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/mrmime": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", - "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", + "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/msgpackr": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.11.5.tgz", + "integrity": "sha512-UjkUHN0yqp9RWKy0Lplhh+wlpdt9oQBYgULZOiFhV3VclSF1JnSQWZ5r9gORQlNYaUKQoR8itv7g7z1xDDuACA==", + "dev": true, + "license": "MIT", + "optional": true, + "optionalDependencies": { + "msgpackr-extract": "^3.0.2" + } }, - "node_modules/multicast-dns": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", - "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", + "node_modules/msgpackr-extract": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-3.0.3.tgz", + "integrity": "sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==", "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, "dependencies": { - "dns-packet": "^5.2.2", - "thunky": "^1.0.2" + "node-gyp-build-optional-packages": "5.2.2" }, "bin": { - "multicast-dns": "cli.js" + "download-msgpackr-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.3", + "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.3", + "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.3", + "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.3", + "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.3", + "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.3" } }, "node_modules/mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", + "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } }, "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -10393,22 +9064,17 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/needle": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/needle/-/needle-3.2.0.tgz", - "integrity": "sha512-oUvzXnyLiVyVGoianLijF9O/RecZUf7TkBfimjGrLM4eQhXyeJwM6GeAWccwfQ9aa4gMCZKqhAOuLaMIcQxajQ==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/needle/-/needle-3.3.1.tgz", + "integrity": "sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { - "debug": "^3.2.6", "iconv-lite": "^0.6.3", "sax": "^1.2.4" }, @@ -10419,89 +9085,59 @@ "node": ">= 4.4.x" } }, - "node_modules/needle/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "optional": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/needle/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "optional": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", + "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true - }, "node_modules/ng-packagr": { - "version": "16.2.3", - "resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-16.2.3.tgz", - "integrity": "sha512-VTJ7Qtge52+1subkhmF5nOqLNbVutA8/igJ0A5vH6Mgpb8Z/3HeZomtD1SHzZF5Dqp+p+QPHE548FWYu1MdMSQ==", + "version": "20.1.0", + "resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-20.1.0.tgz", + "integrity": "sha512-objHk39HWnSSv54KD0Ct4A02rug6HiqbmXo1KJW39npzuVc37QWfiZy94afltH1zIx+mQqollmGaCmwibmagvQ==", "dev": true, + "license": "MIT", "dependencies": { - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-node-resolve": "^15.0.0", - "ajv": "^8.11.0", + "@ampproject/remapping": "^2.3.0", + "@rollup/plugin-json": "^6.1.0", + "@rollup/wasm-node": "^4.24.0", + "ajv": "^8.17.1", "ansi-colors": "^4.1.3", - "autoprefixer": "^10.4.12", - "browserslist": "^4.21.4", - "cacache": "^18.0.0", - "chokidar": "^3.5.3", - "commander": "^11.0.0", - "convert-source-map": "^2.0.0", - "dependency-graph": "^0.11.0", - "esbuild-wasm": "^0.19.0", - "fast-glob": "^3.2.12", - "find-cache-dir": "^3.3.2", + "browserslist": "^4.22.1", + "chokidar": "^4.0.1", + "commander": "^14.0.0", + "dependency-graph": "^1.0.0", + "esbuild": "^0.25.0", + "find-cache-directory": "^6.0.0", "injection-js": "^2.4.0", - "jsonc-parser": "^3.2.0", - "less": "^4.1.3", - "ora": "^5.1.0", - "piscina": "^4.0.0", - "postcss": "^8.4.16", - "postcss-url": "^10.1.3", - "rollup": "^3.0.0", - "rxjs": "^7.5.6", - "sass": "^1.55.0" + "jsonc-parser": "^3.3.1", + "less": "^4.2.0", + "ora": "^8.2.0", + "piscina": "^5.0.0", + "postcss": "^8.4.47", + "rollup-plugin-dts": "^6.2.0", + "rxjs": "^7.8.1", + "sass": "^1.81.0", + "tinyglobby": "^0.2.12" }, "bin": { - "ng-packagr": "cli/main.js" + "ng-packagr": "src/cli/main.js" }, "engines": { - "node": "^16.14.0 || >=18.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "optionalDependencies": { - "esbuild": "^0.19.0" + "rollup": "^4.24.0" }, "peerDependencies": { - "@angular/compiler-cli": "^16.0.0 || ^16.2.0-next.0", - "tailwindcss": "^2.0.0 || ^3.0.0", + "@angular/compiler-cli": "^20.0.0 || ^20.1.0-next.0 || ^20.2.0-next.0", + "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0", "tslib": "^2.3.0", - "typescript": ">=4.9.3 <5.2" + "typescript": ">=5.8 <5.9" }, "peerDependenciesMeta": { "tailwindcss": { @@ -10509,4509 +9145,2637 @@ } } }, - "node_modules/ng-packagr/node_modules/@esbuild/android-arm": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz", - "integrity": "sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==", - "cpu": [ - "arm" - ], + "node_modules/node-addon-api": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz", + "integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==", "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } + "license": "MIT", + "optional": true }, - "node_modules/ng-packagr/node_modules/@esbuild/android-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.5.tgz", - "integrity": "sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==", - "cpu": [ - "arm64" - ], + "node_modules/node-gyp": { + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-11.3.0.tgz", + "integrity": "sha512-9J0+C+2nt3WFuui/mC46z2XCZ21/cKlFDuywULmseD/LlmnOrSeEAE4c/1jw6aybXLmpZnQY3/LmOJfgyHIcng==", "dev": true, - "optional": true, - "os": [ - "android" - ], + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^14.0.3", + "nopt": "^8.0.0", + "proc-log": "^5.0.0", + "semver": "^7.3.5", + "tar": "^7.4.3", + "tinyglobby": "^0.2.12", + "which": "^5.0.0" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/android-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.5.tgz", - "integrity": "sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==", - "cpu": [ - "x64" - ], + "node_modules/node-gyp-build-optional-packages": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.2.2.tgz", + "integrity": "sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==", "dev": true, + "license": "MIT", "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" + "dependencies": { + "detect-libc": "^2.0.1" + }, + "bin": { + "node-gyp-build-optional-packages": "bin.js", + "node-gyp-build-optional-packages-optional": "optional.js", + "node-gyp-build-optional-packages-test": "build-test.js" } }, - "node_modules/ng-packagr/node_modules/@esbuild/darwin-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.5.tgz", - "integrity": "sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw==", - "cpu": [ - "arm64" - ], + "node_modules/node-gyp/node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "license": "BlueOak-1.0.0", "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/ng-packagr/node_modules/@esbuild/darwin-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.5.tgz", - "integrity": "sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==", - "cpu": [ - "x64" - ], + "node_modules/node-gyp/node_modules/isexe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "license": "ISC", "engines": { - "node": ">=12" + "node": ">=16" } }, - "node_modules/ng-packagr/node_modules/@esbuild/freebsd-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.5.tgz", - "integrity": "sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==", - "cpu": [ - "arm64" - ], + "node_modules/node-gyp/node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, "engines": { - "node": ">=12" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/ng-packagr/node_modules/@esbuild/freebsd-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.5.tgz", - "integrity": "sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==", - "cpu": [ - "x64" - ], + "node_modules/node-gyp/node_modules/tar": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz", + "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "license": "ISC", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.0.1", + "mkdirp": "^3.0.1", + "yallist": "^5.0.0" + }, "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-arm": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.5.tgz", - "integrity": "sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==", - "cpu": [ - "arm" - ], + "node_modules/node-gyp/node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.5.tgz", - "integrity": "sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==", - "cpu": [ - "arm64" - ], + "node_modules/node-gyp/node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "BlueOak-1.0.0", "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-ia32": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.5.tgz", - "integrity": "sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==", - "cpu": [ - "ia32" - ], + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "license": "MIT" + }, + "node_modules/noms": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/noms/-/noms-0.0.0.tgz", + "integrity": "sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "license": "ISC", + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "~1.0.31" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-loong64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.5.tgz", - "integrity": "sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==", - "cpu": [ - "loong64" - ], + "node_modules/nopt": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-8.1.0.tgz", + "integrity": "sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "ISC", + "dependencies": { + "abbrev": "^3.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-mips64el": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.5.tgz", - "integrity": "sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==", - "cpu": [ - "mips64el" - ], + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=0.10.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-ppc64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.5.tgz", - "integrity": "sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==", - "cpu": [ - "ppc64" - ], + "node_modules/npm-bundled": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-4.0.0.tgz", + "integrity": "sha512-IxaQZDMsqfQ2Lz37VvyyEtKLe8FsRZuysmedy/N06TU1RyVppYKXrO4xIhR0F+7ubIBox6Q7nir6fQI3ej39iA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^4.0.0" + }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-riscv64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.5.tgz", - "integrity": "sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==", - "cpu": [ - "riscv64" - ], + "node_modules/npm-install-checks": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-7.1.1.tgz", + "integrity": "sha512-u6DCwbow5ynAX5BdiHQ9qvexme4U3qHW3MWe5NqH+NeBm0LbiH6zvGjNNew1fY+AZZUtVHbOPF3j7mJxbUzpXg==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-s390x": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.5.tgz", - "integrity": "sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==", - "cpu": [ - "s390x" - ], + "node_modules/npm-normalize-package-bin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-4.0.0.tgz", + "integrity": "sha512-TZKxPvItzai9kN9H/TkmCtx/ZN/hvr3vUycjlfmH0ootY9yFBzNOpiXAdIn1Iteqsvk4lQn6B5PTrt+n6h8k/w==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "ISC", "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/linux-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.5.tgz", - "integrity": "sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==", - "cpu": [ - "x64" - ], + "node_modules/npm-package-arg": { + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-12.0.2.tgz", + "integrity": "sha512-f1NpFjNI9O4VbKMOlA5QoBq/vSQPORHcTZ2feJpFkTHJ9eQkdlmZEKSjcAhxTGInC7RlEyScT9ui67NaOsjFWA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "ISC", + "dependencies": { + "hosted-git-info": "^8.0.0", + "proc-log": "^5.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^6.0.0" + }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/netbsd-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.5.tgz", - "integrity": "sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==", - "cpu": [ - "x64" - ], + "node_modules/npm-packlist": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-10.0.1.tgz", + "integrity": "sha512-vaC03b2PqJA6QqmwHi1jNU8fAPXEnnyv4j/W4PVfgm24C4/zZGSVut3z0YUeN0WIFCo1oGOL02+6LbvFK7JL4Q==", "dev": true, - "optional": true, - "os": [ - "netbsd" - ], + "license": "ISC", + "dependencies": { + "ignore-walk": "^8.0.0" + }, "engines": { - "node": ">=12" + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/openbsd-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.5.tgz", - "integrity": "sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==", - "cpu": [ - "x64" - ], + "node_modules/npm-pick-manifest": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-10.0.0.tgz", + "integrity": "sha512-r4fFa4FqYY8xaM7fHecQ9Z2nE9hgNfJR+EmoKv0+chvzWkBcORX3r0FpTByP+CbOVJDladMXnPQGVN8PBLGuTQ==", "dev": true, - "optional": true, - "os": [ - "openbsd" - ], + "license": "ISC", + "dependencies": { + "npm-install-checks": "^7.1.0", + "npm-normalize-package-bin": "^4.0.0", + "npm-package-arg": "^12.0.0", + "semver": "^7.3.5" + }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/sunos-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.5.tgz", - "integrity": "sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==", - "cpu": [ - "x64" - ], + "node_modules/npm-registry-fetch": { + "version": "18.0.2", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-18.0.2.tgz", + "integrity": "sha512-LeVMZBBVy+oQb5R6FDV9OlJCcWDU+al10oKpe+nsvcHnG24Z3uM3SvJYKfGJlfGjVU8v9liejCrUR/M5HO5NEQ==", "dev": true, - "optional": true, - "os": [ - "sunos" - ], + "license": "ISC", + "dependencies": { + "@npmcli/redact": "^3.0.0", + "jsonparse": "^1.3.1", + "make-fetch-happen": "^14.0.0", + "minipass": "^7.0.2", + "minipass-fetch": "^4.0.0", + "minizlib": "^3.0.1", + "npm-package-arg": "^12.0.0", + "proc-log": "^5.0.0" + }, "engines": { - "node": ">=12" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/win32-arm64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.5.tgz", - "integrity": "sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==", - "cpu": [ - "arm64" - ], + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" } }, - "node_modules/ng-packagr/node_modules/@esbuild/win32-ia32": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.5.tgz", - "integrity": "sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==", - "cpu": [ - "ia32" - ], + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, - "optional": true, - "os": [ - "win32" - ], + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=0.10.0" } }, - "node_modules/ng-packagr/node_modules/@esbuild/win32-x64": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.5.tgz", - "integrity": "sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==", - "cpu": [ - "x64" - ], + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, - "optional": true, - "os": [ - "win32" - ], + "license": "MIT", "engines": { - "node": ">=12" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/ng-packagr/node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "node_modules/ng-packagr/node_modules/esbuild": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.5.tgz", - "integrity": "sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.19.5", - "@esbuild/android-arm64": "0.19.5", - "@esbuild/android-x64": "0.19.5", - "@esbuild/darwin-arm64": "0.19.5", - "@esbuild/darwin-x64": "0.19.5", - "@esbuild/freebsd-arm64": "0.19.5", - "@esbuild/freebsd-x64": "0.19.5", - "@esbuild/linux-arm": "0.19.5", - "@esbuild/linux-arm64": "0.19.5", - "@esbuild/linux-ia32": "0.19.5", - "@esbuild/linux-loong64": "0.19.5", - "@esbuild/linux-mips64el": "0.19.5", - "@esbuild/linux-ppc64": "0.19.5", - "@esbuild/linux-riscv64": "0.19.5", - "@esbuild/linux-s390x": "0.19.5", - "@esbuild/linux-x64": "0.19.5", - "@esbuild/netbsd-x64": "0.19.5", - "@esbuild/openbsd-x64": "0.19.5", - "@esbuild/sunos-x64": "0.19.5", - "@esbuild/win32-arm64": "0.19.5", - "@esbuild/win32-ia32": "0.19.5", - "@esbuild/win32-x64": "0.19.5" - } - }, - "node_modules/ng-packagr/node_modules/esbuild-wasm": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.19.5.tgz", - "integrity": "sha512-7zmLLn2QCj93XfMmHtzrDJ1UBuOHB2CZz1ghoCEZiRajxjUvHsF40PnbzFIY/pmesqPRaEtEWii0uzsTbnAgrA==", + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", "dev": true, - "bin": { - "esbuild": "bin/esbuild" + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" }, "engines": { - "node": ">=12" + "node": ">= 0.8" } }, - "node_modules/ng-packagr/node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, + "license": "ISC", "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + "wrappy": "1" } }, - "node_modules/ng-packagr/node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "node_modules/onetime": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", + "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", "dev": true, + "license": "MIT", "dependencies": { - "semver": "^6.0.0" + "mimic-function": "^5.0.0" }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ng-packagr/node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, + "license": "MIT", "dependencies": { - "find-up": "^4.0.0" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, - "node_modules/ng-packagr/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/ora": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/ora/-/ora-8.2.0.tgz", + "integrity": "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "license": "MIT", + "dependencies": { + "chalk": "^5.3.0", + "cli-cursor": "^5.0.0", + "cli-spinners": "^2.9.2", + "is-interactive": "^2.0.0", + "is-unicode-supported": "^2.0.0", + "log-symbols": "^6.0.0", + "stdin-discarder": "^0.2.2", + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/nice-napi": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz", - "integrity": "sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==", + "node_modules/ora/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "!win32" - ], - "dependencies": { - "node-addon-api": "^3.0.0", - "node-gyp-build": "^4.2.2" + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/node-addon-api": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", - "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", - "dev": true + "node_modules/ordered-binary": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.6.0.tgz", + "integrity": "sha512-IQh2aMfMIDbPjI/8a3Edr+PiOpcsB7yo8NdW7aHWVaoR/pcDldunMvnnwbk/auPGqmKeAdxtZl7MHX/QmPwhvQ==", + "dev": true, + "license": "MIT", + "optional": true }, - "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 6.13.0" + "node": ">=0.10.0" } }, - "node_modules/node-gyp": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.4.0.tgz", - "integrity": "sha512-dMXsYP6gc9rRbejLXmTbVRYjAHw7ppswsKyMxuxJxxOHzluIO1rGp9TOQgjFJ+2MCqcOcQTOPB/8Xwhr+7s4Eg==", + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { - "env-paths": "^2.2.0", - "exponential-backoff": "^3.1.1", - "glob": "^7.1.4", - "graceful-fs": "^4.2.6", - "make-fetch-happen": "^11.0.3", - "nopt": "^6.0.0", - "npmlog": "^6.0.0", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.2", - "which": "^2.0.2" - }, - "bin": { - "node-gyp": "bin/node-gyp.js" + "yocto-queue": "^0.1.0" }, "engines": { - "node": "^12.13 || ^14.13 || >=16" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/node-gyp-build": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz", - "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==", + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "bin": { - "node-gyp-build": "bin.js", - "node-gyp-build-optional": "optional.js", - "node-gyp-build-test": "build-test.js" + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==" + "node_modules/p-map": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.3.tgz", + "integrity": "sha512-VkndIv2fIB99swvQoA65bm+fsmt6UNdGeIB0oxBs+WhAhdh08QA04JXpI7rbB9r08/nkbysKoya9rtDERYOYMA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/nopt": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz", - "integrity": "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==", + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", "dev": true, - "dependencies": { - "abbrev": "^1.0.0" + "license": "BlueOak-1.0.0" + }, + "node_modules/pacote": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/pacote/-/pacote-21.0.0.tgz", + "integrity": "sha512-lcqexq73AMv6QNLo7SOpz0JJoaGdS3rBFgF122NZVl1bApo2mfu+XzUBU/X/XsiJu+iUmKpekRayqQYAs+PhkA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^6.0.0", + "@npmcli/installed-package-contents": "^3.0.0", + "@npmcli/package-json": "^6.0.0", + "@npmcli/promise-spawn": "^8.0.0", + "@npmcli/run-script": "^9.0.0", + "cacache": "^19.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^7.0.2", + "npm-package-arg": "^12.0.0", + "npm-packlist": "^10.0.0", + "npm-pick-manifest": "^10.0.0", + "npm-registry-fetch": "^18.0.0", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1", + "sigstore": "^3.0.0", + "ssri": "^12.0.0", + "tar": "^6.1.11" }, "bin": { - "nopt": "bin/nopt.js" + "pacote": "bin/index.js" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/normalize-package-data": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-5.0.0.tgz", - "integrity": "sha512-h9iPVIfrVZ9wVYQnxFgtw1ugSvGEMOlyPWWtm8BMJhnwyEL/FLbYbTY3V3PpjI/BUK67n9PEWDu6eHzu1fB15Q==", + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, + "license": "MIT", "dependencies": { - "hosted-git-info": "^6.0.0", - "is-core-module": "^2.8.1", - "semver": "^7.3.5", - "validate-npm-package-license": "^3.0.4" + "callsites": "^3.0.0" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "node_modules/parse-node-version": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", + "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">= 0.10" } }, - "node_modules/npm-bundled": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-3.0.0.tgz", - "integrity": "sha512-Vq0eyEQy+elFpzsKjMss9kxqb9tG3YHg4dsyWuUENuzvSUWe1TCnW/vV9FkhvBk/brEDoDiVd+M1Btosa6ImdQ==", - "dev": true, + "node_modules/parse5": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.0.tgz", + "integrity": "sha512-9m4m5GSgXjL4AjumKzq1Fgfp3Z8rsvjRNbnkVwfu2ImRqE5D0LnY2QfDen18FSY9C573YU5XxSapdHZTZ2WolA==", + "license": "MIT", "dependencies": { - "npm-normalize-package-bin": "^3.0.0" + "entities": "^6.0.0" }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "node_modules/npm-install-checks": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-6.3.0.tgz", - "integrity": "sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw==", + "node_modules/parse5-html-rewriting-stream": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/parse5-html-rewriting-stream/-/parse5-html-rewriting-stream-7.1.0.tgz", + "integrity": "sha512-2ifK6Jb+ONoqOy5f+cYHsqvx1obHQdvIk13Jmt/5ezxP0U9p+fqd+R6O73KblGswyuzBYfetmsfK9ThMgnuPPg==", "dev": true, + "license": "MIT", "dependencies": { - "semver": "^7.1.1" + "entities": "^6.0.0", + "parse5": "^7.0.0", + "parse5-sax-parser": "^7.0.0" }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "node_modules/npm-normalize-package-bin": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz", - "integrity": "sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==", + "node_modules/parse5-html-rewriting-stream/node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", "dev": true, + "license": "BSD-2-Clause", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/npm-package-arg": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-10.1.0.tgz", - "integrity": "sha512-uFyyCEmgBfZTtrKk/5xDfHp6+MdrqGotX/VoOyEEl3mBwiEE5FlBaePanazJSVMPT7vKepcjYBY2ztg9A3yPIA==", + "node_modules/parse5-html-rewriting-stream/node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", "dev": true, + "license": "MIT", "dependencies": { - "hosted-git-info": "^6.0.0", - "proc-log": "^3.0.0", - "semver": "^7.3.5", - "validate-npm-package-name": "^5.0.0" + "entities": "^6.0.0" }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "node_modules/npm-packlist": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-7.0.4.tgz", - "integrity": "sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q==", + "node_modules/parse5-sax-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-7.0.0.tgz", + "integrity": "sha512-5A+v2SNsq8T6/mG3ahcz8ZtQ0OUFTatxPbeidoMB7tkJSGDY3tdfl4MHovtLQHkEn5CGxijNWRQHhRQ6IRpXKg==", "dev": true, + "license": "MIT", "dependencies": { - "ignore-walk": "^6.0.0" + "parse5": "^7.0.0" }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "node_modules/npm-pick-manifest": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-8.0.1.tgz", - "integrity": "sha512-mRtvlBjTsJvfCCdmPtiu2bdlx8d/KXtF7yNXNWe7G0Z36qWA9Ny5zXsI2PfBZEv7SXgoxTmNaTzGSbbzDZChoA==", + "node_modules/parse5-sax-parser/node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", "dev": true, - "dependencies": { - "npm-install-checks": "^6.0.0", - "npm-normalize-package-bin": "^3.0.0", - "npm-package-arg": "^10.0.0", - "semver": "^7.3.5" - }, + "license": "BSD-2-Clause", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/npm-registry-fetch": { - "version": "14.0.5", - "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.5.tgz", - "integrity": "sha512-kIDMIo4aBm6xg7jOttupWZamsZRkAqMqwqqbVXnUqstY5+tapvv6bkH/qMR76jdgV+YljEUCyWx3hRYMrJiAgA==", + "node_modules/parse5-sax-parser/node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", "dev": true, + "license": "MIT", "dependencies": { - "make-fetch-happen": "^11.0.0", - "minipass": "^5.0.0", - "minipass-fetch": "^3.0.0", - "minipass-json-stream": "^1.0.1", - "minizlib": "^2.1.2", - "npm-package-arg": "^10.0.0", - "proc-log": "^3.0.0" + "entities": "^6.0.0" }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5/node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "license": "BSD-2-Clause", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/npm-registry-fetch/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 0.8" } }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/npmlog": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", - "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, - "dependencies": { - "are-we-there-yet": "^3.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^4.0.3", - "set-blocking": "^2.0.0" - }, + "license": "MIT", "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "node": ">=0.10.0" } }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" + "license": "MIT", + "engines": { + "node": ">=8" } }, - "node_modules/nwsapi": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", - "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", - "dev": true - }, - "node_modules/nx": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/nx/-/nx-16.5.1.tgz", - "integrity": "sha512-I3hJRE4hG7JWAtncWwDEO3GVeGPpN0TtM8xH5ArZXyDuVeTth/i3TtJzdDzqXO1HHtIoAQN0xeq4n9cLuMil5g==", + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true, - "hasInstallScript": true, - "dependencies": { - "@nrwl/tao": "16.5.1", - "@parcel/watcher": "2.0.4", - "@yarnpkg/lockfile": "^1.1.0", - "@yarnpkg/parsers": "3.0.0-rc.46", - "@zkochan/js-yaml": "0.0.6", - "axios": "^1.0.0", - "chalk": "^4.1.0", - "cli-cursor": "3.1.0", - "cli-spinners": "2.6.1", - "cliui": "^7.0.2", - "dotenv": "~10.0.0", - "enquirer": "~2.3.6", - "fast-glob": "3.2.7", - "figures": "3.2.0", - "flat": "^5.0.2", - "fs-extra": "^11.1.0", - "glob": "7.1.4", - "ignore": "^5.0.4", - "js-yaml": "4.1.0", - "jsonc-parser": "3.2.0", - "lines-and-columns": "~2.0.3", - "minimatch": "3.0.5", - "npm-run-path": "^4.0.1", - "open": "^8.4.0", - "semver": "7.5.3", - "string-width": "^4.2.3", - "strong-log-transformer": "^2.1.0", - "tar-stream": "~2.2.0", - "tmp": "~0.2.1", - "tsconfig-paths": "^4.1.2", - "tslib": "^2.3.0", - "v8-compile-cache": "2.3.0", - "yargs": "^17.6.2", - "yargs-parser": "21.1.1" - }, - "bin": { - "nx": "bin/nx.js" - }, - "optionalDependencies": { - "@nx/nx-darwin-arm64": "16.5.1", - "@nx/nx-darwin-x64": "16.5.1", - "@nx/nx-freebsd-x64": "16.5.1", - "@nx/nx-linux-arm-gnueabihf": "16.5.1", - "@nx/nx-linux-arm64-gnu": "16.5.1", - "@nx/nx-linux-arm64-musl": "16.5.1", - "@nx/nx-linux-x64-gnu": "16.5.1", - "@nx/nx-linux-x64-musl": "16.5.1", - "@nx/nx-win32-arm64-msvc": "16.5.1", - "@nx/nx-win32-x64-msvc": "16.5.1" - }, - "peerDependencies": { - "@swc-node/register": "^1.4.2", - "@swc/core": "^1.2.173" - }, - "peerDependenciesMeta": { - "@swc-node/register": { - "optional": true - }, - "@swc/core": { - "optional": true - } - } + "license": "MIT" }, - "node_modules/nx/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "color-convert": "^2.0.1" + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" }, "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.18" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/nx/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/nx/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } + "license": "ISC" }, - "node_modules/nx/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/path-to-regexp": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", + "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, + "license": "MIT", "engines": { - "node": ">=7.0.0" + "node": ">=16" } }, - "node_modules/nx/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" }, - "node_modules/nx/node_modules/fast-glob": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", - "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, + "node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "license": "MIT", "engines": { - "node": ">=8" - } - }, - "node_modules/nx/node_modules/glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "node": ">=12" }, - "engines": { - "node": "*" + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/nx/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "dev": true, + "license": "MIT", + "optional": true, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/nx/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "node_modules/piscina": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/piscina/-/piscina-5.1.2.tgz", + "integrity": "sha512-9cE/BTA/xhDiyNUEj6EKWLEQC17fh/24ydYzQwcA7QdYh75K6kzL2GHvxDF5i9rFGtUaaKk7/u4xp07qiKXccQ==", "dev": true, - "dependencies": { - "argparse": "^2.0.1" + "license": "MIT", + "engines": { + "node": ">=20.x" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "optionalDependencies": { + "@napi-rs/nice": "^1.0.1" } }, - "node_modules/nx/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/pkce-challenge": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.0.tgz", + "integrity": "sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==", "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=16.20.0" } }, - "node_modules/nx/node_modules/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==", + "node_modules/pkg-dir": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-8.0.0.tgz", + "integrity": "sha512-4peoBq4Wks0riS0z8741NVv+/8IiTvqnZAr8QGgtdifrtpdXbNw/FxRS1l6NFqm4EMzuS0EDqNNx4XGaz8cuyQ==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" + "find-up-simple": "^1.0.0" }, "engines": { - "node": "*" - } - }, - "node_modules/nx/node_modules/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "node": ">=18" }, - "engines": { - "node": ">=10" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/nx/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" }, "engines": { - "node": ">=8" + "node": "^10 || ^12 || >=14" } }, - "node_modules/nx/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "node_modules/postcss-media-query-parser": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", + "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==", + "dev": true, + "license": "MIT" }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">= 0.8.0" } }, - "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "node_modules/prettier": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/object-path": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.8.tgz", - "integrity": "sha512-YJjNZrlXJFM42wTBn6zgOJVar9KFJvzx6sTWDte8sWZF//cnjl0BxHNpfZx+ZffXX63A9q0b1zsFiBX4g4X5KA==", + "node_modules/proc-log": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-5.0.0.tgz", + "integrity": "sha512-Azwzvl90HaF0aCz1JrDdXQykFakSSNPaPoiZ9fm5qJIMHioDZEi7OAdRwSm6rSoPtY3Qutnm3L7ogmg3dc+wbQ==", "dev": true, + "license": "ISC", "engines": { - "node": ">= 10.12.0" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", - "dev": true + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true, + "license": "MIT" }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "node_modules/promise-retry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", "dev": true, + "license": "MIT", "dependencies": { - "ee-first": "1.1.1" + "err-code": "^2.0.2", + "retry": "^0.12.0" }, "engines": { - "node": ">= 0.8" + "node": ">=10" } }, - "node_modules/on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", "dev": true, + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, "engines": { - "node": ">= 0.8" + "node": ">= 0.10" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "node_modules/prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", "dev": true, - "dependencies": { - "wrappy": "1" - } + "license": "MIT", + "optional": true }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, + "license": "MIT" + }, + "node_modules/qjobs": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", + "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.9" } }, - "node_modules/open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "node_modules/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" + "side-channel": "^1.1.0" }, "engines": { - "node": ">=12" + "node": ">=0.6" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true, - "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - }, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.8.0" + "node": ">= 0.6" } }, - "node_modules/ora": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", - "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "node_modules/raw-body": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", + "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", "dev": true, + "license": "MIT", "dependencies": { - "bl": "^4.1.0", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.5.0", - "is-interactive": "^1.0.0", - "is-unicode-supported": "^0.1.0", - "log-symbols": "^4.1.0", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.6.3", + "unpipe": "1.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 0.8" } }, - "node_modules/ora/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" - }, + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 14.18.0" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "type": "individual", + "url": "https://paulmillr.com/funding/" } }, - "node_modules/ora/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/reflect-metadata": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", + "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", + "license": "Apache-2.0" + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, + "license": "MIT", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=0.10.0" } }, - "node_modules/ora/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, + "license": "MIT", "engines": { - "node": ">=7.0.0" + "node": ">=0.10.0" } }, - "node_modules/ora/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/ora/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", "dev": true, - "engines": { - "node": ">=8" - } + "license": "MIT" }, - "node_modules/ora/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", "dev": true, + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/restore-cursor": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", + "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", "dev": true, + "license": "MIT", "dependencies": { - "p-try": "^2.0.0" + "onetime": "^7.0.0", + "signal-exit": "^4.1.0" }, "engines": { - "node": ">=6" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 4" } }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", + "dev": true, + "license": "MIT" + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dev": true, + "license": "ISC", "dependencies": { - "aggregate-error": "^3.0.0" + "glob": "^7.1.3" }, - "engines": { - "node": ">=10" + "bin": { + "rimraf": "bin.js" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/p-retry": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "node_modules/rollup": { + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.44.1.tgz", + "integrity": "sha512-x8H8aPvD+xbl0Do8oez5f5o8eMS3trfCghc4HhLAnCkj7Vl0d1JWGs0UF/D886zLW2rOj2QymV/JcSSsw+XDNg==", "dev": true, + "license": "MIT", "dependencies": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" }, "engines": { - "node": ">=8" + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.44.1", + "@rollup/rollup-android-arm64": "4.44.1", + "@rollup/rollup-darwin-arm64": "4.44.1", + "@rollup/rollup-darwin-x64": "4.44.1", + "@rollup/rollup-freebsd-arm64": "4.44.1", + "@rollup/rollup-freebsd-x64": "4.44.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.44.1", + "@rollup/rollup-linux-arm-musleabihf": "4.44.1", + "@rollup/rollup-linux-arm64-gnu": "4.44.1", + "@rollup/rollup-linux-arm64-musl": "4.44.1", + "@rollup/rollup-linux-loongarch64-gnu": "4.44.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.44.1", + "@rollup/rollup-linux-riscv64-gnu": "4.44.1", + "@rollup/rollup-linux-riscv64-musl": "4.44.1", + "@rollup/rollup-linux-s390x-gnu": "4.44.1", + "@rollup/rollup-linux-x64-gnu": "4.44.1", + "@rollup/rollup-linux-x64-musl": "4.44.1", + "@rollup/rollup-win32-arm64-msvc": "4.44.1", + "@rollup/rollup-win32-ia32-msvc": "4.44.1", + "@rollup/rollup-win32-x64-msvc": "4.44.1", + "fsevents": "~2.3.2" } }, - "node_modules/p-retry/node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "node_modules/rollup-plugin-dts": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-dts/-/rollup-plugin-dts-6.2.1.tgz", + "integrity": "sha512-sR3CxYUl7i2CHa0O7bA45mCrgADyAQ0tVtGSqi3yvH28M+eg1+g5d7kQ9hLvEz5dorK3XVsH5L2jwHLQf72DzA==", "dev": true, + "license": "LGPL-3.0-only", + "dependencies": { + "magic-string": "^0.30.17" + }, "engines": { - "node": ">= 4" + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/Swatinem" + }, + "optionalDependencies": { + "@babel/code-frame": "^7.26.2" + }, + "peerDependencies": { + "rollup": "^3.29.4 || ^4", + "typescript": "^4.5 || ^5.0" } }, - "node_modules/p-try": { + "node_modules/router": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, "engines": { - "node": ">=6" + "node": ">= 18" } }, - "node_modules/pacote": { - "version": "15.2.0", - "resolved": "https://registry.npmjs.org/pacote/-/pacote-15.2.0.tgz", - "integrity": "sha512-rJVZeIwHTUta23sIZgEIM62WYwbmGbThdbnkt81ravBplQv+HjyroqnLRNH2+sLJHcGZmLRmhPwACqhfTcOmnA==", + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", "dependencies": { - "@npmcli/git": "^4.0.0", - "@npmcli/installed-package-contents": "^2.0.1", - "@npmcli/promise-spawn": "^6.0.1", - "@npmcli/run-script": "^6.0.0", - "cacache": "^17.0.0", - "fs-minipass": "^3.0.0", - "minipass": "^5.0.0", - "npm-package-arg": "^10.0.0", - "npm-packlist": "^7.0.0", - "npm-pick-manifest": "^8.0.0", - "npm-registry-fetch": "^14.0.0", - "proc-log": "^3.0.0", - "promise-retry": "^2.0.1", - "read-package-json": "^6.0.0", - "read-package-json-fast": "^3.0.0", - "sigstore": "^1.3.0", - "ssri": "^10.0.0", - "tar": "^6.1.11" - }, - "bin": { - "pacote": "lib/bin.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "queue-microtask": "^1.2.2" } }, - "node_modules/pacote/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, + "node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", + "license": "Apache-2.0", "dependencies": { - "balanced-match": "^1.0.0" + "tslib": "^2.1.0" } }, - "node_modules/pacote/node_modules/cacache": { - "version": "17.1.4", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-17.1.4.tgz", - "integrity": "sha512-/aJwG2l3ZMJ1xNAnqbMpA40of9dj/pIH3QfiuQSqjfPJF747VR0J/bHn+/KdNnHKc6XQcWt/AfRSBft82W1d2A==", + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", "dev": true, + "license": "MIT", "dependencies": { - "@npmcli/fs": "^3.1.0", - "fs-minipass": "^3.0.0", - "glob": "^10.2.2", - "lru-cache": "^7.7.1", - "minipass": "^7.0.3", - "minipass-collect": "^1.0.2", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "p-map": "^4.0.0", - "ssri": "^10.0.0", - "tar": "^6.1.11", - "unique-filename": "^3.0.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/pacote/node_modules/cacache/node_modules/minipass": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", - "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, - "engines": { - "node": ">=16 || 14 >=14.17" - } + "license": "MIT" }, - "node_modules/pacote/node_modules/glob": { - "version": "10.3.10", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "node_modules/sass": { + "version": "1.89.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.89.2.tgz", + "integrity": "sha512-xCmtksBKd/jdJ9Bt9p7nPKiuqrlBMBuuGkQlkhZjjQk3Ty48lv93k5Dq6OPkKt4XwxDJ7tvlfrTa1MPA9bf+QA==", "dev": true, + "license": "MIT", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" + "chokidar": "^4.0.0", + "immutable": "^5.0.2", + "source-map-js": ">=0.6.2 <2.0.0" }, "bin": { - "glob": "dist/esm/bin.mjs" + "sass": "sass.js" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=14.0.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" } }, - "node_modules/pacote/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "node_modules/sax": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==", "dev": true, + "license": "ISC", + "optional": true + }, + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, "engines": { - "node": ">=12" + "node": ">=10" } }, - "node_modules/pacote/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "node_modules/send": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz", + "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" + "debug": "^4.3.5", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "mime-types": "^3.0.1", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.1" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">= 18" } }, - "node_modules/pacote/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "node_modules/serve-static": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz", + "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==", "dev": true, + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, "engines": { - "node": ">=8" + "node": ">= 18" } }, - "node_modules/pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } + "license": "ISC" }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" + "shebang-regex": "^3.0.0" }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parse-json/node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true - }, - "node_modules/parse-node-version": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", - "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.10" + "node": ">=8" } }, - "node_modules/parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "devOptional": true, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "license": "MIT", "dependencies": { - "entities": "^4.4.0" + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/parse5-html-rewriting-stream": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5-html-rewriting-stream/-/parse5-html-rewriting-stream-7.0.0.tgz", - "integrity": "sha512-mazCyGWkmCRWDI15Zp+UiCqMp/0dgEmkZRvhlsqqKYr4SsVm/TvnSpD9fCvqCA2zoWJcfRym846ejWBBHRiYEg==", + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", "dev": true, + "license": "MIT", "dependencies": { - "entities": "^4.3.0", - "parse5": "^7.0.0", - "parse5-sax-parser": "^7.0.0" + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/parse5-sax-parser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-7.0.0.tgz", - "integrity": "sha512-5A+v2SNsq8T6/mG3ahcz8ZtQ0OUFTatxPbeidoMB7tkJSGDY3tdfl4MHovtLQHkEn5CGxijNWRQHhRQ6IRpXKg==", + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", "dev": true, + "license": "MIT", "dependencies": { - "parse5": "^7.0.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, "engines": { - "node": ">= 0.8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, + "license": "ISC", "engines": { - "node": ">=0.10.0" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "node_modules/sigstore": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-3.1.0.tgz", + "integrity": "sha512-ZpzWAFHIFqyFE56dXqgX/DkDRZdz+rRcjoIk/RQU4IX0wiCv1l8S7ZrXDHcCc+uaf+6o7w3h2l3g6GYG5TKN9Q==", "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^3.1.0", + "@sigstore/core": "^2.0.0", + "@sigstore/protobuf-specs": "^0.4.0", + "@sigstore/sign": "^3.1.0", + "@sigstore/tuf": "^3.1.0", + "@sigstore/verify": "^2.1.0" + }, "engines": { - "node": ">=8" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-scurry": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", - "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", + "node_modules/slice-ansi": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", + "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", "dev": true, + "license": "MIT", "dependencies": { - "lru-cache": "^9.1.1 || ^10.0.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + "ansi-styles": "^6.0.0", + "is-fullwidth-code-point": "^4.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz", - "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==", + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, + "license": "MIT", "engines": { - "node": "14 || >=16.14" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", - "dev": true - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "node": ">= 6.0.0", + "npm": ">= 3.0.0" } }, - "node_modules/pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "node_modules/socket.io": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.8.1.tgz", + "integrity": "sha512-oZ7iUCxph8WYRHHcjBEc9unw3adt5CmSNlppj/5Q4k2RIrhl8Z5yY2Xr4j9zj0+wzVZ0bxmYoGSzKJnRl6A4yg==", "dev": true, - "optional": true, + "license": "MIT", + "dependencies": { + "accepts": "~1.3.4", + "base64id": "~2.0.0", + "cors": "~2.8.5", + "debug": "~4.3.2", + "engine.io": "~6.6.0", + "socket.io-adapter": "~2.5.2", + "socket.io-parser": "~4.2.4" + }, "engines": { - "node": ">=6" + "node": ">=10.2.0" } }, - "node_modules/piscina": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/piscina/-/piscina-4.0.0.tgz", - "integrity": "sha512-641nAmJS4k4iqpNUqfggqUBUMmlw0ZoM5VZKdQkV2e970Inn3Tk9kroCc1wpsYLD07vCwpys5iY0d3xI/9WkTg==", + "node_modules/socket.io-adapter": { + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.5.tgz", + "integrity": "sha512-eLDQas5dzPgOWCk9GuuJC2lBqItuhKI4uxGgo9aIV7MYbk2h9Q6uULEh8WBzThoI7l+qU9Ast9fVUmkqPP9wYg==", "dev": true, + "license": "MIT", "dependencies": { - "eventemitter-asyncresource": "^1.0.0", - "hdr-histogram-js": "^2.0.1", - "hdr-histogram-percentiles-obj": "^3.0.0" - }, - "optionalDependencies": { - "nice-napi": "^1.0.2" + "debug": "~4.3.4", + "ws": "~8.17.1" } }, - "node_modules/pkg-dir": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-7.0.0.tgz", - "integrity": "sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==", + "node_modules/socket.io-adapter/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", "dev": true, + "license": "MIT", "dependencies": { - "find-up": "^6.3.0" + "ms": "^2.1.3" }, "engines": { - "node": ">=14.16" + "node": ">=6.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", - "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", + "node_modules/socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", "dev": true, + "license": "MIT", "dependencies": { - "locate-path": "^7.1.0", - "path-exists": "^5.0.0" + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=10.0.0" } }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", - "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", + "node_modules/socket.io-parser/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", "dev": true, + "license": "MIT", "dependencies": { - "p-locate": "^6.0.0" + "ms": "^2.1.3" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=6.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", - "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", + "node_modules/socket.io/node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, + "license": "MIT", "dependencies": { - "yocto-queue": "^1.0.0" + "mime-types": "~2.1.34", + "negotiator": "0.6.3" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 0.6" } }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", - "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", + "node_modules/socket.io/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", "dev": true, + "license": "MIT", "dependencies": { - "p-limit": "^4.0.0" + "ms": "^2.1.3" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=6.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/pkg-dir/node_modules/path-exists": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", - "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "node_modules/socket.io/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, + "license": "MIT", "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">= 0.6" } }, - "node_modules/pkg-dir/node_modules/yocto-queue": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", - "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", + "node_modules/socket.io/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/postcss": { - "version": "8.4.31", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", - "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" }, "engines": { - "node": "^10 || ^12 || >=14" + "node": ">= 0.6" } }, - "node_modules/postcss-combine-duplicated-selectors": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/postcss-combine-duplicated-selectors/-/postcss-combine-duplicated-selectors-10.0.3.tgz", - "integrity": "sha512-IP0BmwFloCskv7DV7xqvzDXqMHpwdczJa6ZvIW8abgHdcIHs9mCJX2ltFhu3EwA51ozp13DByng30+Ke+eIExA==", - "dependencies": { - "postcss-selector-parser": "^6.0.4" - }, + "node_modules/socket.io/node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "dev": true, + "license": "MIT", "engines": { - "node": "^10.0.0 || ^12.0.0 || >=14.0.0" - }, - "peerDependencies": { - "postcss": "^8.1.0" + "node": ">= 0.6" } }, - "node_modules/postcss-loader": { - "version": "7.3.3", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-7.3.3.tgz", - "integrity": "sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==", + "node_modules/socks": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.6.tgz", + "integrity": "sha512-pe4Y2yzru68lXCb38aAqRf5gvN8YdjP1lok5o0J7BOHljkyCGKVz7H3vpVIXKD27rj2giOJ7DwVyk/GWrPHDWA==", "dev": true, + "license": "MIT", "dependencies": { - "cosmiconfig": "^8.2.0", - "jiti": "^1.18.2", - "semver": "^7.3.8" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" }, - "peerDependencies": { - "postcss": "^7.0.0 || ^8.0.1", - "webpack": "^5.0.0" - } - }, - "node_modules/postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "dev": true, "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" + "node": ">= 10.0.0", + "npm": ">= 3.0.0" } }, - "node_modules/postcss-modules-local-by-default": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", - "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", + "node_modules/socks-proxy-agent": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", "dev": true, + "license": "MIT", "dependencies": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.1.0" + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "socks": "^2.8.3" }, "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" + "node": ">= 14" } }, - "node_modules/postcss-modules-scope": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", - "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", "dev": true, - "dependencies": { - "postcss-selector-parser": "^6.0.4" - }, + "license": "BSD-3-Clause", "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" + "node": ">= 8" } }, - "node_modules/postcss-modules-values": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", - "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, - "dependencies": { - "icss-utils": "^5.0.0" - }, + "license": "BSD-3-Clause", "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" + "node": ">=0.10.0" } }, - "node_modules/postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "license": "MIT", "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, - "node_modules/postcss-url": { - "version": "10.1.3", - "resolved": "https://registry.npmjs.org/postcss-url/-/postcss-url-10.1.3.tgz", - "integrity": "sha512-FUzyxfI5l2tKmXdYc6VTu3TWZsInayEKPbiyW+P6vmmIrrb4I6CGX0BFoewgYHLK+oIL5FECEK02REYRpBvUCw==", + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "dependencies": { - "make-dir": "~3.1.0", - "mime": "~2.5.2", - "minimatch": "~3.0.4", - "xxhashjs": "~0.2.2" - }, + "license": "BSD-3-Clause", "engines": { - "node": ">=10" - }, - "peerDependencies": { - "postcss": "^8.0.0" + "node": ">=0.10.0" } }, - "node_modules/postcss-url/node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" } }, - "node_modules/postcss-url/node_modules/mime": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz", - "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==", + "node_modules/spdx-exceptions": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", + "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } + "license": "CC-BY-3.0" }, - "node_modules/postcss-url/node_modules/minimatch": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz", - "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, - "node_modules/postcss-url/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/spdx-license-ids": { + "version": "3.0.21", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz", + "integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==", "dev": true, - "bin": { - "semver": "bin/semver.js" - } + "license": "CC0-1.0" }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "dev": true + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true, + "license": "BSD-3-Clause" }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "node_modules/ssri": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-12.0.0.tgz", + "integrity": "sha512-S7iGNosepx9RadX82oimUkvr0Ct7IjJbEbs4mJcTxst8um95J3sDYU1RBEOvdu6oL1Wek2ODI5i4MAw+dZ6cAQ==", "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, "engines": { - "node": ">= 0.8.0" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", "dev": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, + "license": "MIT", "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" + "node": ">= 0.8" } }, - "node_modules/pretty-bytes": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", - "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "node_modules/stdin-discarder": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", + "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/proc-log": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-3.0.0.tgz", - "integrity": "sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==", + "node_modules/streamroller": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", + "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", "dev": true, + "license": "MIT", + "dependencies": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=8.0" } }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true - }, - "node_modules/promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", - "dev": true - }, - "node_modules/promise-retry": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", - "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", + "node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", "dev": true, + "license": "MIT" + }, + "node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "license": "MIT", "dependencies": { - "err-code": "^2.0.2", - "retry": "^0.12.0" + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=10" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { - "node": ">= 0.10" + "node": ">=8" } }, - "node_modules/proxy-addr/node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.10" + "node": ">=8" } }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true - }, - "node_modules/prr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true, - "optional": true - }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "dev": true + "license": "MIT" }, - "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/qjobs": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", - "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, "engines": { - "node": ">=0.9" + "node": ">=8" } }, - "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dev": true, + "node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "license": "MIT", "dependencies": { - "side-channel": "^1.0.4" + "ansi-regex": "^6.0.1" }, "engines": { - "node": ">=0.6" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, + "ansi-regex": "^5.0.1" + }, "engines": { - "node": ">= 0.6" + "node": ">=8" } }, - "node_modules/raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, + "license": "MIT", "engines": { - "node": ">= 0.8" + "node": ">=8" } }, - "node_modules/read-package-json": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-6.0.4.tgz", - "integrity": "sha512-AEtWXYfopBj2z5N5PbkAOeNHRPUg5q+Nen7QLxV8M2zJq1ym6/lCz3fYNTCXe19puu2d06jfHhrP7v/S2PtMMw==", + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "dependencies": { - "glob": "^10.2.2", - "json-parse-even-better-errors": "^3.0.0", - "normalize-package-data": "^5.0.0", - "npm-normalize-package-bin": "^3.0.0" - }, + "license": "MIT", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-package-json-fast": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", - "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { - "json-parse-even-better-errors": "^3.0.0", - "npm-normalize-package-bin": "^3.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/read-package-json-fast/node_modules/json-parse-even-better-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz", - "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==", + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/read-package-json/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/read-package-json/node_modules/glob": { - "version": "10.3.10", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "node_modules/tar": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", "dev": true, + "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=10" } }, - "node_modules/read-package-json/node_modules/json-parse-even-better-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz", - "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==", + "node_modules/tar/node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", "dev": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">= 8" } }, - "node_modules/read-package-json/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dev": true, + "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "yallist": "^4.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=8" } }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, + "license": "ISC", "engines": { - "node": ">= 6" + "node": ">=8" } }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "node_modules/tar/node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, + "license": "MIT", "dependencies": { - "picomatch": "^2.2.1" + "minipass": "^3.0.0", + "yallist": "^4.0.0" }, "engines": { - "node": ">=8.10.0" + "node": ">= 8" } }, - "node_modules/reflect-metadata": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", - "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", - "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", + "node_modules/tar/node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dev": true, + "license": "ISC", "dependencies": { - "regenerate": "^1.4.2" + "yallist": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", - "dev": true + "node_modules/tar/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, + "license": "ISC" }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/runtime": "^7.8.4" + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" } }, - "node_modules/regex-parser": { - "version": "2.2.11", - "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", - "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==", - "dev": true - }, - "node_modules/regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "node_modules/through2/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true, - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } + "license": "MIT" }, - "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "node_modules/through2/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, + "license": "MIT", "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "node_modules/through2/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "engines": { - "node": ">=0.10.0" - } + "license": "MIT" }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, - "engines": { - "node": ">=0.10.0" + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" } }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true - }, - "node_modules/resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "dev": true, + "node_modules/tinyglobby": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", + "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", + "license": "MIT", "dependencies": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" + "fdir": "^6.4.4", + "picomatch": "^4.0.2" }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-url-loader": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz", - "integrity": "sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg==", - "dev": true, - "dependencies": { - "adjust-sourcemap-loader": "^4.0.0", - "convert-source-map": "^1.7.0", - "loader-utils": "^2.0.0", - "postcss": "^8.2.14", - "source-map": "0.6.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/resolve-url-loader/node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, - "node_modules/resolve-url-loader/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rfdc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", - "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", - "dev": true - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "3.29.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz", - "integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==", - "dev": true, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=14.18.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/sass": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.64.1.tgz", - "integrity": "sha512-16rRACSOFEE8VN7SCgBu1MpYCyN7urj9At898tyzdXFhC+a+yOX5dXwAR7L8/IdPJ1NB8OYoXmD55DM30B2kEQ==", - "dev": true, - "dependencies": { - "chokidar": ">=3.0.0 <4.0.0", - "immutable": "^4.0.0", - "source-map-js": ">=0.6.2 <2.0.0" - }, - "bin": { - "sass": "sass.js" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/sass-loader": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-13.3.2.tgz", - "integrity": "sha512-CQbKl57kdEv+KDLquhC+gE3pXt74LEAzm+tzywcA0/aHZuub8wTErbjAoNI57rPUWRYRNC5WUnNl8eGJNbDdwg==", - "dev": true, - "dependencies": { - "neo-async": "^2.6.2" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "fibers": ">= 3.1.0", - "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", - "sass": "^1.3.0", - "sass-embedded": "*", - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "fibers": { - "optional": true - }, - "node-sass": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - } - } - }, - "node_modules/sax": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", - "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==", - "dev": true, - "optional": true - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/schema-utils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", - "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==", - "dev": true - }, - "node_modules/selfsigned": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", - "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", - "dev": true, - "dependencies": { - "node-forge": "^1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/send/node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/send/node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", - "dev": true, - "dependencies": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/serve-index/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/serve-index/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "dev": true, - "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", - "dev": true - }, - "node_modules/serve-index/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/serve-index/node_modules/setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "dev": true - }, - "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "dev": true, - "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true - }, - "node_modules/set-function-length": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", - "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", - "dev": true, - "dependencies": { - "define-data-property": "^1.1.1", - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "node_modules/shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "node_modules/sigstore": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-1.9.0.tgz", - "integrity": "sha512-0Zjz0oe37d08VeOtBIuB6cRriqXse2e8w+7yIy2XSXjshRKxbc2KkhXjL229jXSxEm7UbcjS76wcJDGQddVI9A==", - "dev": true, - "dependencies": { - "@sigstore/bundle": "^1.1.0", - "@sigstore/protobuf-specs": "^0.2.0", - "@sigstore/sign": "^1.0.0", - "@sigstore/tuf": "^1.0.3", - "make-fetch-happen": "^11.0.1" - }, - "bin": { - "sigstore": "bin/sigstore.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "dev": true, - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socket.io": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.7.2.tgz", - "integrity": "sha512-bvKVS29/I5fl2FGLNHuXlQaUH/BlzX1IN6S+NKLNZpBsPZIDH+90eQmCs2Railn4YUiww4SzUedJ6+uzwFnKLw==", - "dev": true, - "dependencies": { - "accepts": "~1.3.4", - "base64id": "~2.0.0", - "cors": "~2.8.5", - "debug": "~4.3.2", - "engine.io": "~6.5.2", - "socket.io-adapter": "~2.5.2", - "socket.io-parser": "~4.2.4" - }, - "engines": { - "node": ">=10.2.0" - } - }, - "node_modules/socket.io-adapter": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.2.tgz", - "integrity": "sha512-87C3LO/NOMc+eMcpcxUBebGjkpMDkNBS9tf7KJqcDsmL936EChtVva71Dw2q4tQcuVC+hAUy4an2NO/sYXmwRA==", - "dev": true, - "dependencies": { - "ws": "~8.11.0" - } - }, - "node_modules/socket.io-adapter/node_modules/ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/socket.io-parser": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", - "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", - "dev": true, - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.3.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/sockjs": { - "version": "0.3.24", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", - "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", - "dev": true, - "dependencies": { - "faye-websocket": "^0.11.3", - "uuid": "^8.3.2", - "websocket-driver": "^0.7.4" - } - }, - "node_modules/socks": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", - "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", - "dev": true, - "dependencies": { - "ip": "^2.0.0", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.13.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks-proxy-agent": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz", - "integrity": "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==", - "dev": true, - "dependencies": { - "agent-base": "^6.0.2", - "debug": "^4.3.3", - "socks": "^2.6.2" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-loader": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-4.0.1.tgz", - "integrity": "sha512-oqXpzDIByKONVY8g1NUPOTQhe0UTU5bWUl32GSkqK2LjJj0HmwTMVKxcUip0RgAYhY1mqgOxjbQM48a0mmeNfA==", - "dev": true, - "dependencies": { - "abab": "^2.0.6", - "iconv-lite": "^0.6.3", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.72.1" - } - }, - "node_modules/source-map-loader/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/spdx-correct": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", - "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.16", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", - "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==", - "dev": true - }, - "node_modules/spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "dev": true, - "dependencies": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "dev": true, - "dependencies": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "node_modules/ssri": { - "version": "10.0.5", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.5.tgz", - "integrity": "sha512-bSf16tAFkGeRlUNDjXu8FzaMQt6g2HZJrun7mtMbIPOddxt3GLMSz5VWUWcqTJUPfLEaDIepGxv+bYQW49596A==", - "dev": true, - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/streamroller": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", - "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", - "dev": true, - "dependencies": { - "date-format": "^4.0.14", - "debug": "^4.3.4", - "fs-extra": "^8.1.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/streamroller/node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/streamroller/node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/streamroller/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strong-log-transformer": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/strong-log-transformer/-/strong-log-transformer-2.1.0.tgz", - "integrity": "sha512-B3Hgul+z0L9a236FAUC9iZsL+nVHgoCJnqCbN588DjYxvGXaXaaFbfmQ/JhvKjZwsOukuR72XbHv71Qkug0HxA==", - "dev": true, - "dependencies": { - "duplexer": "^0.1.1", - "minimist": "^1.2.0", - "through": "^2.3.4" - }, - "bin": { - "sl-log-transformer": "bin/sl-log-transformer.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/symbol-observable": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-4.0.0.tgz", - "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/tar": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz", - "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==", - "dev": true, - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "dev": true, - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tar/node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tar/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/tar/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/tar/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/terser": { - "version": "5.19.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.2.tgz", - "integrity": "sha512-qC5+dmecKJA4cpYxRa5aVkKehYsQKc+AHeKl0Oe62aYjBL8ZA33tTljktDHJSaxxMnbI5ZYw+o/S2DxxLu8OfA==", - "dev": true, - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.9", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/terser-webpack-plugin/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/terser-webpack-plugin/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/terser-webpack-plugin/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true - }, - "node_modules/thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", - "dev": true - }, - "node_modules/tmp": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", - "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", - "dev": true, - "dependencies": { - "rimraf": "^3.0.0" - }, - "engines": { - "node": ">=8.17.0" - } - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/tough-cookie": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", - "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", - "dev": true, - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tough-cookie/node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dev": true, - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tree-kill": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", - "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "dev": true, - "bin": { - "tree-kill": "cli.js" - } - }, - "node_modules/tsconfig-paths": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", - "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", - "dev": true, - "dependencies": { - "json5": "^2.2.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" - }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/tuf-js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-1.1.7.tgz", - "integrity": "sha512-i3P9Kgw3ytjELUfpuKVDNBJvk4u5bXL6gskv572mcevPbSKCV3zt3djhmlEQ65yERjIbOSncy7U4cQJaB1CBCg==", - "dev": true, - "dependencies": { - "@tufjs/models": "1.0.4", - "debug": "^4.3.4", - "make-fetch-happen": "^11.1.1" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typed-assert": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/typed-assert/-/typed-assert-1.0.9.tgz", - "integrity": "sha512-KNNZtayBCtmnNmbo5mG47p1XsCyrx6iVqomjcZnec/1Y5GGARaxPs6r49RnSPeUP3YjNYiU9sQHAtY4BBvnZwg==", - "dev": true - }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/ua-parser-js": { - "version": "0.7.36", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.36.tgz", - "integrity": "sha512-CPPLoCts2p7D8VbybttE3P2ylv0OBZEAy7a12DsulIEcAiMtWJy+PBgMXgWDI80D5UwqE8oQPHYnk13tm38M2Q==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/ua-parser-js" - }, - { - "type": "paypal", - "url": "https://paypal.me/faisalman" - }, - { - "type": "github", - "url": "https://github.com/sponsors/faisalman" - } - ], - "engines": { - "node": "*" - } - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unique-filename": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-3.0.0.tgz", - "integrity": "sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==", - "dev": true, - "dependencies": { - "unique-slug": "^4.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/unique-slug": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-4.0.0.tgz", - "integrity": "sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dev": true, - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/validate-npm-package-name": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.0.tgz", - "integrity": "sha512-YuKoXDAhBYxY7SfOKxHBDoSyENFeW5VvIIQp2TGQuit8gpK6MnWaQelBKxso72DoxTZfZdcP3W90LqpSkgPzLQ==", - "dev": true, - "dependencies": { - "builtins": "^5.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/vite": { - "version": "4.4.7", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.7.tgz", - "integrity": "sha512-6pYf9QJ1mHylfVh39HpuSfMPojPSKVxZvnclX1K1FyZ1PXDOcLBibdq5t1qxJSnL63ca8Wf4zts6mD8u8oc9Fw==", - "dev": true, - "dependencies": { - "esbuild": "^0.18.10", - "postcss": "^8.4.26", - "rollup": "^3.25.2" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "@types/node": ">= 14", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" + "node": ">=12.0.0" }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/void-elements": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", - "integrity": "sha512-qZKX4RnBzH2ugr8Lxa7x+0V6XD9Sb/ouARtiasEQCHB1EVU4NXtmHsDDrx1dO4ne5fc3J6EW05BP1Dl0z0iung==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, + "license": "MIT", "dependencies": { - "browser-process-hrtime": "^1.0.0" + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" } }, - "node_modules/w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { - "xml-name-validator": "^3.0.0" + "is-number": "^7.0.0" }, "engines": { - "node": ">=10" + "node": ">=8.0" } }, - "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "dev": true, - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, + "license": "MIT", "engines": { - "node": ">=10.13.0" + "node": ">=0.6" } }, - "node_modules/wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", "dev": true, - "dependencies": { - "minimalistic-assert": "^1.0.0" + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" } }, - "node_modules/wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/tuf-js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-3.1.0.tgz", + "integrity": "sha512-3T3T04WzowbwV2FDiGXBbr81t64g1MUGGJRgT4x5o97N+8ArdhVCAF9IxFrxuSJmM3E5Asn7nKHkao0ibcZXAg==", "dev": true, + "license": "MIT", "dependencies": { - "defaults": "^1.0.3" + "@tufjs/models": "3.0.1", + "debug": "^4.4.1", + "make-fetch-happen": "^14.0.3" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, "engines": { - "node": ">=10.4" + "node": ">= 0.8.0" } }, - "node_modules/webpack": { - "version": "5.88.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.2.tgz", - "integrity": "sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==", + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.15.0", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.2.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, + "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=10.13.0" + "node": ">=10" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/webpack-dev-middleware": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-6.1.1.tgz", - "integrity": "sha512-y51HrHaFeeWir0YO4f0g+9GwZawuigzcAdRNon6jErXy/SqV/+O6eaVAzDqE6t3e3NpGeR5CS+cCDaTC+V3yEQ==", + "node_modules/type-is": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", + "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", "dev": true, + "license": "MIT", "dependencies": { - "colorette": "^2.0.10", - "memfs": "^3.4.12", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" + "content-type": "^1.0.5", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" }, "engines": { - "node": ">= 14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "webpack": { - "optional": true - } + "node": ">= 0.6" } }, - "node_modules/webpack-dev-server": { - "version": "4.15.1", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz", - "integrity": "sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==", - "dev": true, - "dependencies": { - "@types/bonjour": "^3.5.9", - "@types/connect-history-api-fallback": "^1.3.5", - "@types/express": "^4.17.13", - "@types/serve-index": "^1.9.1", - "@types/serve-static": "^1.13.10", - "@types/sockjs": "^0.3.33", - "@types/ws": "^8.5.5", - "ansi-html-community": "^0.0.8", - "bonjour-service": "^1.0.11", - "chokidar": "^3.5.3", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^2.0.0", - "default-gateway": "^6.0.3", - "express": "^4.17.3", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.3", - "ipaddr.js": "^2.0.1", - "launch-editor": "^2.6.0", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "rimraf": "^3.0.2", - "schema-utils": "^4.0.0", - "selfsigned": "^2.1.1", - "serve-index": "^1.9.1", - "sockjs": "^0.3.24", - "spdy": "^4.0.2", - "webpack-dev-middleware": "^5.3.1", - "ws": "^8.13.0" - }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "devOptional": true, + "license": "Apache-2.0", "bin": { - "webpack-dev-server": "bin/webpack-dev-server.js" + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.37.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "webpack": { - "optional": true - }, - "webpack-cli": { - "optional": true - } + "node": ">=14.17" } }, - "node_modules/webpack-dev-server/node_modules/webpack-dev-middleware": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", - "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", + "node_modules/typescript-eslint": { + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.38.0.tgz", + "integrity": "sha512-FsZlrYK6bPDGoLeZRuvx2v6qrM03I0U0SnfCLPs/XCCPCFD80xU9Pg09H/K+XFa68uJuZo7l/Xhs+eDRg2l3hg==", "dev": true, + "license": "MIT", "dependencies": { - "colorette": "^2.0.10", - "memfs": "^3.4.3", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" + "@typescript-eslint/eslint-plugin": "8.38.0", + "@typescript-eslint/parser": "8.38.0", + "@typescript-eslint/typescript-estree": "8.38.0", + "@typescript-eslint/utils": "8.38.0" }, "engines": { - "node": ">= 12.13.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/webpack" + "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" } }, - "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.14.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", - "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "node_modules/ua-parser-js": { + "version": "0.7.40", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.40.tgz", + "integrity": "sha512-us1E3K+3jJppDBa3Tl0L3MOJiGhe1C6P0+nIvQAFYbxlMAx0h81eOwLmU57xgqToduDDPx3y5QsdjPfDu+FgOQ==", "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" }, - "utf-8-validate": { - "optional": true + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + }, + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" } + ], + "license": "MIT", + "bin": { + "ua-parser-js": "script/cli.js" + }, + "engines": { + "node": "*" } }, - "node_modules/webpack-merge": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", - "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/unique-filename": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-4.0.0.tgz", + "integrity": "sha512-XSnEewXmQ+veP7xX2dS5Q4yZAvO40cBN2MWkJ7D/6sW4Dg6wYBNwM1Vrnz1FhH5AdeLIlUXRI9e28z1YZi71NQ==", "dev": true, + "license": "ISC", "dependencies": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" + "unique-slug": "^5.0.0" }, "engines": { - "node": ">=10.0.0" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "node_modules/unique-slug": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-5.0.0.tgz", + "integrity": "sha512-9OdaqO5kwqR+1kVgHAhsp5vPNU0hnxRa26rBFNfNgM7M6pNtgzeBn3s/xbyCQL3dcjzOatcef6UUHpB/6MaETg==", "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, "engines": { - "node": ">=10.13.0" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/webpack-subresource-integrity": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/webpack-subresource-integrity/-/webpack-subresource-integrity-5.1.0.tgz", - "integrity": "sha512-sacXoX+xd8r4WKsy9MvH/q/vBtEHr86cpImXwyg74pFIpERKt6FmB8cXpeuh0ZLgclOlHI4Wcll7+R5L02xk9Q==", + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", "dependencies": { - "typed-assert": "^1.0.8" + "escalade": "^3.2.0", + "picocolors": "^1.1.1" }, - "engines": { - "node": ">= 12" + "bin": { + "update-browserslist-db": "cli.js" }, "peerDependencies": { - "html-webpack-plugin": ">= 5.0.0-beta.1 < 6", - "webpack": "^5.12.0" - }, - "peerDependenciesMeta": { - "html-webpack-plugin": { - "optional": true - } + "browserslist": ">= 4.21.0" } }, - "node_modules/webpack/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "punycode": "^2.1.0" } }, - "node_modules/webpack/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "node_modules/uri-js/node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, - "peerDependencies": { - "ajv": "^6.9.1" + "license": "MIT", + "engines": { + "node": ">=6" } }, - "node_modules/webpack/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/validate-npm-package-name": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-6.0.2.tgz", + "integrity": "sha512-IUoow1YUtvoBBC06dXs8bR8B9vuA3aJfmQNKMoaPG/OFsPmoQvw8xh+6Ye25Gx9DQhoEom3Pcu9MKHerm/NpUQ==", + "dev": true, + "license": "ISC", "engines": { - "node": ">=8.0.0" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/webpack/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=4.0" + "node": ">= 0.8" } }, - "node_modules/webpack/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/webpack/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "node_modules/vite": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.0.6.tgz", + "integrity": "sha512-MHFiOENNBd+Bd9uvc8GEsIzdkn1JxMmEeYX35tI3fv0sJBUTfW5tQsoaOwuY4KhBI09A3dUJ/DXf2yxPVPUceg==", "dev": true, + "license": "MIT", "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" + "esbuild": "^0.25.0", + "fdir": "^6.4.6", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.40.0", + "tinyglobby": "^0.2.14" + }, + "bin": { + "vite": "bin/vite.js" }, "engines": { - "node": ">= 10.13.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dev": true, - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" + "url": "https://github.com/vitejs/vite?sponsor=1" }, - "engines": { - "node": ">=0.8.0" + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } } }, - "node_modules/websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "node_modules/vite/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.8.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "node_modules/void-elements": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", + "integrity": "sha512-qZKX4RnBzH2ugr8Lxa7x+0V6XD9Sb/ouARtiasEQCHB1EVU4NXtmHsDDrx1dO4ne5fc3J6EW05BP1Dl0z0iung==", "dev": true, - "dependencies": { - "iconv-lite": "0.4.24" + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "node_modules/watchpack": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.4.tgz", + "integrity": "sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==", "dev": true, + "license": "MIT", "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" }, "engines": { - "node": ">=10" + "node": ">=10.13.0" } }, + "node_modules/weak-lru-cache": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/weak-lru-cache/-/weak-lru-cache-1.2.2.tgz", + "integrity": "sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==", + "dev": true, + "license": "MIT", + "optional": true + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -15022,35 +11786,29 @@ "node": ">= 8" } }, - "node_modules/wide-align": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", - "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true, - "dependencies": { - "string-width": "^1.0.2 || 2 || 3 || 4" + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/wildcard": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", - "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", - "dev": true - }, "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "node": ">=8" } }, "node_modules/wrap-ansi-cjs": { @@ -15059,6 +11817,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -15071,86 +11830,135 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/wrap-ansi-cjs/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "ansi-regex": "^5.0.1" }, "engines": { - "node": ">=7.0.0" + "node": ">=8" } }, - "node_modules/wrap-ansi-cjs/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "ansi-regex": "^5.0.1" }, "engines": { - "node": ">=7.0.0" + "node": ">=8" } }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8.3.0" + "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -15161,31 +11969,21 @@ } } }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, - "node_modules/xxhashjs": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/xxhashjs/-/xxhashjs-0.2.2.tgz", - "integrity": "sha512-AkTuIuVTET12tpsVIQo+ZU6f/qDmKuRUcjaqR+OIvm+aCBsZ95i7UVY5WJ9TMsSaZ0DA2WxoZ4acu0sPH+OKAw==", + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, - "dependencies": { - "cuint": "^0.2.2" + "license": "MIT", + "engines": { + "node": ">=0.4" } }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", "engines": { "node": ">=10" } @@ -15193,44 +11991,33 @@ "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "license": "ISC" }, "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz", + "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==", + "license": "MIT", "dependencies": { - "cliui": "^8.0.1", + "cliui": "^9.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", + "string-width": "^7.2.0", "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" + "yargs-parser": "^22.0.0" }, "engines": { - "node": ">=12" + "node": "^20.19.0 || ^22.12.0 || >=23" } }, "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs/node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "license": "ISC", "engines": { - "node": ">=12" + "node": "^20.19.0 || ^22.12.0 || >=23" } }, "node_modules/yocto-queue": { @@ -15238,6 +12025,7 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -15245,13 +12033,44 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/zone.js": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.13.3.tgz", - "integrity": "sha512-MKPbmZie6fASC/ps4dkmIhaT5eonHkEt6eAy80K42tAm0G2W+AahLJjbfi6X9NPdciOE9GRFTTM8u2IiF6O3ww==", - "dependencies": { - "tslib": "^2.3.0" + "node_modules/yoctocolors-cjs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz", + "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "3.25.75", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.75.tgz", + "integrity": "sha512-OhpzAmVzabPOL6C3A3gpAifqr9MqihV/Msx3gor2b2kviCgcb+HM9SEOpMWwwNp9MRunWnhtAKUoo0AHhjyPPg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-to-json-schema": { + "version": "3.24.6", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.6.tgz", + "integrity": "sha512-h/z3PKvcTcTetyjl1fkj79MHNEjm+HpD6NXheWjzOekY7kV+lwDYnHw+ivHkijnCSMz1yJaWBD9vu/Fcmk+vEg==", + "dev": true, + "license": "ISC", + "peerDependencies": { + "zod": "^3.24.1" } + }, + "node_modules/zone.js": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.15.1.tgz", + "integrity": "sha512-XE96n56IQpJM7NAoXswY3XRLcWFW83xe0BiAOeMD7K5k5xecOeul3Qcpx6GqEeeHNkW5DWL5zOyTbEfB4eti8w==", + "license": "MIT" } } } diff --git a/package.json b/package.json index 900109f8..faee6d86 100644 --- a/package.json +++ b/package.json @@ -1,85 +1,86 @@ { "name": "coreui-angular-dev", - "version": "4.5.27", + "version": "5.5.6", "description": "CoreUI Components Library for Angular", - "copyright": "Copyright 2023 creativeLabs Łukasz Holeczek", + "copyright": "Copyright 2025 creativeLabs Łukasz Holeczek", "license": "MIT", "author": "The CoreUI Team (https://github.com/orgs/coreui/people)", "scripts": { "lib": "ng", - "watch:lib:dev": "ng build coreui-angular --watch --configuration development", + "watch:lib:dev": "ng build coreui-angular --watch --configuration production", "build:lib:prod": "ng build coreui-angular", + "postbuild:lib:prod": "npm run build --prefix projects/coreui-angular", "test:lib:dev": "ng test coreui-angular", - "test:lib:prod": "ng test coreui-angular --karma-config=projects/coreui-angular/karma.conf.github.js", - "prepublish:lib": "ng build coreui-icons-angular && ng lint coreui-angular && ng test coreui-angular --watch=false && ng build coreui-angular", + "test:lib:cov": "ng test --watch --code-coverage coreui-angular ", + "test:lib:prod": "ng test coreui-angular --watch=false --karma-config=projects/coreui-angular/karma.conf.github.js", + "prepublish:lib": "npm run prepublish:icons && ng lint coreui-angular && ng test coreui-angular --watch=false && npm run build:lib:prod", "publish:lib": "cd dist/coreui-angular/ && npm publish --tag next --dry-run", "lint:lib": "ng lint coreui-angular", "link:lib": "cd dist/coreui-angular/ && npm link", "chartjs": "ng", "watch:chartjs:dev": "ng build coreui-angular-chartjs --watch --configuration development", "build:chartjs:prod": "ng build coreui-angular-chartjs", + "postbuild:chartjs:prod": "npm run build --prefix projects/coreui-angular-chartjs", "test:chartjs:dev": "ng test coreui-angular-chartjs", - "test:chartjs:prod": "ng test coreui-angular-chartjs --karma-config=projects/coreui-angular-chartjs/karma.conf.github.js", - "prepublish:chartjs": "ng lint coreui-angular-chartjs && ng test coreui-angular-chartjs --watch=false && ng build coreui-angular-chartjs", + "test:chartjs:prod": "ng test coreui-angular-chartjs --watch=false --karma-config=projects/coreui-angular-chartjs/karma.conf.github.js", + "prepublish:chartjs": "ng lint coreui-angular-chartjs && ng test coreui-angular-chartjs --watch=false && npm run build:chartjs:prod", "publish:chartjs": "cd dist/coreui-angular-chartjs/ && npm publish --tag next --dry-run", "lint:chartjs": "ng lint coreui-angular-chartjs", "link:chartjs": "cd dist/coreui-angular-chartjs/ && npm link", "icons": "ng", - "watch:icons:dev": "ng build coreui-icons-angular --watch --configuration development", + "watch:icons:dev": "ng build coreui-icons-angular --watch --configuration production", "build:icons:prod": "ng build coreui-icons-angular", + "postbuild:icons:prod": "npm run build --prefix projects/coreui-icons-angular", "test:icons:dev": "ng test coreui-icons-angular", - "test:icons:prod": "ng test coreui-icons-angular --karma-config=projects/coreui-icons-angular/karma.conf.github.js", - "prepublish:icons": "ng lint coreui-icons-angular && ng test coreui-icons-angular --watch=false && ng build coreui-icons-angular", + "test:icons:prod": "ng test coreui-icons-angular --watch=false --karma-config=projects/coreui-icons-angular/karma.conf.github.js", + "prepublish:icons": "ng lint coreui-icons-angular && ng test coreui-icons-angular --watch=false && npm run build:icons:prod", "publish:icons": "cd dist/coreui-icons-angular/ && npm publish --tag next --dry-run", "lint:icons": "ng lint coreui-icons-angular", "link:icons": "cd dist/coreui-icons-angular/ && npm link" }, "private": true, "dependencies": { - "@angular/animations": "^16.2.10", - "@angular/cdk": "^16.2.9", - "@angular/common": "^16.2.10", - "@angular/compiler": "^16.2.10", - "@angular/core": "^16.2.10", - "@angular/forms": "^16.2.10", - "@angular/localize": "^16.2.10", - "@angular/platform-browser": "^16.2.10", - "@angular/platform-browser-dynamic": "^16.2.10", - "@angular/router": "^16.2.10", - "@coreui/chartjs": "^3.1.2", - "@popperjs/core": "~2.11.6", - "chart.js": "^3.9.1", + "@angular/animations": "^20.1.4", + "@angular/cdk": "^20.1.4", + "@angular/common": "^20.1.4", + "@angular/compiler": "^20.1.4", + "@angular/core": "^20.1.4", + "@angular/forms": "^20.1.4", + "@angular/localize": "^20.1.4", + "@angular/platform-browser": "^20.1.4", + "@angular/platform-browser-dynamic": "^20.1.4", + "@angular/router": "^20.1.4", + "@coreui/chartjs": "~4.1.0", + "@coreui/icons": "^3.0.1", + "@popperjs/core": "~2.11.8", + "chart.js": "^4.5.0", "lodash-es": "^4.17.21", - "rxjs": "~7.8.1", - "tslib": "^2.3.0", - "zone.js": "~0.13.1" + "rxjs": "~7.8.2", + "tslib": "^2.8.1", + "zone.js": "~0.15.1" }, "devDependencies": { - "@angular-devkit/build-angular": "^16.2.7", - "@angular-eslint/builder": "^16.2.0", - "@angular-eslint/eslint-plugin": "^16.2.0", - "@angular-eslint/eslint-plugin-template": "^16.2.0", - "@angular-eslint/schematics": "^16.2.0", - "@angular-eslint/template-parser": "^16.2.0", - "@angular/cli": "^16.2.7", - "@angular/compiler-cli": "^16.2.10", - "@angular/language-service": "^16.2.10", - "@coreui/icons": "^3.0.1", - "@types/jasmine": "^5.1.1", - "@types/lodash-es": "^4.17.10", - "@types/node": "^18.18.6", - "@typescript-eslint/eslint-plugin": "^5.62.0", - "@typescript-eslint/parser": "^5.62.0", - "eslint": "^8.51.0", - "jasmine-core": "^5.1.1", - "karma": "^6.4.2", + "@angular-devkit/schematics": "^20.1.4", + "@angular/build": "^20.1.4", + "@angular/cli": "^20.1.4", + "@angular/compiler-cli": "^20.1.4", + "@angular/language-service": "^20.1.4", + "@types/jasmine": "^5.1.8", + "@types/lodash-es": "^4.17.12", + "@types/node": "^22.17.0", + "angular-eslint": "^20.1.1", + "copyfiles": "^2.4.1", + "eslint": "^9.32.0", + "jasmine-core": "^5.9.0", + "karma": "^6.4.4", "karma-chrome-launcher": "^3.2.0", "karma-coverage": "^2.2.1", "karma-jasmine": "^5.1.0", "karma-jasmine-html-reporter": "^2.1.0", - "ng-packagr": "^16.2.3", - "prettier": "^3.0.3", - "typescript": "~4.9.5" + "ng-packagr": "^20.1.0", + "prettier": "^3.6.2", + "typescript": "~5.8.3", + "typescript-eslint": "^8.38.0" }, "keywords": [ "angular", @@ -102,10 +103,10 @@ "url": "git+https://github.com/coreui/coreui-angular.git" }, "config": { - "version_short": "4.5" + "version_short": "5.5" }, "engines": { - "node": "^16.14.0 || ^18.10.0", - "npm": ">=6" + "node": "^20.19.0 || ^22.12.0 || ^24.0.0", + "npm": ">=9" } } diff --git a/projects/coreui-angular-chartjs/.eslintrc.json b/projects/coreui-angular-chartjs/.eslintrc.json deleted file mode 100644 index 356cf98b..00000000 --- a/projects/coreui-angular-chartjs/.eslintrc.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "extends": "../../.eslintrc.json", - "ignorePatterns": [ - "!**/*" - ], - "overrides": [ - { - "files": [ - "*.ts" - ], - "parserOptions": { - "project": [ - "./tsconfig.json" - ], - "createDefaultProgram": true - }, - "rules": { - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "c", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "c", - "style": "kebab-case" - } - ] - } - }, - { - "files": [ - "*.html" - ], - "rules": {} - } - ] -} diff --git a/projects/coreui-angular-chartjs/LICENSE b/projects/coreui-angular-chartjs/LICENSE index 027b8813..fbb053e0 100644 --- a/projects/coreui-angular-chartjs/LICENSE +++ b/projects/coreui-angular-chartjs/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 creativeLabs Łukasz Holeczek +Copyright (c) 2025 creativeLabs Łukasz Holeczek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/projects/coreui-angular-chartjs/README.md b/projects/coreui-angular-chartjs/README.md index b6ebb247..29e917b0 100644 --- a/projects/coreui-angular-chartjs/README.md +++ b/projects/coreui-angular-chartjs/README.md @@ -1,5 +1,5 @@

- + CoreUI logo

-

CoreUI Angular wrapper for Chart.js

+

CoreUI Angular wrapper for Chart.js v4

- Explore @coreui/angular-chartjs docs & examples » + Explore @coreui/angular-chartjs docs & examples »

- Report bug + Report bug · - Request feature + Request feature · Blog

+
+

+Featured CoreUI for Angular libraries: +
CoreUI Components for Angular +
CoreUI Angular wrapper for Chart.js v4 +
CoreUI Icons for Angular +

+
-## Status +### Status ![angular][angular-badge] -[![npm package][npm-badge]][npm] +[![npm package][npm-badge-v5-ng20]][npm] +[![npm package][npm-badge-latest]][npm] [![npm package][npm-badge-next]][npm] -[![NPM downloads][npm-download]][npm] - +[![NPM downloads][npm-download]][npm] +[![Project chartjs check](https://github.com/coreui/coreui-angular/actions/workflows/project-chartjs-check.yml/badge.svg)](https://github.com/coreui/coreui-angular/actions/workflows/project-chartjs-check.yml) -[npm-badge]: https://img.shields.io/npm/v/@coreui/angular-chartjs/latest?style=flat-square&color=brightgreen +[npm-badge-v5-ng20]: https://img.shields.io/npm/v/@coreui/angular-chartjs/v5-ng20?style=flat-square&color=brightgreen +[npm-badge-latest]: https://img.shields.io/npm/v/@coreui/angular-chartjs/latest?style=flat-square&color=brightgreen [npm-badge-next]: https://img.shields.io/npm/v/@coreui/angular-chartjs/next?style=flat-square&color=red [npm]: https://www.npmjs.com/package/@coreui/angular-chartjs [npm-download]: https://img.shields.io/npm/dm/@coreui/angular-chartjs.svg?style=flat-square -[angular-badge]: https://img.shields.io/badge/angular-^16.1.0-lightgrey.svg?style=flat-square&logo=angular +[angular-badge]: https://img.shields.io/badge/angular-^20.1.0-lightgrey.svg?style=flat-square&logo=angular ##### install: +- Angular CLI: +```bash +ng add @coreui/angular-chartjs +```` + +- or npm ```bash -npm install chart.js -npm install @coreui/chartjs@3 -npm install @coreui/angular-chartjs +npm install chart.js@4 +npm install @coreui/chartjs@~4.1 +npm install @coreui/angular-chartjs@~5.5 ```` ##### import: ```ts +// ng modules import { ChartjsModule } from '@coreui/angular-chartjs'; @NgModule({ - imports: [ - ChartjsModule, + imports: [ + ChartjsModule, +... +``` +```ts +// standalone components + import { ChartjsComponent } from '@coreui/angular-chartjs'; + +@Component({ + imports: [ + ChartjsComponent, ... ``` @@ -171,4 +200,4 @@ Thanks to all the backers and sponsors! Support this project by [becoming a back ## Copyright and license -Copyright 2022 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). +Copyright 2025 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). diff --git a/projects/coreui-angular-chartjs/eslint.config.js b/projects/coreui-angular-chartjs/eslint.config.js new file mode 100644 index 00000000..1470027e --- /dev/null +++ b/projects/coreui-angular-chartjs/eslint.config.js @@ -0,0 +1,15 @@ +// @ts-check +const tseslint = require('typescript-eslint'); +const rootConfig = require('../../eslint.config.js'); + +module.exports = tseslint.config( + ...rootConfig, + { + files: ['**/*.ts'], + rules: {} + }, + { + files: ['**/*.html'], + rules: {} + } +); diff --git a/projects/coreui-angular-chartjs/karma.conf.github.js b/projects/coreui-angular-chartjs/karma.conf.github.js index 1f41db1d..c167e68d 100644 --- a/projects/coreui-angular-chartjs/karma.conf.github.js +++ b/projects/coreui-angular-chartjs/karma.conf.github.js @@ -9,8 +9,7 @@ module.exports = function (config) { require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), - require('karma-coverage'), - require('@angular-devkit/build-angular/plugins/karma') + require('karma-coverage') ], client: { jasmine: { @@ -27,10 +26,7 @@ module.exports = function (config) { coverageReporter: { dir: require('path').join(__dirname, '../../coverage/coreui-angular-chartjs'), subdir: '.', - reporters: [ - { type: 'html' }, - { type: 'text-summary' } - ] + reporters: [{ type: 'html' }, { type: 'text-summary' }] }, reporters: ['progress', 'kjhtml'], port: 9876, @@ -39,6 +35,6 @@ module.exports = function (config) { autoWatch: false, singleRun: true, restartOnFileChange: false, - browsers: ['ChromeHeadless'], + browsers: ['ChromeHeadless'] }); }; diff --git a/projects/coreui-angular-chartjs/karma.conf.js b/projects/coreui-angular-chartjs/karma.conf.js index ac0133e6..57bc1fb6 100644 --- a/projects/coreui-angular-chartjs/karma.conf.js +++ b/projects/coreui-angular-chartjs/karma.conf.js @@ -9,8 +9,7 @@ module.exports = function (config) { require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), - require('karma-coverage'), - require('@angular-devkit/build-angular/plugins/karma') + require('karma-coverage') ], client: { jasmine: { @@ -27,17 +26,20 @@ module.exports = function (config) { coverageReporter: { dir: require('path').join(__dirname, '../../coverage/coreui-angular-chartjs'), subdir: '.', - reporters: [ - { type: 'html' }, - { type: 'text-summary' } - ] + reporters: [{ type: 'html' }, { type: 'text-summary' }] }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chrome'], + browsers: ['Chrome_Custom'], + customLaunchers: { + Chrome_Custom: { + base: 'Chrome', + flags: ['--disable-search-engine-choice-screen'] + } + }, singleRun: false, restartOnFileChange: true }); diff --git a/projects/coreui-angular-chartjs/package.json b/projects/coreui-angular-chartjs/package.json index 67c29ff4..830d591d 100644 --- a/projects/coreui-angular-chartjs/package.json +++ b/projects/coreui-angular-chartjs/package.json @@ -1,8 +1,8 @@ { "name": "@coreui/angular-chartjs", - "version": "4.5.27", + "version": "5.5.6", "description": "Angular wrapper component for Chart.js", - "copyright": "Copyright 2023 creativeLabs Łukasz Holeczek", + "copyright": "Copyright 2025 creativeLabs Łukasz Holeczek", "license": "MIT", "homepage": "https://coreui.io/angular", "author": { @@ -25,16 +25,15 @@ "url": "https://github.com/coreui/coreui-angular/issues" }, "peerDependencies": { - "@angular/cdk": "^16.1.0", - "@angular/common": "^16.1.0", - "@angular/core": "^16.1.0", - "@coreui/chartjs": "^3.0.0", - "chart.js": "^3.9.1" + "@angular/core": "^20.1.0", + "@coreui/chartjs": "^4.1.0", + "chart.js": "^4.5.0" }, "dependencies": { "lodash-es": "^4.17.21", "tslib": "^2.3.0" }, + "sideEffects": false, "keywords": [ "coreui", "coreui-chartjs", @@ -42,5 +41,17 @@ "component", "chartjs", "angular" - ] + ], + "devDependencies": { + "copyfiles": "file:../../node_modules/copyfiles", + "typescript": "file:../../node_modules/typescript" + }, + "schematics": "./schematics/collection.json", + "scripts": { + "build": "tsc -p tsconfig.schematics.json", + "postbuild": "copyfiles schematics/*/files/** schematics/collection.json ../../dist/coreui-angular-chartjs/" + }, + "ng-add": { + "save": true + } } diff --git a/projects/coreui-angular-chartjs/schematics/collection.json b/projects/coreui-angular-chartjs/schematics/collection.json new file mode 100644 index 00000000..7f426a32 --- /dev/null +++ b/projects/coreui-angular-chartjs/schematics/collection.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json", + "schematics": { + "ng-add": { + "description": "Add @coreui/angular-chartjs library to the project.", + "factory": "./ng-add/index#ngAdd" + } + } +} diff --git a/projects/coreui-angular-chartjs/schematics/ng-add/index.ts b/projects/coreui-angular-chartjs/schematics/ng-add/index.ts new file mode 100644 index 00000000..e2d9677e --- /dev/null +++ b/projects/coreui-angular-chartjs/schematics/ng-add/index.ts @@ -0,0 +1,59 @@ +import { Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics'; +import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; +import { addPackageJsonDependency, NodeDependency, NodeDependencyType } from '@schematics/angular/utility/dependencies'; +import { getPackageVersionFromPackageJson, PackageJson } from './package-config'; +import * as pkgJson from '../../package.json'; + +export function ngAdd(): Rule { + return (tree: Tree, context: SchematicContext) => { + const pkg = pkgJson as unknown as PackageJson; + + context.logger.info(``); + context.logger.info(`Installing ${pkg.name} dependencies...`); + + const ngCoreVersionTag = getPackageVersionFromPackageJson(tree, '@angular/core'); + context.logger.info(`@angular/core version ${ngCoreVersionTag}`); + if (!ngCoreVersionTag) { + throw new SchematicsException('@angular/core version not found'); + } + + const libraryDeps: NodeDependency[] = [ + { + name: '@coreui/chartjs', + type: NodeDependencyType.Default, + version: pkg.peerDependencies['@coreui/chartjs'], + overwrite: true + }, + { + name: 'chart.js', + type: NodeDependencyType.Default, + version: pkg.peerDependencies['chart.js'], + overwrite: true + }, + { + name: 'lodash-es', + type: NodeDependencyType.Default, + version: pkg.dependencies['lodash-es'], + overwrite: true + } + ]; + + libraryDeps.forEach((dep) => { + addPackageJsonDependency(tree, dep); + context.logger.info(`Added dependency: ${dep.name}@${dep.version}`); + }); + + const library: NodeDependency = { + name: pkg.name, + type: NodeDependencyType.Default, + version: `~${pkg.version}`, + overwrite: true + }; + + addPackageJsonDependency(tree, library); + context.logger.info(`Installing ${library.name}@${library.version}`); + context.addTask(new NodePackageInstallTask()); + + return tree; + }; +} diff --git a/projects/coreui-angular-chartjs/schematics/ng-add/package-config.ts b/projects/coreui-angular-chartjs/schematics/ng-add/package-config.ts new file mode 100644 index 00000000..95c3c1d1 --- /dev/null +++ b/projects/coreui-angular-chartjs/schematics/ng-add/package-config.ts @@ -0,0 +1,68 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { Tree } from '@angular-devkit/schematics'; + +export interface PackageJson { + dependencies: Record; + name: string; + peerDependencies: Record; + version: string; +} + +/** + * Sorts the keys of the given object. + * @returns A new object instance with sorted keys + */ +function sortObjectByKeys(obj: Record) { + return Object.keys(obj) + .sort() + .reduce( + (result, key) => { + result[key] = obj[key]; + return result; + }, + {} as Record + ); +} + +/** Adds a package to the package.json in the given host tree. */ +export function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree { + if (host.exists('package.json')) { + const sourceText = host.read('package.json')!.toString('utf-8'); + const json = JSON.parse(sourceText) as PackageJson; + + if (!json.dependencies) { + json.dependencies = {}; + } + + if (!json.dependencies[pkg]) { + json.dependencies[pkg] = version; + json.dependencies = sortObjectByKeys(json.dependencies); + } + + host.overwrite('package.json', JSON.stringify(json, null, 2)); + } + + return host; +} + +/** Gets the version of the specified package by looking at the package.json in the given tree. */ +export function getPackageVersionFromPackageJson(tree: Tree, name: string): string | null { + if (!tree.exists('package.json')) { + return null; + } + + const packageJson = JSON.parse(tree.read('package.json')!.toString('utf8')) as PackageJson; + + if (packageJson.dependencies && packageJson.dependencies[name]) { + return packageJson.dependencies[name]; + } + + return null; +} diff --git a/projects/coreui-angular-chartjs/src/index.ts b/projects/coreui-angular-chartjs/src/index.ts new file mode 100644 index 00000000..7e1a213e --- /dev/null +++ b/projects/coreui-angular-chartjs/src/index.ts @@ -0,0 +1 @@ +export * from './public-api'; diff --git a/projects/coreui-angular-chartjs/src/lib/chartjs.component.html b/projects/coreui-angular-chartjs/src/lib/chartjs.component.html index 5d2120a8..bbc4f12f 100644 --- a/projects/coreui-angular-chartjs/src/lib/chartjs.component.html +++ b/projects/coreui-angular-chartjs/src/lib/chartjs.component.html @@ -1,11 +1,12 @@ - + + diff --git a/projects/coreui-angular-chartjs/src/lib/chartjs.component.spec.ts b/projects/coreui-angular-chartjs/src/lib/chartjs.component.spec.ts index 2c94c915..9bc21f02 100644 --- a/projects/coreui-angular-chartjs/src/lib/chartjs.component.spec.ts +++ b/projects/coreui-angular-chartjs/src/lib/chartjs.component.spec.ts @@ -1,10 +1,12 @@ -import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; import { ChartjsComponent } from './chartjs.component'; import { Chart, registerables } from 'chart.js'; +import { ComponentRef } from '@angular/core'; describe('ChartjsComponent', () => { let component: ChartjsComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; const colors = { @@ -18,11 +20,13 @@ describe('ChartjsComponent', () => { const data = { labels: labels, - datasets: [{ - data: [65, 59, 84, 84, 51, 55, 40], - ...colors, - fill: { value: 65 } - }] + datasets: [ + { + data: [65, 59, 84, 84, 51, 55, 40], + ...colors, + fill: { value: 65 } + } + ] }; beforeEach(async () => { @@ -30,38 +34,39 @@ describe('ChartjsComponent', () => { await TestBed.configureTestingModule({ imports: [ChartjsComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { - // @ts-ignore fixture = TestBed.createComponent(ChartjsComponent); component = fixture.componentInstance; - component.data = undefined; - component.type = 'line'; + componentRef = fixture.componentRef; + componentRef.setInput('type', 'line'); + componentRef.setInput('wrapper', true); + componentRef.setInput('data', undefined); + fixture.detectChanges(); }); it('chart should create', fakeAsync(() => { - fixture.detectChanges(); - tick(); expect(component).toBeTruthy(); expect(component.chart).toBeDefined(); })); it('chart should receive data', fakeAsync(() => { - component.data = { ...data }; + componentRef.setInput('data', { ...data }); fixture.detectChanges(); - tick(); + // tick(); expect(component.chart?.config.data.labels?.length).toBe(7); expect(component.chart?.config.data.labels).toEqual(labels); expect(component.chart?.config.data.datasets[0]?.data.length).toBe(7); })); it('chart to Base64Image', fakeAsync(() => { - component.data = { ...data }; + componentRef.setInput('height', 100); + componentRef.setInput('width', 100); + componentRef.setInput('data', { ...data }); fixture.detectChanges(); - tick(); + // tick(); const image = component.chartToBase64Image(); expect(image).toBeDefined(); expect(typeof image).toBe('string'); @@ -69,18 +74,32 @@ describe('ChartjsComponent', () => { })); it('chart should update on data change', fakeAsync(() => { - component.data = { + componentRef.setInput('data', { ...data }); + fixture.detectChanges(); + // tick(); + expect(component.chart?.config.data.labels?.length).toBe(7); + expect(component.chart?.config.data.labels).toEqual(labels); + expect(component.chart?.config.data.datasets[0]?.data.length).toBe(7); + + const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May']; + componentRef.setInput('data', { ...data, - labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May'], + labels: [...months], datasets: [ { ...data.datasets[0], data: [42, 88, 42, 66, 77] }, { ...data.datasets[1], data: [55, 44, 55, 66, 22] } ] - }; + }); fixture.detectChanges(); - component.chartUpdate(); - tick(); + // component.chartUpdate(); + // tick(); expect(component.chart?.config?.data.labels?.length).toBe(5); + expect(component.chart?.config.data.labels).toEqual(months); expect(component.chart?.config?.data.datasets[1]?.data.length).toBe(5); })); + + it('should have css classes', () => { + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('chart-wrapper'); + }); }); diff --git a/projects/coreui-angular-chartjs/src/lib/chartjs.component.ts b/projects/coreui-angular-chartjs/src/lib/chartjs.component.ts index a2981c39..eaf2680b 100644 --- a/projects/coreui-angular-chartjs/src/lib/chartjs.component.ts +++ b/projects/coreui-angular-chartjs/src/lib/chartjs.component.ts @@ -1,29 +1,33 @@ import { - AfterViewInit, + afterRenderEffect, booleanAttribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, + computed, ElementRef, - EventEmitter, - HostBinding, - Input, + inject, + input, + linkedSignal, NgZone, numberAttribute, OnChanges, OnDestroy, - Output, + output, Renderer2, SimpleChanges, - ViewChild + untracked, + viewChild } from '@angular/core'; import merge from 'lodash-es/merge'; -import { Chart, ChartConfiguration, ChartType, DefaultDataPoint, registerables } from 'chart.js'; +import type { ChartConfiguration, ChartData, ChartOptions, ChartType, InteractionItem, Plugin } from 'chart.js'; +import { Chart as ChartJS, registerables } from 'chart.js'; import { customTooltips as cuiCustomTooltips } from '@coreui/chartjs'; +import { BooleanInput } from './chartjs.interface'; -Chart.register(...registerables); +ChartJS.register(...registerables); let nextId = 0; @@ -32,56 +36,118 @@ let nextId = 0; templateUrl: './chartjs.component.html', styleUrls: ['./chartjs.component.scss'], exportAs: 'cChart', - standalone: true, - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + host: { + '[class]': 'hostClasses()', + '[style.height.px]': 'height()', + '[style.width.px]': 'width()' + } }) -export class ChartjsComponent, TLabel = unknown> implements AfterViewInit, OnDestroy, OnChanges { +export class ChartjsComponent implements OnDestroy, OnChanges { + // + static ngAcceptInputType_redraw: BooleanInput; + + private readonly ngZone = inject(NgZone); + private readonly renderer = inject(Renderer2); + private readonly changeDetectorRef = inject(ChangeDetectorRef); + + /** + * Enables custom html based tooltips instead of standard tooltips. + * @return boolean + * @default true + */ + readonly customTooltips = input(true, { transform: booleanAttribute }); + + /** + * The data object that is passed into the Chart.js chart (more info). + */ + readonly data = input(); + + /** + * A fallback when the canvas cannot be rendered. Can be used for accessible chart descriptions. + */ + // @Input() fallbackContent?: TemplateRef; + + /** + * Height attribute applied to the rendered canvas. + * @return number | undefined + * @default null + */ + readonly height = input(null, { transform: (value) => numberAttribute(value, undefined) }); + + /** + * ID attribute applied to the rendered canvas. + * @return string + */ + readonly idInput = input(`c-chartjs-${nextId++}`, { alias: 'id' }); + + get id() { + return this.idInput(); + } - @Input() customTooltips = true; - @Input() data?: ChartConfiguration['data']; + /** + * The options object that is passed into the Chart.js chart. + */ + readonly optionsInput = input({}, { alias: 'options' }); - @HostBinding('style.height.px') - @Input({ transform: (value: string | number) => numberAttribute(value, undefined) }) height?: string | number; + readonly options = linkedSignal(this.optionsInput); - @Input() id = `c-chartjs-${nextId++}`; - @Input() options?: ChartConfiguration['options']; - @Input() plugins: ChartConfiguration['plugins'] = []; + /** + * The plugins array that is passed into the Chart.js chart + */ + readonly plugins = input([]); - @Input({ transform: booleanAttribute }) redraw: string | boolean = false; + /** + * If true, will tear down and redraw chart on all updates. + * @return boolean + * @default false + */ + readonly redraw = input(false, { transform: booleanAttribute }); - @Input() type: ChartConfiguration['type'] = 'bar' as TType; + /** + * Chart.js chart type. + * @return {'line' | 'bar' | 'radar' | 'doughnut' | 'polarArea' | 'bubble' | 'pie' | 'scatter'} + */ + readonly type = input('bar'); - @HostBinding('style.width.px') - @Input({ transform: (value: string | number) => numberAttribute(value, undefined) }) width?: string | number; + /** + * Width attribute applied to the rendered canvas. + * @return number | undefined + * @default null + */ + readonly width = input(null, { transform: (value) => numberAttribute(value, undefined) }); - @Input() wrapper = true; + /** + * Put the chart into the wrapper div element. + * @default true + */ + readonly wrapper = input(true, { transform: booleanAttribute }); - @Output() readonly getDatasetAtEvent = new EventEmitter(); - @Output() readonly getElementAtEvent = new EventEmitter(); - @Output() readonly getElementsAtEvent = new EventEmitter(); + readonly getDatasetAtEvent = output(); + readonly getElementAtEvent = output(); + readonly getElementsAtEvent = output(); - @Output() readonly chartRef = new EventEmitter(); + readonly chartRef = output(); - @ViewChild('canvasElement') canvasElement!: ElementRef; + readonly canvasElement = viewChild.required('canvasElement'); - chart!: Chart; + chart!: ChartJS; + ctx!: CanvasRenderingContext2D; - @HostBinding('class') - get hostClasses() { + readonly hostClasses = computed(() => { return { - 'chart-wrapper': this.wrapper + 'chart-wrapper': this.wrapper() }; - } - - constructor( - private elementRef: ElementRef, - private ngZone: NgZone, - private renderer: Renderer2, - private changeDetectorRef: ChangeDetectorRef - ) {} + }); - ngAfterViewInit(): void { - this.chartRender(); + constructor() { + afterRenderEffect({ + read: () => { + const canvasElement = this.canvasElement(); + this.ctx = canvasElement?.nativeElement?.getContext('2d'); + this.chartRender(); + } + }); } ngOnChanges(changes: SimpleChanges): void { @@ -99,13 +165,28 @@ export class ChartjsComponent { const config = this.chartConfig(); if (config) { - setTimeout(() => { - this.chart = new Chart(ctx, config); - this.renderer.setStyle(this.canvasElement.nativeElement, 'display', 'block'); + this.chart = new ChartJS(this.ctx, config); + this.ngZone.run(() => { + this.renderer.setStyle(canvasElement.nativeElement, 'display', 'block'); this.changeDetectorRef.markForCheck(); this.chartRef.emit(this.chart); }); @@ -139,17 +219,15 @@ export class ChartjsComponent { - this.chartRender(); - }); + this.chartRender(); return; } - const config = this.chartConfig(); + const config: ChartConfiguration = this.chartConfig(); - if (this.options) { + if (this.options()) { Object.assign(this.chart.options ?? {}, config.options ?? {}); } @@ -171,7 +249,9 @@ export class ChartjsComponent { this.ngZone.runOutsideAngular(() => { this.chart?.update(); - this.changeDetectorRef.markForCheck(); + this.ngZone.run(() => { + this.changeDetectorRef.markForCheck(); + }); }); }); } @@ -180,47 +260,48 @@ export class ChartjsComponent['data'] { + private chartDataConfig = computed(() => { + const { labels, datasets } = { ...this.data() }; return { - labels: this.data?.labels ?? [], - datasets: this.data?.datasets ?? [] + labels: labels ?? [], + datasets: datasets ?? [] }; - } + }); - private chartOptions(): ChartConfiguration['options'] { - return this.options; - } + readonly chartOptions = computed(() => this.options() ?? {}); - private chartConfig(): ChartConfiguration { + readonly chartConfig = computed(() => { this.chartCustomTooltips(); return { data: this.chartDataConfig(), options: this.chartOptions(), - plugins: this.plugins, - type: this.type + plugins: this.plugins(), + type: this.type() }; - } + }); private chartCustomTooltips() { - if (this.customTooltips) { - const options = this.options; - // @ts-ignore - const plugins = this.options?.plugins; - // @ts-ignore - const tooltip = this.options?.plugins?.tooltip; - this.options = merge({ - ...options, - plugins: { - ...plugins, - tooltip: { - ...tooltip, - enabled: false, - mode: 'index', - position: 'nearest', - external: cuiCustomTooltips - } - } + if (this.customTooltips()) { + const options = this.options(); + const plugins = options?.plugins; + const tooltip = options?.plugins?.tooltip; + untracked(() => { + this.options.set( + merge({ + ...options, + plugins: { + ...plugins, + tooltip: { + ...tooltip, + enabled: false, + mode: 'index', + position: 'nearest', + external: cuiCustomTooltips + } + } + }) + ); }); } - }; + } } diff --git a/projects/coreui-angular-chartjs/src/lib/chartjs.interface.ts b/projects/coreui-angular-chartjs/src/lib/chartjs.interface.ts index 0532ba84..6c35ea4a 100644 --- a/projects/coreui-angular-chartjs/src/lib/chartjs.interface.ts +++ b/projects/coreui-angular-chartjs/src/lib/chartjs.interface.ts @@ -2,6 +2,8 @@ import { ChartType } from 'chart.js/auto'; import { EventEmitter } from '@angular/core'; import { ChartConfiguration, DefaultDataPoint } from 'chart.js'; +export declare type BooleanInput = string | boolean | null | undefined; + export interface IChartjs, TLabel = unknown> { /** * Enables custom html based tooltips instead of standard tooltips. @@ -81,5 +83,4 @@ export interface IChartjs; - } diff --git a/projects/coreui-angular-chartjs/tsconfig.json b/projects/coreui-angular-chartjs/tsconfig.json index b3e0d01a..56f4fc9e 100644 --- a/projects/coreui-angular-chartjs/tsconfig.json +++ b/projects/coreui-angular-chartjs/tsconfig.json @@ -9,6 +9,9 @@ }, { "path": "./tsconfig.spec.json" + }, + { + "path": "./tsconfig.schematics.json" } ] } diff --git a/projects/coreui-angular-chartjs/tsconfig.lib.json b/projects/coreui-angular-chartjs/tsconfig.lib.json index b77b13c0..3879b4cd 100644 --- a/projects/coreui-angular-chartjs/tsconfig.lib.json +++ b/projects/coreui-angular-chartjs/tsconfig.lib.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "../../tsconfig.json", "compilerOptions": { diff --git a/projects/coreui-angular-chartjs/tsconfig.lib.prod.json b/projects/coreui-angular-chartjs/tsconfig.lib.prod.json index 06de549e..9215caac 100644 --- a/projects/coreui-angular-chartjs/tsconfig.lib.prod.json +++ b/projects/coreui-angular-chartjs/tsconfig.lib.prod.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "./tsconfig.lib.json", "compilerOptions": { diff --git a/projects/coreui-angular-chartjs/tsconfig.schematics.json b/projects/coreui-angular-chartjs/tsconfig.schematics.json new file mode 100644 index 00000000..bf6ebfad --- /dev/null +++ b/projects/coreui-angular-chartjs/tsconfig.schematics.json @@ -0,0 +1,38 @@ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ +{ + "compilerOptions": { + "baseUrl": ".", + "lib": [ + "ES2022", + "dom" + ], + "declaration": true, + "module": "commonjs", + "moduleResolution": "node", + "noEmitOnError": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitThis": true, + "noUnusedParameters": true, + "noUnusedLocals": true, + "rootDir": "schematics", + "outDir": "../../dist/coreui-angular-chartjs/schematics", + "resolveJsonModule": true, + "skipDefaultLibCheck": true, + "skipLibCheck": true, + "sourceMap": true, + "strictNullChecks": true, + "target": "ES2022", + "types": [ + "jasmine", + "node" + ] + }, + "include": [ + "schematics/**/*" + ], + "exclude": [ + "schematics/*/files/**/*" + ] +} diff --git a/projects/coreui-angular-chartjs/tsconfig.spec.json b/projects/coreui-angular-chartjs/tsconfig.spec.json index 715dd0a5..0d10fb5a 100644 --- a/projects/coreui-angular-chartjs/tsconfig.spec.json +++ b/projects/coreui-angular-chartjs/tsconfig.spec.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "../../tsconfig.json", "compilerOptions": { diff --git a/projects/coreui-angular/.eslintrc.json b/projects/coreui-angular/.eslintrc.json deleted file mode 100644 index fcdd4232..00000000 --- a/projects/coreui-angular/.eslintrc.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "extends": "../../.eslintrc.json", - "ignorePatterns": [ - "!**/*" - ], - "overrides": [ - { - "files": [ - "*.ts" - ], - "parserOptions": { - "project": [ - "./tsconfig.json" - ], - "createDefaultProgram": true - }, - "rules": { - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "c", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "warn", - { - "type": "element", - "prefix": "c", - "style": "kebab-case" - } - ], - "@angular-eslint/no-input-rename": [ - "warn" - ], - "@angular-eslint/no-output-rename": [ - "warn" - ] - } - }, - { - "files": [ - "*.html" - ], - "rules": {} - } - ] -} diff --git a/projects/coreui-angular/CLI.md b/projects/coreui-angular/CLI.md new file mode 100644 index 00000000..5bc98951 --- /dev/null +++ b/projects/coreui-angular/CLI.md @@ -0,0 +1,59 @@ +# @coreui/angular v5 + +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.0.2. + +## Development server + +To start a local development server, run: + +```bash +ng serve +``` + +Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files. + +## Code scaffolding + +Angular CLI includes powerful code scaffolding tools. To generate a new component, run: + +```bash +ng generate component component-name +``` + +For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: + +```bash +ng generate --help +``` + +## Building + +To build the project run: + +```bash +ng build +``` + +This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed. + +## Running unit tests + +To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: + +```bash +ng test +``` + +## Running end-to-end tests + +For end-to-end (e2e) testing, run: + +```bash +ng e2e +``` + +Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. + +## Additional Resources + +For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. diff --git a/projects/coreui-angular/LICENSE b/projects/coreui-angular/LICENSE index 027b8813..fbb053e0 100644 --- a/projects/coreui-angular/LICENSE +++ b/projects/coreui-angular/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 creativeLabs Łukasz Holeczek +Copyright (c) 2025 creativeLabs Łukasz Holeczek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/projects/coreui-angular/README.md b/projects/coreui-angular/README.md index c5c0e03f..0854d27f 100644 --- a/projects/coreui-angular/README.md +++ b/projects/coreui-angular/README.md @@ -1,5 +1,5 @@

- + CoreUI logo

-

CoreUI for Angular

+

CoreUI Components for Angular

- Angular Components Library built on top of Bootstrap 5 and TypeScript. + Angular Components Library built on top of Bootstrap 5.3 and TypeScript 5.8
-
Explore CoreUI for Angular docs » + Explore CoreUI for Angular docs and examples »
-
- Report a bug + CoreUI Docs + · + Report a bug · - Request a feature + Request a feature · - Blog + Blog

+
+

+Featured CoreUI for Angular libraries: +
CoreUI Components for Angular +
CoreUI Angular wrapper for Chart.js v4 +
CoreUI Icons for Angular +

+
+ -## Status +### Status ![angular][angular-badge] +[![npm-coreui-angular-v5-ng20][npm-coreui-angular-badge-v5-ng20]][npm-coreui-angular] [![npm-coreui-angular-latest][npm-coreui-angular-badge-latest]][npm-coreui-angular] [![npm-coreui-angular-next][npm-coreui-angular-badge-next]][npm-coreui-angular] -[![NPM downloads][npm-coreui-angular-download]][npm-coreui-angular] +[![NPM downloads][npm-coreui-angular-download]][npm-coreui-angular] [![Build](https://github.com/coreui/coreui-angular/actions/workflows/build-check.yml/badge.svg)](https://github.com/coreui/coreui-angular/actions/workflows/build-check.yml) -[npm-coreui-angular-badge-latest]: https://img.shields.io/npm/v/@coreui/angular/latest?style=flat-square&color=brightgreen -[npm-coreui-angular-badge-next]: https://img.shields.io/npm/v/@coreui/angular/next?style=flat-square&color=red -[npm-coreui-angular]: https://www.npmjs.com/package/@coreui/angular -[npm-coreui-angular-download]: https://img.shields.io/npm/dm/@coreui/angular.svg?style=flat-square -[angular-badge]: https://img.shields.io/badge/angular-^16.1.0-lightgrey.svg?style=flat-square&logo=angular ## Table of contents - [Status](#status) +- [Table of contents](#table-of-contents) - [Quick start](#quick-start) + - [Prerequisites](#prerequisites) + - [Node.js](#nodejs) + - [Angular CLI](#angular-cli) + - [Installation](#installation) + - [CoreUI CSS files](#coreui-css-files) + - [Installation](#installation-1) + - [Basic usage](#basic-usage) + - [Bootstrap CSS files](#bootstrap-css-files) + - [Installation (optional)](#installation-optional) - [Templates](#templates) - [Bugs and feature requests](#bugs-and-feature-requests) - [Documentation](#documentation) @@ -59,7 +78,7 @@ Before you begin, make sure your development environment includes `Node.js®` and `npm` package manager. ###### Node.js -[**Angular 16.1**](https://angular.io/guide/what-is-angular) requires `Node.js` LTS version `^16.14` or `^18.10`. +[**Angular 20**](https://angular.dev/overview) requires `Node.js` LTS version `^20.19`, `^22.12` or `^24.0`. - To check your version, run `node -v` in a terminal/console window. - To get `Node.js`, go to [nodejs.org](https://nodejs.org/). @@ -73,11 +92,12 @@ npm install -g @angular/cli ### Installation Several quick start options are available (pick one): - -- [Download the latest release](https://github.com/coreui/coreui-angular/) -- Clone the repo: `git clone https://github.com/coreui/coreui-angular.git` -- Install with [npm](https://www.npmjs.com/): `npm install @coreui/angular` -- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/angular` +- Add CoreUI to your Angular project: + - Install with [Angular CLI](https://angular.dev/cli/add): `ng add @coreui/angular` + - Install with [npm](https://www.npmjs.com/): `npm install @coreui/angular @coreui/icons-angular @coreui/coreui` +- Get the source code: + - [Download the latest release](https://github.com/coreui/coreui-angular/) + - Clone the repo: `git clone https://github.com/coreui/coreui-angular.git` Read the [Getting started page](https://coreui.io/angular/docs/) for information on the framework contents, templates and examples, and more. @@ -118,7 +138,7 @@ The documentation for the CoreUI & CoreUI PRO is hosted at our website [CoreUI f ## Frameworks -CoreUI supports most popular frameworks. +CoreUI supports the most popular frameworks. - [CoreUI for Bootstap(Vanilla JS)](https://github.com/coreui/coreui) - [CoreUI for React](https://github.com/coreui/coreui-react) @@ -209,4 +229,11 @@ Thanks to all the backers and sponsors! Support this project by [becoming a back ## Copyright and license -Copyright 2023 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). +Copyright 2025 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). + +[npm-coreui-angular-badge-v5-ng20]: https://img.shields.io/npm/v/@coreui/angular/v5-ng20?style=flat-square&color=brightgreen +[npm-coreui-angular-badge-latest]: https://img.shields.io/npm/v/@coreui/angular/latest?style=flat-square&color=brightgreen +[npm-coreui-angular-badge-next]: https://img.shields.io/npm/v/@coreui/angular/next?style=flat-square&color=red +[npm-coreui-angular]: https://www.npmjs.com/package/@coreui/angular +[npm-coreui-angular-download]: https://img.shields.io/npm/dm/@coreui/angular.svg?style=flat-square +[angular-badge]: https://img.shields.io/badge/angular-^20.1.0-lightgrey.svg?style=flat-square&logo=angular diff --git a/projects/coreui-angular/eslint.config.js b/projects/coreui-angular/eslint.config.js new file mode 100644 index 00000000..3296f55e --- /dev/null +++ b/projects/coreui-angular/eslint.config.js @@ -0,0 +1,25 @@ +// @ts-check +const tseslint = require('typescript-eslint'); +const rootConfig = require('../../eslint.config.js'); + +module.exports = tseslint.config( + ...rootConfig, + { + files: ['**/*.ts'], + rules: { + '@typescript-eslint/ban-ts-comment': 'off', + '@typescript-eslint/ban-tslint-comment': 'off', + '@typescript-eslint/class-literal-property-style': 'off', + '@typescript-eslint/consistent-generic-constructors': 'off', + '@typescript-eslint/consistent-type-assertions': 'off', + '@typescript-eslint/consistent-type-definitions': 'off', + '@typescript-eslint/no-unused-vars': 'off', + 'no-extra-boolean-cast': 'off', + 'no-unused-private-class-members': 'off' + } + }, + { + files: ['**/*.html'], + rules: {} + } +); diff --git a/projects/coreui-angular/karma.conf.github.js b/projects/coreui-angular/karma.conf.github.js index 1fc71d4e..ec8c096f 100644 --- a/projects/coreui-angular/karma.conf.github.js +++ b/projects/coreui-angular/karma.conf.github.js @@ -9,8 +9,7 @@ module.exports = function (config) { require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), - require('karma-coverage'), - require('@angular-devkit/build-angular/plugins/karma') + require('karma-coverage') ], client: { jasmine: { @@ -27,10 +26,7 @@ module.exports = function (config) { coverageReporter: { dir: require('path').join(__dirname, '../../coverage/coreui-angular'), subdir: '.', - reporters: [ - { type: 'html' }, - { type: 'text-summary' } - ] + reporters: [{ type: 'html' }, { type: 'text-summary' }] }, reporters: ['progress', 'kjhtml'], port: 9876, @@ -39,6 +35,6 @@ module.exports = function (config) { autoWatch: false, browsers: ['ChromeHeadless'], singleRun: true, - restartOnFileChange: false, + restartOnFileChange: false }); }; diff --git a/projects/coreui-angular/karma.conf.js b/projects/coreui-angular/karma.conf.js index 513ee5d1..8bf8fde0 100644 --- a/projects/coreui-angular/karma.conf.js +++ b/projects/coreui-angular/karma.conf.js @@ -9,8 +9,7 @@ module.exports = function (config) { require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), - require('karma-coverage'), - require('@angular-devkit/build-angular/plugins/karma') + require('karma-coverage') ], client: { jasmine: { @@ -27,17 +26,20 @@ module.exports = function (config) { coverageReporter: { dir: require('path').join(__dirname, '../../coverage/coreui-angular'), subdir: '.', - reporters: [ - { type: 'html' }, - { type: 'text-summary' } - ] + reporters: [{ type: 'html' }, { type: 'text-summary' }] }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chrome'], + browsers: ['Chrome_Custom'], + customLaunchers: { + Chrome_Custom: { + base: 'Chrome', + flags: ['--disable-search-engine-choice-screen'] + } + }, singleRun: false, restartOnFileChange: true }); diff --git a/projects/coreui-angular/package.json b/projects/coreui-angular/package.json index 90afce34..a6f4aa79 100644 --- a/projects/coreui-angular/package.json +++ b/projects/coreui-angular/package.json @@ -1,8 +1,8 @@ { "name": "@coreui/angular", - "version": "4.5.27", - "description": "CoreUI for Angular UI components library", - "copyright": "Copyright 2023 creativeLabs Łukasz Holeczek", + "version": "5.5.6", + "description": "CoreUI Components Library for Angular", + "copyright": "Copyright 2025 creativeLabs Łukasz Holeczek", "license": "MIT", "homepage": "https://coreui.io/angular", "author": { @@ -18,20 +18,23 @@ } ], "dependencies": { - "@popperjs/core": "~2.11.6", + "@popperjs/core": "~2.11.8", "tslib": "^2.3.0" }, + "sideEffects": false, "peerDependencies": { - "@angular/animations": "^16.1.0", - "@angular/cdk": "^16.1.0", - "@angular/common": "^16.1.0", - "@angular/core": "^16.1.0", - "@angular/router": "^16.1.0", - "rxjs": "^7.8.1" + "@angular/animations": "^20.1.0", + "@angular/cdk": "^20.1.0", + "@angular/common": "^20.1.0", + "@angular/core": "^20.1.0", + "@angular/router": "^20.1.0", + "@coreui/coreui": "~5.4.1", + "@coreui/icons-angular": "~5.5.6", + "rxjs": "^7.8.2" }, "repository": { "type": "git", - "url": "https://github.com/coreui/coreui-angular.git" + "url": "git+https://github.com/coreui/coreui-angular.git" }, "bugs": { "url": "https://github.com/coreui/coreui-angular/issues" @@ -46,7 +49,17 @@ "component", "components" ], - "eslintConfig": { - + "eslintConfig": {}, + "devDependencies": { + "copyfiles": "file:../../node_modules/copyfiles", + "typescript": "file:../../node_modules/typescript" + }, + "schematics": "./schematics/collection.json", + "scripts": { + "build": "tsc -p tsconfig.schematics.json", + "postbuild": "copyfiles schematics/*/files/** schematics/collection.json ../../dist/coreui-angular/" + }, + "ng-add": { + "save": true } } diff --git a/projects/coreui-angular/schematics/collection.json b/projects/coreui-angular/schematics/collection.json new file mode 100644 index 00000000..a1cb4b7f --- /dev/null +++ b/projects/coreui-angular/schematics/collection.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json", + "schematics": { + "ng-add": { + "description": "Add @coreui/angular library to the project.", + "factory": "./ng-add/index#ngAdd" + } + } +} diff --git a/projects/coreui-angular/schematics/ng-add/index.ts b/projects/coreui-angular/schematics/ng-add/index.ts new file mode 100644 index 00000000..54ce8f91 --- /dev/null +++ b/projects/coreui-angular/schematics/ng-add/index.ts @@ -0,0 +1,77 @@ +import { Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics'; +import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; +import { addPackageJsonDependency, NodeDependency, NodeDependencyType } from '@schematics/angular/utility/dependencies'; +import { getPackageVersionFromPackageJson, PackageJson } from './package-config'; +import * as pkgJson from '../../package.json'; + +export function ngAdd(): Rule { + return (tree: Tree, context: SchematicContext) => { + const pkg = pkgJson as unknown as PackageJson; + + context.logger.info(``); + context.logger.info(`Installing ${pkg.name} dependencies...`); + + const ngCoreVersionTag = getPackageVersionFromPackageJson(tree, '@angular/core'); + context.logger.info(`@angular/core version ${ngCoreVersionTag}`); + if (!ngCoreVersionTag) { + throw new SchematicsException('@angular/core version not found'); + } + + const projectDeps: NodeDependency[] = [ + { name: '@angular/animations', type: NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false }, + { name: '@angular/common', type: NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false }, + { name: '@angular/core', type: NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false }, + { name: '@angular/router', type: NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false } + ]; + + projectDeps.forEach((dep) => { + addPackageJsonDependency(tree, dep); + context.logger.info(`Added dependency: ${dep.name}@${dep.version}`); + }); + + const libraryDeps: NodeDependency[] = [ + { + name: '@angular/cdk', + type: NodeDependencyType.Default, + version: pkg.peerDependencies['@angular/cdk'], + overwrite: false + }, + { + name: '@coreui/coreui', + type: NodeDependencyType.Default, + version: pkg.peerDependencies['@coreui/coreui'], + overwrite: true + }, + { + name: '@coreui/icons-angular', + type: NodeDependencyType.Default, + version: pkg.peerDependencies['@coreui/icons-angular'], + overwrite: true + }, + { + name: '@popperjs/core', + type: NodeDependencyType.Default, + version: pkg.dependencies['@popperjs/core'], + overwrite: true + } + ]; + + libraryDeps.forEach((dep) => { + addPackageJsonDependency(tree, dep); + context.logger.info(`Added dependency: ${dep.name}@${dep.version}`); + }); + + const library: NodeDependency = { + name: pkg.name, + type: NodeDependencyType.Default, + version: `~${pkg.version}`, + overwrite: true + }; + + addPackageJsonDependency(tree, library); + context.logger.info(`Installing ${library.name}@${library.version}`); + context.addTask(new NodePackageInstallTask()); + + return tree; + }; +} diff --git a/projects/coreui-angular/schematics/ng-add/package-config.ts b/projects/coreui-angular/schematics/ng-add/package-config.ts new file mode 100644 index 00000000..95c3c1d1 --- /dev/null +++ b/projects/coreui-angular/schematics/ng-add/package-config.ts @@ -0,0 +1,68 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { Tree } from '@angular-devkit/schematics'; + +export interface PackageJson { + dependencies: Record; + name: string; + peerDependencies: Record; + version: string; +} + +/** + * Sorts the keys of the given object. + * @returns A new object instance with sorted keys + */ +function sortObjectByKeys(obj: Record) { + return Object.keys(obj) + .sort() + .reduce( + (result, key) => { + result[key] = obj[key]; + return result; + }, + {} as Record + ); +} + +/** Adds a package to the package.json in the given host tree. */ +export function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree { + if (host.exists('package.json')) { + const sourceText = host.read('package.json')!.toString('utf-8'); + const json = JSON.parse(sourceText) as PackageJson; + + if (!json.dependencies) { + json.dependencies = {}; + } + + if (!json.dependencies[pkg]) { + json.dependencies[pkg] = version; + json.dependencies = sortObjectByKeys(json.dependencies); + } + + host.overwrite('package.json', JSON.stringify(json, null, 2)); + } + + return host; +} + +/** Gets the version of the specified package by looking at the package.json in the given tree. */ +export function getPackageVersionFromPackageJson(tree: Tree, name: string): string | null { + if (!tree.exists('package.json')) { + return null; + } + + const packageJson = JSON.parse(tree.read('package.json')!.toString('utf8')) as PackageJson; + + if (packageJson.dependencies && packageJson.dependencies[name]) { + return packageJson.dependencies[name]; + } + + return null; +} diff --git a/projects/coreui-angular/src/index.ts b/projects/coreui-angular/src/index.ts new file mode 100644 index 00000000..7e1a213e --- /dev/null +++ b/projects/coreui-angular/src/index.ts @@ -0,0 +1 @@ +export * from './public-api'; diff --git a/projects/coreui-angular/src/lib/accordion/accordion-button/accordion-button.directive.spec.ts b/projects/coreui-angular/src/lib/accordion/accordion-button/accordion-button.directive.spec.ts index 1211f48c..f0388eee 100644 --- a/projects/coreui-angular/src/lib/accordion/accordion-button/accordion-button.directive.spec.ts +++ b/projects/coreui-angular/src/lib/accordion/accordion-button/accordion-button.directive.spec.ts @@ -1,8 +1,11 @@ import { AccordionButtonDirective } from './accordion-button.directive'; +import { TestBed } from '@angular/core/testing'; describe('AccordionButtonDirective', () => { it('should create an instance', () => { - const directive = new AccordionButtonDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new AccordionButtonDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/accordion/accordion-button/accordion-button.directive.ts b/projects/coreui-angular/src/lib/accordion/accordion-button/accordion-button.directive.ts index eea91558..308ddf76 100644 --- a/projects/coreui-angular/src/lib/accordion/accordion-button/accordion-button.directive.ts +++ b/projects/coreui-angular/src/lib/accordion/accordion-button/accordion-button.directive.ts @@ -1,34 +1,29 @@ -import { Directive, HostBinding, Input } from '@angular/core'; +import { computed, Directive, input } from '@angular/core'; @Directive({ selector: '[cAccordionButton]', - standalone: true + host: { '[class]': 'hostClasses()', '[attr.type]': 'type()', '[attr.aria-expanded]': 'ariaExpanded()' } }) export class AccordionButtonDirective { - /** * Toggles an accordion button collapsed state. Use in accordionHeaderTemplate. [docs] * @type boolean */ - @Input() collapsed!: boolean; + readonly collapsed = input(undefined); /** - * Default type for cAccordionButton. [docs] + * Default type for cAccordionButton. [docs] * @type string * @default 'button' */ - @HostBinding('attr.type') - @Input() type = 'button'; + readonly type = input('button'); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { 'accordion-button': true, - collapsed: this.collapsed - }; - } + collapsed: this.collapsed() + } as Record; + }); - @HostBinding('attr.aria-expanded') get ariaExpanded(): boolean { - return !this.collapsed; - } + readonly ariaExpanded = computed(() => !this.collapsed()); } diff --git a/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.html b/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.html index b03adadc..7c82ca98 100644 --- a/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.html +++ b/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.html @@ -1,32 +1,33 @@ +@let tmpl = templates();
- +
-
- +
+
- - +
+ *ngTemplateOutlet="tmpl['accordionBody'] || defaultAccordionBodyContentTemplate; context: itemContext">
- + diff --git a/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.spec.ts b/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.spec.ts index 7f07809c..5c4ebac1 100644 --- a/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.spec.ts +++ b/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.spec.ts @@ -3,26 +3,40 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { AccordionButtonDirective } from '../accordion-button/accordion-button.directive'; import { AccordionService } from '../accordion.service'; import { AccordionItemComponent } from './accordion-item.component'; +import { ComponentRef } from '@angular/core'; describe('AccordionItemComponent', () => { let component: AccordionItemComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ providers: [AccordionService], imports: [NoopAnimationsModule, AccordionButtonDirective, AccordionItemComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { fixture = TestBed.createComponent(AccordionItemComponent); component = fixture.componentInstance; + componentRef = fixture.componentRef; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('accordion-item'); + }); + + it('should toggle item', () => { + expect(component.visible).toBeFalse(); + component.toggleItem(); + expect(component.visible).toBeTrue(); + component.toggleItem(); + expect(component.visible).toBeFalse(); + }); }); diff --git a/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.ts b/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.ts index 09059cda..f1235a36 100644 --- a/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.ts +++ b/projects/coreui-angular/src/lib/accordion/accordion-item/accordion-item.component.ts @@ -1,13 +1,15 @@ import { - AfterContentInit, booleanAttribute, Component, - ContentChildren, - HostBinding, - Input, + computed, + contentChildren, + effect, + inject, + input, OnDestroy, OnInit, - QueryList + signal, + TemplateRef } from '@angular/core'; import { NgTemplateOutlet } from '@angular/common'; @@ -23,60 +25,61 @@ let nextId = 0; templateUrl: './accordion-item.component.html', styleUrls: ['./accordion-item.component.scss'], exportAs: 'cAccordionItem', - standalone: true, - imports: [AccordionButtonDirective, NgTemplateOutlet, CollapseDirective] + imports: [AccordionButtonDirective, NgTemplateOutlet, CollapseDirective], + host: { class: 'accordion-item' } }) -export class AccordionItemComponent implements OnInit, OnDestroy, AfterContentInit { - - constructor( - private accordionService: AccordionService - ) { } +export class AccordionItemComponent implements OnInit, OnDestroy { + readonly #accordionService = inject(AccordionService); /** * Toggle an accordion item programmatically - * @type boolean + * @return boolean * @default false */ - @Input({ transform: booleanAttribute }) visible: string | boolean = false; + // eslint-disable-next-line @angular-eslint/no-input-rename + readonly visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' }); - @Input() - set open(value: boolean) { - console.warn('c-accordion-item "open" prop is deprecated, use "visible" prop instead.'); - this.visible = value || this.visible; - } + readonly itemVisible = signal(false); + + readonly #visibleInputChange = effect(() => { + this.visible = this.visibleInput(); + }); - get open() { - return this.visible; + set visible(value: boolean) { + this.itemVisible.set(value); } - @HostBinding('class') - get hostClasses(): any { - return { - 'accordion-item': true - }; + get visible() { + return this.itemVisible(); } contentId = `accordion-item-${nextId++}`; - itemContext = { $implicit: this.visible }; - templates: any = {}; - @ContentChildren(TemplateIdDirective, { descendants: true }) contentTemplates!: QueryList; + + get itemContext() { + return { $implicit: this.itemVisible() }; + } + + readonly contentTemplates = contentChildren(TemplateIdDirective, { descendants: true }); + + readonly templates = computed(() => { + return this.contentTemplates().reduce( + (acc, child) => { + acc[child.id] = child.templateRef; + return acc; + }, + {} as Record> + ); + }); ngOnInit(): void { - this.accordionService.addItem(this); + this.#accordionService.addItem(this); } ngOnDestroy(): void { - this.accordionService.removeItem(this); + this.#accordionService.removeItem(this); } toggleItem(): void { - this.accordionService.toggleItem(this); - } - - ngAfterContentInit(): void { - this.contentTemplates.forEach((child: TemplateIdDirective) => { - this.templates[child.id] = child.templateRef; - }); + this.#accordionService.toggleItem(this); } } - diff --git a/projects/coreui-angular/src/lib/accordion/accordion.service.ts b/projects/coreui-angular/src/lib/accordion/accordion.service.ts index e247c92c..7583b2a8 100644 --- a/projects/coreui-angular/src/lib/accordion/accordion.service.ts +++ b/projects/coreui-angular/src/lib/accordion/accordion.service.ts @@ -1,14 +1,11 @@ import { Injectable } from '@angular/core'; -import { AccordionItemComponent } from './accordion-item/accordion-item.component'; +import type { AccordionItemComponent } from './accordion-item/accordion-item.component'; @Injectable() export class AccordionService { - items: AccordionItemComponent[] = []; alwaysOpen = false; - constructor() { } - addItem(item: AccordionItemComponent): void { this.items.push(item); } @@ -21,7 +18,7 @@ export class AccordionService { } toggleItem(item: AccordionItemComponent): void { - item.visible = !item.visible; + item.itemVisible.update((value) => !value); this.closeOtherItems(item); } @@ -29,7 +26,7 @@ export class AccordionService { if (!this.alwaysOpen) { this.items.forEach((item: AccordionItemComponent) => { if (item !== openItem) { - item.visible = false; + item.itemVisible.set(false); } }); } diff --git a/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.spec.ts b/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.spec.ts index 1f22dd17..2e2f494b 100644 --- a/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.spec.ts +++ b/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.spec.ts @@ -22,4 +22,8 @@ describe('AccordionComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('accordion'); + }); }); diff --git a/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.ts b/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.ts index 85ca0ca2..8abcf01f 100644 --- a/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.ts +++ b/projects/coreui-angular/src/lib/accordion/accordion/accordion.component.ts @@ -1,47 +1,36 @@ -import { Component, HostBinding, Input } from '@angular/core'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; +import { booleanAttribute, Component, computed, effect, inject, input } from '@angular/core'; import { AccordionService } from '../accordion.service'; @Component({ selector: 'c-accordion', - template: ``, + template: '', styleUrls: ['./accordion.component.scss'], exportAs: 'cAccordionItem', providers: [AccordionService], - standalone: true + host: { '[class]': 'hostClasses()' } }) export class AccordionComponent { - - static ngAcceptInputType_alwaysOpen: BooleanInput; + readonly #accordionService = inject(AccordionService); /** * Removes the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container. * @type boolean */ - @Input() flush?: boolean; + readonly flush = input(false, { transform: booleanAttribute }); + /** * Make accordion items stay open when another item is opened * @type boolean */ - @Input() - set alwaysOpen(value: boolean) { - this.accordionService.alwaysOpen = coerceBooleanProperty(value); - } - get alwaysOpen(): boolean { - return this.accordionService.alwaysOpen; - } - - @HostBinding('class') - get hostClasses(): any { - return { - accordion: true, - 'accordion-flush': !!this.flush - }; - } + readonly alwaysOpen = input(false, { transform: booleanAttribute }); - constructor( - private accordionService: AccordionService - ) {} + readonly #alwaysOpenEffect = effect(() => { + this.#accordionService.alwaysOpen = this.alwaysOpen(); + }); + readonly hostClasses = computed(() => ({ + accordion: true, + 'accordion-flush': this.flush() + }) as Record); } diff --git a/projects/coreui-angular/src/lib/alert/alert-heading.directive.ts b/projects/coreui-angular/src/lib/alert/alert-heading.directive.ts index f4387a33..6c47fa49 100644 --- a/projects/coreui-angular/src/lib/alert/alert-heading.directive.ts +++ b/projects/coreui-angular/src/lib/alert/alert-heading.directive.ts @@ -1,19 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cAlertHeading]', - standalone: true + host: { class: 'alert-heading' } }) -export class AlertHeadingDirective { - - @HostBinding('class') - get hostClasses(): any { - - return { - 'alert-heading': true, - }; - } - - constructor() { } - -} +export class AlertHeadingDirective {} diff --git a/projects/coreui-angular/src/lib/alert/alert-link.directive.ts b/projects/coreui-angular/src/lib/alert/alert-link.directive.ts index c806f665..b842f743 100644 --- a/projects/coreui-angular/src/lib/alert/alert-link.directive.ts +++ b/projects/coreui-angular/src/lib/alert/alert-link.directive.ts @@ -1,19 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cAlertLink]', - standalone: true + host: { class: 'alert-link' } }) -export class AlertLinkDirective { - - @HostBinding('class') - get hostClasses(): any { - - return { - 'alert-link': true, - }; - } - - constructor() { } - -} +export class AlertLinkDirective {} diff --git a/projects/coreui-angular/src/lib/alert/alert.component.html b/projects/coreui-angular/src/lib/alert/alert.component.html index 5c0762a6..24f1e1e1 100644 --- a/projects/coreui-angular/src/lib/alert/alert.component.html +++ b/projects/coreui-angular/src/lib/alert/alert.component.html @@ -1,11 +1,9 @@ - - - - - - - - +@if (visible || !hide()) { + @if (dismissible) { + + } + +} diff --git a/projects/coreui-angular/src/lib/alert/alert.component.spec.ts b/projects/coreui-angular/src/lib/alert/alert.component.spec.ts index 4101482a..cf4a7f4f 100644 --- a/projects/coreui-angular/src/lib/alert/alert.component.spec.ts +++ b/projects/coreui-angular/src/lib/alert/alert.component.spec.ts @@ -2,25 +2,55 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AlertComponent } from './alert.component'; +import { ComponentRef } from '@angular/core'; describe('AlertComponent', () => { let component: AlertComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [BrowserAnimationsModule, AlertComponent] - }) - .compileComponents(); + imports: [BrowserAnimationsModule, AlertComponent, BrowserAnimationsModule] + }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(AlertComponent); component = fixture.componentInstance; + componentRef = fixture.componentRef; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes and styles', () => { + expect(fixture.nativeElement).toHaveClass('alert'); + expect(fixture.nativeElement).toHaveClass('alert-primary'); + expect(fixture.nativeElement).toHaveClass('show'); + expect(fixture.nativeElement.style.opacity).toBe('1'); + componentRef.setInput('visible', false); + componentRef.setInput('color', 'danger'); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('alert-danger'); + expect(fixture.nativeElement.style.opacity).toBe('0'); + expect(fixture.nativeElement.style.height).toBe('0px'); + componentRef.setInput('dismissible', true); + componentRef.setInput('fade', true); + componentRef.setInput('variant', 'solid'); + componentRef.setInput('visible', true); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('alert-dismissible'); + expect(fixture.nativeElement).toHaveClass('fade'); + expect(fixture.nativeElement).not.toHaveClass('alert-danger'); + expect(fixture.nativeElement).toHaveClass('bg-danger'); + expect(fixture.nativeElement).toHaveClass('text-white'); + expect(fixture.nativeElement.style).toHaveSize(0); + }); + + it('should have attributes', () => { + expect(fixture.nativeElement.getAttribute('role')).toBe('alert'); + }); }); diff --git a/projects/coreui-angular/src/lib/alert/alert.component.ts b/projects/coreui-angular/src/lib/alert/alert.component.ts index 35bc2105..beaafa12 100644 --- a/projects/coreui-angular/src/lib/alert/alert.component.ts +++ b/projects/coreui-angular/src/lib/alert/alert.component.ts @@ -1,177 +1,173 @@ import { - AfterContentInit, + booleanAttribute, Component, - ContentChildren, - EventEmitter, - HostBinding, - HostListener, - Input, - Output, - QueryList + computed, + contentChildren, + input, + linkedSignal, + output, + signal, + TemplateRef } from '@angular/core'; -import { NgIf, NgTemplateOutlet } from '@angular/common'; +import { NgTemplateOutlet } from '@angular/common'; import { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { Colors } from '../coreui.types'; import { TemplateIdDirective } from '../shared'; import { ButtonCloseDirective } from '../button'; -type AnimateType = ('hide' | 'show'); +type AnimateType = 'hide' | 'show'; @Component({ selector: 'c-alert', templateUrl: './alert.component.html', styleUrls: ['./alert.component.scss'], exportAs: 'cAlert', - standalone: true, - imports: [NgIf, NgTemplateOutlet, ButtonCloseDirective], + imports: [NgTemplateOutlet, ButtonCloseDirective], animations: [ trigger('fadeInOut', [ state('show', style({ opacity: 1, height: '*', padding: '*', border: '*', margin: '*' })), state('hide', style({ opacity: 0, height: 0, padding: 0, border: 0, margin: 0 })), state('void', style({ opacity: 0, height: 0, padding: 0, border: 0, margin: 0 })), - transition('show => hide', [ - animate('.3s ease-out') - ]), - transition('hide => show', [ - animate('.3s ease-in') - ]), - transition('show => void', [ - animate('.3s ease-out') - ]), - transition('void => show', [ - animate('.3s ease-in') - ]) + transition('show => hide', [animate('.3s ease-out')]), + transition('hide => show', [animate('.3s ease-in')]), + transition('show => void', [animate('.3s ease-out')]), + transition('void => show', [animate('.3s ease-in')]) ]) - ] + ], + host: { + '[@.disabled]': '!fade()', + '[@fadeInOut]': 'animateType', + '[attr.role]': 'role()', + '[class]': 'hostClasses()', + '(@fadeInOut.start)': 'onAnimationStart($event)', + '(@fadeInOut.done)': 'onAnimationDone($event)' + } }) -export class AlertComponent implements AfterContentInit { - - static ngAcceptInputType_dismissible: BooleanInput; - static ngAcceptInputType_fade: BooleanInput; - static ngAcceptInputType_visible: BooleanInput; - - hide!: boolean; +export class AlertComponent { /** * Sets the color context of the component to one of CoreUI’s themed colors. - * - * @type Colors + * @return Colors * @default 'primary' */ - @Input() color: Colors = 'primary'; + readonly color = input('primary'); + /** * Default role for alert. [docs] - * @type string + * @return string * @default 'alert' */ - @HostBinding('attr.role') - @Input() role = 'alert'; + readonly role = input('alert'); + /** * Set the alert variant to a solid. - * @type string + * @return string */ - @Input() variant?: 'solid' | string; - /** - * Event triggered on the alert dismiss. - */ - @Output() visibleChange: EventEmitter = new EventEmitter(); - templates: any = {}; - @ContentChildren(TemplateIdDirective, { descendants: true }) contentTemplates!: QueryList; - - private _dismissible = false; + readonly variant = input<'solid'>(); /** * Optionally adds a close button to alert and allow it to self dismiss. - * @type boolean + * @return boolean + * @default false */ - @Input() - get dismissible(): boolean { - return this._dismissible; - } + readonly dismissibleInput = input(false, { transform: booleanAttribute, alias: 'dismissible' }); + + readonly #dismissible = linkedSignal({ + source: this.dismissibleInput, + computation: (value) => { + return value; + } + }); set dismissible(value: boolean) { - this._dismissible = coerceBooleanProperty(value); + this.#dismissible.set(value); } - private _fade = false; + get dismissible() { + return this.#dismissible(); + } /** * Adds animation for dismissible alert. - * @type boolean + * @return boolean */ - @Input() - get fade(): boolean { - return this._fade; - } + readonly fade = input(false, { transform: booleanAttribute }); - set fade(value: boolean) { - this._fade = coerceBooleanProperty(value); - } + /** + * Toggle the visibility of alert component. + * @return boolean + */ + readonly visibleInput = input(true, { transform: booleanAttribute, alias: 'visible' }); + + readonly #visible = linkedSignal({ + source: this.visibleInput, + computation: (value) => { + return value; + } + }); - private _visible = true; + set visible(value: boolean) { + if (this.#visible() !== value) { + this.#visible.set(value); + this.visibleChange?.emit(value); + } + } get visible() { - return this._visible; + return this.#visible(); } + readonly hide = signal(false); + /** - * Toggle the visibility of alert component. - * @type boolean + * Event triggered on the alert dismiss. */ - @Input() - set visible(value: boolean) { - if (this._visible !== value) { - this._visible = coerceBooleanProperty(value); - this.visibleChange.emit(value); - } - }; + readonly visibleChange = output(); - @HostBinding('@.disabled') - get animationDisabled(): boolean { - return !this.fade; - } + readonly contentTemplates = contentChildren(TemplateIdDirective, { descendants: true }); + + readonly templates = computed(() => { + return this.contentTemplates().reduce( + (acc, child) => { + acc[child.id] = child.templateRef; + return acc; + }, + {} as Record> + ); + }); - @HostBinding('@fadeInOut') get animateType(): AnimateType { return this.visible ? 'show' : 'hide'; } - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const color = this.color(); + const variant = this.variant(); return { alert: true, 'alert-dismissible': this.dismissible, - fade: this.fade, - show: !this.hide, - [`alert-${this.color}`]: !!this.color && this.variant !== 'solid', - [`bg-${this.color}`]: !!this.color && this.variant === 'solid', - 'text-white': !!this.color && this.variant === 'solid' - }; - } + fade: this.fade(), + show: !this.hide(), + [`alert-${color}`]: !!color && variant !== 'solid', + [`bg-${color}`]: !!color && variant === 'solid', + 'text-white': !!color && variant === 'solid' + } as Record; + }); - @HostListener('@fadeInOut.start', ['$event']) onAnimationStart($event: AnimationEvent): void { this.onAnimationEvent($event); } - @HostListener('@fadeInOut.done', ['$event']) onAnimationDone($event: AnimationEvent): void { this.onAnimationEvent($event); } - ngAfterContentInit(): void { - this.contentTemplates.forEach((child: TemplateIdDirective) => { - this.templates[child.id] = child.templateRef; - }); - } - onAnimationEvent(event: AnimationEvent): void { - this.hide = event.phaseName === 'start' && event.toState === 'show'; + this.hide.set(event.phaseName === 'start' && event.toState === 'show'); if (event.phaseName === 'done') { - this.hide = (event.toState === 'hide' || event.toState === 'void'); + this.hide.set(event.toState === 'hide' || event.toState === 'void'); if (event.toState === 'show') { - this.hide = false; + this.hide.set(false); } } } diff --git a/projects/coreui-angular/src/lib/avatar/avatar.component.html b/projects/coreui-angular/src/lib/avatar/avatar.component.html index a3c3f737..82a6e9f3 100644 --- a/projects/coreui-angular/src/lib/avatar/avatar.component.html +++ b/projects/coreui-angular/src/lib/avatar/avatar.component.html @@ -1,11 +1,21 @@ - - - - + + @if (src()) { + @defer (prefetch on idle) { + {{alt()}} + } @placeholder () { + + + + } + } + +@if (!!status()) { + +} - - - - - - diff --git a/projects/coreui-angular/src/lib/avatar/avatar.component.scss b/projects/coreui-angular/src/lib/avatar/avatar.component.scss new file mode 100644 index 00000000..ddbc3efc --- /dev/null +++ b/projects/coreui-angular/src/lib/avatar/avatar.component.scss @@ -0,0 +1,5 @@ +:host { + .avatar-img { + object-fit: cover; + } +} diff --git a/projects/coreui-angular/src/lib/avatar/avatar.component.spec.ts b/projects/coreui-angular/src/lib/avatar/avatar.component.spec.ts index 3bd06052..35566e8f 100644 --- a/projects/coreui-angular/src/lib/avatar/avatar.component.spec.ts +++ b/projects/coreui-angular/src/lib/avatar/avatar.component.spec.ts @@ -22,4 +22,8 @@ describe('AvatarComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('avatar'); + }); }); diff --git a/projects/coreui-angular/src/lib/avatar/avatar.component.ts b/projects/coreui-angular/src/lib/avatar/avatar.component.ts index 56e3ded0..1f036fdc 100644 --- a/projects/coreui-angular/src/lib/avatar/avatar.component.ts +++ b/projects/coreui-angular/src/lib/avatar/avatar.component.ts @@ -1,68 +1,79 @@ -import { Component, HostBinding, Input } from '@angular/core'; -import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'; +import { NgClass } from '@angular/common'; +import { Component, computed, input, InputSignal } from '@angular/core'; import { Colors, Shapes, Sizes, TextColors } from '../coreui.types'; +import { TextColorDirective } from '../utilities'; @Component({ selector: 'c-avatar', templateUrl: './avatar.component.html', - standalone: true, - imports: [ - NgTemplateOutlet, - NgClass, - NgIf - ] + styleUrls: ['./avatar.component.scss'], + imports: [NgClass], + hostDirectives: [ + { + directive: TextColorDirective, + inputs: ['cTextColor: textColor'] + } + ], + host: { class: 'avatar', '[class]': 'hostClasses()' } }) export class AvatarComponent { /** * Sets the background color context of the component to one of CoreUI’s themed colors. * @type Colors */ - @Input() color?: Colors; + readonly color: InputSignal = input(); + /** * Select the shape of the component. * @type Shapes */ - @Input() shape?: Shapes; + readonly shape: InputSignal = input(); + /** * Size the component small, large, or extra large. * @default 'md' */ - @Input() size?: Omit = 'md'; + readonly size: InputSignal> = input>(''); + + /** + * The alt attribute for the img element alternate text. + * @type string + */ + readonly alt: InputSignal = input(''); + /** * The src attribute for the img element. * @type string */ - @Input() src?: string; + readonly src: InputSignal = input(); + /** * Sets the color context of the status indicator to one of CoreUI’s themed colors. * @type Colors */ - @Input() status?: Colors; + readonly status: InputSignal = input(); + /** * Sets the text color of the component to one of CoreUI’s themed colors. - * - * @values 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted' | string + * via TextColorDirective + * @type TextColors */ - @Input() textColor?: TextColors; - - constructor() { } + readonly textColor: InputSignal = input(); - get statusClass(): any { + readonly statusClass = computed(() => { return { 'avatar-status': true, - [`bg-${this.status}`]: !!this.status - }; - } + [`bg-${this.status()}`]: !!this.status() + } as Record; + }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { avatar: true, - [`avatar-${this.size}`]: !!this.size, - [`bg-${this.color}`]: !!this.color, - [`${this.shape}`]: !!this.shape, - [`text-${this.textColor}`]: !!this.textColor - }; - } + [`avatar-${this.size()}`]: !!this.size(), + [`bg-${this.color()}`]: !!this.color(), + [`${this.shape()}`]: !!this.shape() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/backdrop/backdrop.service.spec.ts b/projects/coreui-angular/src/lib/backdrop/backdrop.service.spec.ts index ff5fd53a..03138be2 100644 --- a/projects/coreui-angular/src/lib/backdrop/backdrop.service.spec.ts +++ b/projects/coreui-angular/src/lib/backdrop/backdrop.service.spec.ts @@ -1,16 +1,59 @@ -import { TestBed } from '@angular/core/testing'; +import { DOCUMENT } from '@angular/core'; +import { fakeAsync, TestBed, tick } from '@angular/core/testing'; import { BackdropService } from './backdrop.service'; describe('BackdropService', () => { let service: BackdropService; + let document: Document; + let backdrop: any; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(BackdropService); + document = TestBed.inject(DOCUMENT); }); + afterAll(() => { + expect(document.querySelector('.modal-backdrop')).toBeNull(); + }, 500); + it('should be created', () => { expect(service).toBeTruthy(); }); + + it('should set backdrop', fakeAsync(() => { + // expect(service.scrollbarWidth).toBe('0px'); + expect(document.querySelector('.modal-backdrop')).toBeNull(); + backdrop = service.setBackdrop(); + tick(); + expect(document.querySelector('.modal-backdrop')).not.toBeNull(); + expect(backdrop).toHaveClass('modal-backdrop'); + expect(backdrop).toHaveClass('fade'); + expect(backdrop).toHaveClass('show'); + service.clearBackdrop(backdrop); + expect(backdrop).not.toHaveClass('show'); + expect(document.querySelector('.modal-backdrop')).not.toBeNull(); + })); + + it('should hide scrollbar', () => { + service.hideScrollbar(); + expect(document.body.style.overflow).toBe('hidden'); + // expect(document.body.style.paddingRight).toBe('0px'); + }); + + it('should reset scrollbar', () => { + service.resetScrollbar(); + expect(document.body.style.overflow).not.toBe('hidden'); + }); + + it('should react to backdrop click', fakeAsync(() => { + backdrop = service.setBackdrop(); + tick(); + service.backdropClick$.subscribe((value) => { + expect(value).toBeTrue(); + }); + backdrop.dispatchEvent(new MouseEvent('click')); + service.clearBackdrop(backdrop); + })); }); diff --git a/projects/coreui-angular/src/lib/backdrop/backdrop.service.ts b/projects/coreui-angular/src/lib/backdrop/backdrop.service.ts index 778ab6db..5cf73f06 100644 --- a/projects/coreui-angular/src/lib/backdrop/backdrop.service.ts +++ b/projects/coreui-angular/src/lib/backdrop/backdrop.service.ts @@ -1,59 +1,83 @@ -import { Inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; +import { inject, Injectable, RendererFactory2, DOCUMENT } from '@angular/core'; + import { Subject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class BackdropService { + readonly #backdropClick = new Subject(); + readonly backdropClick$ = this.#backdropClick.asObservable(); - private backdropClick = new Subject(); - backdropClick$ = this.backdropClick.asObservable(); - - private renderer: Renderer2; - private unListen!: () => void; + #document = inject(DOCUMENT); + #rendererFactory = inject(RendererFactory2); + #renderer = this.#rendererFactory.createRenderer(null, null); + #unListen!: () => void; - constructor( - @Inject(DOCUMENT) private document: Document, - private rendererFactory: RendererFactory2 - ) { - this.renderer = rendererFactory.createRenderer(null, null); - } + activeBackdrop: any; - get scrollbarWidth() { + get #scrollbarWidth() { // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes - const documentWidth = this.document.documentElement.clientWidth; - const scrollbarWidth = Math.abs((window?.innerWidth ?? documentWidth) - documentWidth); + const documentWidth = this.#document.documentElement.clientWidth; + const scrollbarWidth = Math.abs((this.#document.defaultView?.innerWidth ?? documentWidth) - documentWidth); return `${scrollbarWidth}px`; } + scrollbarWidth = this.#scrollbarWidth; + setBackdrop(type: string = 'modal'): any { - const backdropElement = this.renderer.createElement('div'); - this.renderer.addClass(backdropElement, `${type}-backdrop`); - this.renderer.addClass(backdropElement, 'fade'); - this.renderer.appendChild(this.document.body, backdropElement); - this.unListen = this.renderer.listen(backdropElement, 'click', (e): void => { + const backdropElement = this.#renderer.createElement('div'); + this.#renderer.addClass(backdropElement, `${type}-backdrop`); + this.#renderer.addClass(backdropElement, 'fade'); + this.#renderer.appendChild(this.#document.body, backdropElement); + this.#unListen = this.#renderer.listen(backdropElement, 'click', (e): void => { this.onClickHandler(); }); + this.scrollbarWidth = this.#scrollbarWidth; setTimeout(() => { - this.renderer.addClass(backdropElement, 'show'); + this.#renderer.addClass(backdropElement, 'show'); + // this.hideScrollbar(); }); + this.activeBackdrop = backdropElement; return backdropElement; } - clearBackdrop(backdrop: any): any { - if (backdrop) { - this.unListen(); - this.renderer.removeClass(backdrop, 'show'); + clearBackdrop(backdropElement: any): any { + if (backdropElement) { + this.#unListen(); + this.#renderer.removeClass(backdropElement, 'show'); setTimeout(() => { - this.renderer.removeChild(this.document.body, backdrop); - backdrop = undefined; + if (this.activeBackdrop === backdropElement) { + this.resetScrollbar(); + } + this.#renderer.removeChild(this.#document.body, backdropElement); + backdropElement = undefined; }, 300); } - return backdrop; + return undefined; + } + + get #isRTL() { + return [this.#document.documentElement.dir, this.#document.body.dir].includes('rtl'); + } + + #scrollBarVisible = true; + + hideScrollbar(): void { + if (this.#scrollBarVisible) { + this.#renderer.setStyle(this.#document.body, 'overflow', 'hidden'); + this.#renderer.setStyle(this.#document.body, `padding-${this.#isRTL ? 'left' : 'right'}`, this.scrollbarWidth); + this.#scrollBarVisible = false; + } + } + + resetScrollbar(): void { + this.#renderer.removeStyle(this.#document.body, 'overflow'); + this.#renderer.removeStyle(this.#document.body, `padding-${this.#isRTL ? 'left' : 'right'}`); + this.#scrollBarVisible = true; } onClickHandler(): void { - this.backdropClick.next(true); + this.#backdropClick.next(true); } } diff --git a/projects/coreui-angular/src/lib/backdrop/index.ts b/projects/coreui-angular/src/lib/backdrop/index.ts new file mode 100644 index 00000000..4aaf8f92 --- /dev/null +++ b/projects/coreui-angular/src/lib/backdrop/index.ts @@ -0,0 +1 @@ +export * from './public_api'; diff --git a/projects/coreui-angular/src/lib/backdrop/public_api.ts b/projects/coreui-angular/src/lib/backdrop/public_api.ts new file mode 100644 index 00000000..af201b5c --- /dev/null +++ b/projects/coreui-angular/src/lib/backdrop/public_api.ts @@ -0,0 +1 @@ +export { BackdropService } from './backdrop.service'; diff --git a/projects/coreui-angular/src/lib/badge/badge.component.spec.ts b/projects/coreui-angular/src/lib/badge/badge.component.spec.ts index 329138d6..ae6b84f3 100644 --- a/projects/coreui-angular/src/lib/badge/badge.component.spec.ts +++ b/projects/coreui-angular/src/lib/badge/badge.component.spec.ts @@ -8,9 +8,9 @@ describe('BadgeComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [ BadgeComponent ] + imports: [BadgeComponent] }) - .compileComponents(); + .compileComponents(); }); beforeEach(() => { @@ -22,4 +22,8 @@ describe('BadgeComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('badge'); + }); }); diff --git a/projects/coreui-angular/src/lib/badge/badge.component.ts b/projects/coreui-angular/src/lib/badge/badge.component.ts index 16c3c6c8..99702ac0 100644 --- a/projects/coreui-angular/src/lib/badge/badge.component.ts +++ b/projects/coreui-angular/src/lib/badge/badge.component.ts @@ -1,57 +1,76 @@ -import { Component, HostBinding, Input } from '@angular/core'; -import { BadgePositions, Colors, Shapes } from '../coreui.types'; +import { Component, computed, input, InputSignal } from '@angular/core'; +import { BadgePositions, Colors, Shapes, TextColors } from '../coreui.types'; +import { TextBgColorDirective, TextColorDirective } from '../utilities'; @Component({ selector: 'c-badge', - template: '', - standalone: true + template: '', + hostDirectives: [ + { directive: TextColorDirective, inputs: ['cTextColor: textColor'] }, + { directive: TextBgColorDirective, inputs: ['cTextBgColor: textBgColor'] } + ], + host: { + class: 'badge', + '[class]': 'hostClasses()' + } }) export class BadgeComponent { /** * Sets the color context of the component to one of CoreUI’s themed colors. * @type Colors */ - @Input() color?: Colors; + readonly color: InputSignal = input(); /** * Position badge in one of the corners of a link or button. * @type BadgePositions */ - @Input() position?: BadgePositions; + readonly position: InputSignal = input(); + /** * Select the shape of the component. * @type Shapes */ - @Input() shape?: Shapes; + readonly shape: InputSignal = input(); + /** * Size the component small. */ - @Input() size?: 'sm'; + readonly size: InputSignal<'sm' | undefined> = input(); + /** * Sets the text color of the component to one of CoreUI’s themed colors. + * via TextColorDirective * @type TextColors */ - @Input() textColor?: string; + readonly textColor: InputSignal = input(); - constructor() {} + /** + * Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility. + * via TextBgColorDirective + * @type Colors + * @since 5.0.0 + */ + readonly textBgColor: InputSignal = input(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const position = this.position(); const positionClasses = { - 'position-absolute': !!this.position, - 'translate-middle': !!this.position, - 'top-0': this.position?.includes('top'), - 'top-100': this.position?.includes('bottom'), - 'start-100': this.position?.includes('end'), - 'start-0': this.position?.includes('start') + 'position-absolute': !!position, + 'translate-middle': !!position, + 'top-0': position?.includes('top'), + 'top-100': position?.includes('bottom'), + 'start-100': position?.includes('end'), + 'start-0': position?.includes('start') }; - return Object.assign({ + return Object.assign( + { badge: true, - [`bg-${this.color}`]: !!this.color, - [`text-${this.textColor}`]: !!this.textColor, - [`badge-${this.size}`]: !!this.size, - [`${this.shape}`]: !!this.shape - }, !!this.position ? positionClasses : {} - ); - } + [`bg-${this.color()}`]: !!this.color(), + [`badge-${this.size()}`]: !!this.size(), + [`${this.shape()}`]: !!this.shape() + }, + !!position ? positionClasses : {} + ) as Record; + }); } diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.html b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.html index fea45be1..40c14a9c 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.html +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.html @@ -1,24 +1,23 @@ - - - - - - - +@if (!active()) { + + + +} @else { + + - +} - + diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.spec.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.spec.ts index 78a36a10..d2f39847 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.spec.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.spec.ts @@ -1,25 +1,49 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { RouterTestingModule } from '@angular/router/testing'; import { BreadcrumbItemComponent } from './breadcrumb-item.component'; +import { provideRouter } from '@angular/router'; +import { ComponentRef } from '@angular/core'; describe('BreadcrumbItemComponent', () => { let component: BreadcrumbItemComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [RouterTestingModule, BreadcrumbItemComponent] - }) - .compileComponents(); + imports: [BreadcrumbItemComponent], + providers: [provideRouter([])] + }).compileComponents(); }); beforeEach(() => { fixture = TestBed.createComponent(BreadcrumbItemComponent); component = fixture.componentInstance; + componentRef = fixture.componentRef; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('breadcrumb-item'); + expect(fixture.nativeElement).not.toHaveClass('active'); + }); + + it('should have active class', () => { + componentRef.setInput('active', true); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('active'); + }); + + it('should have aria-current attribute', () => { + expect(fixture.nativeElement.getAttribute('aria-current')).toBeNull(); + componentRef.setInput('active', true); + fixture.detectChanges(); + expect(fixture.nativeElement.getAttribute('aria-current')).toBe('page'); + componentRef.setInput('active', false); + fixture.detectChanges(); + expect(fixture.nativeElement.getAttribute('aria-current')).toBeNull(); + }); }); diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.ts index 05c6e413..a17e52d8 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.ts @@ -1,5 +1,5 @@ -import { Component, HostBinding, Input } from '@angular/core'; -import { NgIf, NgTemplateOutlet } from '@angular/common'; +import { booleanAttribute, Component, computed, effect, input } from '@angular/core'; +import { NgTemplateOutlet } from '@angular/common'; import { RouterModule } from '@angular/router'; import { HtmlAttributesDirective } from '../../shared'; @@ -9,41 +9,53 @@ import { INavAttributes, INavLinkProps } from './breadcrumb-item'; selector: 'c-breadcrumb-item', templateUrl: './breadcrumb-item.component.html', styleUrls: ['./breadcrumb-item.component.scss'], - standalone: true, - imports: [RouterModule, NgIf, NgTemplateOutlet, HtmlAttributesDirective] + imports: [RouterModule, NgTemplateOutlet, HtmlAttributesDirective], + exportAs: 'breadcrumbItem', + host: { + '[attr.aria-current]': 'ariaCurrent()', + '[class]': 'hostClasses()' + } }) export class BreadcrumbItemComponent { - /** * Toggle the active state for the component. [docs] - * @type boolean + * @return boolean */ - @Input() active?: boolean; + readonly active = input(undefined, { transform: booleanAttribute }); + /** * The `url` prop for the inner `[routerLink]` directive. [docs] - * @type string + * @return string */ - @Input() url?: string | any[]; + readonly url = input(); + /** * Additional html attributes for link. [docs] - * @type INavAttributes + * @return INavAttributes */ - @Input() attributes?: INavAttributes; + readonly attribs = input(); + protected readonly _attributes = input(undefined, { alias: 'attributes' }); + + readonly #attributesEffect = effect(() => { + if (this._attributes()) { + console.error('c-breadcrumb-item: [attributes] prop is removed, use [attribs] instead:', this._attributes()); + } + }); + /** * Some `NavigationExtras` props for the inner `[routerLink]` directive and `routerLinkActiveOptions`. [docs] - * @type INavLinkProps + * @return INavLinkProps */ - @Input() linkProps?: INavLinkProps; + readonly linkProps = input(); - @HostBinding('attr.aria-current') get ariaCurrent(): string | null { - return this.active ? 'page' : null; - } + readonly ariaCurrent = computed((): string | null => { + return this.active() ? 'page' : null; + }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { 'breadcrumb-item': true, - active: this.active - }; - } + active: this.active() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.ts index d82381a9..d87c0c4b 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-item/breadcrumb-item.ts @@ -1,4 +1,4 @@ -import {INavAttributes, INavLinkProps} from '../../coreui.types'; +import { INavAttributes, INavLinkProps } from '../../coreui.types'; interface IBreadcrumbItem { label: string; @@ -6,6 +6,7 @@ interface IBreadcrumbItem { attributes?: INavAttributes; linkProps?: INavLinkProps; class?: string; + queryParams?: { [key: string]: any }; } -export { INavAttributes, INavLinkProps, IBreadcrumbItem }; +export type { INavAttributes, INavLinkProps, IBreadcrumbItem }; diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.html b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.html index 68125217..af864030 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.html +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.html @@ -1,14 +1,14 @@ - - + @for (breadcrumb of breadcrumbs(); track breadcrumb; let last = $last) { + @if (breadcrumb?.label && (breadcrumb?.url?.slice(-1) === '/' || last)) { {{ breadcrumb?.label }} - - + } + } diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.scss b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.scss deleted file mode 100644 index 88149dde..00000000 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -//:host .breadcrumb-item { -// display: list-item; -//} diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.spec.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.spec.ts index dbf844f6..039ab753 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.spec.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.spec.ts @@ -1,33 +1,63 @@ +import { ComponentRef } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { RouterTestingModule } from '@angular/router/testing'; -import { Router } from '@angular/router'; +import { provideRouter, Route } from '@angular/router'; +import { RouterTestingHarness } from '@angular/router/testing'; import { BreadcrumbRouterComponent } from './breadcrumb-router.component'; import { BreadcrumbRouterService } from './breadcrumb-router.service'; describe('BreadcrumbComponent', () => { let component: BreadcrumbRouterComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; - let router: Router; + let harness: RouterTestingHarness; + + const routes: Route[] = [ + { path: 'home', component: BreadcrumbRouterComponent, data: { title: 'Home' } }, + { path: 'color', component: BreadcrumbRouterComponent, title: 'Color' }, + { path: '', component: BreadcrumbRouterComponent } + ]; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [ - RouterTestingModule.withRoutes([]), - BreadcrumbRouterComponent - ], - providers: [BreadcrumbRouterService] + imports: [BreadcrumbRouterComponent], + providers: [BreadcrumbRouterService, provideRouter(routes)] }).compileComponents(); })); - beforeEach(() => { + beforeEach(async () => { fixture = TestBed.createComponent(BreadcrumbRouterComponent); - router = TestBed.inject(Router); component = fixture.componentInstance; + componentRef = fixture.componentRef; + + harness = await RouterTestingHarness.create(); fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have breadcrumbs', () => { + expect(component.breadcrumbs()).toBeDefined(); + }); + + it('should get breadcrumbs from service', async () => { + const comp = await harness.navigateByUrl('/home'); + expect(component.breadcrumbs()).toEqual([{ label: 'Home', url: '/home', queryParams: {} }]); + }); + it('should get breadcrumbs from service', async () => { + const comp = await harness.navigateByUrl('/color?id=1&test=2'); + expect(component.breadcrumbs()).toEqual([{ label: 'Color', url: '/color', queryParams: { id: '1', test: '2' } }]); + }); + it('should get breadcrumbs from service', async () => { + const comp = await harness.navigateByUrl('/'); + expect(component.breadcrumbs()).toEqual([{ label: '', url: '/', queryParams: {} }]); + }); + + it('should emit breadcrumbs on items change', () => { + componentRef.setInput('items', [{ label: 'test', url: '/color', attributes: { title: 'test' } }]); + fixture.detectChanges(); + expect(component.breadcrumbs()).toEqual([{ label: 'test', url: '/color', attributes: { title: 'test' } }]); + }); }); diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.ts index 8016cd84..4160dc31 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.ts @@ -1,6 +1,5 @@ -import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; -import { Observable, Observer } from 'rxjs'; -import { AsyncPipe, NgForOf, NgIf } from '@angular/common'; +import { Component, computed, inject, input } from '@angular/core'; +import { toSignal } from '@angular/core/rxjs-interop'; import { IBreadcrumbItem } from '../breadcrumb-item/breadcrumb-item'; import { BreadcrumbComponent } from '../breadcrumb/breadcrumb.component'; @@ -10,45 +9,20 @@ import { BreadcrumbItemComponent } from '../breadcrumb-item/breadcrumb-item.comp @Component({ selector: 'c-breadcrumb-router, [cBreadcrumbRouter]', templateUrl: './breadcrumb-router.component.html', - styleUrls: ['./breadcrumb-router.component.scss'], - standalone: true, - imports: [BreadcrumbComponent, BreadcrumbItemComponent, NgForOf, NgIf, AsyncPipe] + imports: [BreadcrumbComponent, BreadcrumbItemComponent] }) -export class BreadcrumbRouterComponent implements OnChanges, OnDestroy, OnInit { - constructor( - public service: BreadcrumbRouterService - ) {} +export class BreadcrumbRouterComponent { + readonly #breadcrumbRouterService = inject(BreadcrumbRouterService); /** * Optional array of IBreadcrumbItem to override default BreadcrumbRouter behavior. [docs] - * @type IBreadcrumbItem[] + * @return IBreadcrumbItem[] */ - @Input() items?: IBreadcrumbItem[]; - public breadcrumbs: Observable | undefined; + readonly items = input(); - ngOnInit(): void { - this.breadcrumbs = this.service.breadcrumbs$; - } + readonly #breadcrumbs = toSignal(this.#breadcrumbRouterService.breadcrumbs$); - public ngOnChanges(changes: SimpleChanges): void { - if (changes['items']) { - this.setup(); - } - } - - setup(): void { - if (this.items && this.items.length > 0) { - this.breadcrumbs = new Observable( - (observer: Observer) => { - if (this.items) { - observer.next(this.items); - } - } - ); - } - } - - ngOnDestroy(): void { - this.breadcrumbs = undefined; - } + readonly breadcrumbs = computed(() => { + return this.items() ?? this.#breadcrumbs() ?? []; + }); } diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.spec.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.spec.ts index 5fd81b71..ac32fab6 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.spec.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.spec.ts @@ -1,14 +1,14 @@ import { TestBed } from '@angular/core/testing'; -import { RouterTestingModule } from '@angular/router/testing'; import { BreadcrumbRouterService } from './breadcrumb-router.service'; +import { provideRouter } from '@angular/router'; describe('AppBreadcrumbService', () => { let service: BreadcrumbRouterService; beforeEach(() => { TestBed.configureTestingModule({ - imports: [RouterTestingModule.withRoutes([])] + providers: [provideRouter([])] }); service = TestBed.inject(BreadcrumbRouterService); }); diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.ts index 44ea11d3..c9faa199 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.ts @@ -1,4 +1,4 @@ -import { Injectable } from '@angular/core'; +import { inject, Injectable } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; import { BehaviorSubject, Observable } from 'rxjs'; @@ -9,26 +9,25 @@ import { IBreadcrumbItem } from '../breadcrumb-item/breadcrumb-item'; providedIn: 'root' }) export class BreadcrumbRouterService { - public outlet = 'primary'; - - breadcrumbs$: Observable; - private breadcrumbsBehaviorSubject: BehaviorSubject; + readonly #router = inject(Router); + readonly #activatedRoute = inject(ActivatedRoute); - constructor(private router: Router, private route: ActivatedRoute) { - this.breadcrumbsBehaviorSubject = new BehaviorSubject( - new Array() - ); + public outlet = 'primary'; - this.breadcrumbs$ = this.breadcrumbsBehaviorSubject.asObservable(); + readonly #breadcrumbsBehaviorSubject: BehaviorSubject = new BehaviorSubject( + new Array() + ); + readonly breadcrumbs$: Observable = this.#breadcrumbsBehaviorSubject.asObservable(); - this.router.events + constructor() { + this.#router.events .pipe( takeUntilDestroyed(), filter((event) => event instanceof NavigationEnd) ) .subscribe((event) => { const breadcrumbs: any[] = []; - let currentRoute: ActivatedRoute | null = this.route.root; + let currentRoute: ActivatedRoute | null = this.#activatedRoute.root; let url = ''; do { const childrenRoutes: ActivatedRoute[] = currentRoute.children; @@ -39,7 +38,7 @@ export class BreadcrumbRouterService { const routeSnapshot = childRoute.snapshot; url += '/' + routeSnapshot.url.map((segment) => segment.path).join('/'); breadcrumbs.push({ - label: childRoute.snapshot.data['title'] || '', + label: routeSnapshot.data['title'] ?? routeSnapshot.title ?? '', url, queryParams: routeSnapshot.queryParams }); @@ -48,9 +47,8 @@ export class BreadcrumbRouterService { }); } while (currentRoute); - this.breadcrumbsBehaviorSubject.next(Object.assign([], breadcrumbs)); + this.#breadcrumbsBehaviorSubject.next(Object.assign([], breadcrumbs)); - // console.log('breadcrumbs', breadcrumbs); return breadcrumbs; }); } diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.spec.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.spec.ts index 963cb1c6..9dd86e69 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.spec.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.spec.ts @@ -9,8 +9,7 @@ describe('BreadcrumbComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [BreadcrumbComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +21,16 @@ describe('BreadcrumbComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('breadcrumb'); + }); + + it('should have aria-label attribute', () => { + expect(fixture.nativeElement.getAttribute('aria-label')).toBe('breadcrumb'); + }); + + it('should have role attribute', () => { + expect(fixture.nativeElement.getAttribute('role')).toBe('navigation'); + }); }); diff --git a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.ts b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.ts index eeb6bbd9..7d4a8412 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/breadcrumb/breadcrumb.component.ts @@ -1,34 +1,26 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, input } from '@angular/core'; @Component({ selector: 'c-breadcrumb', - template: '', - standalone: true + template: '', + host: { + class: 'breadcrumb', + '[attr.aria-label]': 'ariaLabel()', + '[attr.role]': 'role()' + } }) export class BreadcrumbComponent { /** * Default aria-label for breadcrumb. [docs] - * @type string + * @return string * @default 'breadcrumb' */ - @HostBinding('attr.aria-label') - @Input() ariaLabel = 'breadcrumb'; + readonly ariaLabel = input('breadcrumb'); /** * Default role for breadcrumb. [docs] - * @type string + * @return string * @default 'navigation' */ - @HostBinding('attr.role') - @Input() role = 'navigation'; - - @HostBinding('class') - get hostClasses() { - return { - breadcrumb: true - } - } - - constructor() { } - + readonly role = input('navigation'); } diff --git a/projects/coreui-angular/src/lib/breadcrumb/public_api.ts b/projects/coreui-angular/src/lib/breadcrumb/public_api.ts index f1bc830d..b89fd85e 100644 --- a/projects/coreui-angular/src/lib/breadcrumb/public_api.ts +++ b/projects/coreui-angular/src/lib/breadcrumb/public_api.ts @@ -1,4 +1,4 @@ -export { IBreadcrumbItem } from './breadcrumb-item/breadcrumb-item'; +export type { IBreadcrumbItem } from './breadcrumb-item/breadcrumb-item'; export { BreadcrumbItemComponent } from './breadcrumb-item/breadcrumb-item.component'; export { BreadcrumbComponent } from './breadcrumb/breadcrumb.component'; export { BreadcrumbRouterComponent } from './breadcrumb-router/breadcrumb-router.component'; diff --git a/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.spec.ts b/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.spec.ts index 6b82c162..c57b9233 100644 --- a/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.spec.ts +++ b/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.spec.ts @@ -22,4 +22,8 @@ describe('ButtonGroupComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('btn-group'); + }); }); diff --git a/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.ts b/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.ts index ef3dfa6a..4425bf45 100644 --- a/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.ts +++ b/projects/coreui-angular/src/lib/button-group/button-group/button-group.component.ts @@ -1,40 +1,35 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, Component, computed, input, InputSignal, InputSignalWithTransform } from '@angular/core'; @Component({ selector: 'c-button-group', - template: ``, - standalone: true + template: '', + host: { '[attr.role]': 'role()', '[class]': 'hostClasses()' } }) export class ButtonGroupComponent { - /** * Size the component small or large. * @type { 'sm' | 'lg' } */ - @Input() size?: 'sm' | 'lg'; + readonly size: InputSignal<'sm' | 'lg' | undefined> = input(); + /** * Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here. * @type boolean */ - @Input() vertical?: boolean; + readonly vertical: InputSignalWithTransform = input(false, { transform: booleanAttribute }); + /** * Default role attr for ButtonGroup. [docs] - * @type string + * @type InputSignal * @default 'group' */ - @HostBinding('attr.role') - @Input() role = 'group'; + readonly role: InputSignal = input('group'); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { - 'btn-group': !this.vertical, - 'btn-group-vertical': this.vertical, - [`btn-group-${this.size}`]: !!this.size, - }; - } - - - constructor() { } - + 'btn-group': !this.vertical(), + 'btn-group-vertical': this.vertical(), + [`btn-group-${this.size()}`]: !!this.size() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.spec.ts b/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.spec.ts index 946cdfb7..09283fc0 100644 --- a/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.spec.ts +++ b/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.spec.ts @@ -22,4 +22,8 @@ describe('ButtonToolbarComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('btn-toolbar'); + }); }); diff --git a/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.ts b/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.ts index b20d2d39..d0659f35 100644 --- a/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.ts +++ b/projects/coreui-angular/src/lib/button-group/button-toolbar/button-toolbar.component.ts @@ -1,26 +1,15 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, input, InputSignal } from '@angular/core'; @Component({ selector: 'c-button-toolbar', - template: ``, - standalone: true + template: '', + host: { class: 'btn-toolbar', '[attr.role]': 'role()' } }) export class ButtonToolbarComponent { /** * Default role attr for ButtonToolbar. [docs] - * @type string + * @type InputSignal * @default 'toolbar' */ - @HostBinding('attr.role') - @Input() role = 'toolbar'; - - @HostBinding('class') - get hostClasses(): any { - return { - 'btn-toolbar': true, - }; - } - - constructor() { } - + role: InputSignal = input('toolbar'); } diff --git a/projects/coreui-angular/src/lib/button/button-close.directive.spec.ts b/projects/coreui-angular/src/lib/button/button-close.directive.spec.ts index bb01fae9..ddcc5691 100644 --- a/projects/coreui-angular/src/lib/button/button-close.directive.spec.ts +++ b/projects/coreui-angular/src/lib/button/button-close.directive.spec.ts @@ -1,38 +1,43 @@ -import { ButtonCloseDirective } from './button-close.directive'; -import { ComponentFixture, TestBed } from '@angular/core/testing'; import { Component, DebugElement, ElementRef } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; +import { ButtonCloseDirective } from './button-close.directive'; class MockElementRef extends ElementRef {} @Component({ - template: ` - ` + template: '', + imports: [ButtonCloseDirective] }) class TestComponent {} describe('ButtonCloseDirective', () => { - let component: TestComponent; let fixture: ComponentFixture; - let buttonEl: DebugElement; + let elementRef: DebugElement; beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent], - imports: [ButtonCloseDirective], + imports: [TestComponent, ButtonCloseDirective], providers: [{ provide: ElementRef, useClass: MockElementRef }] }); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; - buttonEl = fixture.debugElement.query(By.css('button')); + elementRef = fixture.debugElement.query(By.directive(ButtonCloseDirective)); fixture.detectChanges(); // initial binding }); it('should create an instance', () => { - const directive = new ButtonCloseDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ButtonCloseDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(elementRef.nativeElement).toHaveClass('btn'); + expect(elementRef.nativeElement).toHaveClass('btn-close'); }); }); diff --git a/projects/coreui-angular/src/lib/button/button-close.directive.ts b/projects/coreui-angular/src/lib/button/button-close.directive.ts index fcd4d9a4..6ebfe196 100644 --- a/projects/coreui-angular/src/lib/button/button-close.directive.ts +++ b/projects/coreui-angular/src/lib/button/button-close.directive.ts @@ -1,27 +1,36 @@ -import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, computed, Directive, input, InputSignalWithTransform } from '@angular/core'; +import { ThemeDirective } from '../shared/theme.directive'; import { ButtonDirective } from './button.directive'; @Directive({ selector: '[cButtonClose]', - standalone: true + hostDirectives: [{ directive: ThemeDirective, inputs: ['dark'] }], + host: { + class: 'btn btn-close', + '[class]': 'hostClasses()', + '[attr.aria-disabled]': 'ariaDisabled()', + '[attr.aria-pressed]': 'isActive()', + '[attr.disabled]': 'attrDisabled()', + '[attr.tabindex]': 'tabIndex()', + '[attr.type]': 'type()' + } }) export class ButtonCloseDirective extends ButtonDirective { - /** * Change the default color to white. * @type boolean + * @deprecated 5.0.0. Use `cButtonClose.dark` instead. */ - @Input({ transform: booleanAttribute }) white: string | boolean = false; + readonly white: InputSignalWithTransform = input(false, { transform: booleanAttribute }); - @HostBinding('class') - override get hostClasses(): any { + override readonly hostClasses = computed(() => { return { btn: true, 'btn-close': true, - 'btn-close-white': this.white, - [`btn-${this.size}`]: !!this.size, - disabled: this.disabled, - active: this.active - }; - } + 'btn-close-white': this.white(), + [`btn-${this.size()}`]: !!this.size(), + active: this.active(), + disabled: this._disabled() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/button/button.directive.spec.ts b/projects/coreui-angular/src/lib/button/button.directive.spec.ts index fada6f93..b9ea20ea 100644 --- a/projects/coreui-angular/src/lib/button/button.directive.spec.ts +++ b/projects/coreui-angular/src/lib/button/button.directive.spec.ts @@ -1,39 +1,44 @@ import { ButtonDirective } from './button.directive'; import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { ButtonCloseDirective } from './button-close.directive'; import { Component, DebugElement, ElementRef } from '@angular/core'; import { By } from '@angular/platform-browser'; class MockElementRef extends ElementRef {} @Component({ - template: ` - ` + template: '', + imports: [ButtonDirective] }) class TestComponent {} describe('ButtonDirective', () => { - let component: TestComponent; let fixture: ComponentFixture; - let buttonEl: DebugElement; + let elementRef: DebugElement; beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent], - imports: [ButtonCloseDirective], + imports: [TestComponent, ButtonDirective], providers: [{ provide: ElementRef, useClass: MockElementRef }] }); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; - buttonEl = fixture.debugElement.query(By.css('button')); + elementRef = fixture.debugElement.query(By.directive(ButtonDirective)); fixture.detectChanges(); // initial binding }); it('should create an instance', () => { - const directive = new ButtonDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ButtonDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(elementRef.nativeElement).toHaveClass('btn'); + expect(elementRef.nativeElement).toHaveClass('btn-lg'); + expect(elementRef.nativeElement).toHaveClass('btn-info'); }); }); diff --git a/projects/coreui-angular/src/lib/button/button.directive.ts b/projects/coreui-angular/src/lib/button/button.directive.ts index 7e18f17c..0e1fbddf 100644 --- a/projects/coreui-angular/src/lib/button/button.directive.ts +++ b/projects/coreui-angular/src/lib/button/button.directive.ts @@ -1,87 +1,109 @@ -import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core'; +import { + booleanAttribute, + computed, + Directive, + input, + InputSignal, + InputSignalWithTransform, + numberAttribute +} from '@angular/core'; -import { ButtonType, Colors, Shapes } from '../coreui.types'; +import { BooleanInput, ButtonType, Colors, Shapes } from '../coreui.types'; @Directive({ selector: '[cButton]', exportAs: 'cButton', - standalone: true + host: { + class: 'btn', + '[class]': 'hostClasses()', + '[attr.aria-disabled]': 'ariaDisabled()', + '[attr.aria-pressed]': 'isActive()', + '[attr.disabled]': 'attrDisabled()', + '[attr.tabindex]': 'tabIndex()', + '[attr.type]': 'type()' + } }) export class ButtonDirective { + static ngAcceptInputType_active: BooleanInput; + static ngAcceptInputType_disabled: BooleanInput; /** * Toggle the active state for the component. [docs] - * @type boolean + * @type InputSignalWithTransform */ - @Input({ transform: booleanAttribute }) active: string | boolean = false; + readonly active: InputSignalWithTransform = input(false, { transform: booleanAttribute }); /** * Sets the color context of the component to one of CoreUI’s themed colors. [docs] - * @type Colors + * @type InputSignal */ - @Input() color?: Colors = 'primary'; + readonly color: InputSignal = input('primary'); + /** * Toggle the disabled state for the component. - * @type boolean + * @type InputSignalWithTransform */ - @Input({ transform: booleanAttribute }) disabled: string | boolean = false; + readonly disabled: InputSignalWithTransform = input(false, { transform: booleanAttribute }); /** * Select the shape of the component. - * @type { 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string } + * @type InputSignal */ - @Input() shape?: Shapes; + readonly shape: InputSignal = input(); /** * Size the component small or large. - * @type {'sm' | 'lg'} + * @type InputSignal<'sm' | 'lg' | ''> + */ + readonly size: InputSignal<'' | 'sm' | 'lg'> = input<'' | 'sm' | 'lg'>(''); + + /** + * The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating). */ - @Input() size?: 'sm' | 'lg' | '' = ''; + readonly tabindex = input(undefined, { transform: numberAttribute }); /** * Specifies the type of button. Always specify the type attribute for the ` - -
+@let tmpl = templates(); + + + + @for (item of items; track item; let i = $index) { + + } + diff --git a/projects/coreui-angular/src/lib/carousel/carousel-indicators/carousel-indicators.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel-indicators/carousel-indicators.component.spec.ts index de6f3cb0..2a6b876e 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-indicators/carousel-indicators.component.spec.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel-indicators/carousel-indicators.component.spec.ts @@ -14,19 +14,30 @@ describe('CarouselIndicatorsComponent', () => { TestBed.configureTestingModule({ imports: [CarouselIndicatorsComponent], providers: [CarouselService, CarouselState] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(CarouselIndicatorsComponent); service = TestBed.inject(CarouselService); state = TestBed.inject(CarouselState); + state.setItems([]); component = fixture.componentInstance; + component.items = [0, 1, 2, 3]; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should set active index', () => { + service.setIndex({ active: 1 }); + expect(component.active).toBe(1); + }); + + it('should call onClick', () => { + component.onClick(2); + expect(component.active).toBe(2); + }); }); diff --git a/projects/coreui-angular/src/lib/carousel/carousel-indicators/carousel-indicators.component.ts b/projects/coreui-angular/src/lib/carousel/carousel-indicators/carousel-indicators.component.ts index c0d41c51..a50f4962 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-indicators/carousel-indicators.component.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel-indicators/carousel-indicators.component.ts @@ -1,51 +1,51 @@ -import { Component, OnDestroy, OnInit } from '@angular/core'; -import { NgForOf } from '@angular/common'; -import { Subscription } from 'rxjs'; +import { Component, computed, contentChildren, DestroyRef, inject, OnInit, TemplateRef } from '@angular/core'; import { CarouselState } from '../carousel-state'; import { CarouselService } from '../carousel.service'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { NgTemplateOutlet } from '@angular/common'; +import { TemplateIdDirective } from '../../shared'; @Component({ selector: 'c-carousel-indicators', + exportAs: 'cCarouselIndicators', + imports: [NgTemplateOutlet], templateUrl: './carousel-indicators.component.html', - standalone: true, - imports: [NgForOf] + host: { class: 'carousel-indicators' } }) -export class CarouselIndicatorsComponent implements OnInit, OnDestroy { - constructor( - private carouselService: CarouselService, - private carouselState: CarouselState - ) {} +export class CarouselIndicatorsComponent implements OnInit { + readonly #destroyRef = inject(DestroyRef); + readonly #carouselService = inject(CarouselService); + readonly #carouselState = inject(CarouselState); items: (number | undefined)[] = []; active = 0; - private carouselIndexSubscription?: Subscription; - ngOnInit(): void { - this.carouselStateSubscribe(); - } + readonly contentTemplates = contentChildren(TemplateIdDirective, { descendants: true }); - ngOnDestroy(): void { - this.carouselStateSubscribe(false); + readonly templates = computed(() => { + return this.contentTemplates().reduce( + (acc, child) => { + acc[child.id] = child.templateRef; + return acc; + }, + {} as Record> + ); + }); + + ngOnInit(): void { + this.#carouselService.carouselIndex$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((nextIndex) => { + this.items = this.#carouselState?.state?.items?.map((item) => item.index) ?? []; + if ('active' in nextIndex) { + this.active = nextIndex.active ?? 0; + } + }); } onClick(index: number): void { if (index !== this.active) { const direction = index < this.active ? 'prev' : 'next'; - this.carouselState.state = { direction, activeItemIndex: index }; - } - } - - private carouselStateSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.carouselIndexSubscription = this.carouselService.carouselIndex$.subscribe((nextIndex) => { - this.items = this.carouselState?.state?.items?.map(item => item.index) ?? []; - if ('active' in nextIndex) { - this.active = nextIndex.active ?? 0; - } - }); - } else { - this.carouselIndexSubscription?.unsubscribe(); + this.#carouselState.state = { direction, activeItemIndex: index }; } } } diff --git a/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.html b/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.html deleted file mode 100644 index 7ded7181..00000000 --- a/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.html +++ /dev/null @@ -1,7 +0,0 @@ -
- -
- - - - diff --git a/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.spec.ts index 67b60a1f..4b624e5d 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.spec.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.spec.ts @@ -30,4 +30,8 @@ describe('CarouselInnerComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('carousel-inner'); + }); }); diff --git a/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.ts b/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.ts index 628b1ee5..838b27ee 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel-inner/carousel-inner.component.ts @@ -2,32 +2,46 @@ import { AfterContentChecked, AfterContentInit, Component, - ContentChildren, - HostBinding, - QueryList + computed, + contentChildren, + inject, + signal } from '@angular/core'; - -import { fadeAnimation, slideAnimation } from '../carousel.animation'; import { CarouselItemComponent } from '../carousel-item/carousel-item.component'; import { CarouselState } from '../carousel-state'; +import { carouselPlay } from '../carousel.animation'; @Component({ selector: 'c-carousel-inner', - templateUrl: './carousel-inner.component.html', styleUrls: ['./carousel-inner.component.scss'], - animations: [slideAnimation, fadeAnimation], - standalone: true + animations: [carouselPlay], + template: '', + host: { + class: 'carousel-inner', + '[@carouselPlay]': 'slideType()', + '[@.disabled]': '!animate()', + '[attr.aria-live]': 'ariaLive()' + } }) export class CarouselInnerComponent implements AfterContentInit, AfterContentChecked { - constructor(private carouselState: CarouselState) {} + readonly #carouselState = inject(CarouselState); + + readonly activeIndex = signal(undefined); + readonly animate = signal(true); + readonly interval = signal(0); + readonly slide = signal({ left: true }); + readonly transition = signal('crossfade'); + + readonly slideType = computed(() => { + return { left: this.slide().left, type: this.transition() }; + }); + + readonly ariaLive = computed(() => { + return this.interval() ? 'off' : 'polite'; + }); - @HostBinding('class.carousel-inner') carouselInnerClass = true; - activeIndex?: number; - animate?: boolean; - slide = { left: true }; - transition = 'slide'; - @ContentChildren(CarouselItemComponent) private contentItems!: QueryList; - private prevContentItems!: QueryList; + readonly contentItems = contentChildren(CarouselItemComponent); + readonly #prevContentItems = signal([]); ngAfterContentInit(): void { this.setItems(); @@ -35,21 +49,23 @@ export class CarouselInnerComponent implements AfterContentInit, AfterContentChe ngAfterContentChecked(): void { this.setItems(); - const state = this.carouselState?.state; + const state = this.#carouselState?.state; const nextIndex = state?.activeItemIndex; const nextDirection = state?.direction; - if (this.activeIndex !== nextIndex) { - this.animate = state?.animate; - this.slide = { left: nextDirection === 'next' }; - this.activeIndex = state?.activeItemIndex; - this.transition = state?.transition ?? 'slide'; + if (this.activeIndex() !== nextIndex) { + this.animate.set(state?.animate ?? false); + this.activeIndex.set(state?.activeItemIndex); + this.interval.set(state?.interval ?? 0); + this.slide.set({ left: nextDirection === 'next' }); + this.transition.set(state?.transition ?? 'slide'); } } setItems(): void { - if (this.prevContentItems !== this.contentItems) { - this.prevContentItems = this.contentItems; - this.carouselState.setItems(this.contentItems); + const contentItems = this.contentItems(); + if (this.#prevContentItems() !== contentItems) { + this.#prevContentItems.set([...contentItems]); + this.#carouselState.setItems(contentItems); } } } diff --git a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.html b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.html index ba6f57e4..961fa2af 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.html +++ b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.html @@ -1,5 +1,3 @@ - - - - - +@if (active()) { + +} diff --git a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.scss b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.scss index 8f7a46d4..5d4e87f3 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.scss +++ b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.scss @@ -1,4 +1,3 @@ :host { display: block; - //display: block !important; } diff --git a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.spec.ts index 295e74f4..6b3e8faa 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.spec.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.spec.ts @@ -26,4 +26,8 @@ describe('CarouselItemComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('carousel-item'); + }); }); diff --git a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.ts b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.ts index 5eebd09a..909eef35 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel-item/carousel-item.component.ts @@ -1,78 +1,56 @@ -import { AfterViewInit, ChangeDetectorRef, Component, HostBinding, Input, OnDestroy } from '@angular/core'; -import { NgIf } from '@angular/common'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; -import { Subscription } from 'rxjs'; +import { booleanAttribute, Component, DestroyRef, inject, input, linkedSignal } from '@angular/core'; import { CarouselService } from '../carousel.service'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; @Component({ selector: 'c-carousel-item', templateUrl: './carousel-item.component.html', styleUrls: ['./carousel-item.component.scss'], - standalone: true, - imports: [NgIf] + exportAs: 'cCarouselItem', + host: { + class: 'carousel-item', + '[class.active]': 'active()', + '[attr.role]': 'role()' + } }) -export class CarouselItemComponent implements OnDestroy, AfterViewInit { - - static ngAcceptInputType_active: BooleanInput; +export class CarouselItemComponent { + readonly #destroyRef = inject(DestroyRef); + readonly #carouselService = inject(CarouselService); index?: number; - private carouselIndexSubscription?: Subscription; /** * @ignore */ - @Input() - set active(value) { - this._active = coerceBooleanProperty(value); - this.changeDetectorRef.markForCheck(); - } - - get active(): boolean { - return this._active; - } + readonly activeInput = input(false, { transform: booleanAttribute, alias: 'active' }); - private _active = false; + readonly active = linkedSignal({ + source: this.activeInput, + computation: (value) => { + return value; + } + }); /** * Time delay before cycling to next item. If -1, uses carousel interval value. - * @type number + * @return number * @default -1 */ - @Input() interval: number = -1; - - @HostBinding('class') - get hostClasses(): any { - return { - 'carousel-item': true, - active: this.active - }; - } + readonly interval = input(-1); - constructor( - private carouselService: CarouselService, - private changeDetectorRef: ChangeDetectorRef - ) {} - - ngOnDestroy(): void { - this.carouselStateSubscribe(false); - } + /** + * Carousel item role. + * @return string + * @default 'group' + */ + readonly role = input('group'); - ngAfterViewInit(): void { - setTimeout(() => { - this.carouselStateSubscribe(); + constructor() { + this.#carouselService.carouselIndex$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((nextIndex) => { + if ('active' in nextIndex) { + this.active.set(nextIndex.active === this.index); + } }); } - - private carouselStateSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.carouselIndexSubscription = this.carouselService.carouselIndex$.subscribe((nextIndex) => { - if ('active' in nextIndex) { - this.active = nextIndex.active === this.index; - } - }); - } else { - this.carouselIndexSubscription?.unsubscribe(); - } - } } diff --git a/projects/coreui-angular/src/lib/carousel/carousel-state.ts b/projects/coreui-angular/src/lib/carousel/carousel-state.ts index 973c6eed..99f84859 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-state.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel-state.ts @@ -1,32 +1,33 @@ -import { Injectable } from '@angular/core'; +import { inject, Injectable } from '@angular/core'; import { ICarouselState } from './carousel-state.type'; import { CarouselService } from './carousel.service'; import { CarouselItemComponent } from './carousel-item/carousel-item.component'; @Injectable() export class CarouselState { - private _state: ICarouselState = { + readonly #carouselService = inject(CarouselService); + + #state = { activeItemIndex: -1, animate: true, items: [], direction: 'next', - transition: 'slide' + transition: 'slide', + interval: 0 }; - constructor(private carouselService: CarouselService) {} - get state(): ICarouselState { - return this._state; + return this.#state; } set state(state) { - const prevState = { ...this._state }; - const nextState = { ...this._state, ...state }; - this._state = nextState; + const prevState = { ...this.#state }; + const nextState = { ...this.#state, ...state }; + this.#state = nextState; if (prevState.activeItemIndex !== nextState.activeItemIndex) { const activeItemIndex = this.state.activeItemIndex || 0; - const itemInterval = this.state.items && this.state.items[activeItemIndex]?.interval || -1; - this.carouselService.setIndex({ + const itemInterval = (this.state.items && this.state.items[activeItemIndex]?.interval()) || -1; + this.#carouselService.setIndex({ active: nextState.activeItemIndex, interval: itemInterval, lastItemIndex: (nextState.items?.length ?? 0) - 1 @@ -36,12 +37,12 @@ export class CarouselState { setItems(newItems: any): void { if (newItems.length) { - const itemsArray = newItems.toArray(); + const itemsArray = newItems; itemsArray.forEach((item: CarouselItemComponent, i: number) => { item.index = i; }); this.state = { - items: itemsArray + items: [...itemsArray] }; } else { this.reset(); @@ -49,7 +50,7 @@ export class CarouselState { } setNextIndex(nextIndex: any): void { - this.carouselService.setIndex(nextIndex); + this.#carouselService.setIndex(nextIndex); } direction(direction: 'next' | 'prev' = 'next'): number { @@ -57,9 +58,13 @@ export class CarouselState { const { activeItemIndex = -1, items } = this.state; const itemsCount = items?.length ?? 0; if (itemsCount > 0) { - return direction === 'next' ? - (activeItemIndex === itemsCount - 1 ? 0 : activeItemIndex + 1) : - (activeItemIndex === 0 ? itemsCount - 1 : activeItemIndex - 1); + return direction === 'next' + ? activeItemIndex === itemsCount - 1 + ? 0 + : activeItemIndex + 1 + : activeItemIndex === 0 + ? itemsCount - 1 + : activeItemIndex - 1; } else { return 0; } @@ -71,7 +76,8 @@ export class CarouselState { animate: true, items: [], direction: 'next', - transition: 'slide' + transition: 'slide', + interval: 0 }; } } diff --git a/projects/coreui-angular/src/lib/carousel/carousel-state.type.ts b/projects/coreui-angular/src/lib/carousel/carousel-state.type.ts index 6b549ddb..cfc2660d 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel-state.type.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel-state.type.ts @@ -1,17 +1,18 @@ import { CarouselItemComponent } from './carousel-item/carousel-item.component'; export interface ICarouselOptions { - interval?: number; - animate?: boolean; activeIndex?: number; + animate?: boolean; direction?: 'next' | 'prev'; + interval?: number; transition?: 'slide' | 'crossfade'; } export interface ICarouselState { activeItemIndex?: number; animate?: boolean; - items?: CarouselItemComponent[]; direction?: 'next' | 'prev'; + interval?: number; + items?: CarouselItemComponent[]; transition?: 'slide' | 'crossfade'; } diff --git a/projects/coreui-angular/src/lib/carousel/carousel.animation.ts b/projects/coreui-angular/src/lib/carousel/carousel.animation.ts index 85592a4b..18d7b6d8 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel.animation.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel.animation.ts @@ -1,142 +1,136 @@ -import { - animate, - group, - query, - state, - style, - transition, - trigger, -} from '@angular/animations'; +import { animate, animation, group, query, state, style, transition, trigger, useAnimation } from '@angular/animations'; -export function toLeft(fromState: any, toState: any): boolean { - return toState.left === true; +export function toSlideLeft(fromState: any, toState: any): boolean { + return toState.left === true && toState.type === 'slide'; } -export function toRight(fromState: any, toState: any): boolean { - return toState.left === false; + +export function toSlideRight(fromState: any, toState: any): boolean { + return toState.left === false && toState.type === 'slide'; +} + +export function toFadeLeft(fromState: any, toState: any): boolean { + return toState.left === true && toState.type !== 'slide'; +} + +export function toFadeRight(fromState: any, toState: any): boolean { + return toState.left === false && toState.type !== 'slide'; } -export const slideAnimation = trigger('slideAnimation', [ - state( - '*', - style({ transform: 'translateX(0)', display: 'block', opacity: 1 }) - ), - transition( - toLeft, - group([ - query( - ':leave', - [ - animate( - '0.6s ease-in-out', - style({ - transform: 'translateX(-100%)', - }) - ), - ], - { optional: true } - ), - query( - ':enter', - [ +export const slideAnimationLeft = animation( + group([ + query( + ':leave', + [ + animate( + '0.6s ease-in-out', style({ - transform: 'translateX(100%)', - }), - animate('0.6s ease-in-out', style('*')), - ], - { optional: true } - ), - ]) - ), - transition( - toRight, - group([ - query( - ':enter', - [ + transform: 'translateX(-100%)' + }) + ) + ], + { optional: true } + ), + query( + ':enter', + [ + style({ + transform: 'translateX(100%)' + }), + animate('0.6s ease-in-out', style('*')) + ], + { optional: true } + ) + ]) +); + +export const slideAnimationRight = animation( + group([ + query( + ':enter', + [ + style({ + transform: 'translateX(-100%)' + }), + animate('0.6s ease-in-out', style('*')) + ], + { optional: true } + ), + query( + ':leave', + [ + animate( + '0.6s ease-in-out', style({ - transform: 'translateX(-100%)', - }), - animate('0.6s ease-in-out', style('*')), - ], - { optional: true } - ), - query( - ':leave', - [ - animate( - '0.6s ease-in-out', - style({ - transform: 'translateX(100%)', - }) - ), - ], - { optional: true } - ), - ]) - ), -]); + transform: 'translateX(100%)' + }) + ) + ], + { optional: true } + ) + ]) +); -export const fadeAnimation = trigger('fadeAnimation', [ - state( - '*', - style({ zIndex: 1, opacity: 1 }) - ), - transition( - toLeft, - group([ - query( - ':leave', - [ - animate( - '0.6s ease-in-out', - style({ - zIndex: 0, - opacity: 0, - }) - ), - ], - { optional: true } - ), - query( - ':enter', - [ +export const fadeAnimationLeft = animation( + group([ + query( + ':leave', + [ + animate( + '0.9s ease-in-out', style({ - zIndex: 1, - opacity: 1 - }), - animate('0.6s ease-in-out', style('*')), - ], - { optional: true } - ), - ]) - ), - transition( - toRight, - group([ - query( - ':enter', - [ + zIndex: 0, + opacity: 0 + }) + ) + ], + { optional: true } + ), + query( + ':enter', + [ + style({ + zIndex: 1, + opacity: 1 + }), + animate('0.6s ease-in-out', style('*')) + ], + { optional: true } + ) + ]) +); +export const fadeAnimationRight = animation( + group([ + query( + ':enter', + [ + style({ + zIndex: 1, + opacity: 1 + }), + animate('0.6s ease-in-out', style('*')) + ], + { optional: true } + ), + query( + ':leave', + [ + animate( + '0.9s ease-in-out', style({ - zIndex: 1, - opacity: 1 - }), - animate('0.6s ease-in-out', style('*')), - ], - { optional: true } - ), - query( - ':leave', - [ - animate( - '0.6s ease-in-out', - style({ - zIndex: 0, - opacity: 0, - }) - ), - ], - { optional: true } - ), - ]) - ), + zIndex: 0, + opacity: 0 + }) + ) + ], + { optional: true } + ) + ]) +); + +export const carouselPlay = trigger('carouselPlay', [ + state('*', style({ transform: 'translateX(0)', display: 'block', opacity: 1 })), + transition(toFadeLeft, useAnimation(fadeAnimationLeft)), + transition(toFadeRight, useAnimation(fadeAnimationRight)), + transition(toSlideLeft, useAnimation(slideAnimationLeft)), + transition(toSlideRight, useAnimation(slideAnimationRight)) ]); diff --git a/projects/coreui-angular/src/lib/carousel/carousel.config.ts b/projects/coreui-angular/src/lib/carousel/carousel.config.ts index 54dee000..fc9d8c55 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel.config.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel.config.ts @@ -1,15 +1,13 @@ import { Injectable } from '@angular/core'; -@Injectable() +@Injectable({ providedIn: 'root' }) export class CarouselConfig { /* Animate transition of slides */ activeIndex = 0; /* Animate transition of slides */ animate = true; - /* Darken controls, indicators, and captions */ - dark? = false; /* Default direction of auto changing of slides */ direction: 'next' | 'prev' = 'next'; /* Default interval of auto changing of slides */ - interval = 3000; + interval?: number; } diff --git a/projects/coreui-angular/src/lib/carousel/carousel.service.ts b/projects/coreui-angular/src/lib/carousel/carousel.service.ts index 74eee7a7..e2aa043d 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel.service.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel.service.ts @@ -9,12 +9,10 @@ export interface ICarouselIndex { @Injectable() export class CarouselService { - private carouselIndex = new BehaviorSubject({}); - carouselIndex$ = this.carouselIndex.asObservable(); - - constructor() {} + readonly #carouselIndex = new BehaviorSubject({}); + readonly carouselIndex$ = this.#carouselIndex.asObservable(); setIndex(index: ICarouselIndex): void { - this.carouselIndex.next(index); + this.#carouselIndex.next(index); } } diff --git a/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.spec.ts b/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.spec.ts index ac9b52a6..6605328f 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.spec.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.spec.ts @@ -1,20 +1,26 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { ComponentFixture, fakeAsync, TestBed, waitForAsync } from '@angular/core/testing'; import { CarouselComponent } from './carousel.component'; +import { CarouselService } from '../carousel.service'; describe('CarouselComponent', () => { let component: CarouselComponent; let fixture: ComponentFixture; + let service: CarouselService; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [CarouselComponent] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { + TestBed.configureTestingModule({ + imports: [CarouselComponent], + providers: [CarouselService] + }).compileComponents(); fixture = TestBed.createComponent(CarouselComponent); + service = TestBed.inject(CarouselService); component = fixture.componentInstance; fixture.detectChanges(); }); @@ -22,4 +28,28 @@ describe('CarouselComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('carousel'); + expect(fixture.nativeElement).toHaveClass('slide'); + fixture.componentRef.setInput('transition', 'crossfade'); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('carousel-fade'); + }); + + it('should have default values', () => { + expect(component.activeIndex()).toBe(0); + expect(component.animate()).toBe(true); + expect(component.direction()).toBe('next'); + expect(component.interval()).toBe(-1); + }); + + it('should call timer functions', fakeAsync(() => { + const spySet = spyOn(component, 'setTimer'); + const spyReset = spyOn(component, 'resetTimer'); + fixture.nativeElement.dispatchEvent(new Event('mouseenter')); + fixture.nativeElement.dispatchEvent(new Event('mouseleave')); + expect(spySet).toHaveBeenCalled(); + expect(spyReset).toHaveBeenCalled(); + })); }); diff --git a/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.ts b/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.ts index 9cc847c5..288832fd 100644 --- a/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.ts +++ b/projects/coreui-angular/src/lib/carousel/carousel/carousel.component.ts @@ -1,138 +1,176 @@ import { AfterContentInit, Component, + DestroyRef, + effect, ElementRef, - EventEmitter, - HostBinding, - Inject, - Input, + inject, + input, + linkedSignal, + numberAttribute, OnDestroy, OnInit, - Output + output } from '@angular/core'; -import { fromEvent, Subscription, withLatestFrom, zipWith } from 'rxjs'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { fromEvent, Subscription } from 'rxjs'; +import { filter, finalize, withLatestFrom, zipWith } from 'rxjs/operators'; -import { IntersectionService } from '../../services/intersection.service'; -import { IListenersConfig, ListenersService } from '../../services/listeners.service'; +import { IListenersConfig, IntersectionService, ListenersService } from '../../services'; +import { Triggers } from '../../coreui.types'; +import { ThemeDirective } from '../../shared/theme.directive'; import { CarouselState } from '../carousel-state'; import { CarouselService } from '../carousel.service'; import { CarouselConfig } from '../carousel.config'; -import { Triggers } from '../../coreui.types'; @Component({ selector: 'c-carousel', - template: '', + template: '', styleUrls: ['./carousel.component.scss'], - providers: [CarouselService, CarouselState, CarouselConfig, IntersectionService, ListenersService], - standalone: true + providers: [CarouselService, CarouselState, ListenersService], + hostDirectives: [{ directive: ThemeDirective, inputs: ['dark'] }], + exportAs: 'cCarousel', + host: { + class: 'carousel slide', + '[class.carousel-fade]': 'transition() === "crossfade" && animate()' + } }) export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit { + private config = inject(CarouselConfig); + + readonly #hostElement = inject(ElementRef); + readonly #carouselService = inject(CarouselService); + readonly #carouselState = inject(CarouselState); + readonly #intersectionService = inject(IntersectionService); + readonly #listenersService = inject(ListenersService); + + constructor() { + this.loadConfig(); + } + + loadConfig() { + this.activeIndex.update((activeIndex) => this.config?.activeIndex ?? activeIndex); + this.animate.update((animate) => this.config?.animate ?? animate); + this.direction.update((direction) => this.config?.direction ?? direction); + this.interval.update((interval) => this.config?.interval ?? interval); + } + /** * Index of the active item. - * @type number + * @return number */ - @Input() activeIndex = 0; + readonly activeIndexInput = input(0, { alias: 'activeIndex', transform: numberAttribute }); + + readonly activeIndex = linkedSignal({ + source: this.activeIndexInput, + computation: (value: number) => value + }); + /** * Carousel automatically starts cycle items. - * @type boolean + * @return boolean */ - @Input() animate = true; - /** - * Add darker controls, indicators, and captions. - * @type boolean - */ - @Input() dark?: boolean; + readonly animateInput = input(true, { alias: 'animate' }); + + readonly animate = linkedSignal({ + source: this.animateInput, + computation: (value: boolean) => value + }); + /** * Carousel direction. [docs] - * @type {'next' | 'prev'} + * @return {'next' | 'prev'} */ - @Input() direction: 'next' | 'prev' = 'next'; + readonly directionInput = input<'next' | 'prev'>('next', { alias: 'direction' }); + + readonly direction = linkedSignal({ + source: this.directionInput, + computation: (value: 'next' | 'prev') => value + }); + /** * The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle. - * @type number + * @return number * @default 0 */ - @Input() interval = 0; + readonly intervalInput = input(-1, { alias: 'interval', transform: numberAttribute }); + + readonly interval = linkedSignal({ + source: this.intervalInput, + computation: (value: number) => value + }); + + readonly #intervalEffect = effect(() => { + const interval = this.interval(); + this.#carouselState.state = { interval: interval }; + interval ? this.setTimer() : this.resetTimer(); + }); + /** * Sets which event handlers you’d like provided to your pause prop. You can specify one trigger or an array of them. - * @type {'hover' | 'focus' | 'click'} + * @return {'hover' | 'focus' | 'click'} */ - @Input() pause: Triggers | Triggers[] | false = 'hover'; + readonly pause = input('hover'); + /** * Support left/right swipe interactions on touchscreen devices. - * @type boolean + * @return boolean * @default true */ - @Input() touch: boolean = true; + readonly touch = input(true); + /** * Set type of the transition. - * @type {'slide' | 'crossfade'} + * @return {'slide' | 'crossfade'} * @default 'slide' */ - @Input() transition: 'slide' | 'crossfade' = 'slide'; + readonly transition = input<'slide' | 'crossfade'>('slide'); + /** * Set whether the carousel should cycle continuously or have hard stops. - * @type boolean + * @return boolean * @default true */ - @Input() wrap = true; + readonly wrap = input(true); + /** * Event emitted on carousel item change. [docs] - * @type number + * @return number */ - @Output() itemChange = new EventEmitter(); - - @HostBinding('class') - get hostClasses(): any { - return { - carousel: true, - slide: true, - 'carousel-dark': !!this.dark, - 'carousel-fade': this.transition === 'crossfade' - }; - } + readonly itemChange = output(); - private carouselIndexSubscription?: Subscription; - private timerId!: any; - private intersectingSubscription?: Subscription; + private timerId: ReturnType | undefined; private activeItemInterval = 0; private swipeSubscription?: Subscription; - - constructor( - @Inject(CarouselConfig) private config: CarouselConfig, - private hostElement: ElementRef, - private carouselService: CarouselService, - private carouselState: CarouselState, - private intersectionService: IntersectionService, - private listenersService: ListenersService - ) { - Object.assign(this, config); - } + readonly #destroyRef = inject(DestroyRef); ngOnInit(): void { this.carouselStateSubscribe(); } ngOnDestroy(): void { + this.resetTimer(); this.clearListeners(); - this.carouselStateSubscribe(false); - this.intersectionServiceSubscribe(false); this.swipeSubscribe(false); } ngAfterContentInit(): void { - this.intersectionService.createIntersectionObserver(this.hostElement); this.intersectionServiceSubscribe(); - this.carouselState.state = { activeItemIndex: this.activeIndex, animate: this.animate }; + this.#carouselState.state = { + activeItemIndex: this.activeIndex(), + animate: this.animate(), + interval: this.interval(), + transition: this.transition() + }; this.setListeners(); this.swipeSubscribe(); } private setListeners(): void { const config: IListenersConfig = { - hostElement: this.hostElement, - trigger: this.pause || [], + hostElement: this.#hostElement, + trigger: this.pause() || [], callbackOff: () => { this.setTimer(); }, @@ -140,78 +178,86 @@ export class CarouselComponent implements OnInit, OnDestroy, AfterContentInit { this.resetTimer(); } }; - this.listenersService.setListeners(config); + this.#listenersService.setListeners(config); } private clearListeners(): void { - this.listenersService.clearListeners(); + this.#listenersService.clearListeners(); } set visible(value) { - this._visible = value; + this.#visible = value; } get visible() { - return this._visible; + return this.#visible; } - private _visible: boolean = true; + #visible: boolean = true; setTimer(): void { - const interval = this.activeItemInterval || 0; + const interval = this.activeItemInterval || this.interval(); + const direction = this.direction(); this.resetTimer(); if (interval > 0) { this.timerId = setTimeout(() => { - const nextIndex = this.carouselState.direction(this.direction); - this.carouselState.state = { activeItemIndex: nextIndex }; + const nextIndex = this.#carouselState.direction(direction); + this.#carouselState.state = { activeItemIndex: nextIndex }; }, interval); } } resetTimer(): void { clearTimeout(this.timerId); + this.timerId = undefined; } - private carouselStateSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.carouselIndexSubscription = this.carouselService.carouselIndex$.subscribe((nextItem) => { - if ('active' in nextItem) { - this.itemChange.emit(nextItem.active); - } - this.activeItemInterval = typeof nextItem.interval === 'number' && nextItem.interval > -1 ? nextItem.interval : this.interval; - const isLastItem = ((nextItem.active === nextItem.lastItemIndex) && this.direction === 'next') || ((nextItem.active === 0) && this.direction === 'prev'); - !this.wrap && isLastItem ? this.resetTimer() : this.setTimer(); - }); - } else { - this.carouselIndexSubscription?.unsubscribe(); - } + private carouselStateSubscribe(): void { + this.#carouselService.carouselIndex$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((nextItem) => { + if ('active' in nextItem && typeof nextItem.active === 'number') { + this.itemChange?.emit(nextItem.active); + } + this.activeItemInterval = + typeof nextItem.interval === 'number' && nextItem.interval > -1 ? nextItem.interval : this.interval(); + const direction = this.direction(); + const isLastItem = + (nextItem.active === nextItem.lastItemIndex && direction === 'next') || + (nextItem.active === 0 && direction === 'prev'); + !this.wrap() && isLastItem ? this.resetTimer() : this.setTimer(); + }); } - private intersectionServiceSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.intersectingSubscription = this.intersectionService.intersecting$.subscribe(isIntersecting => { - this.visible = isIntersecting; - isIntersecting ? this.setTimer() : this.resetTimer(); + private intersectionServiceSubscribe(): void { + this.#intersectionService.createIntersectionObserver(this.#hostElement); + this.#intersectionService.intersecting$ + .pipe( + filter((next) => next.hostElement === this.#hostElement), + finalize(() => { + this.#intersectionService.unobserve(this.#hostElement); + }), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe((next) => { + this.visible = next.isIntersecting; + next.isIntersecting ? this.setTimer() : this.resetTimer(); }); - } else { - this.intersectingSubscription?.unsubscribe(); - } } private swipeSubscribe(subscribe: boolean = true): void { - if (this.touch && subscribe) { - const carouselElement = this.hostElement.nativeElement; + if (this.touch() && subscribe) { + const carouselElement = this.#hostElement.nativeElement; const touchStart$ = fromEvent(carouselElement, 'touchstart'); const touchEnd$ = fromEvent(carouselElement, 'touchend'); const touchMove$ = fromEvent(carouselElement, 'touchmove'); - this.swipeSubscription = touchStart$.pipe(zipWith(touchEnd$.pipe(withLatestFrom(touchMove$)))) + this.swipeSubscription = touchStart$ + .pipe(zipWith(touchEnd$.pipe(withLatestFrom(touchMove$))), takeUntilDestroyed(this.#destroyRef)) .subscribe(([touchstart, [touchend, touchmove]]) => { touchstart.stopPropagation(); touchmove.stopPropagation(); - const distanceX = touchstart.touches[0].clientX - touchmove.touches[0].clientX; + const distanceX = touchstart.touches[0]?.clientX - touchmove.touches[0]?.clientX || 0; if (Math.abs(distanceX) > 0.3 * carouselElement.clientWidth && touchstart.timeStamp <= touchmove.timeStamp) { - const nextIndex = this.carouselState.direction(distanceX > 0 ? 'next' : 'prev'); - this.carouselState.state = { activeItemIndex: nextIndex }; + const nextIndex = this.#carouselState.direction(distanceX > 0 ? 'next' : 'prev'); + this.#carouselState.state = { activeItemIndex: nextIndex }; } }); } else { diff --git a/projects/coreui-angular/src/lib/collapse/collapse.animations.ts b/projects/coreui-angular/src/lib/collapse/collapse.animations.ts index 68d7df42..4ba17a63 100644 --- a/projects/coreui-angular/src/lib/collapse/collapse.animations.ts +++ b/projects/coreui-angular/src/lib/collapse/collapse.animations.ts @@ -1,24 +1,12 @@ import { animate, animation, style } from '@angular/animations'; -export const expandAnimation = animation([ - animate('{{ time }} {{ easing }}') -]); +export const expandAnimation = animation([animate('{{ time }} {{ easing }}')]); export const collapseAnimation = animation([ style({ height: '*', minHeight: '*' }), - animate('{{ time }} {{ easing }}', - style({ height: 0, minHeight: 0 }) - ) + animate('{{ time }} {{ easing }}', style({ height: 0, minHeight: 0 })) ]); -export const expandHorizontalAnimation = animation([ - animate('{{ time }} {{ easing }}') -]); +export const expandHorizontalAnimation = animation([animate('{{ time }} {{ easing }}')]); -export const collapseHorizontalAnimation = animation([ - // style({ opacity: '*' }), - animate( - '{{ time }} {{ easing }}' - // style({ opacity: 0 }) - ) -]); +export const collapseHorizontalAnimation = animation([animate('{{ time }} {{ easing }}')]); diff --git a/projects/coreui-angular/src/lib/collapse/collapse.directive.spec.ts b/projects/coreui-angular/src/lib/collapse/collapse.directive.spec.ts index cc45eeeb..5212c6fa 100644 --- a/projects/coreui-angular/src/lib/collapse/collapse.directive.spec.ts +++ b/projects/coreui-angular/src/lib/collapse/collapse.directive.spec.ts @@ -1,46 +1,56 @@ import { CollapseDirective } from './collapse.directive'; -import { Component, DebugElement, ElementRef, Renderer2, Type } from '@angular/core'; -import { AnimationBuilder } from '@angular/animations'; -import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { By } from '@angular/platform-browser'; +import { Component, DebugElement, ElementRef, Renderer2 } from '@angular/core'; +import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; +import { By } from '@angular/platform-browser'; class MockElementRef extends ElementRef {} @Component({ - template: `
` + template: '
Test
', + imports: [CollapseDirective] }) -class TestComponent {} +class TestComponent { + horizontal = false; + visible = false; +} describe('CollapseDirective', () => { - let component: TestComponent; let fixture: ComponentFixture; let elementRef: DebugElement; - let renderer: Renderer2; - let animationBuilder: AnimationBuilder; beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent], - imports: [CollapseDirective, NoopAnimationsModule], - providers: [ - { provide: ElementRef, useClass: MockElementRef }, - { provide: AnimationBuilder }, - Renderer2 - ] + imports: [TestComponent, CollapseDirective, NoopAnimationsModule], + providers: [{ provide: ElementRef, useClass: MockElementRef }, Renderer2] }); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; elementRef = fixture.debugElement.query(By.directive(CollapseDirective)); - renderer = fixture.componentRef.injector.get(Renderer2 as Type); - + component.visible = false; fixture.detectChanges(); // initial binding }); it('should create an instance', () => { - const directive = new CollapseDirective(elementRef, renderer, animationBuilder); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new CollapseDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should have css classes', fakeAsync(() => { + expect(elementRef.nativeElement.style.display).toContain('none'); + expect(elementRef.nativeElement).not.toHaveClass('collapse-horizontal'); + component.horizontal = true; + component.visible = true; + fixture.detectChanges(); + expect(elementRef.nativeElement).toHaveClass('collapse-horizontal'); + expect(elementRef.nativeElement.style.display).toBe(''); + component.horizontal = false; + component.visible = false; + fixture.detectChanges(); + expect(elementRef.nativeElement).not.toHaveClass('collapse-horizontal'); + })); }); diff --git a/projects/coreui-angular/src/lib/collapse/collapse.directive.ts b/projects/coreui-angular/src/lib/collapse/collapse.directive.ts index 54ec3c74..e055b0d1 100644 --- a/projects/coreui-angular/src/lib/collapse/collapse.directive.ts +++ b/projects/coreui-angular/src/lib/collapse/collapse.directive.ts @@ -1,20 +1,20 @@ +import { AnimationBuilder, AnimationPlayer, useAnimation } from '@angular/animations'; + import { - AfterViewInit, + afterNextRender, + booleanAttribute, + computed, Directive, - DoCheck, + effect, ElementRef, - EventEmitter, - HostBinding, - Input, - OnChanges, + inject, + input, + linkedSignal, OnDestroy, - Output, + output, Renderer2, - SimpleChanges + signal } from '@angular/core'; -import { AnimationBuilder, AnimationPlayer, useAnimation } from '@angular/animations'; - -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { collapseAnimation, @@ -23,211 +23,171 @@ import { expandHorizontalAnimation } from './collapse.animations'; -// todo -// tslint:disable-next-line:no-conflicting-lifecycle @Directive({ selector: '[cCollapse]', exportAs: 'cCollapse', - standalone: true + host: { '[class]': 'hostClasses()', '[style]': '{ display: "none" }' } }) -export class CollapseDirective implements OnChanges, OnDestroy, DoCheck, AfterViewInit { - - static ngAcceptInputType_horizontal: BooleanInput; - static ngAcceptInputType_navbar: BooleanInput; - static ngAcceptInputType_visible: BooleanInput; +export class CollapseDirective implements OnDestroy { + readonly #animationBuilder = inject(AnimationBuilder); + readonly #hostElement = inject(ElementRef); + readonly #renderer = inject(Renderer2); + #player: AnimationPlayer | undefined = undefined; + + constructor() { + afterNextRender({ + read: () => { + this.#initialized.set(true); + } + }); + } /** * @ignore */ - @Input() - set animate(value: boolean) { - this._animate = value; - } - - get animate(): boolean { - return this._animate; - } + readonly animateInput = input(true, { transform: booleanAttribute, alias: 'animate' }); - private _animate = true; + readonly animate = linkedSignal({ + source: this.animateInput, + computation: (value: boolean) => value + }); /** * Set horizontal collapsing to transition the width instead of height. + * @type boolean + * @default false */ - @Input() - set horizontal(value: boolean) { - this._horizontal = coerceBooleanProperty(value); - } - - get horizontal(): boolean { - return this._horizontal; - } - - private _horizontal: boolean = false; + readonly horizontal = input(false, { transform: booleanAttribute }); /** * Toggle the visibility of collapsible element. + * @type boolean + * @default false */ - @Input() - set visible(value) { - this._visible = coerceBooleanProperty(value); - } + readonly visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' }); - get visible(): boolean { - return this._visible; - } + readonly visibleChange = output(); - private _visible = false; + readonly visible = linkedSignal({ source: this.visibleInput, computation: (value: boolean) => value }); + + readonly #initialized = signal(false); + + readonly #visibleEffect = effect(() => { + const visible = this.visible(); + if (this.#initialized()) { + this.createPlayer(visible); + } + }); /** * Add `navbar` prop for grouping and hiding navbar contents by a parent breakpoint. + * @type boolean + * @default false */ - @Input() - set navbar(value: boolean) { - this._navbar = coerceBooleanProperty(value); - }; - - get navbar() { - return this._navbar; - } - - private _navbar = false; + readonly navbar = input(false, { transform: booleanAttribute }); /** * @ignore */ - @Input() duration = '350ms'; + readonly duration = input('350ms'); + /** * @ignore */ - @Input() transition = 'ease'; + readonly transition = input('ease'); + /** * Event emitted on visibility change. [docs] * @type string */ - @Output() collapseChange = new EventEmitter(); - - private player!: AnimationPlayer; - private readonly host: HTMLElement; - // private scrollHeight!: number; - private scrollWidth!: number; - private collapsing: boolean = false; - - constructor( - private hostElement: ElementRef, - private renderer: Renderer2, - private animationBuilder: AnimationBuilder - ) { - this.host = this.hostElement.nativeElement; - this.renderer.setStyle(this.host, 'display', 'none'); - } + readonly collapseChange = output(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { - 'navbar-collapse': this.navbar, - 'collapse-horizontal': this.horizontal - }; - } - - ngAfterViewInit(): void { - if (this.visible) { - this.toggle(); - } - } + 'navbar-collapse': this.navbar(), + 'collapse-horizontal': this.horizontal() + } as Record; + }); ngOnDestroy(): void { this.destroyPlayer(); } - ngOnChanges(changes: SimpleChanges): void { - if (changes['visible']) { - if (!changes['visible'].firstChange || !changes['visible'].currentValue) { - this.toggle(changes['visible'].currentValue); - } - } - } - - ngDoCheck(): void { - if (this._visible !== this.visible) { - this.toggle(); - } - } - - toggle(visible = this.visible): void { - this.createPlayer(visible); - this.player?.play(); + toggle(visible = !this.visible()): void { + this.visible.set(visible); } destroyPlayer(): void { - this.player?.destroy(); + this.#player?.destroy(); + this.#player = undefined; } - createPlayer(visible: boolean = this.visible): void { - if (this.player?.hasStarted()) { + createPlayer(visible: boolean = this.visible()): void { + if (this.#player?.hasStarted()) { this.destroyPlayer(); } + const host: HTMLElement = this.#hostElement.nativeElement; + if (visible) { - this.renderer.removeStyle(this.host, 'display'); + this.#renderer.removeStyle(host, 'display'); } - const duration = this.animate ? this.duration : '0ms'; + const duration = this.animate() ? this.duration() : '0ms'; - const expand = this.horizontal ? expandHorizontalAnimation : expandAnimation; - const collapse = this.horizontal ? collapseHorizontalAnimation : collapseAnimation; + const expand = this.horizontal() ? expandHorizontalAnimation : expandAnimation; + const collapse = this.horizontal() ? collapseHorizontalAnimation : collapseAnimation; - const dimension = this.horizontal ? 'width' : 'height'; + const dimension = this.horizontal() ? 'width' : 'height'; const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1); const scrollSize = `scroll${capitalizedDimension}`; - const animationFactory = this.animationBuilder.build( - useAnimation(visible ? expand : collapse, { params: { time: duration, easing: this.transition } }) + const animationFactory = this.#animationBuilder?.build( + useAnimation(visible ? expand : collapse, { params: { time: duration, easing: this.transition() } }) ); - this.player = animationFactory.create(this.host); + this.#player = animationFactory.create(host); - this.renderer.setStyle(this.host, dimension, visible ? 0 : `${this.host.getBoundingClientRect()[dimension]}px`); + !visible && host.offsetHeight && host.style[dimension] && host.scrollHeight; - !visible && this.host.offsetHeight; + this.#renderer.setStyle(host, dimension, visible ? 0 : `${host.getBoundingClientRect()[dimension]}px`); - this.player.onStart(() => { + this.#player.onStart(() => { this.setMaxSize(); - this.renderer.removeClass(this.host, 'collapse'); - this.renderer.addClass(this.host, 'collapsing'); - this.renderer.removeClass(this.host, 'show'); - this.collapsing = true; - if (visible) { - // @ts-ignore - this.renderer.setStyle(this.host, dimension, `${this.host[scrollSize]}px`); - } else { - this.renderer.setStyle(this.host, dimension, ''); + this.#renderer.removeClass(host, 'collapse'); + this.#renderer.addClass(host, 'collapsing'); + this.#renderer.removeClass(host, 'show'); + this.#renderer.setStyle(host, dimension, visible ? `${(host as any)[scrollSize]}px` : ''); + if (this.#player) { + this.collapseChange?.emit(visible ? 'opening' : 'collapsing'); } - this.collapseChange.emit(visible ? 'opening' : 'collapsing'); }); - this.player.onDone(() => { - this.visible = visible; - this.collapsing = false; - this.renderer.removeClass(this.host, 'collapsing'); - this.renderer.addClass(this.host, 'collapse'); + + this.#player.onDone(() => { + this.#renderer.removeClass(host, 'collapsing'); + this.#renderer.addClass(host, 'collapse'); if (visible) { - this.renderer.addClass(this.host, 'show'); - this.renderer.setStyle(this.host, dimension, ''); + this.#renderer.addClass(host, 'show'); + this.#renderer.setStyle(host, dimension, ''); } else { - this.renderer.removeClass(this.host, 'show'); + this.#renderer.removeClass(host, 'show'); + } + if (this.#player) { + this.collapseChange?.emit(visible ? 'open' : 'collapsed'); + this.visibleChange?.emit(visible); } - this.collapseChange.emit(visible ? 'open' : 'collapsed'); + this.destroyPlayer(); }); + + this.#player?.play(); } setMaxSize() { - // setTimeout(() => { - if (this.horizontal) { - this.scrollWidth = this.host.scrollWidth; - this.scrollWidth > 0 && this.renderer.setStyle(this.host, 'maxWidth', `${this.scrollWidth}px`); + const host = this.#hostElement.nativeElement; + if (this.horizontal()) { + host.scrollWidth > 0 && this.#renderer.setStyle(host, 'maxWidth', `${host.scrollWidth}px`); // } else { - // this.scrollHeight = this.host.scrollHeight; - // this.scrollHeight > 0 && this.renderer.setStyle(this.host, 'maxHeight', `${this.scrollHeight}px`); + // host.scrollHeight > 0 && this.#renderer.setStyle(host, 'maxHeight', `${host.scrollHeight}px`); } - // }); } } diff --git a/projects/coreui-angular/src/lib/coreui.types.ts b/projects/coreui-angular/src/lib/coreui.types.ts index af22f41a..1dd95bdc 100644 --- a/projects/coreui-angular/src/lib/coreui.types.ts +++ b/projects/coreui-angular/src/lib/coreui.types.ts @@ -1,5 +1,10 @@ import { IsActiveMatchOptions } from '@angular/router'; +export declare type BooleanInput = string | boolean | null | undefined; +export declare type NumberInput = string | number | null | undefined; + +export type NgCssClass = string | string[] | Set | { [klass: string]: any }; + export enum BreakpointInfix { xs = 'xs', sm = 'sm', @@ -24,10 +29,19 @@ export type Colors = | 'info' | 'dark' | 'light' + | 'primary-gradient' + | 'secondary-gradient' + | 'success-gradient' + | 'danger-gradient' + | 'warning-gradient' + | 'info-gradient' + | 'dark-gradient' + | 'light-gradient' | string; -export type ColorsGradient = - | `${Colors}-gradient`; +// export type ColorsGradient = +// | Colors +// | `${Colors}-gradient`; export type BackgroundColors = Colors | 'body' | 'white' | 'transparent'; @@ -35,33 +49,26 @@ export type Directions = 'down' | 'up' | 'start' | 'end' | ''; export type TextColors = | Colors + | 'primary-emphasis' + | 'secondary-emphasis' + | 'success-emphasis' + | 'danger-emphasis' + | 'warning-emphasis' + | 'info-emphasis' + | 'light-emphasis' | 'body' - | 'white' - | 'muted' + | 'body-emphasis' + | 'body-secondary' + | 'body-tertiary' + | 'black' | 'black-50' + | 'white' | 'white-50' - | 'high-emphasis' - | 'medium-emphasis' - | 'disabled' - | 'high-emphasis-inverse' - | 'medium-emphasis-inverse' - | 'disabled-inverse'; - -export type Alignment = - | 'baseline' - | 'top' - | 'middle' - | 'bottom' - | 'text-top' - | 'text-bottom'; + | string; -export type BadgePositions = - | 'top-start' - | 'top-end' - | 'bottom-end' - | 'bottom-start' - | string - | undefined; +export type Alignment = 'baseline' | 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom'; + +export type BadgePositions = 'top-start' | 'top-end' | 'bottom-end' | 'bottom-start' | string | undefined; export type Placements = | 'auto' @@ -95,7 +102,7 @@ export type Shapes = | 'rounded-3' | string; -export type Triggers = 'hover' | 'focus' | 'click'; +export type Triggers = 'hover' | 'focus' | 'click' | 'focusin'; export type Positions = 'fixed' | 'sticky'; diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-close/dropdown-close.directive.spec.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-close/dropdown-close.directive.spec.ts index 3a75bbe2..ebe72672 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-close/dropdown-close.directive.spec.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-close/dropdown-close.directive.spec.ts @@ -1,10 +1,69 @@ +import { Component, DebugElement, ElementRef, Renderer2, viewChild } from '@angular/core'; +import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; import { DropdownService } from '../dropdown.service'; import { DropdownCloseDirective } from './dropdown-close.directive'; +import { ButtonCloseDirective } from '../../button'; +import { DropdownComponent } from '../dropdown/dropdown.component'; +import { DropdownMenuDirective } from '../dropdown-menu/dropdown-menu.directive'; + +class MockElementRef extends ElementRef {} + +@Component({ + template: ` + +
+ +
+
+ `, + imports: [ButtonCloseDirective, DropdownComponent, DropdownMenuDirective, DropdownCloseDirective] +}) +class TestComponent { + disabled = false; + readonly dropdown = viewChild(DropdownComponent); +} describe('DropdownCloseDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let elementRef: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent], + providers: [{ provide: ElementRef, useClass: MockElementRef }, Renderer2, DropdownService] + }); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + elementRef = fixture.debugElement.query(By.directive(DropdownCloseDirective)); + component.disabled = false; + fixture.detectChanges(); // initial binding + }); + it('should create an instance', () => { - const dropdownService = new DropdownService(); - const directive = new DropdownCloseDirective(dropdownService); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new DropdownCloseDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should have css classes and attributes', fakeAsync(() => { + expect(elementRef.nativeElement).not.toHaveClass('disabled'); + expect(elementRef.nativeElement.getAttribute('aria-disabled')).toBeNull(); + expect(elementRef.nativeElement.getAttribute('tabindex')).toBe('0'); + component.disabled = true; + fixture.detectChanges(); + expect(elementRef.nativeElement).toHaveClass('disabled'); + expect(elementRef.nativeElement.getAttribute('aria-disabled')).toBe('true'); + expect(elementRef.nativeElement.getAttribute('tabindex')).toBe('-1'); + })); + + it('should call event handling functions', fakeAsync(() => { + expect(component.dropdown()?.visible()).toBeTrue(); + elementRef.nativeElement.dispatchEvent(new Event('click')); + elementRef.nativeElement.dispatchEvent(new KeyboardEvent('keyup', { key: 'Enter' })); + expect(component.dropdown()?.visible()).toBeFalse(); + })); }); diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-close/dropdown-close.directive.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-close/dropdown-close.directive.ts index 0fd38fde..74b381fc 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-close/dropdown-close.directive.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-close/dropdown-close.directive.ts @@ -1,66 +1,64 @@ -import { AfterViewInit, Directive, HostBinding, HostListener, Input, Optional } from '@angular/core'; +import { AfterViewInit, booleanAttribute, Directive, inject, input, linkedSignal } from '@angular/core'; import { DropdownService } from '../dropdown.service'; import { DropdownComponent } from '../dropdown/dropdown.component'; @Directive({ selector: '[cDropdownClose]', exportAs: 'cDropdownClose', - standalone: true + host: { + '[class.disabled]': 'disabled()', + '[attr.aria-disabled]': 'disabled() || null', + '[attr.tabindex]': 'tabIndex()', + '(click)': 'onClick($event)', + '(keyup)': 'onKeyUp($event)' + } }) export class DropdownCloseDirective implements AfterViewInit { - - constructor( - private dropdownService: DropdownService, - @Optional() public dropdown?: DropdownComponent - ) { } + #dropdownService = inject(DropdownService); + dropdown? = inject(DropdownComponent, { optional: true }); /** * Disables a dropdown-close directive. - * @type boolean - * @default undefined + * @return boolean + * @default false */ - @Input() disabled?: boolean; + readonly disabledInput = input(false, { transform: booleanAttribute, alias: 'disabled' }); + + readonly disabled = linkedSignal({ + source: this.disabledInput, + computation: (value) => value || null + }); - @Input() dropdownComponent?: DropdownComponent; + readonly dropdownComponent = input(); ngAfterViewInit(): void { - if (this.dropdownComponent) { - this.dropdown = this.dropdownComponent; - this.dropdownService = this.dropdownComponent?.dropdownService; + const dropdownComponent = this.dropdownComponent(); + if (dropdownComponent) { + this.dropdown = dropdownComponent; + this.#dropdownService = dropdownComponent?.dropdownService; } } - @HostBinding('class') - get hostClasses(): any { - return { - disabled: this.disabled - }; - } + readonly tabIndexInput = input(null, { alias: 'tabIndex' }); - @HostBinding('attr.tabindex') - @Input() - set tabIndex(value: string | number | null) { - this._tabIndex = value; - } - get tabIndex() { - return this.disabled ? '-1' : this._tabIndex; - } - private _tabIndex: string | number | null = null; + readonly tabIndex = linkedSignal({ + source: this.tabIndexInput, + computation: (value) => (this.disabled() ? '-1' : value) + }); - @HostBinding('attr.aria-disabled') - get isDisabled(): boolean | null { - return this.disabled || null; + onClick($event: MouseEvent): void { + this.handleToggle(); } - @HostListener('click', ['$event']) - private onClick($event: MouseEvent): void { - !this.disabled && this.dropdownService.toggle({ visible: false, dropdown: this.dropdown }); + onKeyUp($event: KeyboardEvent): void { + if ($event.key === 'Enter') { + this.handleToggle(); + } } - @HostListener('keyup', ['$event']) - private onKeyUp($event: KeyboardEvent): void { - if ($event.key === 'Enter') { - !this.disabled && this.dropdownService.toggle({ visible: false, dropdown: this.dropdown }); + private handleToggle(): void { + if (!this.disabled()) { + this.#dropdownService.toggle({ visible: false, dropdown: this.dropdown }); } } } diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-divider/dropdown-divider.directive.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-divider/dropdown-divider.directive.ts index 9c69cbd1..045524e2 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-divider/dropdown-divider.directive.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-divider/dropdown-divider.directive.ts @@ -1,16 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cDropdownDivider]', - standalone: true + host: { class: 'dropdown-divider' } }) -export class DropdownDividerDirective { - - @HostBinding('class') - get hostClasses(): any { - return { - 'dropdown-divider': true - }; - } - -} +export class DropdownDividerDirective {} diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-header/dropdown-header.directive.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-header/dropdown-header.directive.ts index 0ab65c01..1410511a 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-header/dropdown-header.directive.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-header/dropdown-header.directive.ts @@ -1,15 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cDropdownHeader]', - standalone: true, + host: { class: 'dropdown-header' } }) -export class DropdownHeaderDirective { - @HostBinding('class') - get hostClasses(): any { - return { - 'dropdown-header': true, - }; - } - -} +export class DropdownHeaderDirective {} diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item-plain.directive.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item-plain.directive.ts index 2b406e7d..adc25756 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item-plain.directive.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item-plain.directive.ts @@ -1,14 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cDropdownItemPlain]', - standalone: true + host: { class: 'dropdown-item-text' } }) -export class DropdownItemPlainDirective { - @HostBinding('class') - get hostClasses(): any { - return { - 'dropdown-item-text': true - }; - } -} +export class DropdownItemPlainDirective {} diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item.directive.spec.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item.directive.spec.ts index efecbdb3..b5722f2e 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item.directive.spec.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item.directive.spec.ts @@ -1,11 +1,87 @@ -import { DropdownService } from '../dropdown.service'; +import { Component, DebugElement, DOCUMENT, ElementRef, Renderer2, viewChild } from '@angular/core'; +import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; + import { DropdownItemDirective } from './dropdown-item.directive'; +import { DropdownService } from '../dropdown.service'; +import { DropdownComponent } from '../dropdown/dropdown.component'; +import { DropdownMenuDirective } from '../dropdown-menu/dropdown-menu.directive'; + +class MockElementRef extends ElementRef {} + +@Component({ + template: ` + +
    +
  • + +
  • +
+
+ `, + imports: [DropdownComponent, DropdownMenuDirective, DropdownItemDirective] +}) +class TestComponent { + disabled = false; + active = false; + readonly dropdown = viewChild(DropdownComponent); + readonly item = viewChild(DropdownItemDirective); +} describe('DropdownItemDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let elementRef: DebugElement; + let document: Document; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent], + providers: [{ provide: ElementRef, useClass: MockElementRef }, Renderer2, DropdownService] + }); + + document = TestBed.inject(DOCUMENT); + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + elementRef = fixture.debugElement.query(By.directive(DropdownItemDirective)); + component.disabled = false; + fixture.detectChanges(); // initial binding + }); it('should create an instance', () => { - const dropdownService = new DropdownService(); - const directive = new DropdownItemDirective(dropdownService); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new DropdownItemDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should have css classes and attributes', fakeAsync(() => { + expect(elementRef.nativeElement).not.toHaveClass('disabled'); + expect(elementRef.nativeElement.getAttribute('aria-disabled')).toBeNull(); + expect(elementRef.nativeElement.getAttribute('aria-current')).toBeNull(); + expect(elementRef.nativeElement.getAttribute('tabindex')).toBe('0'); + component.disabled = true; + component.active = true; + fixture.detectChanges(); + expect(elementRef.nativeElement).toHaveClass('disabled'); + expect(elementRef.nativeElement.getAttribute('aria-disabled')).toBe('true'); + expect(elementRef.nativeElement.getAttribute('aria-current')).toBe('true'); + expect(elementRef.nativeElement.getAttribute('tabindex')).toBe('-1'); + })); + + it('should call event handling functions', fakeAsync(() => { + expect(component.dropdown()?.visible()).toBeTrue(); + elementRef.nativeElement.dispatchEvent(new Event('click')); + elementRef.nativeElement.dispatchEvent(new KeyboardEvent('keydown', { key: 'Tab' })); + elementRef.nativeElement.dispatchEvent(new KeyboardEvent('keyup', { key: 'Enter' })); + fixture.detectChanges(); + elementRef.nativeElement.focus(); + // @ts-ignore + const label = component.item()?.getLabel() ?? undefined; + expect(label).toBe('Action'); + component.item()?.focus(); + expect(document.activeElement).toBe(elementRef.nativeElement); + })); }); diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item.directive.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item.directive.ts index 1861605c..ffb44026 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item.directive.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-item/dropdown-item.directive.ts @@ -1,80 +1,103 @@ -import { Directive, HostBinding, HostListener, Input, Optional } from '@angular/core'; +import { FocusableOption, FocusOrigin } from '@angular/cdk/a11y'; +import { booleanAttribute, computed, Directive, ElementRef, inject, input, linkedSignal } from '@angular/core'; import { DropdownService } from '../dropdown.service'; import { DropdownComponent } from '../dropdown/dropdown.component'; @Directive({ selector: '[cDropdownItem]', exportAs: 'cDropdownItem', - standalone: true + host: { + class: 'dropdown-item', + '[class]': 'hostClasses()', + '[attr.tabindex]': 'tabIndex()', + '[attr.aria-current]': 'ariaCurrent()', + '[attr.aria-disabled]': 'disabled || null', + '[attr.role]': 'role()', + '(click)': 'onClick($event)', + '(keyup)': 'onKeyUp($event)' + } }) -export class DropdownItemDirective { +export class DropdownItemDirective implements FocusableOption { + readonly #elementRef: ElementRef = inject(ElementRef); + readonly #dropdownService = inject(DropdownService); + dropdown? = inject(DropdownComponent, { optional: true }); + /** * Set active state to a dropdown-item. - * @type boolean + * @return boolean * @default undefined */ - @Input() active?: boolean; + readonly active = input(); + /** * Configure dropdown-item close dropdown behavior. - * @type boolean + * @return boolean * @default true */ - @Input() autoClose: boolean = true; + readonly autoClose = input(true); + /** * Disables a dropdown-item. - * @type boolean + * @return boolean * @default undefined */ - @Input() disabled?: boolean; + readonly disabledInput = input(false, { transform: booleanAttribute, alias: 'disabled' }); - constructor( - private dropdownService: DropdownService, - @Optional() public dropdown?: DropdownComponent - ) { - } + readonly #disabled = linkedSignal({ + source: this.disabledInput, + computation: (value) => value + }); - @HostBinding('attr.aria-current') - get ariaCurrent(): string | null { - return this.active ? 'true' : null; + set disabled(value) { + this.#disabled.set(value); } - @HostBinding('class') - get hostClasses(): any { - return { - 'dropdown-item': true, - active: this.active, - disabled: this.disabled - }; + get disabled() { + return this.#disabled(); } - @HostBinding('attr.tabindex') - @Input() - set tabIndex(value: string | number | null) { - this._tabIndex = value; + readonly role = input('list-item'); + + readonly tabIndexInput = input('0', { alias: 'tabIndex' }); + + readonly tabIndex = linkedSignal({ + source: this.tabIndexInput, + computation: (value) => (this.disabled ? '-1' : value) + }); + + focus(origin?: FocusOrigin | undefined): void { + this.#elementRef?.nativeElement?.focus(); } - get tabIndex() { - return this.disabled ? '-1' : this._tabIndex; + + getLabel?(): string { + return this.#elementRef?.nativeElement?.textContent.trim(); } - private _tabIndex: string | number | null = null; - @HostBinding('attr.aria-disabled') - get isDisabled(): boolean | null { - return this.disabled || null; + readonly ariaCurrent = computed(() => { + return this.active() ? 'true' : null; + }); + + readonly hostClasses = computed(() => { + return { + 'dropdown-item': true, + active: this.active(), + disabled: this.disabled + } as Record; + }); + + onClick($event: MouseEvent): void { + this.handleInteraction(); } - @HostListener('click', ['$event']) - private onClick($event: MouseEvent): void { - if (this.autoClose) { - this.dropdownService.toggle({ visible: 'toggle', dropdown: this.dropdown }); + onKeyUp($event: KeyboardEvent): void { + if ($event.key === 'Enter') { + this.handleInteraction(); } } - @HostListener('keyup', ['$event']) - private onKeyUp($event: KeyboardEvent): void { - if ($event.key === 'Enter') { - if (this.autoClose) { - this.dropdownService.toggle({ visible: false, dropdown: this.dropdown }); - } + private handleInteraction(): void { + if (this.autoClose()) { + this.#dropdownService.toggle({ visible: 'toggle', dropdown: this.dropdown }); } } } diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-menu/dropdown-menu.directive.spec.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-menu/dropdown-menu.directive.spec.ts index d89e9253..4f2c1c5f 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-menu/dropdown-menu.directive.spec.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-menu/dropdown-menu.directive.spec.ts @@ -1,12 +1,100 @@ -import { ElementRef } from '@angular/core'; +import { Component, DebugElement, DOCUMENT, ElementRef, Renderer2, viewChild } from '@angular/core'; +import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; import { DropdownService } from '../dropdown.service'; import { DropdownMenuDirective } from './dropdown-menu.directive'; +import { DropdownComponent, DropdownToggleDirective } from '../dropdown/dropdown.component'; +import { DropdownItemDirective } from '../dropdown-item/dropdown-item.directive'; +import { ButtonDirective } from '../../button'; + +class MockElementRef extends ElementRef {} + +@Component({ + template: ` + + +
    +
  • + +
  • +
+
+ `, + imports: [DropdownComponent, DropdownMenuDirective, DropdownItemDirective, ButtonDirective, DropdownToggleDirective] +}) +class TestComponent { + visible = true; + alignment?: string; + readonly dropdown = viewChild(DropdownComponent); + readonly menu = viewChild(DropdownMenuDirective); + readonly item = viewChild(DropdownItemDirective); +} describe('DropdownMenuDirective', () => { - let elementRef: ElementRef; + let component: TestComponent; + let fixture: ComponentFixture; + let dropdownRef: DebugElement; + let elementRef: DebugElement; + let itemRef: DebugElement; + let document: Document; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent], + providers: [{ provide: ElementRef, useClass: MockElementRef }, Renderer2, DropdownService] + }); + document = TestBed.inject(DOCUMENT); + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + dropdownRef = fixture.debugElement.query(By.directive(DropdownComponent)); + elementRef = fixture.debugElement.query(By.directive(DropdownMenuDirective)); + itemRef = fixture.debugElement.query(By.directive(DropdownItemDirective)); + component.visible = true; + fixture.detectChanges(); // initial binding + }); + it('should create an instance', () => { - const dropdownService = new DropdownService(); - const directive = new DropdownMenuDirective(elementRef, dropdownService); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new DropdownMenuDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should have css classes', fakeAsync(() => { + component.visible = false; + fixture.detectChanges(); + expect(dropdownRef.nativeElement).not.toHaveClass('show'); + expect(elementRef.nativeElement).toHaveClass('dropdown-menu'); + expect(elementRef.nativeElement).not.toHaveClass('dropdown-menu-end'); + expect(elementRef.nativeElement).not.toHaveClass('dropdown-menu-start'); + expect(elementRef.nativeElement).not.toHaveClass('show'); + component.visible = true; + component.alignment = 'end'; + fixture.detectChanges(); + expect(dropdownRef.nativeElement).toHaveClass('show'); + expect(elementRef.nativeElement).toHaveClass('dropdown-menu-end'); + expect(elementRef.nativeElement).not.toHaveClass('dropdown-menu-start'); + expect(elementRef.nativeElement).toHaveClass('show'); + component.alignment = 'start'; + fixture.detectChanges(); + expect(elementRef.nativeElement).not.toHaveClass('dropdown-menu-end'); + expect(elementRef.nativeElement).toHaveClass('dropdown-menu-start'); + component.alignment = undefined; + fixture.detectChanges(); + expect(elementRef.nativeElement).not.toHaveClass('dropdown-menu-end'); + expect(elementRef.nativeElement).not.toHaveClass('dropdown-menu-start'); + })); + + it('should call event handling functions', fakeAsync(() => { + expect(document.activeElement).not.toEqual(elementRef.nativeElement); + elementRef.nativeElement.dispatchEvent(new KeyboardEvent('keydown', { code: 'Space' })); + elementRef.nativeElement.dispatchEvent(new KeyboardEvent('keyup', { key: 'Tab' })); + component.visible = true; + fixture.detectChanges(); + elementRef.nativeElement.dispatchEvent(new KeyboardEvent('keydown', { code: 'Space' })); + elementRef.nativeElement.dispatchEvent(new KeyboardEvent('keyup', { key: 'Tab' })); + elementRef.nativeElement.focus(); + fixture.detectChanges(); + expect(document.activeElement).toEqual(itemRef.nativeElement); + })); }); diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown-menu/dropdown-menu.directive.ts b/projects/coreui-angular/src/lib/dropdown/dropdown-menu/dropdown-menu.directive.ts index 99103ed1..d80248b0 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown-menu/dropdown-menu.directive.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown-menu/dropdown-menu.directive.ts @@ -1,76 +1,143 @@ -import { booleanAttribute, Directive, ElementRef, HostBinding, Input, OnDestroy, OnInit } from '@angular/core'; -import { Subscription } from 'rxjs'; +import { FocusKeyManager } from '@angular/cdk/a11y'; +import { + AfterContentInit, + booleanAttribute, + computed, + contentChildren, + DestroyRef, + Directive, + ElementRef, + forwardRef, + inject, + input, + linkedSignal, + OnInit +} from '@angular/core'; +import { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop'; +import { tap } from 'rxjs/operators'; + +import { ThemeDirective } from '../../shared/theme.directive'; +import { DropdownItemDirective } from '../dropdown-item/dropdown-item.directive'; import { DropdownService } from '../dropdown.service'; @Directive({ selector: '[cDropdownMenu]', exportAs: 'cDropdownMenu', - standalone: true + hostDirectives: [{ directive: ThemeDirective, inputs: ['dark'] }], + host: { + class: 'dropdown-menu', + '[class]': 'hostClasses()', + '[style]': 'hostStyles()', + '(keydown)': 'onKeyDown($event)', + '(keyup)': 'onKeyUp($event)' + } }) -export class DropdownMenuDirective implements OnInit, OnDestroy { - - constructor( - public elementRef: ElementRef, - private dropdownService: DropdownService - ) {} +export class DropdownMenuDirective implements OnInit, AfterContentInit { + readonly #destroyRef: DestroyRef = inject(DestroyRef); + public readonly elementRef: ElementRef = inject(ElementRef); + readonly #dropdownService: DropdownService = inject(DropdownService); + #focusKeyManager!: FocusKeyManager; /** * Set alignment of dropdown menu. - * @type {'start' | 'end' } + * @return 'start' | 'end' */ - @Input() alignment?: 'start' | 'end' | string; + readonly alignment = input<'start' | 'end' | string>(); /** * Toggle the visibility of dropdown menu component. + * @return boolean */ - @Input() visible = false; - - /** - * Sets a darker color scheme to match a dark navbar. - * @type boolean - */ - @Input({ transform: booleanAttribute }) dark: string | boolean = false; + readonly visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' }); - private dropdownStateSubscription!: Subscription; + readonly visible = linkedSignal({ + source: this.visibleInput, + computation: (value) => value + }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const alignment = this.alignment(); + const visible = this.visible(); return { 'dropdown-menu': true, - 'dropdown-menu-dark': this.dark, - [`dropdown-menu-${this.alignment}`]: !!this.alignment, - show: this.visible - }; - } + [`dropdown-menu-${alignment}`]: !!alignment, + show: visible + } as Record; + }); - @HostBinding('style') - get hostStyles() { + readonly hostStyles = computed(() => { // workaround for popper position calculate (see also: dropdown.component) + const visible = this.visible(); return { - visibility: this.visible ? null : '', - display: this.visible ? null : '' - }; + visibility: visible ? null : '', + display: visible ? null : '' + } as Record; + }); + + onKeyDown($event: KeyboardEvent): void { + if (!this.visible()) { + return; + } + if (['Space', 'ArrowDown'].includes($event.code)) { + $event.preventDefault(); + } + this.#focusKeyManager.onKeydown($event); } - ngOnInit(): void { - this.dropdownStateSubscribe(); + onKeyUp($event: KeyboardEvent): void { + if (!this.visible()) { + return; + } + if (['Tab'].includes($event.key)) { + if (this.#focusKeyManager.activeItem) { + $event.shiftKey ? this.#focusKeyManager.setPreviousItemActive() : this.#focusKeyManager.setNextItemActive(); + } else { + this.#focusKeyManager.setFirstItemActive(); + } + } } - ngOnDestroy(): void { - this.dropdownStateSubscribe(false); + readonly dropdownItemsContent = contentChildren( + forwardRef(() => DropdownItemDirective), + { descendants: true } + ); + + readonly items$ = toObservable(this.dropdownItemsContent); + + ngAfterContentInit(): void { + this.focusKeyManagerInit(); + + this.items$ + .pipe( + tap((change) => { + this.focusKeyManagerInit(); + }), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe(); } - private dropdownStateSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.dropdownStateSubscription = - this.dropdownService.dropdownState$.subscribe((state) => { + ngOnInit(): void { + this.#dropdownService.dropdownState$ + .pipe( + tap((state) => { if ('visible' in state) { - this.visible = - state.visible === 'toggle' ? !this.visible : state.visible; + this.visible.update((visible) => (state.visible === 'toggle' ? !visible : state.visible)); + if (!this.visible()) { + this.#focusKeyManager?.setActiveItem(-1); + } } - }); - } else { - this.dropdownStateSubscription?.unsubscribe(); - } + }), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe(); + } + + private focusKeyManagerInit(): void { + this.#focusKeyManager = new FocusKeyManager(this.dropdownItemsContent()) + .withHomeAndEnd() + .withPageUpDown() + .withWrap() + .skipPredicate((dropdownItem) => dropdownItem.disabled === true); } } diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown.service.ts b/projects/coreui-angular/src/lib/dropdown/dropdown.service.ts index 828c38e9..3378607a 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown.service.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown.service.ts @@ -12,9 +12,6 @@ export class DropdownService { private dropdownState = new BehaviorSubject({}); dropdownState$ = this.dropdownState.asObservable(); - constructor() { - } - toggle(state: IDropdownState): void { this.dropdownState.next(state); } diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.scss b/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.scss index 5b79151c..a6336a24 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.scss +++ b/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.scss @@ -2,7 +2,6 @@ :host-context(.dropdown, .dropup):not(.btn-group) { display: block; - min-width: fit-content; } :host-context(.dropstart, .dropend):not(.btn-group) { diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.spec.ts b/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.spec.ts index 9edb1ff1..fdedf013 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.spec.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.spec.ts @@ -1,6 +1,11 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; -import { DropdownComponent } from './dropdown.component'; +import { DropdownComponent, DropdownToggleDirective } from './dropdown.component'; +import { Component, DebugElement, DOCUMENT, ElementRef } from '@angular/core'; +import { DropdownService } from '../dropdown.service'; +import { By } from '@angular/platform-browser'; +import { DropdownMenuDirective } from '../dropdown-menu/dropdown-menu.directive'; +import { DropdownItemDirective } from '../dropdown-item/dropdown-item.directive'; describe('DropdownComponent', () => { let component: DropdownComponent; @@ -9,8 +14,7 @@ describe('DropdownComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [DropdownComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +26,109 @@ describe('DropdownComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('dropdown'); + }); +}); + +class MockElementRef extends ElementRef {} + +@Component({ + template: ` + +
+ +
+ `, + imports: [DropdownToggleDirective, DropdownComponent, DropdownMenuDirective, DropdownItemDirective] +}) +class TestComponent { + variant: 'btn-group' | 'dropdown' | 'input-group' | 'nav-item' | undefined = 'nav-item'; + visible = false; + disabled = false; + caret = true; + split = false; +} + +describe('DropdownToggleDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let elementRef: DebugElement; + let dropdownRef: DebugElement; + let service: DropdownService; + let document: Document; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent], + providers: [ + { provide: ElementRef, useClass: MockElementRef }, + DropdownService, + DropdownComponent + // Renderer2, + // ChangeDetectorRef + ] + }); + document = TestBed.inject(DOCUMENT); + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + elementRef = fixture.debugElement.query(By.directive(DropdownToggleDirective)); + dropdownRef = fixture.debugElement.query(By.directive(DropdownComponent)); + service = new DropdownService(); + + fixture.detectChanges(); // initial binding + }); + + it('should create an instance', () => { + TestBed.runInInjectionContext(() => { + const directive = new DropdownToggleDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes and attributes', fakeAsync(() => { + expect(elementRef.nativeElement).not.toHaveClass('disabled'); + expect(elementRef.nativeElement).toHaveClass('dropdown-toggle'); + expect(elementRef.nativeElement).not.toHaveClass('dropdown-toggle-split'); + component.variant = 'input-group'; + component.disabled = true; + component.split = true; + component.caret = false; + fixture.detectChanges(); + expect(elementRef.nativeElement).toHaveClass('disabled'); + expect(elementRef.nativeElement).not.toHaveClass('dropdown-toggle'); + expect(elementRef.nativeElement).toHaveClass('dropdown-toggle-split'); + expect(elementRef.nativeElement.getAttribute('aria-expanded')).toBe('false'); + component.variant = 'nav-item'; + component.visible = true; + fixture.detectChanges(); + expect(elementRef.nativeElement.getAttribute('aria-expanded')).toBe('true'); + })); + + it('should call event handling functions', fakeAsync(() => { + expect(component.visible).toBeFalse(); + elementRef.nativeElement.dispatchEvent(new MouseEvent('click')); + fixture.detectChanges(); + expect(component.visible).toBeTrue(); + elementRef.nativeElement.dispatchEvent(new MouseEvent('click')); + fixture.detectChanges(); + expect(component.visible).toBeFalse(); + elementRef.nativeElement.dispatchEvent(new MouseEvent('click')); + fixture.detectChanges(); + expect(component.visible).toBeTrue(); + dropdownRef.nativeElement.dispatchEvent(new KeyboardEvent('keyup', { key: 'Escape' })); + fixture.detectChanges(); + expect(component.visible).toBeFalse(); + component.visible = true; + fixture.detectChanges(); + document.dispatchEvent(new KeyboardEvent('keyup', { key: 'Tab' })); + fixture.detectChanges(); + expect(component.visible).toBeFalse(); + })); }); diff --git a/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.ts b/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.ts index 1f04c76a..232ce723 100644 --- a/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.ts +++ b/projects/coreui-angular/src/lib/dropdown/dropdown/dropdown.component.ts @@ -1,33 +1,33 @@ import { - AfterContentInit, AfterViewInit, + booleanAttribute, ChangeDetectorRef, Component, - ContentChild, + computed, + contentChild, + DestroyRef, Directive, + DOCUMENT, + effect, ElementRef, - EventEmitter, forwardRef, - HostBinding, - HostListener, - Inject, - Input, + inject, + input, + linkedSignal, NgZone, - OnChanges, OnDestroy, OnInit, - Optional, - Output, + output, Renderer2, - SimpleChanges + signal, + untracked } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; -import { Subscription } from 'rxjs'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { filter } from 'rxjs/operators'; import { createPopper, Instance, Options, Placement } from '@popperjs/core'; +import { ThemeDirective } from '../../shared'; import { DropdownMenuDirective } from '../dropdown-menu/dropdown-menu.directive'; import { DropdownService } from '../dropdown.service'; @@ -38,165 +38,155 @@ export abstract class DropdownToken {} selector: '[cDropdownToggle]', providers: [{ provide: DropdownToken, useExisting: forwardRef(() => DropdownComponent) }], exportAs: 'cDropdownToggle', - standalone: true + host: { + '[class]': 'hostClasses()', + '[attr.aria-expanded]': 'ariaExpanded', + '(click)': 'onClick($event)' + } }) export class DropdownToggleDirective implements AfterViewInit { - - static ngAcceptInputType_split: BooleanInput; - static ngAcceptInputType_popper: BooleanInput; - - constructor( - public elementRef: ElementRef, - private dropdownService: DropdownService, - @Optional() public dropdown?: DropdownToken - ) {} + // injections + readonly #destroyRef = inject(DestroyRef); + public readonly elementRef = inject(ElementRef); + #dropdownService = inject(DropdownService); + public dropdown = inject(DropdownToken, { optional: true }); /** - * Toggle the disabled state for the toggler. - * @type DropdownComponent | undefined + * Reference to dropdown component. + * @return DropdownComponent | undefined * @default undefined */ - @Input() dropdownComponent?: DropdownComponent; + readonly dropdownComponent = input(); /** * Disables the toggler. - * @type boolean + * @return boolean * @default false */ - @Input() disabled?: boolean = false; + readonly disabled = input(false, { transform: booleanAttribute }); /** * Enables pseudo element caret on toggler. - * @type boolean + * @return boolean */ - @Input() caret = true; + readonly caret = input(true); /** - * Create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of `.dropdown-toggle-split` class for proper spacing around the dropdown caret. - * @type boolean + * Create split button dropdowns with virtually the same markup as single button dropdowns, + * but with the addition of `.dropdown-toggle-split` class for proper spacing around the dropdown caret. + * @return boolean + * @default false */ - @Input() - set split(value: boolean) { - this._split = coerceBooleanProperty(value); - } + readonly split = input(false, { transform: booleanAttribute }); - get split(): boolean { - return this._split; - } + readonly hostClasses = computed(() => { + return { + 'dropdown-toggle': this.caret(), + 'dropdown-toggle-split': this.split(), + disabled: this.disabled() + } as Record; + }); - private _split = false; + readonly #ariaExpanded = signal(false); - @HostBinding('class') - get hostClasses(): any { - return { - 'dropdown-toggle': this.caret, - 'dropdown-toggle-split': this.split, - disabled: this.disabled - }; + get ariaExpanded() { + return this.#ariaExpanded(); } - @HostListener('click', ['$event']) public onClick($event: MouseEvent): void { $event.preventDefault(); - !this.disabled && this.dropdownService.toggle({ visible: 'toggle', dropdown: this.dropdown }); + !this.disabled() && this.#dropdownService.toggle({ visible: 'toggle', dropdown: this.dropdown }); } ngAfterViewInit(): void { - if (this.dropdownComponent) { - this.dropdown = this.dropdownComponent; - this.dropdownService = this.dropdownComponent?.dropdownService; + const dropdownComponent = this.dropdownComponent(); + if (dropdownComponent) { + this.dropdown = dropdownComponent; + this.#dropdownService = dropdownComponent?.dropdownService; + } + if (this.dropdown) { + const dropdown = this.dropdown; + dropdown?.visibleChange?.subscribe((visible) => { + this.#ariaExpanded.set(visible); + }); } } } @Component({ selector: 'c-dropdown', - template: '', + template: '', styleUrls: ['./dropdown.component.scss'], exportAs: 'cDropdown', providers: [DropdownService], - standalone: true + hostDirectives: [{ directive: ThemeDirective, inputs: ['dark'] }], + host: { + '[class]': 'hostClasses()', + '[style]': 'hostStyle()', + '(click)': 'onHostClick($event)' + } }) -export class DropdownComponent implements AfterContentInit, OnChanges, OnDestroy, OnInit { - - static ngAcceptInputType_dark: BooleanInput; - static ngAcceptInputType_visible: BooleanInput; - - constructor( - @Inject(DOCUMENT) private document: Document, - private elementRef: ElementRef, - private renderer: Renderer2, - private ngZone: NgZone, - private changeDetectorRef: ChangeDetectorRef, - public dropdownService: DropdownService - ) { +export class DropdownComponent implements OnDestroy, OnInit { + readonly #destroyRef = inject(DestroyRef); + readonly #document = inject(DOCUMENT); + readonly #elementRef = inject(ElementRef); + readonly #renderer = inject(Renderer2); + readonly #ngZone = inject(NgZone); + readonly #changeDetectorRef = inject(ChangeDetectorRef); + readonly dropdownService = inject(DropdownService); + + constructor() { this.dropdownStateSubscribe(); } /** * Set alignment of dropdown menu. - * @type {'start' | 'end' | { xs: 'start' | 'end' } | { sm: 'start' | 'end' } | { md: 'start' | 'end' } | { lg: 'start' | 'end' } | { xl: 'start' | 'end'} | { xxl: 'start' | 'end'}} + * @return {'start' | 'end' | { xs: 'start' | 'end' } | { sm: 'start' | 'end' } | { md: 'start' | 'end' } | { lg: 'start' | 'end' } | { xl: 'start' | 'end'} | { xxl: 'start' | 'end'}} */ - @Input() alignment?: string; - - @Input() autoClose: boolean | 'inside' | 'outside' = true; + readonly alignment = input(); /** - * Sets a darker color scheme to match a dark navbar. - * @type boolean - * @default false + * Automatically close dropdown when clicking outside the dropdown menu. */ - @Input() - set dark(value: boolean) { - this._dark = coerceBooleanProperty(value); - }; - - get dark() { - return this._dark; - } - - private _dark = false; + readonly autoClose = input(true); /** * Sets a specified direction and location of the dropdown menu. - * @type 'dropup' | 'dropend' | 'dropstart' + * @return 'dropup' | 'dropend' | 'dropstart' */ - @Input() direction?: 'center' | 'dropup' | 'dropup-center' | 'dropend' | 'dropstart'; + readonly direction = input<'center' | 'dropup' | 'dropup-center' | 'dropend' | 'dropstart'>(); /** - * Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property. - * @type Placement + * Describes the placement of your component after Popper.js has applied all the modifiers + * that may have flipped or altered the originally provided placement property. + * @return Placement */ - @Input() placement: Placement = 'bottom-start'; + readonly placement = input('bottom-start'); /** * If you want to disable dynamic positioning set this property to `false`. - * @type boolean + * @return boolean * @default true */ - @Input() - set popper(value: boolean) { - this._popper = coerceBooleanProperty(value); - } - - get popper(): boolean { - return this._popper; - } - - private _popper = true; + readonly popper = input(true, { transform: booleanAttribute }); /** * Optional popper Options object, placement prop takes precedence over - * @type Partial + * @return Partial */ - @Input() + readonly popperOptionsInput = input>({}, { alias: 'popperOptions' }); + + readonly #popperOptionsEffect = effect(() => { + this.popperOptions = { ...untracked(this.#popperOptions), ...this.popperOptionsInput() }; + }); + set popperOptions(value: Partial) { - this._popperOptions = { ...this._popperOptions, ...value }; - }; + this.#popperOptions.update((popperOptions) => ({ ...popperOptions, ...value })); + } get popperOptions(): Partial { - let placement = this.placement; - switch (this.direction) { + let placement = this.placement(); + switch (this.direction()) { case 'dropup': { placement = 'top-start'; break; @@ -218,133 +208,118 @@ export class DropdownComponent implements AfterContentInit, OnChanges, OnDestroy break; } } - if (this.alignment === 'end') { + if (this.alignment() === 'end') { placement = 'bottom-end'; } - this._popperOptions = { ...this._popperOptions, placement: placement }; - return this._popperOptions; + this.#popperOptions.update((value) => ({ ...value, placement: placement })); + return this.#popperOptions(); } - private _popperOptions: Partial = { - placement: this.placement, + readonly #popperOptions = signal>({ + placement: this.placement(), modifiers: [], strategy: 'absolute' - }; + }); /** * Set the dropdown variant to a btn-group, dropdown, input-group, and nav-item. */ - @Input() variant?: 'btn-group' | 'dropdown' | 'input-group' | 'nav-item' = 'dropdown'; + readonly variant = input<('btn-group' | 'dropdown' | 'input-group' | 'nav-item') | undefined>('dropdown'); /** * Toggle the visibility of dropdown menu component. - * @type boolean + * @return boolean * @default false */ - @Input() - set visible(value: boolean) { - const _value = coerceBooleanProperty(value); - if (_value !== this._visible) { - this.activeTrap = _value; - this._visible = _value; - _value ? this.createPopperInstance() : this.destroyPopperInstance(); - this.visibleChange.emit(_value); - } - } + readonly visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' }); - get visible(): boolean { - return this._visible; - } + readonly visible = linkedSignal({ + source: this.visibleInput, + computation: (value) => value + }); - private _visible = false; + readonly #visibleEffect = effect(() => { + const visible = this.visible(); + this.activeTrap = visible; + visible ? this.createPopperInstance() : this.destroyPopperInstance(); + this.setVisibleState(visible); + this.visibleChange?.emit(visible); + }); - @Output() visibleChange: EventEmitter = new EventEmitter(); + readonly visibleChange = output(); - dropdownContext = { $implicit: this.visible }; - @ContentChild(DropdownToggleDirective) _toggler!: DropdownToggleDirective; - @ContentChild(DropdownMenuDirective) _menu!: DropdownMenuDirective; - @ContentChild(DropdownMenuDirective, { read: ElementRef }) _menuElementRef!: ElementRef; + dropdownContext = { $implicit: this.visible() }; + readonly _toggler = contentChild(DropdownToggleDirective); + readonly _menu = contentChild(DropdownMenuDirective); + readonly _menuElementRef = contentChild(DropdownMenuDirective, { read: ElementRef }); public activeTrap = false; - private dropdownStateSubscription!: Subscription; private popperInstance!: Instance | undefined; private listeners: (() => void)[] = []; - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const direction = this.direction(); + const variant = this.variant(); return { - dropdown: - (this.variant === 'dropdown' || this.variant === 'nav-item') && - !this.direction, - [`${this.direction}`]: !!this.direction, - [`${this.variant}`]: !!this.variant, - 'dropup': this.direction === 'dropup' || this.direction === 'dropup-center', - show: this.visible - }; - } + dropdown: (variant === 'dropdown' || variant === 'nav-item') && !direction, + [`${direction}`]: !!direction, + [`${variant}`]: !!variant, + dropup: direction === 'dropup' || direction === 'dropup-center', + show: this.visible() + } as Record; + }); // todo: find better solution - @HostBinding('style') - get hostStyle(): any { - return this.variant === 'input-group' ? { display: 'contents' } : {}; - } + readonly hostStyle = computed(() => { + return this.variant() === 'input-group' ? { display: 'contents' } : {}; + }); private clickedTarget!: HTMLElement; - @HostListener('click', ['$event']) - private onHostClick($event: MouseEvent): void { + onHostClick($event: MouseEvent): void { this.clickedTarget = $event.target as HTMLElement; } - dropdownStateSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.dropdownStateSubscription = - this.dropdownService.dropdownState$.pipe( - filter((state) => { - return this === state.dropdown; - }) - ).subscribe((state) => { - if ('visible' in state) { - state?.visible === 'toggle' - ? this.toggleDropdown() - : (this.visible = state.visible); - } - }); - } else { - this.dropdownStateSubscription?.unsubscribe(); - } + dropdownStateSubscribe(): void { + this.dropdownService.dropdownState$ + .pipe( + filter((state) => { + return this === state.dropdown; + }), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe((state) => { + if ('visible' in state) { + state?.visible === 'toggle' ? this.toggleDropdown() : this.visible.set(state.visible); + } + }); } toggleDropdown(): void { - this.visible = !this.visible; + this.visible.update((visible) => !visible); } onClick(event: any): void { - if (!this._toggler?.elementRef.nativeElement.contains(event.target?.closest('[cDropdownToggle]'))) { + if (!this._toggler()?.elementRef.nativeElement.contains(event.target?.closest('[cDropdownToggle]'))) { this.toggleDropdown(); } } - ngAfterContentInit(): void { - if (this.variant === 'nav-item') { - this.renderer.addClass(this._toggler.elementRef.nativeElement, 'nav-link'); + readonly #togglerEffect = effect(() => { + const variant = this.variant(); + const _toggler = this._toggler(); + if (variant === 'nav-item' && _toggler) { + this.#renderer.addClass(_toggler.elementRef.nativeElement, 'nav-link'); } - } + }); ngOnInit(): void { - this.setVisibleState(this.visible); - } - - ngOnChanges(changes: SimpleChanges): void { - if (changes['visible'] && !changes['visible'].firstChange) { - this.setVisibleState(changes['visible'].currentValue); - } + this.setVisibleState(this.visible()); } ngOnDestroy(): void { this.clearListeners(); - this.dropdownStateSubscribe(false); this.destroyPopperInstance(); } @@ -354,22 +329,22 @@ export class DropdownComponent implements AfterContentInit, OnChanges, OnDestroy // todo: turn off popper in navbar-nav createPopperInstance(): void { - if (this._toggler && this._menu) { - this.ngZone.runOutsideAngular(() => { + const _toggler = this._toggler(); + const _menu = this._menu(); + if (_toggler && _menu) { + this.#ngZone.runOutsideAngular(() => { // workaround for popper position calculate (see also: dropdown-menu.component) - this._menu.elementRef.nativeElement.style.visibility = 'hidden'; - this._menu.elementRef.nativeElement.style.display = 'block'; - if (this.popper) { - this.popperInstance = createPopper( - this._toggler.elementRef.nativeElement, - this._menu.elementRef.nativeElement, - { ...this.popperOptions } - ); + _menu.elementRef.nativeElement.style.visibility = 'hidden'; + _menu.elementRef.nativeElement.style.display = 'block'; + if (this.popper()) { + this.popperInstance = createPopper(_toggler.elementRef.nativeElement, _menu.elementRef.nativeElement, { + ...this.popperOptions + }); } - this.ngZone.run(() => { + this.#ngZone.run(() => { this.setListeners(); - this.changeDetectorRef.markForCheck(); - this.changeDetectorRef.detectChanges(); + this.#changeDetectorRef.markForCheck(); + this.#changeDetectorRef.detectChanges(); }); }); } @@ -379,36 +354,37 @@ export class DropdownComponent implements AfterContentInit, OnChanges, OnDestroy this.clearListeners(); this.popperInstance?.destroy(); this.popperInstance = undefined; - this.changeDetectorRef.markForCheck(); + this.#changeDetectorRef.markForCheck(); } private setListeners(): void { this.listeners.push( - this.renderer.listen(this.document, 'click', (event) => { + this.#renderer.listen(this.#document, 'click', (event) => { const target = event.target as HTMLElement; - if (this._menuElementRef?.nativeElement.contains(event.target)) { + if (this._menuElementRef()?.nativeElement.contains(event.target)) { this.clickedTarget = target; } - if (this._toggler?.elementRef.nativeElement.contains(event.target)) { + if (this._toggler()?.elementRef.nativeElement.contains(event.target)) { return; } - if (this.autoClose === true) { + const autoClose = this.autoClose(); + if (autoClose === true) { this.setVisibleState(false); return; } - if (this.clickedTarget === target && this.autoClose === 'inside') { + if (this.clickedTarget === target && autoClose === 'inside') { this.setVisibleState(false); return; } - if (this.clickedTarget !== target && this.autoClose === 'outside') { + if (this.clickedTarget !== target && autoClose === 'outside') { this.setVisibleState(false); return; } }) ); this.listeners.push( - this.renderer.listen(this.elementRef.nativeElement, 'keyup', (event) => { - if (event.key === 'Escape' && this.autoClose !== false) { + this.#renderer.listen(this.#elementRef.nativeElement, 'keyup', (event) => { + if (event.key === 'Escape' && this.autoClose() !== false) { event.stopPropagation(); this.setVisibleState(false); return; @@ -416,8 +392,12 @@ export class DropdownComponent implements AfterContentInit, OnChanges, OnDestroy }) ); this.listeners.push( - this.renderer.listen(this.document, 'keyup', (event) => { - if (event.key === 'Tab' && this.autoClose !== false && !this.elementRef.nativeElement.contains(event.target)) { + this.#renderer.listen(this.#document, 'keyup', (event) => { + if ( + event.key === 'Tab' && + this.autoClose() !== false && + !this.#elementRef.nativeElement.contains(event.target) + ) { this.setVisibleState(false); return; } diff --git a/projects/coreui-angular/src/lib/footer/footer.component.spec.ts b/projects/coreui-angular/src/lib/footer/footer.component.spec.ts index d9a53fa4..eeb33507 100644 --- a/projects/coreui-angular/src/lib/footer/footer.component.spec.ts +++ b/projects/coreui-angular/src/lib/footer/footer.component.spec.ts @@ -22,4 +22,8 @@ describe('FooterComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('footer'); + }); }); diff --git a/projects/coreui-angular/src/lib/footer/footer.component.ts b/projects/coreui-angular/src/lib/footer/footer.component.ts index 655c65f4..770daf1f 100644 --- a/projects/coreui-angular/src/lib/footer/footer.component.ts +++ b/projects/coreui-angular/src/lib/footer/footer.component.ts @@ -1,31 +1,34 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, computed, input, InputSignal } from '@angular/core'; import { Positions } from '../coreui.types'; @Component({ selector: 'c-footer, [cFooter]', - template: ``, - standalone: true + template: '', + host: { + class: 'footer', + '[class]': 'hostClasses()', + '[attr.role]': 'role()' + } }) export class FooterComponent { /** * Place footer in non-static positions. [docs] * @type Positions */ - @Input() position?: Positions; + readonly position: InputSignal = input(); + /** * Default role for footer. [docs] * @type string - * @default 'footer' + * @default 'contentinfo' */ - @Input() - @HostBinding('attr.role') role = 'footer'; + readonly role: InputSignal = input('contentinfo'); - @HostBinding('class') - get getClasses(): any { + readonly hostClasses = computed(() => { return { footer: true, - [`footer-${this.position}`]: !!this.position, - }; - } + [`footer-${this.position()}`]: !!this.position() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.spec.ts b/projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.spec.ts index d22c2a31..3a029d53 100644 --- a/projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.spec.ts +++ b/projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.spec.ts @@ -1,32 +1,50 @@ -import { Component, DebugElement, Renderer2, Type } from '@angular/core'; +import { Component, DebugElement, ElementRef, Renderer2 } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { FormCheckInputDirective } from './form-check-input.directive'; +class MockElementRef extends ElementRef {} + @Component({ - template: `` + template: '', + imports: [FormCheckInputDirective] }) -class TestComponent {} +class TestComponent { + indeterminate = false; +} describe('FormCheckInputDirective', () => { let component: TestComponent; let fixture: ComponentFixture; let inputEl: DebugElement; - let renderer: Renderer2; + // let renderer: Renderer2; beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent], - imports: [FormCheckInputDirective] - }); + imports: [FormCheckInputDirective, TestComponent], + providers: [Renderer2, { provide: ElementRef, useClass: MockElementRef }] + }).compileComponents(); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; - inputEl = fixture.debugElement.query(By.css('input')); - renderer = fixture.componentRef.injector.get(Renderer2 as Type); + inputEl = fixture.debugElement.query(By.directive(FormCheckInputDirective)); + fixture.detectChanges(); }); it('should create an instance', () => { - const directive = new FormCheckInputDirective(renderer, inputEl); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new FormCheckInputDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(inputEl.nativeElement).toHaveClass('form-check-input'); + }); + + it('should have indeterminate state', () => { + component.indeterminate = true; + fixture.detectChanges(); + expect(inputEl.nativeElement.checked).toBeFalse(); + expect(inputEl.nativeElement.indeterminate).toBeTrue(); }); }); diff --git a/projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.ts b/projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.ts index da96032c..76aceb30 100644 --- a/projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.ts +++ b/projects/coreui-angular/src/lib/form/form-check/form-check-input.directive.ts @@ -1,77 +1,75 @@ -import { Directive, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; +import { + booleanAttribute, + computed, + Directive, + effect, + ElementRef, + inject, + input, + linkedSignal, + Renderer2 +} from '@angular/core'; +import { BooleanInput } from '@angular/cdk/coercion'; @Directive({ selector: 'input[cFormCheckInput]', - standalone: true + host: { + class: 'form-check-input', + '[class]': 'hostClasses()', + '[attr.type]': 'type()' + } }) export class FormCheckInputDirective { - - static ngAcceptInputType_checked: BooleanInput; static ngAcceptInputType_indeterminate: BooleanInput; + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + /** * Specifies the type of component. - * @type {'checkbox' | 'radio'} * @default 'checkbox' */ - @HostBinding('attr.type') - @Input() type: ('checkbox' | 'radio') = 'checkbox'; + readonly type = input<'checkbox' | 'radio'>('checkbox'); /** * Set component indeterminate state. - * @type boolean + * @default false */ - @Input() - set indeterminate(value: boolean) { - const indeterminate = coerceBooleanProperty(value); - if (this._indeterminate !== indeterminate) { - this._indeterminate = indeterminate; - const htmlInputElement = this.hostElement.nativeElement as HTMLInputElement; + readonly indeterminateInput = input(false, { transform: booleanAttribute, alias: 'indeterminate' }); + + readonly #indeterminate = linkedSignal(this.indeterminateInput); + + readonly #indeterminateEffect = effect(() => { + if (this.type() === 'checkbox') { + const indeterminate = this.#indeterminate(); + const htmlInputElement = this.#hostElement.nativeElement as HTMLInputElement; if (indeterminate) { - this.renderer.setProperty(htmlInputElement, 'checked', false); + this.#renderer.setProperty(htmlInputElement, 'checked', false); } - this.renderer.setProperty(htmlInputElement, 'indeterminate', indeterminate); + this.#renderer.setProperty(htmlInputElement, 'indeterminate', indeterminate); } - }; + }); get indeterminate() { - return this._indeterminate; + return this.#indeterminate(); } - private _indeterminate = false; - /** * Set component validation state to valid. - * @type boolean + * @default undefined */ - @Input() valid?: boolean; + readonly valid = input(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const valid = this.valid(); return { 'form-check-input': true, - 'is-valid': this.valid === true, - 'is-invalid': this.valid === false - }; - } - - @Input() - set checked(value: boolean) { - const checked = coerceBooleanProperty(value); - const htmlInputElement = this.hostElement?.nativeElement as HTMLInputElement; - if (htmlInputElement) { - this.renderer.setProperty(htmlInputElement, 'checked', checked); - } - } + 'is-valid': valid === true, + 'is-invalid': valid === false + } as Record; + }); get checked(): boolean { - return this.hostElement?.nativeElement?.checked; + return this.#hostElement?.nativeElement?.checked; } - - constructor( - private renderer: Renderer2, - private hostElement: ElementRef - ) { } - } diff --git a/projects/coreui-angular/src/lib/form/form-check/form-check-label.directive.spec.ts b/projects/coreui-angular/src/lib/form/form-check/form-check-label.directive.spec.ts index 2ebc6583..f5af4330 100644 --- a/projects/coreui-angular/src/lib/form/form-check/form-check-label.directive.spec.ts +++ b/projects/coreui-angular/src/lib/form/form-check/form-check-label.directive.spec.ts @@ -1,8 +1,33 @@ import { FormCheckLabelDirective } from './form-check-label.directive'; +import { Component, DebugElement } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; + +@Component({ + template: '', + imports: [FormCheckLabelDirective] +}) +class TestComponent {} describe('FormCheckLabelDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }); + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(FormCheckLabelDirective)); + }); + it('should create an instance', () => { const directive = new FormCheckLabelDirective(); expect(directive).toBeTruthy(); }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('form-check-label'); + }); }); diff --git a/projects/coreui-angular/src/lib/form/form-check/form-check-label.directive.ts b/projects/coreui-angular/src/lib/form/form-check/form-check-label.directive.ts index b1626689..f3c30eab 100644 --- a/projects/coreui-angular/src/lib/form/form-check/form-check-label.directive.ts +++ b/projects/coreui-angular/src/lib/form/form-check/form-check-label.directive.ts @@ -1,14 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: 'label[cFormCheckLabel]', - standalone: true + host: { class: 'form-check-label' } }) -export class FormCheckLabelDirective { - @HostBinding('class') - get hostClasses(): any { - return { - 'form-check-label': true - }; - } -} +export class FormCheckLabelDirective {} diff --git a/projects/coreui-angular/src/lib/form/form-check/form-check.component.spec.ts b/projects/coreui-angular/src/lib/form/form-check/form-check.component.spec.ts index db429ec6..fc5d48af 100644 --- a/projects/coreui-angular/src/lib/form/form-check/form-check.component.spec.ts +++ b/projects/coreui-angular/src/lib/form/form-check/form-check.component.spec.ts @@ -1,29 +1,78 @@ +import { Component, ComponentRef, DebugElement } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - import { FormCheckComponent } from './form-check.component'; -import { Renderer2 } from '@angular/core'; +import { FormCheckInputDirective } from './form-check-input.directive'; +import { FormCheckLabelDirective } from './form-check-label.directive'; +import { By } from '@angular/platform-browser'; + +@Component({ + template: ` + + + + + `, + imports: [FormCheckInputDirective, FormCheckComponent, FormCheckLabelDirective] +}) +class TestComponent { + inline = true; + reverse = true; + switch = false; +} describe('FormCheckComponent', () => { let component: FormCheckComponent; let fixture: ComponentFixture; - let renderer: Renderer2; + let componentRef: ComponentRef; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [FormCheckComponent], - providers: [Renderer2] - }) - .compileComponents(); - })); + imports: [FormCheckComponent] + }).compileComponents(); - beforeEach(() => { fixture = TestBed.createComponent(FormCheckComponent); - renderer = fixture.debugElement.injector.get(Renderer2); component = fixture.componentInstance; + componentRef = fixture.componentRef; + componentRef.setInput('switch', true); fixture.detectChanges(); - }); + })); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('form-switch'); + expect(fixture.nativeElement).not.toHaveClass('form-check'); + }); +}); + +describe('FormCheckComponent Test', () => { + let testFixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + testFixture = TestBed.createComponent(TestComponent); + debugElement = testFixture.debugElement.query(By.directive(FormCheckComponent)); + testFixture.detectChanges(); // initial binding + })); + + it('should have css classes', () => { + expect(debugElement.nativeElement).not.toHaveClass('form-switch'); + expect(debugElement.nativeElement).not.toHaveClass('form-switch-xl'); + expect(debugElement.nativeElement).toHaveClass('form-check-inline'); + expect(debugElement.nativeElement).toHaveClass('form-check-reverse'); + testFixture.componentInstance.switch = true; + testFixture.componentInstance.inline = false; + testFixture.componentInstance.reverse = false; + testFixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('form-switch'); + expect(debugElement.nativeElement).toHaveClass('form-switch-xl'); + expect(debugElement.nativeElement).not.toHaveClass('form-check-inline'); + expect(debugElement.nativeElement).not.toHaveClass('form-check-reverse'); + expect(debugElement.nativeElement).toHaveClass('form-check'); + }); }); diff --git a/projects/coreui-angular/src/lib/form/form-check/form-check.component.ts b/projects/coreui-angular/src/lib/form/form-check/form-check.component.ts index 1aa5ff63..005b0a73 100644 --- a/projects/coreui-angular/src/lib/form/form-check/form-check.component.ts +++ b/projects/coreui-angular/src/lib/form/form-check/form-check.component.ts @@ -1,63 +1,56 @@ -import { AfterContentInit, booleanAttribute, Component, ContentChild, HostBinding, Input } from '@angular/core'; - +import { BooleanInput } from '@angular/cdk/coercion'; +import { booleanAttribute, Component, computed, contentChild, input } from '@angular/core'; import { FormCheckLabelDirective } from './form-check-label.directive'; @Component({ selector: 'c-form-check', - template: '', + template: '', exportAs: 'cFormCheck', - standalone: true + host: { '[class]': 'hostClasses()' } }) -export class FormCheckComponent implements AfterContentInit { +export class FormCheckComponent { + static ngAcceptInputType_inline: BooleanInput; + static ngAcceptInputType_reverse: BooleanInput; + static ngAcceptInputType_switch: BooleanInput; /** * Group checkboxes or radios on the same horizontal row. - * @type boolean * @default false */ - @Input({ transform: booleanAttribute }) inline: string | boolean = false; + readonly inline = input(false, { transform: booleanAttribute }); /** * Put checkboxes or radios on the opposite side. - * @type boolean * @default false * @since 4.4.7 */ - @Input({ transform: booleanAttribute }) reverse: string | boolean = false; + readonly reverse = input(false, { transform: booleanAttribute }); /** * Size the component large or extra large. Works only with `[switch]="true"` [docs] - * @type {'lg' | 'xl' | ''} + * @default undefined */ - @Input() sizing?: 'lg' | 'xl' | '' = ''; + readonly sizing = input<'' | 'lg' | 'xl' | string>(); /** * Render a toggle switch on for checkbox. - * @type boolean + * @returns boolean * @default false */ - @Input({ transform: booleanAttribute }) switch: string | boolean = false; + readonly switch = input(false, { transform: booleanAttribute }); + + readonly formCheckLabel = contentChild(FormCheckLabelDirective); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const sizing = this.sizing(); + const isSwitch = this.switch(); return { - 'form-check': this.formCheckClass, - 'form-switch': this.switch, - [`form-switch-${this.sizing}`]: this.switch && !!this.sizing, - 'form-check-inline': this.inline, - 'form-check-reverse': this.reverse - }; - } - - @ContentChild(FormCheckLabelDirective) formCheckLabel!: FormCheckLabelDirective; - - #formCheckClass = true; - get formCheckClass() { - return this.#formCheckClass; - } - - ngAfterContentInit(): void { - this.#formCheckClass = !!this.formCheckLabel; - } + 'form-check': !!this.formCheckLabel(), + 'form-switch': isSwitch, + [`form-switch-${sizing}`]: isSwitch && !!sizing, + 'form-check-inline': this.inline(), + 'form-check-reverse': this.reverse() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/form/form-control/form-control.directive.spec.ts b/projects/coreui-angular/src/lib/form/form-control/form-control.directive.spec.ts index d28c11ed..75114418 100644 --- a/projects/coreui-angular/src/lib/form/form-control/form-control.directive.spec.ts +++ b/projects/coreui-angular/src/lib/form/form-control/form-control.directive.spec.ts @@ -1,10 +1,17 @@ -import { ElementRef } from '@angular/core'; import { FormControlDirective } from './form-control.directive'; +import { TestBed } from '@angular/core/testing'; +import { ElementRef } from '@angular/core'; + +class MockElementRef extends ElementRef {} describe('FormControlDirective', () => { - let hostElement: ElementRef; it('should create an instance', () => { - const directive = new FormControlDirective(hostElement); - expect(directive).toBeTruthy(); + TestBed.configureTestingModule({ + providers: [{ provide: ElementRef, useClass: MockElementRef }] + }); + TestBed.runInInjectionContext(() => { + const directive = new FormControlDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/form/form-control/form-control.directive.ts b/projects/coreui-angular/src/lib/form/form-control/form-control.directive.ts index 34c467e8..42d118d0 100644 --- a/projects/coreui-angular/src/lib/form/form-control/form-control.directive.ts +++ b/projects/coreui-angular/src/lib/form/form-control/form-control.directive.ts @@ -1,57 +1,60 @@ -import { booleanAttribute, Directive, ElementRef, HostBinding, Input, OnInit } from '@angular/core'; +import { booleanAttribute, computed, Directive, ElementRef, inject, input, OnInit } from '@angular/core'; import { InputType } from '../../coreui.types'; @Directive({ selector: 'input[cFormControl], textarea[cFormControl]', - standalone: true + host: { + '[class]': 'hostClasses()', + '[attr.type]': 'type()' + } }) export class FormControlDirective implements OnInit { - - constructor( - private hostElement: ElementRef - ) {} + readonly #hostElement = inject(ElementRef); /** * Size the component small or large. - * @type {'sm' | 'lg'} + * @default undefined */ - @Input() sizing?: '' | 'sm' | 'lg' | string = ''; + readonly sizing = input<'' | 'sm' | 'lg' | string>(); + /** * Set component validation state to valid. - * @type boolean | undefined + * @default undefined */ - @Input() valid?: boolean; + readonly valid = input(); /** * Specifies the type of input element. */ - @HostBinding('attr.type') - @Input() type: Omit = 'text'; + readonly type = input>('text'); /** - * Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use alongside `readonly` [docs] + * Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use alongside `readonly` + * @default false */ - @Input({ transform: booleanAttribute }) plaintext: string | boolean = false; + readonly plaintext = input(false, { transform: booleanAttribute }); - @HostBinding('class') - get hostClasses(): any { - - const isRangeType = this.type === 'range'; + readonly hostClasses = computed(() => { + const type = this.type(); + const isRange = type === 'range'; + const plaintext = this.plaintext(); + const sizing = this.sizing(); + const valid = this.valid(); return { - 'form-control': !isRangeType && !this.plaintext, - 'form-control-plaintext': !isRangeType && this.plaintext, - 'form-control-color': this.type === 'color', - 'form-range': isRangeType, - [`form-control-${this.sizing}`]: !!this.sizing && !isRangeType, - 'is-valid': this.valid === true, - 'is-invalid': this.valid === false - }; - } + 'form-control': !isRange && !plaintext, + 'form-control-plaintext': !isRange && plaintext, + 'form-control-color': type === 'color', + 'form-range': isRange, + [`form-control-${sizing}`]: !!sizing && !isRange, + 'is-valid': valid === true, + 'is-invalid': valid === false + } as Record; + }); get hostTag(): string { - return this.hostElement.nativeElement.tagName; + return this.#hostElement.nativeElement.tagName; } ngOnInit(): void { @@ -60,5 +63,4 @@ export class FormControlDirective implements OnInit { console.warn(`CoreUI [cFormControl] works with '' and ' + + + ` +}) +class TestComponent { + readonly floating = input(false); +} describe('FormFloatingDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + let componentRef: ComponentRef; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + componentRef = fixture.componentRef; + debugElement = fixture.debugElement.query(By.directive(FormFloatingDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new FormFloatingDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new FormFloatingDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).not.toHaveClass('form-floating'); + componentRef.setInput('floating', true); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('form-floating'); + componentRef.setInput('floating', false); + fixture.detectChanges(); + expect(debugElement.nativeElement).not.toHaveClass('form-floating'); }); }); diff --git a/projects/coreui-angular/src/lib/form/form-floating/form-floating.directive.ts b/projects/coreui-angular/src/lib/form/form-floating/form-floating.directive.ts index df94a27c..8512cc00 100644 --- a/projects/coreui-angular/src/lib/form/form-floating/form-floating.directive.ts +++ b/projects/coreui-angular/src/lib/form/form-floating/form-floating.directive.ts @@ -1,22 +1,13 @@ -import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, Directive, input } from '@angular/core'; @Directive({ selector: '[cFormFloating]', - standalone: true + host: { '[class.form-floating]': 'floating()' } }) export class FormFloatingDirective { - /** * Enable floating labels - * @type boolean + * @dafault boolean */ - @Input({ alias: 'cFormFloating', transform: booleanAttribute }) floating: string | boolean = true; - - @HostBinding('class') - get hostClasses(): any { - return { - 'form-floating': this.floating - }; - } - + readonly floating = input(true, { transform: booleanAttribute, alias: 'cFormFloating' }); } diff --git a/projects/coreui-angular/src/lib/form/form-label/form-label.directive.spec.ts b/projects/coreui-angular/src/lib/form/form-label/form-label.directive.spec.ts index b993759a..94ba1c23 100644 --- a/projects/coreui-angular/src/lib/form/form-label/form-label.directive.spec.ts +++ b/projects/coreui-angular/src/lib/form/form-label/form-label.directive.spec.ts @@ -1,8 +1,11 @@ import { FormLabelDirective } from './form-label.directive'; +import { TestBed } from '@angular/core/testing'; describe('LabelDirective', () => { it('should create an instance', () => { - const directive = new FormLabelDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new FormLabelDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/form/form-label/form-label.directive.ts b/projects/coreui-angular/src/lib/form/form-label/form-label.directive.ts index ee53efe5..0f520989 100644 --- a/projects/coreui-angular/src/lib/form/form-label/form-label.directive.ts +++ b/projects/coreui-angular/src/lib/form/form-label/form-label.directive.ts @@ -1,31 +1,28 @@ -import { Directive, HostBinding, Input } from '@angular/core'; +import { computed, Directive, input } from '@angular/core'; @Directive({ selector: '[cLabel]', - standalone: true + host: { class: 'form-label', '[class]': 'hostClasses()' } }) export class FormLabelDirective { - /** * For horizontal forms set labels to 'col' and make them vertically centered with their associated form controls. - * @type 'col' + * @default '' */ - @Input('cLabel') col: 'col' | '' = ''; + readonly col = input<'col' | ''>('', { alias: 'cLabel' }); /** * Size the label small or large. + * @default '' */ - @Input() sizing: '' | 'sm' | 'lg' | string = ''; - - @HostBinding('class') - get hostClasses(): any { + readonly sizing = input<'' | 'sm' | 'lg' | string>(); + readonly hostClasses = computed(() => { + const col = this.col(); + const sizing = this.sizing(); return { 'form-label': true, - 'col-form-label': this.col === 'col', - [`col-form-label-${this.sizing}`]: !!this.sizing && this.col === 'col', - }; - } - - constructor() {} - + 'col-form-label': col === 'col', + [`col-form-label-${sizing}`]: !!sizing && col === 'col' + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/form/form-select/form-select.directive.spec.ts b/projects/coreui-angular/src/lib/form/form-select/form-select.directive.spec.ts index ddec0519..2e2fb46f 100644 --- a/projects/coreui-angular/src/lib/form/form-select/form-select.directive.spec.ts +++ b/projects/coreui-angular/src/lib/form/form-select/form-select.directive.spec.ts @@ -1,8 +1,67 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { Component, ComponentRef, DebugElement, input } from '@angular/core'; import { FormSelectDirective } from './form-select.directive'; +import { By } from '@angular/platform-browser'; + +@Component({ + imports: [FormSelectDirective], + template: ` ` +}) +class TestComponent { + readonly sizing = input<'' | 'sm' | 'lg' | string>(); + readonly valid = input(); +} describe('FormSelectDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + let componentRef: ComponentRef; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + componentRef = fixture.componentRef; + debugElement = fixture.debugElement.query(By.directive(FormSelectDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new FormSelectDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new FormSelectDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('form-select'); + componentRef.setInput('sizing', 'sm'); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('form-select-sm'); + componentRef.setInput('sizing', 'lg'); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('form-select-lg'); + componentRef.setInput('sizing', ''); + fixture.detectChanges(); + expect(debugElement.nativeElement).not.toHaveClass('form-select-sm'); + expect(debugElement.nativeElement).not.toHaveClass('form-select-lg'); + expect(debugElement.nativeElement).not.toHaveClass('is-invalid'); + expect(debugElement.nativeElement).not.toHaveClass('is-valid'); + componentRef.setInput('valid', true); + fixture.detectChanges(); + expect(debugElement.nativeElement).not.toHaveClass('is-invalid'); + expect(debugElement.nativeElement).toHaveClass('is-valid'); + componentRef.setInput('valid', false); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('is-invalid'); + expect(debugElement.nativeElement).not.toHaveClass('is-valid'); + componentRef.setInput('valid', undefined); + fixture.detectChanges(); + expect(debugElement.nativeElement).not.toHaveClass('is-invalid'); + expect(debugElement.nativeElement).not.toHaveClass('is-valid'); }); }); diff --git a/projects/coreui-angular/src/lib/form/form-select/form-select.directive.ts b/projects/coreui-angular/src/lib/form/form-select/form-select.directive.ts index 8990b76a..5530df29 100644 --- a/projects/coreui-angular/src/lib/form/form-select/form-select.directive.ts +++ b/projects/coreui-angular/src/lib/form/form-select/form-select.directive.ts @@ -1,31 +1,30 @@ -import { Directive, HostBinding, Input, OnChanges } from '@angular/core'; +import { computed, Directive, input } from '@angular/core'; @Directive({ selector: 'select[cSelect]', - standalone: true + host: { class: 'form-select', '[class]': 'hostClasses()' } }) export class FormSelectDirective { /** * Size the component small or large. + * @default undefined */ - @Input() sizing?: '' | 'sm' | 'lg' | string = ''; + readonly sizing = input<'' | 'sm' | 'lg' | string>(); /** * Set component validation state to valid. - * @type {boolean | undefined} + * @default undefined */ - @Input() valid?: boolean; + readonly valid = input(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const sizing = this.sizing(); + const valid = this.valid(); return { 'form-select': true, - [`form-select-${this.sizing}`]: !!this.sizing, - 'is-valid': this.valid === true, - 'is-invalid': this.valid === false, - }; - } - - constructor() {} - + [`form-select-${sizing}`]: !!sizing, + 'is-valid': valid === true, + 'is-invalid': valid === false + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/form/form-text/form-text.directive.ts b/projects/coreui-angular/src/lib/form/form-text/form-text.directive.ts index 6944ff41..bc1c3255 100644 --- a/projects/coreui-angular/src/lib/form/form-text/form-text.directive.ts +++ b/projects/coreui-angular/src/lib/form/form-text/form-text.directive.ts @@ -1,14 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cFormText]', - standalone: true + host: { class: 'form-text' } }) -export class FormTextDirective { - @HostBinding('class') - get hostClasses(): any { - return { - 'form-text': true - }; - } -} +export class FormTextDirective {} diff --git a/projects/coreui-angular/src/lib/form/form.module.ts b/projects/coreui-angular/src/lib/form/form.module.ts index 1ab71add..3a245bd2 100644 --- a/projects/coreui-angular/src/lib/form/form.module.ts +++ b/projects/coreui-angular/src/lib/form/form.module.ts @@ -1,16 +1,16 @@ import { NgModule } from '@angular/core'; import { FormDirective } from './form/form.directive'; +import { FormControlDirective } from './form-control/form-control.directive'; +import { FormCheckComponent } from './form-check/form-check.component'; +import { FormCheckLabelDirective } from './form-check/form-check-label.directive'; +import { FormCheckInputDirective } from './form-check/form-check-input.directive'; import { FormFeedbackComponent } from './form-feedback/form-feedback.component'; -import { InputGroupComponent } from './input-group/input-group.component'; -import { FormSelectDirective } from './form-select/form-select.directive'; +import { FormFloatingDirective } from './form-floating/form-floating.directive'; import { FormLabelDirective } from './form-label/form-label.directive'; -import { FormCheckComponent } from './form-check/form-check.component'; -import { FormControlDirective } from './form-control/form-control.directive'; +import { FormSelectDirective } from './form-select/form-select.directive'; import { FormTextDirective } from './form-text/form-text.directive'; -import { FormFloatingDirective } from './form-floating/form-floating.directive'; +import { InputGroupComponent } from './input-group/input-group.component'; import { InputGroupTextDirective } from './input-group-text/input-group-text.directive'; -import { FormCheckLabelDirective } from './form-check/form-check-label.directive'; -import { FormCheckInputDirective } from './form-check/form-check-input.directive'; @NgModule({ imports: [ diff --git a/projects/coreui-angular/src/lib/form/form/form.directive.spec.ts b/projects/coreui-angular/src/lib/form/form/form.directive.spec.ts index 540defde..f6004cd4 100644 --- a/projects/coreui-angular/src/lib/form/form/form.directive.spec.ts +++ b/projects/coreui-angular/src/lib/form/form/form.directive.spec.ts @@ -1,8 +1,48 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { Component, ComponentRef, DebugElement, input } from '@angular/core'; +import { By } from '@angular/platform-browser'; import { FormDirective } from './form.directive'; +@Component({ + imports: [FormDirective], + template: '
' +}) +class TestComponent { + readonly validated = input(false); +} + describe('FormDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + let componentRef: ComponentRef; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + componentRef = fixture.componentRef; + debugElement = fixture.debugElement.query(By.directive(FormDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new FormDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new FormDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).not.toHaveClass('was-validated'); + componentRef.setInput('validated', true); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('was-validated'); + componentRef.setInput('validated', false); + fixture.detectChanges(); + expect(debugElement.nativeElement).not.toHaveClass('was-validated'); }); }); diff --git a/projects/coreui-angular/src/lib/form/form/form.directive.ts b/projects/coreui-angular/src/lib/form/form/form.directive.ts index 0a1c4c56..250a1b6b 100644 --- a/projects/coreui-angular/src/lib/form/form/form.directive.ts +++ b/projects/coreui-angular/src/lib/form/form/form.directive.ts @@ -1,22 +1,14 @@ -import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, Directive, input } from '@angular/core'; @Directive({ selector: 'form[cForm]', - standalone: true + host: { '[class.was-validated]': 'validated()' } }) export class FormDirective { - /** * Mark a form as validated. If you set it `true`, all validation styles will be applied to the form. [docs] - * @type boolean + * @return boolean * @default false */ - @Input({ transform: booleanAttribute }) validated: string | boolean = false; - - @HostBinding('class') - get hostClasses(): any { - return { - 'was-validated': this.validated - }; - } + readonly validated = input(false, { transform: booleanAttribute }); } diff --git a/projects/coreui-angular/src/lib/form/input-group-text/input-group-text.directive.ts b/projects/coreui-angular/src/lib/form/input-group-text/input-group-text.directive.ts index 83e5afcf..0fe35d2e 100644 --- a/projects/coreui-angular/src/lib/form/input-group-text/input-group-text.directive.ts +++ b/projects/coreui-angular/src/lib/form/input-group-text/input-group-text.directive.ts @@ -1,18 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cInputGroupText]', - standalone: true + host: { class: 'input-group-text' } }) -export class InputGroupTextDirective { - - @HostBinding('class') - get hostClasses(): any { - return { - 'input-group-text': true, - }; - } - - constructor() { } - -} +export class InputGroupTextDirective {} diff --git a/projects/coreui-angular/src/lib/form/input-group/input-group.component.spec.ts b/projects/coreui-angular/src/lib/form/input-group/input-group.component.spec.ts index f9a59110..ad3d2c80 100644 --- a/projects/coreui-angular/src/lib/form/input-group/input-group.component.spec.ts +++ b/projects/coreui-angular/src/lib/form/input-group/input-group.component.spec.ts @@ -22,4 +22,8 @@ describe('InputGroupComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('input-group'); + }); }); diff --git a/projects/coreui-angular/src/lib/form/input-group/input-group.component.ts b/projects/coreui-angular/src/lib/form/input-group/input-group.component.ts index 968e1024..9b27436f 100644 --- a/projects/coreui-angular/src/lib/form/input-group/input-group.component.ts +++ b/projects/coreui-angular/src/lib/form/input-group/input-group.component.ts @@ -1,28 +1,21 @@ -import { - Component, - HostBinding, - Input, -} from '@angular/core'; +import { Component, computed, input } from '@angular/core'; @Component({ selector: 'c-input-group', - template: ``, - standalone: true + template: '', + host: { class: 'input-group', '[class]': 'hostClasses()' } }) export class InputGroupComponent { /** * Size the component small or large. */ - @Input() sizing: string | 'sm' | 'lg' | '' = ''; + readonly sizing = input(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const sizing = this.sizing(); return { 'input-group': true, - [`input-group-${this.sizing}`]: !!this.sizing, - }; - } - - constructor() {} - + [`input-group-${sizing}`]: !!sizing + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/form/public_api.ts b/projects/coreui-angular/src/lib/form/public_api.ts index a37a06cd..7fc1a947 100644 --- a/projects/coreui-angular/src/lib/form/public_api.ts +++ b/projects/coreui-angular/src/lib/form/public_api.ts @@ -1,13 +1,13 @@ export { FormDirective } from './form/form.directive'; -export { FormFeedbackComponent } from './form-feedback/form-feedback.component'; -export { InputGroupComponent } from './input-group/input-group.component'; -export { FormSelectDirective } from './form-select/form-select.directive'; -export { FormLabelDirective } from './form-label/form-label.directive'; export { FormCheckComponent } from './form-check/form-check.component'; +export { FormControlDirective } from './form-control/form-control.directive'; export { FormCheckInputDirective } from './form-check/form-check-input.directive'; export { FormCheckLabelDirective } from './form-check/form-check-label.directive'; -export { FormControlDirective } from './form-control/form-control.directive'; -export { FormTextDirective } from './form-text/form-text.directive'; +export { FormFeedbackComponent } from './form-feedback/form-feedback.component'; export { FormFloatingDirective } from './form-floating/form-floating.directive'; +export { FormLabelDirective } from './form-label/form-label.directive'; +export { FormSelectDirective } from './form-select/form-select.directive'; +export { FormTextDirective } from './form-text/form-text.directive'; +export { InputGroupComponent } from './input-group/input-group.component'; export { InputGroupTextDirective } from './input-group-text/input-group-text.directive'; export { FormModule } from './form.module'; diff --git a/projects/coreui-angular/src/lib/grid/col.component.spec.ts b/projects/coreui-angular/src/lib/grid/col.component.spec.ts index 8b58fdcc..2f9dab86 100644 --- a/projects/coreui-angular/src/lib/grid/col.component.spec.ts +++ b/projects/coreui-angular/src/lib/grid/col.component.spec.ts @@ -22,4 +22,8 @@ describe('ColComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('col'); + }); }); diff --git a/projects/coreui-angular/src/lib/grid/col.component.ts b/projects/coreui-angular/src/lib/grid/col.component.ts index ff96c0dc..528fc075 100644 --- a/projects/coreui-angular/src/lib/grid/col.component.ts +++ b/projects/coreui-angular/src/lib/grid/col.component.ts @@ -4,8 +4,7 @@ import { ColDirective } from './col.directive'; @Component({ selector: 'c-col', - template: '', - styleUrls: ['./col.component.scss'], - standalone: true + template: '', + styleUrls: ['./col.component.scss'] }) export class ColComponent extends ColDirective {} diff --git a/projects/coreui-angular/src/lib/grid/col.directive.spec.ts b/projects/coreui-angular/src/lib/grid/col.directive.spec.ts index dd3c940e..75ea63c6 100644 --- a/projects/coreui-angular/src/lib/grid/col.directive.spec.ts +++ b/projects/coreui-angular/src/lib/grid/col.directive.spec.ts @@ -1,8 +1,60 @@ -import { ColDirective } from './col.directive'; +import { Component, DebugElement } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; +import { ColDirective, ColOffsetType, ColOrderType } from './col.directive'; + +@Component({ + imports: [ColDirective], + template: ` +
+
+
+ ` +}) +export class TestComponent { + col!: number; + offset: ColOffsetType = { md: 2, xs: 1 }; + order: ColOrderType = { xl: 'first', xxl: 'last', md: 1, xs: 1 }; +} describe('ColDirective', () => { + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }); + fixture = TestBed.createComponent(TestComponent); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new ColDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ColDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css class', () => { + debugElement = fixture.debugElement.query(By.css('#col0')); + expect(debugElement.nativeElement).toHaveClass('col'); + expect(debugElement.nativeElement).toHaveClass('col-lg-auto'); + expect(debugElement.nativeElement).toHaveClass('col-xl'); + debugElement = fixture.debugElement.query(By.css('#col1')); + expect(debugElement.nativeElement).toHaveClass('col-6'); + expect(debugElement.nativeElement).toHaveClass('order-1'); + expect(debugElement.nativeElement).toHaveClass('offset-1'); + expect(debugElement.nativeElement).toHaveClass('col-sm-5'); + expect(debugElement.nativeElement).toHaveClass('col-md-4'); + expect(debugElement.nativeElement).toHaveClass('col-lg-3'); + expect(debugElement.nativeElement).toHaveClass('col-xl-2'); + expect(debugElement.nativeElement).toHaveClass('col-xxl-1'); + debugElement = fixture.debugElement.query(By.css('#col2')); + expect(debugElement.nativeElement).toHaveClass('col'); + expect(debugElement.nativeElement).toHaveClass('offset-md-2'); + expect(debugElement.nativeElement).toHaveClass('order-md-1'); + expect(debugElement.nativeElement).toHaveClass('order-xl-first'); + expect(debugElement.nativeElement).toHaveClass('order-xxl-last'); }); }); diff --git a/projects/coreui-angular/src/lib/grid/col.directive.ts b/projects/coreui-angular/src/lib/grid/col.directive.ts index 93949d21..0657307b 100644 --- a/projects/coreui-angular/src/lib/grid/col.directive.ts +++ b/projects/coreui-angular/src/lib/grid/col.directive.ts @@ -1,160 +1,135 @@ -import { Directive, HostBinding, Input } from '@angular/core'; -import { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion'; - -import { ColOrder, ICol } from './col.type'; +import { booleanAttribute, computed, Directive, input, numberAttribute } from '@angular/core'; +import { BooleanInput, NumberInput } from '@angular/cdk/coercion'; import { BreakpointInfix } from '../coreui.types'; +import { ColOrder } from './col.type'; + +export type ColOffsetType = number | { xs?: number; sm?: number; md?: number; lg?: number; xl?: number; xxl?: number }; +export type ColOrderType = + | ColOrder + | { xs?: ColOrder; sm?: ColOrder; md?: ColOrder; lg?: ColOrder; xl?: ColOrder; xxl?: ColOrder }; @Directive({ selector: '[cCol]', - standalone: true + host: { + '[class]': 'hostClasses()' + } }) -export class ColDirective implements ICol { - - static ngAcceptInputType_cCol: (BooleanInput | NumberInput); - static ngAcceptInputType_xs: (BooleanInput | NumberInput); - static ngAcceptInputType_sm: (BooleanInput | NumberInput); - static ngAcceptInputType_md: (BooleanInput | NumberInput); - static ngAcceptInputType_lg: (BooleanInput | NumberInput); - static ngAcceptInputType_xl: (BooleanInput | NumberInput); - static ngAcceptInputType_xxl: (BooleanInput | NumberInput); +export class ColDirective { + static ngAcceptInputType_cCol: BooleanInput | NumberInput; + static ngAcceptInputType_xs: BooleanInput | NumberInput; + static ngAcceptInputType_sm: BooleanInput | NumberInput; + static ngAcceptInputType_md: BooleanInput | NumberInput; + static ngAcceptInputType_lg: BooleanInput | NumberInput; + static ngAcceptInputType_xl: BooleanInput | NumberInput; + static ngAcceptInputType_xxl: BooleanInput | NumberInput; /** * The number of columns/offset/order on extra small devices (<576px). - * @type { 'auto' | number | boolean } + * @return { 'auto' | number | boolean } */ - @Input() - set cCol(value: (BooleanInput | NumberInput)) { - this.xs = this.xs || this.coerceInput(value); - } - @Input() - set xs(value) { - this._xs = this.coerceInput(value); - } - get xs(): (BooleanInput | NumberInput) { - return this._xs; - } - private _xs: (BooleanInput | NumberInput) = false; + readonly cCol = input(false, { transform: this.coerceInput }); + readonly xs = input(false, { transform: this.coerceInput }); /** * The number of columns/offset/order on small devices (<768px). - * @type { 'auto' | number | boolean } + * @return { 'auto' | number | boolean } */ - @Input() - set sm(value) { - this._sm = this.coerceInput(value); - } - get sm(): (BooleanInput | NumberInput) { - return this._sm; - } - private _sm: (BooleanInput | NumberInput) = false; + readonly sm = input(false, { transform: this.coerceInput }); /** * The number of columns/offset/order on medium devices (<992px). - * @type { 'auto' | number | boolean } + * @return { 'auto' | number | boolean } */ - @Input() - set md(value) { - this._md = this.coerceInput(value); - } - get md(): (BooleanInput | NumberInput) { - return this._md; - } - private _md: (BooleanInput | NumberInput) = false; + readonly md = input(false, { transform: this.coerceInput }); /** * The number of columns/offset/order on large devices (<1200px). - * @type { 'auto' | number | boolean } + * @return { 'auto' | number | boolean } */ - @Input() - set lg(value) { - this._lg = this.coerceInput(value); - } - get lg(): (BooleanInput | NumberInput) { - return this._lg; - } - private _lg: (BooleanInput | NumberInput) = false; + readonly lg = input(false, { transform: this.coerceInput }); /** * The number of columns/offset/order on X-Large devices (<1400px). - * @type { 'auto' | number | boolean } + * @return { 'auto' | number | boolean } */ - @Input() - set xl(value) { - this._xl = this.coerceInput(value); - } - get xl(): (BooleanInput | NumberInput) { - return this._xl; - } - private _xl: (BooleanInput | NumberInput) = false; + readonly xl = input(false, { transform: this.coerceInput }); /** * The number of columns/offset/order on XX-Large devices (≥1400px). - * @type { 'auto' | number | boolean } + * @return { 'auto' | number | boolean } */ - @Input() - set xxl(value) { - this._xxl = this.coerceInput(value); - } - get xxl(): (BooleanInput | NumberInput) { - return this._xxl; - } - private _xxl: (BooleanInput | NumberInput) = false; - - @Input() offset?: (number | { 'xs'?: number, sm?: number, md?: number, lg?: number, xl?: number, xxl?: number }); - @Input() order?: (ColOrder | { xs?: ColOrder, sm?: ColOrder, md?: ColOrder, lg?: ColOrder, xl?: ColOrder, xxl?: ColOrder }); - - @HostBinding('class') - get hostClasses(): any { - - const classes: any = { + readonly xxl = input(false, { transform: this.coerceInput }); + + readonly breakpoints = computed(() => { + return { + xs: this.xs() || this.cCol(), + sm: this.sm(), + md: this.md(), + lg: this.lg(), + xl: this.xl(), + xxl: this.xxl() + } as Record; + }); + + readonly offset = input(); + readonly order = input(); + + readonly hostClasses = computed(() => { + const classes: Record = { col: true }; + const breakpoints = this.breakpoints(); + const offsetInput = this.offset(); + const orderInput = this.order(); + Object.keys(BreakpointInfix).forEach((breakpoint) => { - // @ts-ignore - const value: number | string | boolean = this[breakpoint]; + const value = breakpoints[breakpoint]; const infix = breakpoint === 'xs' ? '' : `-${breakpoint}`; classes[`col${infix}`] = value === true; - classes[`col${infix}-${value}`] = (typeof value === 'number') || (typeof value === 'string'); + classes[`col${infix}-${value}`] = typeof value === 'number' || typeof value === 'string'; }); - if (typeof this.offset === 'object') { - const offset = { ...this.offset }; + if (typeof offsetInput === 'object') { + const offset = { ...offsetInput }; Object.entries(offset).forEach((entry) => { const [breakpoint, value] = [...entry]; const infix = breakpoint === 'xs' ? '' : `-${breakpoint}`; classes[`offset${infix}-${value}`] = value >= 0 && value <= 11; }); } else { - classes[`offset-${this.offset}`] = (typeof this.offset === 'number') && this.offset > 0 && this.offset <= 11; + const offset = numberAttribute(offsetInput); + classes[`offset-${offset}`] = typeof offset === 'number' && offset > 0 && offset <= 11; } - if (typeof this.order === 'object') { - const order = { ...this.order }; + if (typeof orderInput === 'object') { + const order = { ...orderInput }; Object.entries(order).forEach((entry) => { const [breakpoint, value] = [...entry]; const infix = breakpoint === 'xs' ? '' : `-${breakpoint}`; - classes[`order${infix}-${value}`] = value; + classes[`order${infix}-${value}`] = !!value; }); } else { - classes[`order-${this.order}`] = !!this.order; + const order = orderInput; + classes[`order-${order}`] = !!order; } // if there is no 'col' class, add one - classes.col = (!Object.entries(classes).filter(i => i[0].startsWith('col-') && i[1]).length) || this.xs === true; - return classes; - } + classes['col'] = + !Object.entries(classes).filter((i) => i[0].startsWith('col-') && i[1]).length || breakpoints['xs'] === true; + return classes as Record; + }); - coerceInput(value: (BooleanInput | NumberInput)) { + coerceInput(value: BooleanInput | NumberInput) { if (value === 'auto') { return value; } if (value === '' || value === undefined || value === null) { - return coerceBooleanProperty(value); + return booleanAttribute(value); } if (typeof value === 'boolean') { return value; } - return coerceNumberProperty(value); + return numberAttribute(value); } } diff --git a/projects/coreui-angular/src/lib/grid/container.component.spec.ts b/projects/coreui-angular/src/lib/grid/container.component.spec.ts index 961542aa..8650c2b9 100644 --- a/projects/coreui-angular/src/lib/grid/container.component.spec.ts +++ b/projects/coreui-angular/src/lib/grid/container.component.spec.ts @@ -1,25 +1,37 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ContainerComponent } from './container.component'; +import { ComponentRef } from '@angular/core'; describe('ContainerComponent', () => { let component: ContainerComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ContainerComponent] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(ContainerComponent); component = fixture.componentInstance; + componentRef = fixture.componentRef; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('container'); + expect(fixture.nativeElement).not.toHaveClass('container-fluid'); + expect(fixture.nativeElement).not.toHaveClass('container-xl'); + componentRef.setInput('fluid', true); + componentRef.setInput('breakpoint', 'xl'); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('container-xl'); + }); }); diff --git a/projects/coreui-angular/src/lib/grid/container.component.ts b/projects/coreui-angular/src/lib/grid/container.component.ts index 1d9e02aa..8ae9c202 100644 --- a/projects/coreui-angular/src/lib/grid/container.component.ts +++ b/projects/coreui-angular/src/lib/grid/container.component.ts @@ -1,33 +1,31 @@ -import { booleanAttribute, Component, HostBinding, Input } from '@angular/core'; - -import { IContainer } from './container.type'; +import { booleanAttribute, Component, computed, input } from '@angular/core'; import { Breakpoints } from '../coreui.types'; @Component({ selector: 'c-container, [cContainer]', - template: '', + template: '', styleUrls: ['./container.component.scss'], - standalone: true + host: { '[class]': 'hostClasses()' } }) -export class ContainerComponent implements IContainer { - +export class ContainerComponent { /** * Set container 100% wide until a breakpoint. */ - @Input() breakpoint: Exclude = ''; + readonly breakpoint = input>(''); /** * Set container 100% wide, spanning the entire width of the viewport. - * @type boolean | string + * @return boolean */ - @Input({ transform: booleanAttribute }) fluid: string | boolean = false; + readonly fluid = input(false, { transform: booleanAttribute }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const breakpoint = this.breakpoint(); + const fluid = this.fluid(); return { - container: !this.fluid && !this.breakpoint, - 'container-fluid': !!this.fluid, - [`container-${this.breakpoint}`]: !!this.breakpoint - }; - } + container: !fluid && !breakpoint, + 'container-fluid': !!fluid, + [`container-${breakpoint}`]: !!breakpoint + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/grid/container.type.ts b/projects/coreui-angular/src/lib/grid/container.type.ts index aabe36cf..6529a39a 100644 --- a/projects/coreui-angular/src/lib/grid/container.type.ts +++ b/projects/coreui-angular/src/lib/grid/container.type.ts @@ -1,6 +1,7 @@ import { Breakpoints } from '../coreui.types'; +import { InputSignal, InputSignalWithTransform } from '@angular/core'; export interface IContainer { - fluid?: string | boolean; - breakpoint?: Exclude; + fluid?: string | boolean | InputSignalWithTransform; + breakpoint?: Exclude | InputSignal>; } diff --git a/projects/coreui-angular/src/lib/grid/gutter.directive.spec.ts b/projects/coreui-angular/src/lib/grid/gutter.directive.spec.ts index 8e8dabea..144458fe 100644 --- a/projects/coreui-angular/src/lib/grid/gutter.directive.spec.ts +++ b/projects/coreui-angular/src/lib/grid/gutter.directive.spec.ts @@ -1,8 +1,45 @@ +import { Component, DebugElement } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; import { GutterDirective } from './gutter.directive'; +import { GutterBreakpoints, Gutters, IGutterObject } from './gutter.type'; + +@Component({ + imports: [GutterDirective], + template: '
' +}) +export class TestComponent { + gutter: IGutterObject | GutterBreakpoints | Gutters = 5; +} describe('GutterDirective', () => { + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }); + fixture = TestBed.createComponent(TestComponent); + debugElement = fixture.debugElement.query(By.directive(GutterDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new GutterDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new GutterDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css class', () => { + expect(debugElement.nativeElement).toHaveClass('g-5'); + fixture.componentInstance.gutter = { gx: 2, gy: 1 }; + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('gx-2'); + expect(debugElement.nativeElement).toHaveClass('gy-1'); + fixture.componentInstance.gutter = { md: { g: 3 } }; + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('g-md-3'); }); }); diff --git a/projects/coreui-angular/src/lib/grid/gutter.directive.ts b/projects/coreui-angular/src/lib/grid/gutter.directive.ts index 00b4e120..6a4a69be 100644 --- a/projects/coreui-angular/src/lib/grid/gutter.directive.ts +++ b/projects/coreui-angular/src/lib/grid/gutter.directive.ts @@ -1,4 +1,4 @@ -import { Directive, HostBinding, Input } from '@angular/core'; +import { computed, Directive, input } from '@angular/core'; import { BreakpointInfix } from '../coreui.types'; import { GutterBreakpoints, Gutters, IGutter, IGutterObject } from './gutter.type'; @@ -6,42 +6,41 @@ import { GutterBreakpoints, Gutters, IGutter, IGutterObject } from './gutter.typ @Directive({ // eslint-disable-next-line @angular-eslint/directive-selector selector: '[gutter]', - standalone: true + exportAs: 'gutter', + host: { + '[class]': 'hostClasses()' + } }) export class GutterDirective implements IGutter { /** * Define padding between columns to space and align content responsively in the Bootstrap grid system. */ - @Input() gutter: (IGutterObject | GutterBreakpoints | Gutters) = {}; - - constructor() { } - - @HostBinding('class') - get hostClasses(): any { + readonly gutter = input({}); - let gutterClass: any; + readonly hostClasses = computed(() => { + let gutterClass: Record; + const gutterInput = this.gutter(); - if (typeof this.gutter === 'number') { - gutterClass = GutterDirective.getGutterClasses({ g: this.gutter }); + if (typeof gutterInput === 'number') { + gutterClass = GutterDirective.getGutterClasses({ g: gutterInput }); return gutterClass; } { - // @ts-ignore - const { g, gx, gy } = { ...this.gutter }; + const { g, gx, gy } = { ...(gutterInput as IGutterObject) }; gutterClass = GutterDirective.getGutterClasses({ g, gx, gy }); } - Object.keys(BreakpointInfix).forEach(key => { + Object.keys(BreakpointInfix).forEach((key) => { // @ts-ignore - const gutter = this.gutter[key] ? { ...this.gutter[key] } : undefined; + const gutter: IGutterObject = gutterInput[key] ? { ...gutterInput[key] } : undefined; if (gutter) { const classes = GutterDirective.getGutterClasses(gutter, key); gutterClass = { ...gutterClass, ...classes }; } }); return gutterClass; - } + }); private static getGutterClasses(gutter: IGutterObject, breakpoint?: string): any { const { g, gx, gy } = { ...gutter }; diff --git a/projects/coreui-angular/src/lib/grid/gutter.type.ts b/projects/coreui-angular/src/lib/grid/gutter.type.ts index f8cf41d0..05864874 100644 --- a/projects/coreui-angular/src/lib/grid/gutter.type.ts +++ b/projects/coreui-angular/src/lib/grid/gutter.type.ts @@ -1,7 +1,8 @@ +import { type InputSignal } from '@angular/core'; import { BreakpointInfix } from '../coreui.types'; export interface IGutter { - gutter?: (IGutterObject | GutterBreakpoints | Gutters); + gutter?: InputSignal; } export type Gutters = 0 | 1 | 2 | 3 | 4 | 5 | number; diff --git a/projects/coreui-angular/src/lib/grid/row.component.spec.ts b/projects/coreui-angular/src/lib/grid/row.component.spec.ts index e5f6277a..93e7cce8 100644 --- a/projects/coreui-angular/src/lib/grid/row.component.spec.ts +++ b/projects/coreui-angular/src/lib/grid/row.component.spec.ts @@ -22,4 +22,8 @@ describe('RowComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('row'); + }); }); diff --git a/projects/coreui-angular/src/lib/grid/row.component.ts b/projects/coreui-angular/src/lib/grid/row.component.ts index 3f450640..4b1f1dda 100644 --- a/projects/coreui-angular/src/lib/grid/row.component.ts +++ b/projects/coreui-angular/src/lib/grid/row.component.ts @@ -4,7 +4,6 @@ import { RowDirective } from './row.directive'; @Component({ selector: 'c-row', - template: '', - standalone: true + template: '' }) export class RowComponent extends RowDirective {} diff --git a/projects/coreui-angular/src/lib/grid/row.directive.spec.ts b/projects/coreui-angular/src/lib/grid/row.directive.spec.ts index 65e2b2bc..52b62e41 100644 --- a/projects/coreui-angular/src/lib/grid/row.directive.spec.ts +++ b/projects/coreui-angular/src/lib/grid/row.directive.spec.ts @@ -1,8 +1,37 @@ +import { Component, DebugElement } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RowDirective } from './row.directive'; +import { By } from '@angular/platform-browser'; + +@Component({ + imports: [RowDirective], + template: `
` +}) +export class TestComponent {} describe('RowDirective', () => { + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }); + fixture = TestBed.createComponent(TestComponent); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new RowDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new RowDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css class', () => { + debugElement = fixture.debugElement.query(By.css('#row0')); + expect(debugElement.nativeElement).toHaveClass('row'); + expect(debugElement.nativeElement).toHaveClass('row-cols-auto'); + expect(debugElement.nativeElement).toHaveClass('row-cols-md-7'); }); }); diff --git a/projects/coreui-angular/src/lib/grid/row.directive.ts b/projects/coreui-angular/src/lib/grid/row.directive.ts index 93eff879..a15098e5 100644 --- a/projects/coreui-angular/src/lib/grid/row.directive.ts +++ b/projects/coreui-angular/src/lib/grid/row.directive.ts @@ -1,63 +1,69 @@ -import { Directive, HostBinding, Input } from '@angular/core'; +import { computed, Directive, input } from '@angular/core'; import { BreakpointInfix } from '../coreui.types'; -import { IRow, NumberOfColumns } from './row.type'; +import { NumberOfColumns } from './row.type'; @Directive({ selector: '[cRow]', - standalone: true + host: { + class: 'row', + '[class]': 'hostClasses()' + } }) -export class RowDirective implements IRow { +export class RowDirective { /** * The number of columns/offset/order on extra small devices (<576px). - * @type {{ cols: 'auto' | number } + * @return { cols: 'auto' | number } */ - @Input() xs?: NumberOfColumns; + readonly xs = input(); + /** * The number of columns/offset/order on small devices (<768px). - * @type {{ cols: 'auto' | number } + * @return { cols: 'auto' | number } */ - @Input() sm?: NumberOfColumns; + readonly sm = input(); + /** * The number of columns/offset/order on medium devices (<992px). - * @type {{ cols: 'auto' | number } + * @return { cols: 'auto' | number } */ - @Input() md?: NumberOfColumns; + readonly md = input(); + /** * The number of columns/offset/order on large devices (<1200px). - * @type {{ cols: 'auto' | number } + * @return { cols: 'auto' | number } */ - @Input() lg?: NumberOfColumns; + readonly lg = input(); + /** * The number of columns/offset/order on X-Large devices (<1400px). - * @type {{ cols: 'auto' | number } + * @return { cols: 'auto' | number } */ - @Input() xl?: NumberOfColumns; + readonly xl = input(); + /** * The number of columns/offset/order on XX-Large devices (≥1400px). - * @type {{ cols: 'auto' | number } + * @return { cols: 'auto' | number } */ - @Input() xxl?: NumberOfColumns; + readonly xxl = input(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const cols = this.xs(); - const cols = this.xs; - - const classes: any = { + const classes: Record = { row: true, - [`row-cols-${cols}`]: !!cols, + [`row-cols-${cols}`]: !!cols }; - Object.keys(BreakpointInfix).forEach(breakpoint => { + Object.keys(BreakpointInfix).forEach((breakpoint) => { // @ts-ignore - const value: any = this[breakpoint]; - if ((typeof value === 'number') || (typeof value === 'string')) { - const infix: string = breakpoint === 'xs' ? '' : breakpoint; - classes[`row-cols-${infix}-${value}`] = !!value; + const value: any = this[breakpoint](); + if (typeof value === 'number' || typeof value === 'string') { + const infix: string = breakpoint === 'xs' ? '' : `-${breakpoint}`; + classes[`row-cols${infix}-${value}`] = !!value; } }); return classes; - } + }); } diff --git a/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.spec.ts b/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.spec.ts index 2e020115..1bf139af 100644 --- a/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.spec.ts +++ b/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.spec.ts @@ -1,23 +1,19 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { RouterTestingModule } from '@angular/router/testing'; -import { Router } from '@angular/router'; import { HeaderBrandComponent } from './header-brand.component'; describe('HeaderBrandComponent', () => { let component: HeaderBrandComponent; let fixture: ComponentFixture; - let router: Router; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [RouterTestingModule.withRoutes([]), HeaderBrandComponent] + imports: [HeaderBrandComponent] }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(HeaderBrandComponent); - router = TestBed.inject(Router); component = fixture.componentInstance; fixture.detectChanges(); }); @@ -25,4 +21,12 @@ describe('HeaderBrandComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('header-brand'); + }); + + it('should have role', () => { + expect(fixture.nativeElement.getAttribute('role')).toBe('button'); + }); }); diff --git a/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.ts b/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.ts index f50978f5..56face65 100644 --- a/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.ts +++ b/projects/coreui-angular/src/lib/header/header-brand/header-brand.component.ts @@ -1,18 +1,19 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, input } from '@angular/core'; @Component({ selector: 'c-header-brand', - template: ``, - standalone: true + template: '', + exportAs: 'cHeaderBrand', + host: { + '[attr.role]': 'role()', + class: 'header-brand' + } }) export class HeaderBrandComponent { /** * Default role for header-brand. [docs] - * @type string + * @return string * @default 'button' */ - @HostBinding('attr.role') - @Input() role = 'button'; - - @HostBinding('class.header-brand') headerBrandClass = true; + readonly role = input('button'); } diff --git a/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.spec.ts b/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.spec.ts index ddaadfa1..cbf3019e 100644 --- a/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.spec.ts +++ b/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.spec.ts @@ -22,4 +22,8 @@ describe('HeaderDividerComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('header-divider'); + }); }); diff --git a/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.ts b/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.ts index f5c2cd69..6bf57be0 100644 --- a/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.ts +++ b/projects/coreui-angular/src/lib/header/header-divider/header-divider.component.ts @@ -1,12 +1,10 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-header-divider, [cHeaderDivider]', template: ``, - standalone: true + host: { + class: 'header-divider' + } }) -export class HeaderDividerComponent { - - @HostBinding('class.header-divider') headerDividerClass = true; - -} +export class HeaderDividerComponent {} diff --git a/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.spec.ts b/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.spec.ts index 4753ac75..aa593494 100644 --- a/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.spec.ts +++ b/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.spec.ts @@ -9,8 +9,7 @@ describe('HeaderNavComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [HeaderNavComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +21,12 @@ describe('HeaderNavComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('header-nav'); + }); + + it('should have role', () => { + expect(fixture.nativeElement.getAttribute('role')).toBe('navigation'); + }); }); diff --git a/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.ts b/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.ts index bbd60bd6..6ea49036 100644 --- a/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.ts +++ b/projects/coreui-angular/src/lib/header/header-nav/header-nav.component.ts @@ -1,19 +1,20 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, input } from '@angular/core'; @Component({ selector: 'c-header-nav', - template: ``, + template: '', styleUrls: ['./header-nav.component.scss'], - standalone: true + exportAs: 'cHeaderNav', + host: { + '[attr.role]': 'role()', + class: 'header-nav' + } }) export class HeaderNavComponent { /** * Default role for header-nav. [docs] - * @type string + * @return string * @default 'navigation' */ - @HostBinding('attr.role') - @Input() role = 'navigation'; - - @HostBinding('class.header-nav') headerNavClass = true; + readonly role = input('navigation'); } diff --git a/projects/coreui-angular/src/lib/header/header-text/header-text.component.spec.ts b/projects/coreui-angular/src/lib/header/header-text/header-text.component.spec.ts index d20be299..87fb1b8d 100644 --- a/projects/coreui-angular/src/lib/header/header-text/header-text.component.spec.ts +++ b/projects/coreui-angular/src/lib/header/header-text/header-text.component.spec.ts @@ -22,4 +22,8 @@ describe('HeaderTextComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('header-text'); + }); }); diff --git a/projects/coreui-angular/src/lib/header/header-text/header-text.component.ts b/projects/coreui-angular/src/lib/header/header-text/header-text.component.ts index df064205..a777d57d 100644 --- a/projects/coreui-angular/src/lib/header/header-text/header-text.component.ts +++ b/projects/coreui-angular/src/lib/header/header-text/header-text.component.ts @@ -1,10 +1,10 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-header-text, [cHeaderText]', - template: ``, - standalone: true + template: '', + host: { + class: 'header-text' + } }) -export class HeaderTextComponent { - @HostBinding('class.header-text') headerTextClass = true; -} +export class HeaderTextComponent {} diff --git a/projects/coreui-angular/src/lib/header/header-toggler/header-toggler.directive.spec.ts b/projects/coreui-angular/src/lib/header/header-toggler/header-toggler.directive.spec.ts index 328f1445..9e9e6e2f 100644 --- a/projects/coreui-angular/src/lib/header/header-toggler/header-toggler.directive.spec.ts +++ b/projects/coreui-angular/src/lib/header/header-toggler/header-toggler.directive.spec.ts @@ -1,21 +1,46 @@ -import { TestBed } from '@angular/core/testing'; -import { ElementRef, Renderer2 } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { Component, DebugElement, ElementRef, Renderer2 } from '@angular/core'; +import { By } from '@angular/platform-browser'; import { HeaderTogglerDirective } from './header-toggler.directive'; +@Component({ + imports: [HeaderTogglerDirective], + template: '
' +}) +export class TestComponent { + theme!: 'dark' | 'light' | undefined; +} + +class MockElementRef extends ElementRef {} + describe('HeaderTogglerDirective', () => { - let renderer: Renderer2; - let hostElement: ElementRef; + let fixture: ComponentFixture; + let debugElement: DebugElement; beforeEach(() => { TestBed.configureTestingModule({ - imports: [Renderer2], - providers: [Renderer2] + imports: [TestComponent], + providers: [Renderer2, { provide: ElementRef, useClass: MockElementRef }] }); + fixture = TestBed.createComponent(TestComponent); + debugElement = fixture.debugElement.query(By.directive(HeaderTogglerDirective)); + fixture.detectChanges(); }); it('should create an instance', () => { - const directive = new HeaderTogglerDirective(renderer, hostElement); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new HeaderTogglerDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css class', () => { + expect(debugElement.nativeElement).toHaveClass('header-toggler'); + }); + + it('should set attributes', () => { + expect(debugElement.nativeElement.getAttribute('type')).toBe('button'); + expect(debugElement.nativeElement.getAttribute('aria-label')).toBe('Toggle navigation'); }); }); diff --git a/projects/coreui-angular/src/lib/header/header-toggler/header-toggler.directive.ts b/projects/coreui-angular/src/lib/header/header-toggler/header-toggler.directive.ts index 13384649..4d3df892 100644 --- a/projects/coreui-angular/src/lib/header/header-toggler/header-toggler.directive.ts +++ b/projects/coreui-angular/src/lib/header/header-toggler/header-toggler.directive.ts @@ -1,43 +1,41 @@ -import { AfterContentInit, Directive, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core'; +import { AfterContentInit, Directive, ElementRef, inject, input, Renderer2 } from '@angular/core'; @Directive({ selector: '[cHeaderToggler]', - standalone: true + exportAs: 'cHeaderToggler', + host: { + '[attr.type]': 'type()', + '[attr.aria-label]': 'ariaLabel()', + class: 'header-toggler' + } }) export class HeaderTogglerDirective implements AfterContentInit { + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); - @HostBinding('class.header-toggler') headerToggler = true; /** - * Default role for header-toggler. [docs] - * @type string + * Default type for header-toggler button. [docs] + * @return string * @default 'button' */ - @HostBinding('attr.type') - @Input() type = 'button'; + readonly type = input('button'); + /** * Default aria-label attr for header-toggler. [docs] * @type string * @default 'Toggle navigation' */ - @HostBinding('attr.aria-label') - @Input() ariaLabel = 'Toggle navigation'; - - private hasContent!: boolean; - - constructor( - private renderer: Renderer2, - private hostElement: ElementRef - ) { } + readonly ariaLabel = input('Toggle navigation'); addDefaultIcon(): void { - const span = this.renderer.createElement('span'); - this.renderer.addClass(span, 'header-toggler-icon'); - this.renderer.appendChild(this.hostElement.nativeElement, span); + const span = this.#renderer.createElement('span'); + this.#renderer.addClass(span, 'header-toggler-icon'); + this.#renderer.appendChild(this.#hostElement.nativeElement, span); } ngAfterContentInit(): void { - this.hasContent = this.hostElement.nativeElement.childNodes.length > 0; - if (!this.hasContent) { + const hasContent = this.#hostElement.nativeElement.childNodes.length > 0; + if (!hasContent) { this.addDefaultIcon(); } } diff --git a/projects/coreui-angular/src/lib/header/header/header.component.html b/projects/coreui-angular/src/lib/header/header/header.component.html index bde2f1cc..4d4c6216 100644 --- a/projects/coreui-angular/src/lib/header/header/header.component.html +++ b/projects/coreui-angular/src/lib/header/header/header.component.html @@ -1,8 +1,7 @@ -
- -
- - - - - +@if (!!container()) { +
+ +
+} @else { + +} diff --git a/projects/coreui-angular/src/lib/header/header/header.component.spec.ts b/projects/coreui-angular/src/lib/header/header/header.component.spec.ts index b6503aee..b8713b3b 100644 --- a/projects/coreui-angular/src/lib/header/header/header.component.spec.ts +++ b/projects/coreui-angular/src/lib/header/header/header.component.spec.ts @@ -28,4 +28,8 @@ describe('HeaderComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('header'); + }); }); diff --git a/projects/coreui-angular/src/lib/header/header/header.component.ts b/projects/coreui-angular/src/lib/header/header/header.component.ts index 8819656d..097b56c0 100644 --- a/projects/coreui-angular/src/lib/header/header/header.component.ts +++ b/projects/coreui-angular/src/lib/header/header/header.component.ts @@ -1,5 +1,5 @@ -import { Component, HostBinding, Input } from '@angular/core'; -import { NgClass, NgIf } from '@angular/common'; +import { Component, computed, input, InputSignal } from '@angular/core'; +import { NgClass } from '@angular/common'; import { Positions } from '../../coreui.types'; @@ -8,42 +8,43 @@ type Container = boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'fluid'; @Component({ selector: 'c-header, [c-header]', templateUrl: './header.component.html', - standalone: true, - imports: [NgClass, NgIf] + imports: [NgClass], + exportAs: 'cHeader', + host: { '[attr.role]': 'role()', '[class]': 'hostClasses()' } }) export class HeaderComponent { /** * Defines optional container wrapping children elements. */ - @Input() container?: Container; + readonly container = input(); /** * Place header in non-static positions. */ - @Input() position?: Positions; + readonly position = input(); /** * Default role for header. [docs] * @type string - * @default 'header' + * @default 'banner' */ - @HostBinding('attr.role') - @Input() role = 'header'; + readonly role: InputSignal = input('banner'); - @HostBinding('class') - get getClasses(): any { - return !!this.container ? this.containerClasses : this.headerClasses; - } + readonly hostClasses = computed(() => { + return !!this.container() ? this.containerClasses() : this.headerClasses(); + }); - get headerClasses(): any { + readonly headerClasses = computed(() => { + const position = this.position(); return { header: true, - [`header-${this.position}`]: !!this.position - }; - } + [`header-${position}`]: !!position + } as Record; + }); - get containerClasses(): any { + readonly containerClasses = computed(() => { + const container = this.container(); return { - container: this.container === true, - [`container-${this.container}`]: typeof this.container === 'string' - }; - } + container: container === true, + [`container-${container}`]: typeof container === 'string' + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/image/img.directive.spec.ts b/projects/coreui-angular/src/lib/image/img.directive.spec.ts index 3449eff7..73ff2214 100644 --- a/projects/coreui-angular/src/lib/image/img.directive.spec.ts +++ b/projects/coreui-angular/src/lib/image/img.directive.spec.ts @@ -1,8 +1,11 @@ +import { TestBed } from '@angular/core/testing'; import { ImgDirective } from './img.directive'; describe('ImgDirective', () => { it('should create an instance', () => { - const directive = new ImgDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ImgDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/image/img.directive.ts b/projects/coreui-angular/src/lib/image/img.directive.ts index 3dd08115..13716cb5 100644 --- a/projects/coreui-angular/src/lib/image/img.directive.ts +++ b/projects/coreui-angular/src/lib/image/img.directive.ts @@ -1,55 +1,55 @@ -import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, computed, Directive, input, InputSignal, InputSignalWithTransform } from '@angular/core'; @Directive({ selector: '[cImg]', - standalone: true + host: { + '[class]': 'hostClasses()', + '[style]': 'hostStyles()' + } }) export class ImgDirective { - /** * Set the horizontal aligment. * @type {'' | 'start' | 'end' | 'center'} */ - @Input() align: '' | 'start' | 'end' | 'center' = ''; + readonly align: InputSignal<'' | 'start' | 'end' | 'center'> = input<'' | 'start' | 'end' | 'center'>(''); /** * Make image responsive. * @type boolean */ - @Input({ transform: booleanAttribute }) fluid: string | boolean = false; + readonly fluid: InputSignalWithTransform = input(false, { transform: booleanAttribute }); /** * Make image rounded. * @type boolean */ - @Input({ transform: booleanAttribute }) rounded: string | boolean = false; + readonly rounded: InputSignalWithTransform = input(false, { transform: booleanAttribute }); /** * Give an image a rounded 1px border appearance. * @type boolean */ - @Input({ transform: booleanAttribute }) thumbnail: string | boolean = false; + readonly thumbnail: InputSignalWithTransform = input(false, { transform: booleanAttribute }); /** * Color for image placeholder. */ - @Input() placeholderColor = 'transparent'; + readonly placeholderColor = input('transparent'); - @HostBinding('style') - get getStyles(): any { - return { backgroundColor: this.placeholderColor }; - } + readonly hostStyles = computed(() => { + return { backgroundColor: this.placeholderColor() }; + }); - @HostBinding('class') - get hostClasses(): any { - const align = this.align; + readonly hostClasses = computed(() => { + const align = this.align(); return { [`float-${align}`]: align === 'start' || align === 'end', 'd-block': align === 'center', 'mx-auto': align === 'center', - 'img-fluid': this.fluid, - 'rounded': this.rounded, - 'img-thumbnail': this.thumbnail - }; - } + 'img-fluid': this.fluid(), + rounded: this.rounded(), + 'img-thumbnail': this.thumbnail() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/list-group/list-group-item.directive.spec.ts b/projects/coreui-angular/src/lib/list-group/list-group-item.directive.spec.ts index 85a7df15..9ad3f3c0 100644 --- a/projects/coreui-angular/src/lib/list-group/list-group-item.directive.spec.ts +++ b/projects/coreui-angular/src/lib/list-group/list-group-item.directive.spec.ts @@ -1,36 +1,34 @@ -import { Component, DebugElement, ElementRef } from '@angular/core'; +import { Component, ElementRef } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ListGroupItemDirective } from './list-group-item.directive'; -import { By } from '@angular/platform-browser'; class MockElementRef extends ElementRef {} @Component({ - template: `
  • ` + template: '
  • ', + imports: [ListGroupItemDirective] }) class TestComponent {} describe('ListGroupItemDirective', () => { - let component: TestComponent; let fixture: ComponentFixture; - let liEl: DebugElement; beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent], - imports: [ListGroupItemDirective], + imports: [ListGroupItemDirective, TestComponent], providers: [{ provide: ElementRef, useClass: MockElementRef }] }); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; - liEl = fixture.debugElement.query(By.css('li')); fixture.detectChanges(); // initial binding }); it('should create an instance', () => { - const directive = new ListGroupItemDirective(liEl); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ListGroupItemDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/list-group/list-group-item.directive.ts b/projects/coreui-angular/src/lib/list-group/list-group-item.directive.ts index 395dd24c..8c178499 100644 --- a/projects/coreui-angular/src/lib/list-group/list-group-item.directive.ts +++ b/projects/coreui-angular/src/lib/list-group/list-group-item.directive.ts @@ -1,64 +1,82 @@ -import { booleanAttribute, Directive, ElementRef, HostBinding, Input } from '@angular/core'; -import { Colors } from '../coreui.types'; +import { + booleanAttribute, + computed, + Directive, + ElementRef, + inject, + input, + InputSignal, + InputSignalWithTransform, + numberAttribute +} from '@angular/core'; +import { BooleanInput, Colors } from '../coreui.types'; @Directive({ selector: '[cListGroupItem], c-list-group-item', exportAs: 'cListGroupItem', - standalone: true + host: { + '[class]': 'hostClasses()', + '[attr.aria-disabled]': 'ariaDisabled()', + '[attr.aria-current]': 'ariaCurrent()', + '[attr.disabled]': 'attrDisabled()', + '[attr.tabindex]': 'tabIndex()' + } }) export class ListGroupItemDirective { + static ngAcceptInputType_active: BooleanInput; + static ngAcceptInputType_disabled: BooleanInput; - constructor( - private hostElement: ElementRef - ) { } + readonly hostElement = inject(ElementRef); /** * Toggle the active state for the component. - * @type boolean + * @type InputSignalWithTransform */ - @Input() active?: boolean; + readonly active: InputSignalWithTransform = input(false, { transform: booleanAttribute }); /** * Sets the color context of the component to one of CoreUI’s themed colors. - * @type Colors + * @type InputSignal */ - @Input() color?: Colors; + readonly color: InputSignal = input(); /** * Set disabled attr for the host element. [docs] * @type boolean */ - @Input({ transform: booleanAttribute }) disabled: string | boolean = false; - - @HostBinding('attr.aria-disabled') - get isDisabled(): boolean | null { - return this.disabled || null; - } + readonly disabled: InputSignalWithTransform = input(false, { transform: booleanAttribute }); - @HostBinding('attr.disabled') - get attrDisabled() { - return this.disabled ? '' : null; - }; - - @HostBinding('attr.tabindex') - get getTabindex(): string | null { - return this.disabled ? '-1' : null; - } - - @HostBinding('attr.aria-current') get ariaCurrent(): boolean { - return !!this.active; - } + /** + * The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating). + */ + readonly tabindex = input(undefined, { transform: numberAttribute }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { const host: HTMLElement = this.hostElement.nativeElement; return { 'list-group-item': true, 'list-group-item-action': host.nodeName === 'A' || host.nodeName === 'BUTTON', - active: !!this.active, - disabled: this.isDisabled, - [`list-group-item-${this.color}`]: !!this.color - }; - } + active: this.active(), + disabled: this._disabled(), + [`list-group-item-${this.color()}`]: !!this.color() + } as Record; + }); + + readonly _disabled = computed(() => this.disabled()); + + readonly ariaDisabled = computed(() => { + return this._disabled() ? true : null; + }); + + readonly attrDisabled = computed(() => { + return this._disabled() ? '' : null; + }); + + readonly tabIndex = computed(() => { + return this._disabled() ? '-1' : (this.tabindex() ?? null); + }); + readonly ariaCurrent = computed(() => { + return this.active() || null; + }); } diff --git a/projects/coreui-angular/src/lib/list-group/list-group.directive.spec.ts b/projects/coreui-angular/src/lib/list-group/list-group.directive.spec.ts index 82663dca..f8e6246e 100644 --- a/projects/coreui-angular/src/lib/list-group/list-group.directive.spec.ts +++ b/projects/coreui-angular/src/lib/list-group/list-group.directive.spec.ts @@ -1,8 +1,11 @@ +import { TestBed } from '@angular/core/testing'; import { ListGroupDirective } from './list-group.directive'; describe('ListGroupDirective', () => { it('should create an instance', () => { - const directive = new ListGroupDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ListGroupDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/list-group/list-group.directive.ts b/projects/coreui-angular/src/lib/list-group/list-group.directive.ts index 64d88dfb..cfe93e5f 100644 --- a/projects/coreui-angular/src/lib/list-group/list-group.directive.ts +++ b/projects/coreui-angular/src/lib/list-group/list-group.directive.ts @@ -1,32 +1,34 @@ -import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core'; -import { Sizes } from '../coreui.types'; +import { booleanAttribute, computed, Directive, input, InputSignalWithTransform } from '@angular/core'; +import { BooleanInput, Sizes } from '../coreui.types'; @Directive({ selector: '[cListGroup]', - standalone: true + host: { + class: 'list-group', + '[class]': 'hostClasses()' + } }) export class ListGroupDirective { + static ngAcceptInputType_flush: BooleanInput; /** * Remove some borders and rounded corners to render list group items edge-to-edge in a parent component (e.g., ``). * @type boolean */ - @Input({ transform: booleanAttribute }) flush: string | boolean = false; + readonly flush: InputSignalWithTransform = input(false, { transform: booleanAttribute }); /** * Specify horizontal layout type. */ - @Input() horizontal?: boolean | Sizes; + readonly horizontal = input(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const horizontal = this.horizontal(); return { 'list-group': true, - 'list-group-horizontal': this.horizontal === true || this.horizontal === '', - [`list-group-horizontal-${this.horizontal}`]: !!this.horizontal && typeof this.horizontal !== 'boolean', - 'list-group-flush': this.flush - }; - } - + 'list-group-horizontal': horizontal === true || horizontal === '', + [`list-group-horizontal-${horizontal}`]: !!horizontal && typeof horizontal !== 'boolean', + 'list-group-flush': this.flush() + } as Record; + }); } - diff --git a/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.spec.ts index 95292a84..b52f4237 100644 --- a/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.spec.ts +++ b/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.spec.ts @@ -22,4 +22,8 @@ describe('ModalBodyComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('modal-body'); + }); }); diff --git a/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.ts b/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.ts index 3ebea103..6f343ec4 100644 --- a/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.ts +++ b/projects/coreui-angular/src/lib/modal/modal-body/modal-body.component.ts @@ -1,17 +1,9 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-modal-body', - template: '', + template: '', styleUrls: ['./modal-body.component.scss'], - standalone: true + host: { class: 'modal-body' } }) -export class ModalBodyComponent { - - @HostBinding('class') - get hostClasses(): any { - return { - 'modal-body': true, - }; - } -} +export class ModalBodyComponent {} diff --git a/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.spec.ts index be7ec86d..ac6dad05 100644 --- a/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.spec.ts +++ b/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.spec.ts @@ -22,4 +22,8 @@ describe('ModalContentComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('modal-content'); + }); }); diff --git a/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.ts b/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.ts index 1a6ac176..32296445 100644 --- a/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.ts +++ b/projects/coreui-angular/src/lib/modal/modal-content/modal-content.component.ts @@ -1,15 +1,8 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-modal-content', - template: '', - standalone: true + template: '', + host: { class: 'modal-content' } }) -export class ModalContentComponent { - @HostBinding('class') - get hostClasses(): any { - return { - 'modal-content': true - }; - } -} +export class ModalContentComponent {} diff --git a/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.spec.ts index d845369c..dfbf52c6 100644 --- a/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.spec.ts +++ b/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.spec.ts @@ -1,25 +1,81 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentRef } from '@angular/core'; import { ModalDialogComponent } from './modal-dialog.component'; describe('ModalDialogComponent', () => { let component: ModalDialogComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ModalDialogComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { fixture = TestBed.createComponent(ModalDialogComponent); component = fixture.componentInstance; + componentRef = fixture.componentRef; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('modal-dialog'); + }); + + it('should have css classes for alignment prop', () => { + componentRef.setInput('alignment', 'center'); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('modal-dialog-centered'); + componentRef.setInput('alignment', 'top'); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('modal-dialog-centered'); + expect(fixture.nativeElement).toHaveClass('modal-dialog'); + }); + + it('should have css classes for fullscreen prop', () => { + componentRef.setInput('fullscreen', true); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('modal-fullscreen'); + for (const size of ['sm', 'md', 'lg', 'xl', 'xxl']) { + componentRef.setInput('fullscreen', size); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass(`modal-fullscreen-${size}-down`); + } + componentRef.setInput('fullscreen', false); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('modal-fullscreen'); + expect(fixture.nativeElement).toHaveClass('modal-dialog'); + }); + + it('should have css classes for scrollable prop', () => { + expect(fixture.nativeElement).not.toHaveClass('modal-dialog-scrollable'); + componentRef.setInput('scrollable', true); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('modal-dialog-scrollable'); + componentRef.setInput('scrollable', false); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('modal-dialog-scrollable'); + expect(fixture.nativeElement).toHaveClass('modal-dialog'); + }); + + it('should have css classes for size prop', () => { + for (const size of ['sm', 'lg', 'xl']) { + componentRef.setInput('size', size); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass(`modal-${size}`); + } + componentRef.setInput('size', undefined); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('modal-sm'); + expect(fixture.nativeElement).not.toHaveClass('modal-lg'); + expect(fixture.nativeElement).not.toHaveClass('modal-xl'); + expect(fixture.nativeElement).toHaveClass('modal-dialog'); + }); }); diff --git a/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.ts b/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.ts index 750e036e..878850d1 100644 --- a/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.ts +++ b/projects/coreui-angular/src/lib/modal/modal-dialog/modal-dialog.component.ts @@ -1,41 +1,48 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, Component, computed, input } from '@angular/core'; @Component({ selector: 'c-modal-dialog', - template: '', + template: '', styleUrls: ['./modal-dialog.component.scss'], - standalone: true + host: { class: 'modal-dialog', '[class]': 'hostClasses()' } }) export class ModalDialogComponent { /** * Align the modal in the center or top of the screen. - * @type {'top' | 'center'} + * @default undefined */ - @Input() alignment?: 'top' | 'center'; + readonly alignment = input<'top' | 'center'>(); + /** * Set modal to covers the entire user viewport. - * @type {boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'} + * @return {boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'} */ - @Input() fullscreen?: boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; + readonly fullscreen = input(); + /** * Does the modal dialog itself scroll, or does the whole dialog scroll within the window. - * @type boolean + * @default false + * @return {boolean} */ - @Input() scrollable?: boolean; + readonly scrollable = input(false, { transform: booleanAttribute }); + /** * Size the component small, large, or extra large. + * @default undefined + * @return {'sm' | 'lg' | 'xl'} */ - @Input() size?: 'sm' | 'lg' | 'xl'; + readonly size = input<'sm' | 'lg' | 'xl'>(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const fullscreen = this.fullscreen(); + const size = this.size(); return { 'modal-dialog': true, - 'modal-dialog-centered': this.alignment === 'center', - 'modal-fullscreen': this.fullscreen === true, - [`modal-fullscreen-${this.fullscreen}-down`]: this.fullscreen, - 'modal-dialog-scrollable': this.scrollable, - [`modal-${this.size}`]: this.size - }; - } + 'modal-dialog-centered': this.alignment() === 'center', + 'modal-fullscreen': fullscreen === true, + [`modal-fullscreen-${fullscreen}-down`]: typeof fullscreen === 'string', + 'modal-dialog-scrollable': this.scrollable(), + [`modal-${size}`]: !!size + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/modal/modal-dismiss/modal-toggle.directive.spec.ts b/projects/coreui-angular/src/lib/modal/modal-dismiss/modal-toggle.directive.spec.ts index 315f6aee..2c309374 100644 --- a/projects/coreui-angular/src/lib/modal/modal-dismiss/modal-toggle.directive.spec.ts +++ b/projects/coreui-angular/src/lib/modal/modal-dismiss/modal-toggle.directive.spec.ts @@ -1,10 +1,44 @@ +import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { Component, DebugElement } from '@angular/core'; +import { By } from '@angular/platform-browser'; import { ModalToggleDirective } from './modal-toggle.directive'; -import { ModalService } from '../modal.service'; + +@Component({ + template: '', + imports: [ModalToggleDirective] +}) +class TestComponent {} describe('ModalDismissDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(ModalToggleDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const modalService = new ModalService() - const directive = new ModalToggleDirective(modalService); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ModalToggleDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should handle click', fakeAsync(() => { + const directive = debugElement.injector.get(ModalToggleDirective); + const spy = spyOn(directive, 'dismiss'); + debugElement.nativeElement.dispatchEvent(new Event('click')); + directive.dismiss(new Event('click')); + tick(); + fixture.detectChanges(); + expect(spy).toHaveBeenCalledTimes(2); + })); }); diff --git a/projects/coreui-angular/src/lib/modal/modal-dismiss/modal-toggle.directive.ts b/projects/coreui-angular/src/lib/modal/modal-dismiss/modal-toggle.directive.ts index 69004abd..308eb555 100644 --- a/projects/coreui-angular/src/lib/modal/modal-dismiss/modal-toggle.directive.ts +++ b/projects/coreui-angular/src/lib/modal/modal-dismiss/modal-toggle.directive.ts @@ -1,24 +1,24 @@ -import { Directive, HostListener, Input } from '@angular/core'; +import { Directive, inject, input } from '@angular/core'; import { ModalService } from '../modal.service'; @Directive({ selector: '[cModalToggle]', - standalone: true + host: { + '(click)': 'dismiss($event)' + } }) export class ModalToggleDirective { + readonly #modalService = inject(ModalService); + /** * Html id attr of modal to dismiss. + * @default undefined */ - @Input('cModalToggle') id: string | undefined; - - constructor( - private modalService: ModalService - ) { } + readonly toggle = input(undefined, { alias: 'cModalToggle' }); - @HostListener('click', ['$event']) - dismiss($event: any): void { + dismiss($event: Event): void { $event.preventDefault(); - this.modalService.toggle({show: 'toggle', id: this.id}); + this.#modalService.toggle({ show: 'toggle', id: this.toggle() }); } } diff --git a/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.spec.ts index 8a8202d6..9c4d0279 100644 --- a/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.spec.ts +++ b/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.spec.ts @@ -22,4 +22,8 @@ describe('ModalFooterComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('modal-footer'); + }); }); diff --git a/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.ts b/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.ts index 82cb7600..f185d507 100644 --- a/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.ts +++ b/projects/coreui-angular/src/lib/modal/modal-footer/modal-footer.component.ts @@ -1,17 +1,8 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-modal-footer', - template: '', - standalone: true + template: '', + host: { class: 'modal-footer' } }) -export class ModalFooterComponent { - - @HostBinding('class') - get hostClasses(): any { - return { - 'modal-footer': true, - }; - } - -} +export class ModalFooterComponent {} diff --git a/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.spec.ts index b6f7b0a5..4c259a4b 100644 --- a/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.spec.ts +++ b/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.spec.ts @@ -22,4 +22,8 @@ describe('ModalHeaderComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('modal-header'); + }); }); diff --git a/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.ts b/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.ts index c3e1eca0..57dfe32d 100644 --- a/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.ts +++ b/projects/coreui-angular/src/lib/modal/modal-header/modal-header.component.ts @@ -1,17 +1,8 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-modal-header', - template: ``, - standalone: true + template: '', + host: { class: 'modal-header' } }) -export class ModalHeaderComponent { - - @HostBinding('class') - get hostClasses(): any { - return { - 'modal-header': true - }; - } - -} +export class ModalHeaderComponent {} diff --git a/projects/coreui-angular/src/lib/modal/modal-title/modal-title.directive.ts b/projects/coreui-angular/src/lib/modal/modal-title/modal-title.directive.ts index 630f3c92..f9f923a6 100644 --- a/projects/coreui-angular/src/lib/modal/modal-title/modal-title.directive.ts +++ b/projects/coreui-angular/src/lib/modal/modal-title/modal-title.directive.ts @@ -1,16 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cModalTitle]', - standalone: true + host: { class: 'modal-title' } }) -export class ModalTitleDirective { - - @HostBinding('class') - get hostClasses(): any { - return { - 'modal-title': true, - }; - } - -} +export class ModalTitleDirective {} diff --git a/projects/coreui-angular/src/lib/modal/modal.service.ts b/projects/coreui-angular/src/lib/modal/modal.service.ts index 7ac60196..12ced01e 100644 --- a/projects/coreui-angular/src/lib/modal/modal.service.ts +++ b/projects/coreui-angular/src/lib/modal/modal.service.ts @@ -12,13 +12,10 @@ export interface IModalAction { providedIn: 'root' }) export class ModalService { - - private modalState = new Subject(); - modalState$ = this.modalState.asObservable(); - - constructor() {} + readonly #modalState = new Subject(); + readonly modalState$ = this.#modalState.asObservable(); toggle(action: IModalAction): void { - this.modalState.next(action); + this.#modalState.next(action); } } diff --git a/projects/coreui-angular/src/lib/modal/modal/modal.component.html b/projects/coreui-angular/src/lib/modal/modal/modal.component.html index 5de848d2..c060ce9e 100644 --- a/projects/coreui-angular/src/lib/modal/modal/modal.component.html +++ b/projects/coreui-angular/src/lib/modal/modal/modal.component.html @@ -1,11 +1,11 @@ + [alignment]="alignment()" + [fullscreen]="fullscreen()" + [scrollable]="scrollable()" + [size]="size()"> -
    - +
    +
    diff --git a/projects/coreui-angular/src/lib/modal/modal/modal.component.spec.ts b/projects/coreui-angular/src/lib/modal/modal/modal.component.spec.ts index a98d893b..b49afc6e 100644 --- a/projects/coreui-angular/src/lib/modal/modal/modal.component.spec.ts +++ b/projects/coreui-angular/src/lib/modal/modal/modal.component.spec.ts @@ -22,4 +22,19 @@ describe('ModalComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('modal'); + expect(fixture.nativeElement).toHaveClass('fade'); + }); + + // it('should be visible', fakeAsync(() => { + // fixture.componentRef.setInput('visible', true); + // fixture.detectChanges(); + // expect(fixture.nativeElement).toHaveClass('show'); + // })); + + // it('should call event handling functions', fakeAsync(() => { + // + // })); }); diff --git a/projects/coreui-angular/src/lib/modal/modal/modal.component.ts b/projects/coreui-angular/src/lib/modal/modal/modal.component.ts index e574a112..279c9b7f 100644 --- a/projects/coreui-angular/src/lib/modal/modal/modal.component.ts +++ b/projects/coreui-angular/src/lib/modal/modal/modal.component.ts @@ -1,22 +1,26 @@ +import { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations'; +import { A11yModule, FocusMonitor } from '@angular/cdk/a11y'; import { + AfterViewInit, + booleanAttribute, Component, + computed, + DestroyRef, + DOCUMENT, + effect, ElementRef, - EventEmitter, - HostBinding, - HostListener, - Inject, - Input, + inject, + input, OnDestroy, OnInit, - Output, + output, Renderer2, - ViewChild + signal, + untracked, + viewChild, + WritableSignal } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; -import { A11yModule } from '@angular/cdk/a11y'; -import { Subscription } from 'rxjs'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { ModalService } from '../modal.service'; import { BackdropService } from '../../backdrop/backdrop.service'; @@ -39,215 +43,260 @@ import { ModalDialogComponent } from '../modal-dialog/modal-dialog.component'; // display: 'none' }) ), - transition('visible <=> *', [animate('300ms')]) + transition('visible <=> *', [animate('150ms')]) ]) ], templateUrl: './modal.component.html', exportAs: 'cModal', - standalone: true, - imports: [ModalDialogComponent, ModalContentComponent, A11yModule] + imports: [ModalDialogComponent, ModalContentComponent, A11yModule], + host: { + class: 'modal', + '[class]': 'hostClasses()', + '[attr.role]': 'role()', + '[attr.inert]': 'ariaHidden', + '[attr.id]': 'id', + '[attr.aria-modal]': 'ariaModal()', + '[attr.tabindex]': '-1', + '[@showHide]': 'animateTrigger()', + '(@showHide.start)': 'animateStart($event)', + '(@showHide.done)': 'animateDone($event)', + '(mousedown)': 'onMouseDownHandler($event)', + '(click)': 'onClickHandler($event)', + '(document:keyup)': 'onKeyUpHandler($event)' + } }) -export class ModalComponent implements OnInit, OnDestroy { - - static ngAcceptInputType_scrollable: BooleanInput; - static ngAcceptInputType_visible: BooleanInput; +export class ModalComponent implements OnInit, OnDestroy, AfterViewInit { + readonly #document = inject(DOCUMENT); + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + readonly #modalService = inject(ModalService); + readonly #backdropService = inject(BackdropService); - constructor( - @Inject(DOCUMENT) private document: Document, - private renderer: Renderer2, - private hostElement: ElementRef, - private modalService: ModalService, - private backdropService: BackdropService - ) { } + readonly #destroyRef = inject(DestroyRef); + readonly #focusMonitor = inject(FocusMonitor); /** * Align the modal in the center or top of the screen. - * @type {'top' | 'center'} + * @return {'top' | 'center'} * @default 'top' */ - @Input() alignment?: 'top' | 'center' = 'top'; + readonly alignment = input<'top' | 'center'>('top'); + /** * Apply a backdrop on body while modal is open. - * @type boolean | 'static' + * @return boolean | 'static' * @default true */ - @Input() backdrop: boolean | 'static' = true; + readonly backdrop = input(true); + /** * Set modal to cover the entire user viewport. - * @type {boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'} + * @return {boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'} * @default undefined */ - @Input() fullscreen?: boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; + readonly fullscreen = input(); + /** * Closes the modal when escape key is pressed. - * @type boolean + * @return boolean * @default true */ - @Input() keyboard = true; - @Input() id?: string; + readonly keyboard = input(true, { transform: booleanAttribute }); + + readonly attrId = input(undefined, { alias: 'id' }); + + get id() { + return this.attrId(); + } + /** * Size the component small, large, or extra large. + * @return {'sm' | 'lg' | 'xl'} + * @default undefined */ - @Input() size?: 'sm' | 'lg' | 'xl'; + readonly size = input<'sm' | 'lg' | 'xl'>(); + /** * Remove animation to create modal that simply appear rather than fade in to view. */ - @Input() transition = true; + readonly transition = input(true, { transform: booleanAttribute }); + /** - * Default role for modal. [docs] - * @type string + * Default role for modal + * @return string * @default 'dialog' */ - @Input() @HostBinding('attr.role') role = 'dialog'; + readonly role = input('dialog'); + /** - * Set aria-modal html attr for modal. [docs] + * Set aria-modal html attr for modal * @type boolean - * @default true + * @default null */ - @Input() @HostBinding('attr.aria-modal') ariaModal = true; + readonly ariaModalInput = input(false, { transform: booleanAttribute, alias: 'ariaModal' }); + + readonly ariaModal = computed(() => { + return this.visible || this.ariaModalInput() ? true : null; + }); /** * Create a scrollable modal that allows scrolling the modal body. - * @type boolean + * @return boolean + * @default false */ - @Input() - set scrollable(value: boolean) { - this._scrollable = coerceBooleanProperty(value); - } - - get scrollable(): boolean { - return this._scrollable; - } - - private _scrollable = false; + readonly scrollable = input(false, { transform: booleanAttribute }); /** * Toggle the visibility of modal component. - * @type boolean + * @return boolean + * @default false */ - @Input() + readonly visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' }); + + readonly #visibleInputEffect = effect(() => { + const visible = this.visibleInput(); + untracked(() => { + this.visible = visible; + }); + }); + set visible(value: boolean) { - const newValue = coerceBooleanProperty(value); - if (this._visible !== newValue) { - this._visible = newValue; - this.setBackdrop(this.backdrop !== false && newValue); - this.setBodyStyles(newValue); - this.visibleChange.emit(newValue); + if (this.#visible() !== value) { + this.#visible.set(value); + this.setBodyStyles(value); + this.setBackdrop(this.backdrop() !== false && value); + this.visibleChange?.emit(value); } } get visible(): boolean { - return this._visible; + return this.#visible(); } - private _visible!: boolean; + readonly #visible: WritableSignal = signal(false); + + readonly #activeElement = signal(null); + + readonly #visibleEffect = effect(() => { + const visible = this.#visible(); + const afterViewInit = this.#afterViewInit(); + untracked(() => { + if (visible && afterViewInit) { + this.#activeElement.set(this.#document.activeElement as HTMLElement); + // this.#activeElement()?.blur(); + setTimeout(() => { + const focusable = this.modalContentRef()?.nativeElement.querySelectorAll( + '[tabindex]:not([tabindex="-1"]), button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled])' + ); + if (focusable?.length) { + this.#focusMonitor.focusVia(focusable[0], 'keyboard'); + } + }); + } else { + const activeElement = this.#activeElement(); + if (activeElement && this.#document.contains(activeElement)) { + this.#focusMonitor.focusVia(activeElement, 'keyboard'); + setTimeout(() => { + // this.#activeElement()?.focus(); + this.#activeElement.set(null); + }); + } + } + }); + }); /** * Event triggered on modal dismiss. + * @return boolean */ - @Output() visibleChange = new EventEmitter(); + readonly visibleChange = output(); - @ViewChild(ModalContentComponent, { read: ElementRef }) modalContent!: ElementRef; - private activeBackdrop!: any; - private stateToggleSubscription!: Subscription; + // @ViewChild(ModalContentComponent, { read: ElementRef }) modalContent!: ElementRef; + // @ViewChild('modalContentRef', { read: ElementRef }) modalContentRef!: ElementRef; + // readonly modalContentRef = viewChild(ModalContentComponent, { read: ElementRef }); + readonly modalContentRef = viewChild('modalContentRef', { read: ElementRef }); + + #activeBackdrop!: any; // private inBoundingClientRect!: boolean; - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { modal: true, - fade: this.transition, + fade: this.transition(), show: this.show - }; - } + } as Record; + }); - @HostBinding('attr.aria-hidden') get ariaHidden(): boolean | null { return this.visible ? null : true; - }; - - @HostBinding('attr.tabindex') - get tabIndex(): string | null { - return '-1'; } - @HostBinding('@showHide') - get animateTrigger(): string { + readonly animateTrigger = computed(() => { return this.visible ? 'visible' : 'hidden'; - } + }); get show(): boolean { - return this.visible && this._show; + return this.visible && this.#show(); } set show(value: boolean) { - this._show = value; + this.#show.set(value); } - private _show = true; + readonly #show = signal(true); - @HostListener('@showHide.start', ['$event']) animateStart(event: AnimationEvent) { - const scrollbarWidth = this.backdropService.scrollbarWidth; if (event.toState === 'visible') { - this.renderer.setStyle(this.document.body, 'overflow', 'hidden'); - this.renderer.setStyle(this.document.body, 'padding-right', scrollbarWidth); - this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'block'); + this.#backdropService.hideScrollbar(); + this.#renderer.setStyle(this.#hostElement.nativeElement, 'display', 'block'); } else { - if (!this.transition) { - this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'none'); + if (!this.transition()) { + this.#renderer.setStyle(this.#hostElement.nativeElement, 'display', 'none'); } } } - @HostListener('@showHide.done', ['$event']) animateDone(event: AnimationEvent) { setTimeout(() => { if (event.toState === 'hidden') { - this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'none'); - this.renderer.removeStyle(this.document.body, 'overflow'); - this.renderer.removeStyle(this.document.body, 'padding-right'); + this.#renderer.setStyle(this.#hostElement.nativeElement, 'display', 'none'); + this.#backdropService.resetScrollbar(); } }); this.show = this.visible; } - @HostListener('document:keyup', ['$event']) - onKeyDownHandler(event: KeyboardEvent): void { - if (event.key === 'Escape' && this.keyboard && this.visible) { - if (this.backdrop === 'static') { + onKeyUpHandler(event: KeyboardEvent): void { + if (event.key === 'Escape' && this.keyboard() && this.visible) { + if (this.backdrop() === 'static') { this.setStaticBackdrop(); } else { - this.modalService.toggle({ show: false, modal: this }); + this.#modalService.toggle({ show: false, modal: this }); } } } private mouseDownTarget: EventTarget | null = null; - @HostListener('mousedown', ['$event']) public onMouseDownHandler($event: MouseEvent): void { this.mouseDownTarget = $event.target; } - @HostListener('click', ['$event']) public onClickHandler($event: MouseEvent): void { - if (this.mouseDownTarget !== $event.target) { this.mouseDownTarget = null; return; } const targetElement = $event.target; - if (targetElement === this.hostElement.nativeElement) { - - if (this.backdrop === 'static') { + if (targetElement === this.#hostElement.nativeElement) { + if (this.backdrop() === 'static') { this.setStaticBackdrop(); return; } - this.modalService.toggle({ show: false, modal: this }); + this.#modalService.toggle({ show: false, modal: this }); } } @@ -255,56 +304,54 @@ export class ModalComponent implements OnInit, OnDestroy { this.stateToggleSubscribe(); } + readonly #afterViewInit = signal(false); + + ngAfterViewInit(): void { + this.#afterViewInit.set(true); + } + ngOnDestroy(): void { - this.modalService.toggle({ show: false, modal: this }); - this.stateToggleSubscribe(false); + this.#modalService.toggle({ show: false, modal: this }); + this.#afterViewInit.set(false); } - private stateToggleSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.stateToggleSubscription = this.modalService.modalState$.subscribe( - (action) => { - if (this === action.modal || this.id === action.id) { - if ('show' in action) { - this.visible = action?.show === 'toggle' ? !this.visible : action.show; - } - } else { - if (this.visible) { - this.visible = false; - } - } + private stateToggleSubscribe(): void { + this.#modalService.modalState$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((action) => { + if (this === action.modal || this.id === action.id) { + if ('show' in action) { + this.visible = action?.show === 'toggle' ? !this.visible : action.show; } - ); - } else { - this.stateToggleSubscription?.unsubscribe(); - } + } else { + if (this.visible) { + this.visible = false; + } + } + }); } private setBackdrop(setBackdrop: boolean): void { - if (setBackdrop) { - this.activeBackdrop = this.backdropService.setBackdrop('modal'); - } else { - this.activeBackdrop = this.backdropService.clearBackdrop(this.activeBackdrop); - } + this.#activeBackdrop = setBackdrop + ? this.#backdropService.setBackdrop('modal') + : this.#backdropService.clearBackdrop(this.#activeBackdrop); } private setBodyStyles(open: boolean): void { if (open) { - if (this.backdrop === true) { - this.renderer.addClass(this.document.body, 'modal-open'); + if (this.backdrop() === true) { + this.#renderer.addClass(this.#document.body, 'modal-open'); } } else { - this.renderer.removeClass(this.document.body, 'modal-open'); + this.#renderer.removeClass(this.#document.body, 'modal-open'); } } private setStaticBackdrop(): void { - if (this.transition) { - this.renderer.addClass(this.hostElement.nativeElement, 'modal-static'); - this.renderer.setStyle(this.hostElement.nativeElement, 'overflow-y', 'hidden'); + if (this.transition()) { + this.#renderer.addClass(this.#hostElement.nativeElement, 'modal-static'); + this.#renderer.setStyle(this.#hostElement.nativeElement, 'overflow-y', 'hidden'); setTimeout(() => { - this.renderer.removeClass(this.hostElement.nativeElement, 'modal-static'); - this.renderer.removeStyle(this.hostElement.nativeElement, 'overflow-y'); + this.#renderer.removeClass(this.#hostElement.nativeElement, 'modal-static'); + this.#renderer.removeStyle(this.#hostElement.nativeElement, 'overflow-y'); }, 300); } } diff --git a/projects/coreui-angular/src/lib/nav/nav-item.component.spec.ts b/projects/coreui-angular/src/lib/nav/nav-item.component.spec.ts index 00adf0aa..47d74216 100644 --- a/projects/coreui-angular/src/lib/nav/nav-item.component.spec.ts +++ b/projects/coreui-angular/src/lib/nav/nav-item.component.spec.ts @@ -22,4 +22,8 @@ describe('NavItemComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('nav-item'); + }); }); diff --git a/projects/coreui-angular/src/lib/nav/nav-item.component.ts b/projects/coreui-angular/src/lib/nav/nav-item.component.ts index 20c2f5c3..937ea2d7 100644 --- a/projects/coreui-angular/src/lib/nav/nav-item.component.ts +++ b/projects/coreui-angular/src/lib/nav/nav-item.component.ts @@ -1,17 +1,9 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-nav-item', - template: ``, + template: '', styleUrls: ['./nav-item.component.scss'], - standalone: true + host: { class: 'nav-item' } }) -export class NavItemComponent { - - @HostBinding('class') - get hostClasses(): any { - return { - 'nav-item': true - }; - } -} +export class NavItemComponent {} diff --git a/projects/coreui-angular/src/lib/nav/nav-link.directive.spec.ts b/projects/coreui-angular/src/lib/nav/nav-link.directive.spec.ts index 656438ff..1d130b31 100644 --- a/projects/coreui-angular/src/lib/nav/nav-link.directive.spec.ts +++ b/projects/coreui-angular/src/lib/nav/nav-link.directive.spec.ts @@ -1,8 +1,85 @@ import { NavLinkDirective } from './nav-link.directive'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { Component, ComponentRef, DebugElement, input } from '@angular/core'; +import { By } from '@angular/platform-browser'; + +@Component({ + template: 'test', + imports: [NavLinkDirective] +}) +class TestComponent { + readonly active = input(false); + readonly disabled = input(false); +} describe('NavLinkDirective', () => { + let fixture: ComponentFixture; + let component: TestComponent; + let componentRef: ComponentRef; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + componentRef = fixture.componentRef; + debugElement = fixture.debugElement.query(By.directive(NavLinkDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new NavLinkDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new NavLinkDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('nav-link'); + }); + + it('should have css classes for active', () => { + expect(debugElement.nativeElement).not.toHaveClass('active'); + componentRef.setInput('active', true); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('active'); + componentRef.setInput('active', false); + fixture.detectChanges(); + expect(debugElement.nativeElement).not.toHaveClass('active'); + }); + + it('should have css classes for disabled', () => { + expect(debugElement.nativeElement).not.toHaveClass('disabled'); + componentRef.setInput('disabled', true); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('disabled'); + componentRef.setInput('disabled', false); + fixture.detectChanges(); + expect(debugElement.nativeElement).not.toHaveClass('disabled'); + }); + + it('should have aria-* attr for active', () => { + expect(debugElement.nativeElement.getAttribute('aria-current')).not.toBe('page'); + componentRef.setInput('active', true); + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('aria-current')).toBe('page'); + }); + + it('should have attributes for disabled', () => { + expect(debugElement.nativeElement.getAttribute('disabled')).toBeNull(); + expect(debugElement.nativeElement.getAttribute('aria-disabled')).not.toBeTruthy(); + expect(debugElement.nativeElement.getAttribute('tabindex')).not.toBe('-1'); + expect(debugElement.nativeElement.style.cursor).toBe('pointer'); + componentRef.setInput('disabled', true); + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('disabled')).not.toBeNull(); + expect(debugElement.nativeElement.getAttribute('aria-disabled')).toBeTruthy(); + expect(debugElement.nativeElement.getAttribute('tabindex')).toBe('-1'); + expect(debugElement.nativeElement.style.cursor).not.toBe('pointer'); + componentRef.setInput('disabled', false); + fixture.detectChanges(); }); }); diff --git a/projects/coreui-angular/src/lib/nav/nav-link.directive.ts b/projects/coreui-angular/src/lib/nav/nav-link.directive.ts index f2b69870..3d83d3fd 100644 --- a/projects/coreui-angular/src/lib/nav/nav-link.directive.ts +++ b/projects/coreui-angular/src/lib/nav/nav-link.directive.ts @@ -1,60 +1,65 @@ -import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, computed, Directive, effect, input, numberAttribute } from '@angular/core'; +import { BooleanInput } from '../coreui.types'; @Directive({ selector: '[cNavLink]', - standalone: true + host: { + '[class]': 'hostClasses()', + '[attr.aria-current]': 'ariaCurrent()', + '[attr.aria-disabled]': 'ariaDisabled', + '[attr.disabled]': 'attrDisabled', + '[attr.tabindex]': 'attrTabindex', + '[style.cursor]': 'styleCursor' + } }) export class NavLinkDirective { + static ngAcceptInputType_disabled: BooleanInput; /** * Sets .nav-link class to the host. [docs] - * @type boolean * @default true */ - @Input({ transform: booleanAttribute }) cNavLink: string | boolean = true; + readonly cNavLink = input(true, { transform: booleanAttribute }); /** * Toggle the active state for the component. [docs] - * @type boolean + * @default undefined */ - @Input() active?: boolean; + readonly active = input(); + /** * Set disabled attr for the host element. [docs] - * @type boolean + * @default false */ - @Input({ transform: booleanAttribute }) disabled: string | boolean = false; + readonly disabled = input(false, { transform: booleanAttribute }); - @HostBinding('attr.aria-current') - get ariaCurrent(): string | null { - return this.active ? 'page' : null; - } - - @HostBinding('attr.aria-disabled') - get isDisabled(): boolean | null { - return this.disabled || null; - } + /** + * The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating). + */ + readonly tabindex = input(undefined, { transform: numberAttribute }); - @HostBinding('attr.disabled') - get attrDisabled() { - return this.disabled ? '' : null; - }; + readonly ariaCurrent = computed(() => { + return this.active() ? 'page' : null; + }); - @HostBinding('attr.tabindex') - get getTabindex(): string | null { - return this.disabled ? '-1' : null; - } + ariaDisabled: boolean | null = null; + attrDisabled: boolean | string | null = null; + attrTabindex: number | null = null; + styleCursor: 'pointer' | null = null; - @HostBinding('style.cursor') - get getCursorStyle(): string | null { - return this.disabled ? null : 'pointer'; - } + readonly #disabledEffect = effect(() => { + const disabled = this.disabled(); + this.ariaDisabled = disabled || null; + this.attrDisabled = disabled ? '' : null; + this.attrTabindex = disabled ? -1 : (this.tabindex() ?? null); + this.styleCursor = disabled ? null : 'pointer'; + }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { - 'nav-link': this.cNavLink, - disabled: this.disabled, - active: this.active - }; - } + 'nav-link': this.cNavLink(), + disabled: this.disabled(), + active: this.active() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/nav/nav.component.scss b/projects/coreui-angular/src/lib/nav/nav.component.scss index 47e7d7d1..4961e30a 100644 --- a/projects/coreui-angular/src/lib/nav/nav.component.scss +++ b/projects/coreui-angular/src/lib/nav/nav.component.scss @@ -1,3 +1,10 @@ :host .nav-link:focus { outline: 0; } + +// todo: temp fix for nav-underline-border +:host.nav-underline-border { + column-gap: 0; +} + + diff --git a/projects/coreui-angular/src/lib/nav/nav.component.spec.ts b/projects/coreui-angular/src/lib/nav/nav.component.spec.ts index e6366fca..5d400f13 100644 --- a/projects/coreui-angular/src/lib/nav/nav.component.spec.ts +++ b/projects/coreui-angular/src/lib/nav/nav.component.spec.ts @@ -1,25 +1,87 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { NavComponent } from './nav.component'; +import { ComponentRef } from '@angular/core'; describe('NavComponent', () => { let component: NavComponent; let fixture: ComponentFixture; + let componentRef: ComponentRef; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [NavComponent] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(NavComponent); component = fixture.componentInstance; + componentRef = fixture.componentRef; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('nav'); + }); + + it('should have css classes for layout', () => { + componentRef.setInput('layout', 'fill'); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('nav-fill'); + componentRef.setInput('layout', 'justified'); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('nav-fill'); + expect(fixture.nativeElement).toHaveClass('nav-justified'); + componentRef.setInput('layout', undefined); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('nav-fill'); + expect(fixture.nativeElement).not.toHaveClass('nav-justified'); + }); + + it('should have css classes for variant', () => { + expect(fixture.nativeElement).not.toHaveClass('nav-tabs'); + expect(fixture.nativeElement).not.toHaveClass('nav-pills'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline-border'); + + componentRef.setInput('variant', 'tabs'); + fixture.detectChanges(); + expect(fixture.nativeElement).toHaveClass('nav-tabs'); + expect(fixture.nativeElement).not.toHaveClass('nav-pills'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline-border'); + + componentRef.setInput('variant', 'pills'); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('nav-tabs'); + expect(fixture.nativeElement).toHaveClass('nav-pills'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline-border'); + + componentRef.setInput('variant', 'underline'); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('nav-tabs'); + expect(fixture.nativeElement).not.toHaveClass('nav-pills'); + expect(fixture.nativeElement).toHaveClass('nav-underline'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline-border'); + + componentRef.setInput('variant', 'underline-border'); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('nav-tabs'); + expect(fixture.nativeElement).not.toHaveClass('nav-pills'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline'); + expect(fixture.nativeElement).toHaveClass('nav-underline-border'); + + componentRef.setInput('variant', undefined); + fixture.detectChanges(); + expect(fixture.nativeElement).not.toHaveClass('nav-tabs'); + expect(fixture.nativeElement).not.toHaveClass('nav-pills'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline'); + expect(fixture.nativeElement).not.toHaveClass('nav-underline-border'); + }); }); diff --git a/projects/coreui-angular/src/lib/nav/nav.component.ts b/projects/coreui-angular/src/lib/nav/nav.component.ts index 8b161d79..5cfcece9 100644 --- a/projects/coreui-angular/src/lib/nav/nav.component.ts +++ b/projects/coreui-angular/src/lib/nav/nav.component.ts @@ -1,29 +1,31 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, computed, input } from '@angular/core'; @Component({ selector: 'c-nav', - template: ``, + template: '', styleUrls: ['./nav.component.scss'], - standalone: true + host: { class: 'nav', '[class]': 'hostClasses()' } }) export class NavComponent { /** * Specify a layout type for component. - * @type {'fill' | 'justified'} + * @default undefined */ - @Input() layout?: 'fill' | 'justified'; + readonly layout = input<'fill' | 'justified'>(); + /** * Set the nav variant to tabs or pills. - * @type {'tabs' | 'pills' | 'underline'} + * @default undefined */ - @Input() variant?: '' | 'tabs' | 'pills' ; + readonly variant = input<'tabs' | 'pills' | 'underline' | 'underline-border' | ''>(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const layout = this.layout(); + const variant = this.variant(); return { nav: true, - [`nav-${this.layout}`]: !!this.layout, - [`nav-${this.variant}`]: !!this.variant - }; - } + [`nav-${layout}`]: !!layout, + [`nav-${variant}`]: !!variant + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/navbar/navbar-brand/navbar-brand.directive.spec.ts b/projects/coreui-angular/src/lib/navbar/navbar-brand/navbar-brand.directive.spec.ts index c75fcf02..91b3141d 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar-brand/navbar-brand.directive.spec.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar-brand/navbar-brand.directive.spec.ts @@ -1,8 +1,11 @@ import { NavbarBrandDirective } from './navbar-brand.directive'; +import { TestBed } from '@angular/core/testing'; describe('NavbarBrandDirective', () => { it('should create an instance', () => { - const directive = new NavbarBrandDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new NavbarBrandDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/navbar/navbar-brand/navbar-brand.directive.ts b/projects/coreui-angular/src/lib/navbar/navbar-brand/navbar-brand.directive.ts index f35426c3..a8a2a83b 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar-brand/navbar-brand.directive.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar-brand/navbar-brand.directive.ts @@ -1,12 +1,9 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive, input } from '@angular/core'; @Directive({ selector: '[cNavbarBrand]', - standalone: true + host: { class: 'navbar-brand', '[attr.role]': 'role()' } }) export class NavbarBrandDirective { - - @HostBinding('class.navbar-brand') navbarBrand = true; - @HostBinding('attr.role') role = 'button'; - + readonly role = input('button'); } diff --git a/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.spec.ts b/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.spec.ts index 63465318..e0f104b8 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.spec.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.spec.ts @@ -22,4 +22,8 @@ describe('NavbarNavComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('navbar-nav'); + }); }); diff --git a/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.ts b/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.ts index dc43eb94..36e68d2d 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar-nav/navbar-nav.component.ts @@ -1,24 +1,21 @@ -import { booleanAttribute, Component, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, Component, computed, input } from '@angular/core'; @Component({ selector: 'c-navbar-nav', - template: '', - standalone: true + template: '', + host: { '[class]': 'hostClasses()' } }) export class NavbarNavComponent { - /** * Enable vertical scrolling of a collapsed navbar toggleable contents. * @type boolean */ - @Input({ transform: booleanAttribute }) scroll: string | boolean = false; + readonly scroll = input(false, { transform: booleanAttribute }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { 'navbar-nav': true, - 'navbar-nav-scroll': this.scroll - }; - } - + 'navbar-nav-scroll': this.scroll() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.spec.ts b/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.spec.ts index aa3ed7e1..97577f18 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.spec.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.spec.ts @@ -22,4 +22,8 @@ describe('NavbarTextComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('navbar-text'); + }); }); diff --git a/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.ts b/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.ts index 939818dc..33180716 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar-text/navbar-text.component.ts @@ -1,12 +1,8 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-navbar-text', - template: '', - standalone: true + template: '', + host: { class: 'navbar-text' } }) -export class NavbarTextComponent { - - @HostBinding('class.navbar-text') navbarTextClass = true; - -} +export class NavbarTextComponent {} diff --git a/projects/coreui-angular/src/lib/navbar/navbar-toggler/navbar-toggler.directive.spec.ts b/projects/coreui-angular/src/lib/navbar/navbar-toggler/navbar-toggler.directive.spec.ts index 4a820bfa..4ed6e32c 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar-toggler/navbar-toggler.directive.spec.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar-toggler/navbar-toggler.directive.spec.ts @@ -1,12 +1,75 @@ +import { Component, DebugElement, ElementRef, Renderer2 } from '@angular/core'; +import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; import { NavbarTogglerDirective } from './navbar-toggler.directive'; -import { ElementRef, Renderer2 } from '@angular/core'; +import { By } from '@angular/platform-browser'; +import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; +import { CollapseDirective } from '../../collapse'; + +class MockElementRef extends ElementRef {} + +@Component({ + imports: [NavbarTogglerDirective, CollapseDirective], + template: ` + +
    test
    + ` +}) +class TestComponent {} describe('NavbarTogglerDirective', () => { - let renderer: Renderer2; - let hostElement: ElementRef; + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + let debugElementCollapse: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent], + providers: [Renderer2, { provide: ElementRef, useValue: MockElementRef }, provideAnimationsAsync()] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(NavbarTogglerDirective)); + debugElementCollapse = fixture.debugElement.query(By.directive(CollapseDirective)); + fixture.detectChanges(); + }); it('should create an instance', () => { - const directive = new NavbarTogglerDirective(renderer, hostElement); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new NavbarTogglerDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('navbar-toggler'); + }); + + it('should have default aria-label', () => { + expect(debugElement.nativeElement.getAttribute('aria-label')).toBe('Toggle navigation'); + }); + + it('should have default type', () => { + expect(debugElement.nativeElement.getAttribute('type')).toBe('button'); + }); + + it('should toggle collapse on click', fakeAsync(() => { + const collapseRef = debugElementCollapse.injector.get(CollapseDirective); + expect(collapseRef.visible()).toBeFalse(); + fixture.autoDetectChanges(); + debugElement.nativeElement.dispatchEvent(new Event('click')); + expect(collapseRef.visible()).toBeTrue(); + debugElement.nativeElement.dispatchEvent(new Event('click')); + expect(collapseRef.visible()).toBeFalse(); + })); + + it('should add default icon', () => { + const directive = debugElement.injector.get(NavbarTogglerDirective); + directive.addDefaultIcon(); + const renderer = debugElement.injector.get(Renderer2); + const span = debugElement.nativeElement.querySelector('span'); + expect(span).toBeTruthy(); + expect(span.classList.contains('navbar-toggler-icon')).toBeTrue(); }); }); diff --git a/projects/coreui-angular/src/lib/navbar/navbar-toggler/navbar-toggler.directive.ts b/projects/coreui-angular/src/lib/navbar/navbar-toggler/navbar-toggler.directive.ts index 346ae578..c159b6f7 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar-toggler/navbar-toggler.directive.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar-toggler/navbar-toggler.directive.ts @@ -1,55 +1,59 @@ -import { AfterContentInit, Directive, ElementRef, HostBinding, HostListener, Input, Renderer2 } from '@angular/core'; +import { afterNextRender, Directive, ElementRef, inject, input, Renderer2 } from '@angular/core'; import { CollapseDirective } from '../../collapse'; @Directive({ selector: '[cNavbarToggler]', - standalone: true + host: { + '[attr.aria-label]': 'ariaLabel()', + '[attr.type]': 'type()', + class: 'navbar-toggler', + '(click)': 'handleClick($event)' + } }) -export class NavbarTogglerDirective implements AfterContentInit { +export class NavbarTogglerDirective { + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + + constructor() { + afterNextRender({ + read: () => { + const hasContent = this.#hostElement.nativeElement.childNodes.length as boolean; + if (!hasContent) { + this.addDefaultIcon(); + } + } + }); + } + /** * Reference to navbar collapse element (via # template variable) . [docs] * @type string * @default 'button' */ - @Input('cNavbarToggler') collapseRef?: CollapseDirective; - @HostBinding('class.navbar-toggler') navbarToggler = true; + readonly collapseRef = input(undefined, { alias: 'cNavbarToggler' }); + /** * Default type for navbar-toggler. [docs] * @type string * @default 'button' */ - @HostBinding('attr.type') - @Input() type = 'button'; + readonly type = input('button'); + /** * Default aria-label attr for navbar-toggler. [docs] * @type string * @default 'Toggle navigation' */ - @HostBinding('attr.aria-label') - @Input() ariaLabel = 'Toggle navigation'; - - private hasContent!: boolean; - - constructor( - private renderer: Renderer2, - private hostElement: ElementRef - ) { } + readonly ariaLabel = input('Toggle navigation'); - @HostListener('click', ['$event']) - handleClick() { - this.collapseRef?.toggle(!this.collapseRef?.visible); + handleClick($event: MouseEvent): void { + const collapseRef = this.collapseRef(); + collapseRef?.toggle(!collapseRef?.visible()); } addDefaultIcon(): void { - const span = this.renderer.createElement('span'); - this.renderer.addClass(span, 'navbar-toggler-icon'); - this.renderer.appendChild(this.hostElement.nativeElement, span); - } - - ngAfterContentInit(): void { - this.hasContent = this.hostElement.nativeElement.childNodes.length as boolean; - if (!this.hasContent) { - this.addDefaultIcon(); - } + const span = this.#renderer.createElement('span'); + this.#renderer.addClass(span, 'navbar-toggler-icon'); + this.#renderer.appendChild(this.#hostElement.nativeElement, span); } } diff --git a/projects/coreui-angular/src/lib/navbar/navbar.component.html b/projects/coreui-angular/src/lib/navbar/navbar.component.html index 66e9e109..86c946dd 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar.component.html +++ b/projects/coreui-angular/src/lib/navbar/navbar.component.html @@ -1,11 +1,11 @@ - + -
    - +
    +
    - + diff --git a/projects/coreui-angular/src/lib/navbar/navbar.component.spec.ts b/projects/coreui-angular/src/lib/navbar/navbar.component.spec.ts index 259b5e07..fbf41b8f 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar.component.spec.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar.component.spec.ts @@ -9,8 +9,7 @@ describe('NavbarComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [NavbarComponent] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { @@ -22,4 +21,16 @@ describe('NavbarComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('navbar'); + }); + + it('should have container class', () => { + fixture.componentRef.setInput('expand', 'xl'); + fixture.componentRef.setInput('container', 'sm'); + fixture.detectChanges(); + expect(fixture.componentInstance.containerClass()).toBe('container-sm'); + expect(fixture.componentInstance.breakpoint()).toBe(''); + }); }); diff --git a/projects/coreui-angular/src/lib/navbar/navbar.component.ts b/projects/coreui-angular/src/lib/navbar/navbar.component.ts index db050b28..c2af15db 100644 --- a/projects/coreui-angular/src/lib/navbar/navbar.component.ts +++ b/projects/coreui-angular/src/lib/navbar/navbar.component.ts @@ -1,9 +1,23 @@ -import { AfterContentInit, Component, ContentChild, ElementRef, HostBinding, Input } from '@angular/core'; -import { NgClass, NgTemplateOutlet } from '@angular/common'; import { BreakpointObserver } from '@angular/cdk/layout'; +import { + AfterContentInit, + afterEveryRender, + Component, + computed, + contentChild, + DOCUMENT, + ElementRef, + inject, + input, + OnDestroy, + signal +} from '@angular/core'; +import { NgClass, NgTemplateOutlet } from '@angular/common'; +import { Subscription } from 'rxjs'; import { CollapseDirective } from '../collapse'; import { Colors } from '../coreui.types'; +import { ThemeDirective } from '../shared'; // todo: fix container prop issue not rendering children // todo: workaround - use component directly in template @@ -11,82 +25,108 @@ import { Colors } from '../coreui.types'; @Component({ selector: 'c-navbar', templateUrl: './navbar.component.html', - standalone: true, - imports: [NgClass, NgTemplateOutlet] + imports: [NgClass, NgTemplateOutlet], + hostDirectives: [{ directive: ThemeDirective, inputs: ['colorScheme'] }], + host: { '[class]': 'hostClasses()', '[attr.role]': 'role()' } }) -export class NavbarComponent implements AfterContentInit { +export class NavbarComponent implements AfterContentInit, OnDestroy { + readonly #breakpointObserver = inject(BreakpointObserver); + readonly #document = inject(DOCUMENT); + readonly #hostElement = inject(ElementRef); + /** * Sets the color context of the component to one of CoreUI’s themed colors. * @type Colors */ - @Input() color?: Colors; - /** - * Sets if the color of text should be colored for a light or dark dark background. - */ - @Input() colorScheme?: 'dark' | 'light' = 'light'; + readonly color = input(); + /** * Defines optional container wrapping children elements. */ - @Input() container?: boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'fluid'; + readonly container = input(); + /** * Defines the responsive breakpoint to determine when content collapses. */ - @Input() expand?: boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; + readonly expand = input(); + /** * Place component in non-static positions. */ - @Input() placement?: 'fixed-top' | 'fixed-bottom' | 'sticky-top'; - - @ContentChild(CollapseDirective) collapse!: CollapseDirective; + readonly placement = input<'fixed-top' | 'fixed-bottom' | 'sticky-top'>(); - @HostBinding('attr.role') - @Input() role = 'navigation'; + readonly role = input('navigation'); - constructor( - private hostElement: ElementRef, - private breakpointObserver: BreakpointObserver - ) {} + readonly collapse = contentChild(CollapseDirective); - @HostBinding('class') - get hostClasses(): any { - const expandClassSuffix: string = this.expand === true ? '' : `-${this.expand}`; + readonly hostClasses = computed(() => { + const color = this.color(); + const expand = this.expand(); + const expandClassSuffix: string = expand === true ? '' : `-${expand}`; + const placement = this.placement(); return { navbar: true, - 'navbar-light': this.colorScheme === 'light', - 'navbar-dark': this.colorScheme === 'dark', - [`navbar-expand${expandClassSuffix}`]: !!this.expand, - [`bg-${this.color}`]: !!this.color, - [`${this.placement}`]: !!this.placement - }; - } + [`navbar-expand${expandClassSuffix}`]: !!expand, + [`bg-${color}`]: !!color, + [`${placement}`]: !!placement + } as Record; + }); - get containerClass(): string { - return `container${this.container !== true ? '-' + this.container : ''}`; - } + readonly containerClass = computed(() => { + const container = this.container(); + return `container${container !== true ? '-' + container : ''}`; + }); + + readonly computedStyle = signal(''); + + readonly #afterEveryRenderFn = afterEveryRender({ + read: () => { + const expand = this.expand(); + if (typeof expand === 'string') { + const computedStyle = + this.#document.defaultView + ?.getComputedStyle(this.#hostElement.nativeElement) + ?.getPropertyValue(`--cui-breakpoint-${expand}`) ?? false; + computedStyle && this.computedStyle.set(computedStyle); + } + } + }); - get breakpoint(): string | boolean { - if (typeof this.expand === 'string') { - return getComputedStyle(this.hostElement.nativeElement).getPropertyValue(`--cui-breakpoint-${this.expand}`); + readonly breakpoint = computed(() => { + const expand = this.expand(); + if (typeof expand === 'string') { + return this.computedStyle(); } return false; - } + }); + + #observer!: Subscription; ngAfterContentInit(): void { - if (this.breakpoint) { - const onBreakpoint = `(min-width: ${this.breakpoint})`; - this.breakpointObserver.observe([onBreakpoint]).subscribe(result => { - if (this.collapse) { - const animate = this.collapse.animate; - this.collapse.toggle(false); - this.collapse.animate = false; - setTimeout(() => { - this.collapse.toggle(result.matches); + const breakpoint = this.breakpoint(); + if (breakpoint) { + const onBreakpoint = `(min-width: ${breakpoint})`; + this.#observer = this.#breakpointObserver + .observe([onBreakpoint]) + .pipe() + .subscribe((result) => { + const collapse = this.collapse(); + if (collapse) { + const animate = collapse.animate(); + collapse.animate.set(false); + collapse.toggle(false); setTimeout(() => { - this.collapse.animate = animate; + collapse.toggle(result.matches); + setTimeout(() => { + collapse.animate.set(animate); + }); }); - }); - } - }); + } + }); } } + + ngOnDestroy(): void { + this.#observer?.unsubscribe(); + } } diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.spec.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.spec.ts index 7a0669c2..c1ecfb7a 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.spec.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.spec.ts @@ -22,4 +22,8 @@ describe('OffcanvasBodyComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('offcanvas-body'); + }); }); diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.ts index 8b519d9e..ebaf9d95 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-body/offcanvas-body.component.ts @@ -1,18 +1,9 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-offcanvas-body', - template: ``, + template: '', styleUrls: ['./offcanvas-body.component.scss'], - standalone: true + host: { class: 'offcanvas-body' } }) -export class OffcanvasBodyComponent { - - @HostBinding('class') - get hostClasses(): any { - return { - 'offcanvas-body': true, - }; - } - -} +export class OffcanvasBodyComponent {} diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.spec.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.spec.ts index 182efed0..5f97acee 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.spec.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.spec.ts @@ -22,4 +22,8 @@ describe('OffcanvasHeaderComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('offcanvas-header'); + }); }); diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.ts index d7ef7e18..9bff19fc 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-header/offcanvas-header.component.ts @@ -1,17 +1,8 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-offcanvas-header', - template: ``, - standalone: true + template: '', + host: { class: 'offcanvas-header' } }) -export class OffcanvasHeaderComponent { - - @HostBinding('class') - get hostClasses(): any { - return { - 'offcanvas-header': true, - }; - } - -} +export class OffcanvasHeaderComponent {} diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-title/offcanvas-title.directive.spec.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-title/offcanvas-title.directive.spec.ts index d0638f9d..0a8b6d66 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-title/offcanvas-title.directive.spec.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-title/offcanvas-title.directive.spec.ts @@ -1,8 +1,37 @@ import { OffcanvasTitleDirective } from './offcanvas-title.directive'; +import { Component, DebugElement } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; + +@Component({ + template: '
    Test
    ', + imports: [OffcanvasTitleDirective] +}) +class TestComponent {} describe('OffcanvasTitleDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let elementRef: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + elementRef = fixture.debugElement.query(By.directive(OffcanvasTitleDirective)); + + fixture.detectChanges(); // initial binding + }); + it('should create an instance', () => { const directive = new OffcanvasTitleDirective(); expect(directive).toBeTruthy(); }); + + it('should have css classes', () => { + expect(elementRef.nativeElement).toHaveClass('offcanvas-title'); + }); }); diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-title/offcanvas-title.directive.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-title/offcanvas-title.directive.ts index e2b7ebd3..1aa9d36c 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-title/offcanvas-title.directive.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-title/offcanvas-title.directive.ts @@ -1,16 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cOffcanvasTitle]', - standalone: true + host: { class: 'offcanvas-title' } }) -export class OffcanvasTitleDirective { - - @HostBinding('class') - get hostClasses(): any { - return { - 'offcanvas-title': true, - }; - } - -} +export class OffcanvasTitleDirective {} diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.spec.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.spec.ts index 92f16fa7..9f49c308 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.spec.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.spec.ts @@ -1,39 +1,47 @@ import { Component, DebugElement } from '@angular/core'; -import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { By } from '@angular/platform-browser'; +import { take } from 'rxjs/operators'; import { OffcanvasToggleDirective } from './offcanvas-toggle.directive'; import { OffcanvasService } from '../offcanvas.service'; @Component({ - template: ` - ` + template: ` `, + imports: [OffcanvasToggleDirective] }) -class TestButtonComponent {} +class TestComponent {} describe('OffcanvasToggleDirective', () => { - - let component: TestButtonComponent; - let fixture: ComponentFixture; - let buttonEl: DebugElement; + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; let service: OffcanvasService; beforeEach(() => { TestBed.configureTestingModule({ - imports: [NoopAnimationsModule, OffcanvasToggleDirective], - declarations: [TestButtonComponent], + imports: [NoopAnimationsModule, OffcanvasToggleDirective, TestComponent], providers: [OffcanvasService] }); - fixture = TestBed.createComponent(TestButtonComponent); + fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; - buttonEl = fixture.debugElement.query(By.css('button')); + debugElement = fixture.debugElement.query(By.css('button')); service = TestBed.inject(OffcanvasService); fixture.detectChanges(); // initial binding }); it('should create an instance', () => { - const directive = new OffcanvasToggleDirective(service); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new OffcanvasToggleDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should toggle offcanvas on click', fakeAsync(() => { + service.offcanvasState$.pipe(take(1)).subscribe((value) => { + expect(value).toEqual({ show: 'toggle', id: 'OffcanvasEnd' }); + }); + debugElement.nativeElement.dispatchEvent(new MouseEvent('click')); + })); }); diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.ts index 87edf3ea..d58c7ab8 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.ts @@ -1,26 +1,24 @@ -import { Directive, HostListener, Input } from '@angular/core'; +import { Directive, inject, input } from '@angular/core'; import { OffcanvasService } from '../offcanvas.service'; @Directive({ selector: '[cOffcanvasToggle]', - standalone: true + host: { + '(click)': 'toggleOpen($event)' + } }) export class OffcanvasToggleDirective { + readonly #offcanvasService = inject(OffcanvasService); /** * Html id attr of offcanvas to toggle. - * @type string + * @return string */ - @Input('cOffcanvasToggle') id?: string; - - constructor( - private offcanvasService: OffcanvasService - ) {} + readonly id = input(undefined, { alias: 'cOffcanvasToggle' }); - @HostListener('click', ['$event']) - toggleOpen($event: any): void { + protected toggleOpen($event: MouseEvent): void { $event.preventDefault(); - this.offcanvasService.toggle({ show: 'toggle', id: this.id }); + this.#offcanvasService.toggle({ show: 'toggle', id: this.id() }); } } diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas.service.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas.service.ts index d4d73d24..ec6a0b6c 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas.service.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas.service.ts @@ -12,12 +12,9 @@ export interface IOffcanvasAction { providedIn: 'root' }) export class OffcanvasService { - private offcanvasState = new Subject(); offcanvasState$ = this.offcanvasState.asObservable(); - constructor() { } - toggle(action: IOffcanvasAction): void { this.offcanvasState.next(action); } diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.html b/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.html index fd9b2771..58481089 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.html +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.html @@ -1,4 +1,4 @@
    - +
    diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.spec.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.spec.ts index f0762e09..d568c256 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.spec.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.spec.ts @@ -1,26 +1,75 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentRef, DOCUMENT } from '@angular/core'; +import { ComponentFixture, fakeAsync, flushMicrotasks, TestBed, tick } from '@angular/core/testing'; +import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { OffcanvasComponent } from './offcanvas.component'; -import { NoopAnimationsModule } from '@angular/platform-browser/animations'; describe('OffcanvasComponent', () => { let component: OffcanvasComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; + let document: Document; beforeEach(async () => { await TestBed.configureTestingModule({ imports: [NoopAnimationsModule, OffcanvasComponent] - }) - .compileComponents(); - }); + }).compileComponents(); - beforeEach(() => { fixture = TestBed.createComponent(OffcanvasComponent); component = fixture.componentInstance; + componentRef = fixture.componentRef; + document = TestBed.inject(DOCUMENT); fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('offcanvas'); + expect(fixture.nativeElement).toHaveClass('offcanvas-start'); + expect(fixture.nativeElement.getAttribute('id')).toContain('offcanvas-start-'); + }); + + it('should react to visible changes', fakeAsync(() => { + expect(componentRef.instance.visible()).toBeFalse(); + componentRef.setInput('visible', true); + fixture.detectChanges(); + flushMicrotasks(); + expect(componentRef.instance.visible()).toBeTrue(); + expect(fixture.nativeElement.getAttribute('inert')).toBeNull(); + })); + + it('should close offcanvas to Esc keydown event', fakeAsync(() => { + componentRef.setInput('visible', true); + fixture.detectChanges(); + expect(componentRef.instance.visible()).toBeTrue(); + document.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape' })); + tick(); + fixture.detectChanges(); + expect(componentRef.instance.visible()).toBeFalse(); + expect(fixture.nativeElement.getAttribute('inert')).toBeTruthy(); + })); + + it('should close offcanvas on backdrop click', fakeAsync(() => { + componentRef.setInput('visible', true); + fixture.detectChanges(); + expect(componentRef.instance.visible()).toBeTrue(); + const backdrop = document.querySelector('.offcanvas-backdrop'); + expect(backdrop).not.toBeNull(); + if (backdrop) { + backdrop?.dispatchEvent(new MouseEvent('click')); + tick(); + fixture.detectChanges(); + // expect(componentRef.instance.visible()).toBeFalse(); + // expect(fixture.nativeElement.getAttribute('inert')).toBeTruthy(); + } + })); + + it('should return breakpoint value', fakeAsync(() => { + componentRef.setInput('responsive', 'false'); + fixture.detectChanges(); + expect(fixture.componentInstance.responsiveBreakpoint).toBeFalse(); + })); }); diff --git a/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.ts b/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.ts index 523e9428..2c410796 100644 --- a/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.ts +++ b/projects/coreui-angular/src/lib/offcanvas/offcanvas/offcanvas.component.ts @@ -1,27 +1,31 @@ +import { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations'; +import { A11yModule } from '@angular/cdk/a11y'; +import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout'; +import { isPlatformBrowser } from '@angular/common'; import { + booleanAttribute, Component, + computed, + DestroyRef, + DOCUMENT, + effect, ElementRef, - EventEmitter, - HostBinding, - HostListener, - Inject, - Input, + inject, + input, + linkedSignal, OnDestroy, OnInit, - Output, + output, PLATFORM_ID, Renderer2 } from '@angular/core'; -import { DOCUMENT, isPlatformBrowser } from '@angular/common'; -import { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; -import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { Subscription } from 'rxjs'; import { filter } from 'rxjs/operators'; import { BackdropService } from '../../backdrop/backdrop.service'; +import { ThemeDirective } from '../../shared'; import { OffcanvasService } from '../offcanvas.service'; -import { A11yModule } from '@angular/cdk/a11y'; let nextId = 0; @@ -47,272 +51,254 @@ let nextId = 0; templateUrl: './offcanvas.component.html', styleUrls: ['./offcanvas.component.scss'], exportAs: 'cOffcanvas', - standalone: true, - imports: [A11yModule] + imports: [A11yModule], + hostDirectives: [{ directive: ThemeDirective, inputs: ['dark'] }], + host: { + ngSkipHydration: 'true', + '[@showHide]': 'this.visible() ? "visible" : "hidden"', + '[attr.id]': 'id()', + '[attr.inert]': 'ariaHidden() || null', + '[attr.role]': 'role()', + '[attr.aria-modal]': 'ariaModal()', + '[attr.tabindex]': 'tabIndex', + '[class]': 'hostClasses()', + '(@showHide.start)': 'animateStart($event)', + '(@showHide.done)': 'animateDone($event)', + '(document:keydown)': 'onKeyDownHandler($event)' + } }) export class OffcanvasComponent implements OnInit, OnDestroy { + readonly #document = inject(DOCUMENT); + readonly #platformId = inject(PLATFORM_ID); + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + readonly #offcanvasService = inject(OffcanvasService); + readonly #backdropService = inject(BackdropService); + readonly #breakpointObserver = inject(BreakpointObserver); + readonly #destroyRef = inject(DestroyRef); - constructor( - @Inject(DOCUMENT) private document: Document, - @Inject(PLATFORM_ID) private platformId: any, - private renderer: Renderer2, - private hostElement: ElementRef, - private offcanvasService: OffcanvasService, - private backdropService: BackdropService, - private breakpointObserver: BreakpointObserver - ) {} - - static ngAcceptInputType_scroll: BooleanInput; /** * Apply a backdrop on body while offcanvas is open. - * @type boolean | 'static' + * @return boolean | 'static' * @default true */ - @Input() backdrop: boolean | 'static' = true; + readonly backdrop = input(true); /** * Closes the offcanvas when escape key is pressed [docs] - * @type boolean + * @return boolean * @default true */ - @Input() keyboard = true; + readonly keyboard = input(true, { transform: booleanAttribute }); /** * Components placement, there’s no default placement. - * @type {'start' | 'end' | 'top' | 'bottom'} + * @return {'start' | 'end' | 'top' | 'bottom'} * @default 'start' */ - @Input() placement: string | 'start' | 'end' | 'top' | 'bottom' = 'start'; + readonly placement = input('start'); /** * Responsive offcanvas property hides content outside the viewport from a specified breakpoint and down. - * @type boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; + * @return boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; * @default true * @since 4.3.10 */ - @Input() responsive?: boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' = true; - @Input() id = `offcanvas-${this.placement}-${nextId++}`; + readonly responsive = input<(boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl') | undefined>(true); + readonly id = input(`offcanvas-${this.placement()}-${nextId++}`); + /** * Default role for offcanvas. [docs] - * @type string + * @return string * @default 'dialog' */ - @Input() @HostBinding('attr.role') role = 'dialog'; + readonly role = input('dialog'); + /** * Set aria-modal html attr for offcanvas. [docs] - * @type boolean + * @return boolean * @default true */ - @Input() @HostBinding('attr.aria-modal') ariaModal = true; - /** - * Event triggered on visible change. - */ - @Output() readonly visibleChange = new EventEmitter(); - #scroll = false; - #visible: boolean = false; + readonly ariaModal = input(true, { transform: booleanAttribute }); + #activeBackdrop!: HTMLDivElement; - #scrollbarWidth!: string; - #stateToggleSubscription!: Subscription; #backdropClickSubscription!: Subscription; #layoutChangeSubscription!: Subscription; - #show = false; - - get scroll() { - return this.#scroll; - } /** * Allow body scrolling while offcanvas is visible. - * @type boolean + * @return boolean * @default false */ - @Input() - set scroll(value: boolean) { - this.#scroll = coerceBooleanProperty(value); - } - - get visible(): boolean { - return this.#visible; - } + readonly scroll = input(false, { transform: booleanAttribute }); /** * Toggle the visibility of offcanvas component. - * @type boolean + * @return boolean * @default false */ - @Input() - set visible(value: boolean) { - this.#visible = coerceBooleanProperty(value); - if (this.#visible) { - this.setBackdrop(this.backdrop); + readonly visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' }); + + readonly visible = linkedSignal({ + source: this.visibleInput, + computation: (value) => value + }); + + readonly visibleEffect = effect(() => { + const visible = this.visible(); + if (visible) { + this.setBackdrop(this.backdrop()); this.setFocus(); } else { this.setBackdrop(false); } - this.layoutChangeSubscribe(this.#visible); - this.visibleChange.emit(value); - } + this.layoutChangeSubscribe(visible); + this.visibleChange?.emit(visible); + }); + + /** + * Event triggered on visible change. + * @return + */ + readonly visibleChange = output(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const responsive = this.responsive(); + const placement = this.placement(); + const visible = this.visible(); return { - offcanvas: typeof this.responsive === 'boolean', - [`offcanvas-${this.responsive}`]: typeof this.responsive !== 'boolean', - [`offcanvas-${this.placement}`]: !!this.placement, - show: this.show - }; - } + offcanvas: typeof responsive === 'boolean', + [`offcanvas-${responsive}`]: typeof responsive !== 'boolean', + [`offcanvas-${placement}`]: !!placement, + show: visible + } as Record; + }); - @HostBinding('attr.aria-hidden') - get ariaHidden(): boolean | null { - return this.visible ? null : true; - } + readonly ariaHidden = computed(() => { + return this.visible() ? null : true; + }); - @HostBinding('attr.tabindex') get tabIndex(): string | null { return '-1'; } - @HostBinding('@showHide') - get animateTrigger(): string { - return this.visible ? 'visible' : 'hidden'; - } - get show(): boolean { - return this.visible && this.#show; + return this.visible(); } set show(value: boolean) { - this.#show = value; + this.visible.set(value); } get responsiveBreakpoint(): string | false { - if (typeof this.responsive !== 'string') { + const responsive = this.responsive(); + if (typeof responsive !== 'string') { return false; } - const element: Element = this.document.documentElement; - const responsiveBreakpoint = this.responsive; - const breakpointValue = getComputedStyle(element).getPropertyValue(`--cui-breakpoint-${responsiveBreakpoint.trim()}`) || false; + const element: Element = this.#document.documentElement; + const breakpointValue = + this.#document.defaultView + ?.getComputedStyle(element) + ?.getPropertyValue(`--cui-breakpoint-${responsive.trim()}`) ?? false; return breakpointValue ? `${parseFloat(breakpointValue.trim()) - 0.02}px` : false; } - @HostListener('@showHide.start', ['$event']) animateStart(event: AnimationEvent) { - const scrollbarWidth = this.#scrollbarWidth; if (event.toState === 'visible') { - if (!this.scroll) { - this.renderer.setStyle(this.document.body, 'overflow', 'hidden'); - this.renderer.setStyle(this.document.body, 'padding-right', scrollbarWidth); + if (!this.scroll()) { + this.#backdropService.hideScrollbar(); } - this.renderer.addClass(this.hostElement.nativeElement, 'showing'); + this.#renderer.addClass(this.#hostElement.nativeElement, 'showing'); } else { - this.renderer.addClass(this.hostElement.nativeElement, 'hiding'); + this.#renderer.addClass(this.#hostElement.nativeElement, 'hiding'); } } - @HostListener('@showHide.done', ['$event']) animateDone(event: AnimationEvent) { setTimeout(() => { if (event.toState === 'visible') { - this.renderer.removeClass(this.hostElement.nativeElement, 'showing'); + this.#renderer.removeClass(this.#hostElement.nativeElement, 'showing'); } if (event.toState === 'hidden') { - this.renderer.removeClass(this.hostElement.nativeElement, 'hiding'); - this.renderer.removeStyle(this.document.body, 'overflow'); - this.renderer.removeStyle(this.document.body, 'paddingRight'); + this.#renderer.removeClass(this.#hostElement.nativeElement, 'hiding'); + this.#renderer.removeStyle(this.#document.body, 'overflow'); + this.#renderer.removeStyle(this.#document.body, 'paddingRight'); } }); - this.show = this.visible; + this.show = this.visible(); } - @HostListener('document:keydown', ['$event']) onKeyDownHandler(event: KeyboardEvent): void { - if ( - event.key === 'Escape' && - this.keyboard && - this.visible && - this.backdrop !== 'static' - ) { - this.offcanvasService.toggle({ show: false, id: this.id }); + if (event.key === 'Escape' && this.keyboard() && this.visible() && this.backdrop() !== 'static') { + this.#offcanvasService.toggle({ show: false, id: this.id() }); } } ngOnInit(): void { - this.#scrollbarWidth = this.backdropService.scrollbarWidth; this.stateToggleSubscribe(); setTimeout(() => { // hotfix to avoid offcanvas flicker on the first render - this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'flex'); - }) + this.#renderer.setStyle(this.#hostElement.nativeElement, 'display', 'flex'); + }); } ngOnDestroy(): void { - this.offcanvasService.toggle({ show: false, id: this.id }); - this.stateToggleSubscribe(false); + this.#offcanvasService.toggle({ show: false, id: this.id() }); } setFocus(): void { - if (isPlatformBrowser(this.platformId)) { - setTimeout(() => this.hostElement.nativeElement.focus()); + if (isPlatformBrowser(this.#platformId)) { + setTimeout(() => this.#hostElement.nativeElement.focus()); } } - private stateToggleSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.#stateToggleSubscription = - this.offcanvasService.offcanvasState$.subscribe((action) => { - if (this === action.offcanvas || this.id === action.id) { - if ('show' in action) { - this.visible = - action?.show === 'toggle' ? !this.visible : action.show; - } - } - }); - } else { - this.#stateToggleSubscription?.unsubscribe(); - } + private stateToggleSubscribe(): void { + this.#offcanvasService.offcanvasState$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((action) => { + if (this === action.offcanvas || this.id() === action.id) { + if ('show' in action) { + this.visible.update((value) => (action?.show === 'toggle' ? !value : action.show)); + } + } + }); } private backdropClickSubscribe(subscribe: boolean = true): void { if (subscribe) { - this.#backdropClickSubscription = - this.backdropService.backdropClick$.subscribe((clicked) => { - this.offcanvasService.toggle({ show: !clicked, id: this.id }); + this.#backdropClickSubscription = this.#backdropService.backdropClick$ + .pipe(takeUntilDestroyed(this.#destroyRef)) + .subscribe((clicked) => { + this.#offcanvasService.toggle({ show: !clicked, id: this.id() }); }); } else { this.#backdropClickSubscription?.unsubscribe(); } } - private setBackdrop(setBackdrop: boolean | 'static'): void { - this.#scrollbarWidth = this.backdropService.scrollbarWidth; - this.#activeBackdrop = !!setBackdrop ? this.backdropService.setBackdrop('offcanvas') - : this.backdropService.clearBackdrop(this.#activeBackdrop); - setBackdrop === true ? this.backdropClickSubscribe() - : this.backdropClickSubscribe(false); + protected setBackdrop(setBackdrop: boolean | 'static'): void { + this.#activeBackdrop = !!setBackdrop + ? this.#backdropService.setBackdrop('offcanvas') + : this.#backdropService.clearBackdrop(this.#activeBackdrop); + setBackdrop === true ? this.backdropClickSubscribe() : this.backdropClickSubscribe(false); } private layoutChangeSubscribe(subscribe: boolean = true): void { - if (subscribe) { - if (!this.responsiveBreakpoint) { return; } const responsiveBreakpoint = `(max-width: ${this.responsiveBreakpoint})`; - const layoutChanges = this.breakpointObserver.observe([responsiveBreakpoint]); + const layoutChanges = this.#breakpointObserver.observe([responsiveBreakpoint]); this.#layoutChangeSubscription = layoutChanges .pipe( - filter(breakpointState => !breakpointState.matches) + filter((breakpointState) => !breakpointState.matches), + takeUntilDestroyed(this.#destroyRef) ) - .subscribe( - (breakpointState: BreakpointState) => { - this.visible = breakpointState.matches; - } - ); + .subscribe((breakpointState: BreakpointState) => { + this.visible.set(breakpointState.matches); + }); } else { this.#layoutChangeSubscription?.unsubscribe(); } diff --git a/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.spec.ts b/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.spec.ts index fba9ae0d..a07ee0c1 100644 --- a/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.spec.ts +++ b/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.spec.ts @@ -9,8 +9,7 @@ describe('PaginationItemComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [PageItemComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +21,8 @@ describe('PaginationItemComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('page-item'); + }); }); diff --git a/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.ts b/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.ts index 0e7cb472..52e2301b 100644 --- a/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.ts +++ b/projects/coreui-angular/src/lib/pagination/page-item/page-item.component.ts @@ -3,9 +3,7 @@ import { PageItemDirective } from './page-item.directive'; @Component({ selector: 'c-page-item', - template: ``, - styleUrls: ['./page-item.component.scss'], - standalone: true + template: '', + styleUrls: ['./page-item.component.scss'] }) -export class PageItemComponent extends PageItemDirective { } - +export class PageItemComponent extends PageItemDirective {} diff --git a/projects/coreui-angular/src/lib/pagination/page-item/page-item.directive.spec.ts b/projects/coreui-angular/src/lib/pagination/page-item/page-item.directive.spec.ts index 9842bddf..790e0030 100644 --- a/projects/coreui-angular/src/lib/pagination/page-item/page-item.directive.spec.ts +++ b/projects/coreui-angular/src/lib/pagination/page-item/page-item.directive.spec.ts @@ -1,18 +1,60 @@ +import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { Component, ComponentRef, DebugElement, input, Renderer2 } from '@angular/core'; +import { provideRouter, RouterLink } from '@angular/router'; + +import { PageLinkDirective } from '../page-link/page-link.directive'; +import { PageItemComponent } from './page-item.component'; import { PageItemDirective } from './page-item.directive'; -import { TestBed } from '@angular/core/testing'; -import { Renderer2 } from '@angular/core'; +import { By } from '@angular/platform-browser'; + +@Component({ + selector: 'c-test', + imports: [PageItemComponent, PageLinkDirective, PageItemComponent, PageLinkDirective, RouterLink], + template: ` + + Previous + + ` +}) +export class TestComponent { + readonly disabled = input(false); +} describe('PageItemDirective', () => { - let renderer: Renderer2; + let component: TestComponent; + let componentRef: ComponentRef; + let fixture: ComponentFixture; + let debugElement: DebugElement; beforeEach(() => { TestBed.configureTestingModule({ - imports: [Renderer2], - providers: [Renderer2] - }); + imports: [TestComponent], + providers: [Renderer2, provideRouter([])] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + componentRef = fixture.componentRef; + debugElement = fixture.debugElement.query(By.directive(PageLinkDirective)); }); + it('should create an instance', () => { - const directive = new PageItemDirective(renderer); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new PageItemDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should toggle disable state for the component', fakeAsync(() => { + expect(debugElement.nativeElement.getAttribute('aria-disabled')).toBeNull(); + expect(debugElement.nativeElement.getAttribute('tabindex')).toBeNull(); + componentRef.setInput('disabled', true); + tick(); + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('aria-disabled')).toBe('true'); + expect(debugElement.nativeElement.getAttribute('tabindex')).toBe('-1'); + componentRef.setInput('disabled', false); + tick(); + fixture.detectChanges(); + })); }); diff --git a/projects/coreui-angular/src/lib/pagination/page-item/page-item.directive.ts b/projects/coreui-angular/src/lib/pagination/page-item/page-item.directive.ts index 9fc08abe..7e85ceb8 100644 --- a/projects/coreui-angular/src/lib/pagination/page-item/page-item.directive.ts +++ b/projects/coreui-angular/src/lib/pagination/page-item/page-item.directive.ts @@ -1,76 +1,58 @@ -import { - AfterContentInit, - ContentChild, - Directive, - ElementRef, - HostBinding, - Input, - OnChanges, - Renderer2, - SimpleChanges -} from '@angular/core'; +import { computed, contentChild, Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core'; import { PageLinkDirective } from '../page-link/page-link.directive'; @Directive({ selector: '[cPageItem]', - standalone: true + host: { + class: 'page-item', + '[class]': 'hostClasses()', + '[attr.aria-current]': 'ariaCurrent()' + } }) -export class PageItemDirective implements AfterContentInit, OnChanges { +export class PageItemDirective { + readonly #renderer = inject(Renderer2); /** * Toggle the active state for the component. - * @type boolean + * @return boolean */ - @Input() active?: boolean; + readonly active = input(); + /** * Toggle the disabled state for the component. - * @type boolean + * @return boolean */ - @Input() disabled?: boolean; + readonly disabled = input(); - @HostBinding('attr.aria-current') - get ariaCurrent(): string | null { - return this.active ? 'page' : null; - } + readonly ariaCurrent = computed(() => { + return this.active() ? 'page' : null; + }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { 'page-item': true, - disabled: this.disabled, - active: this.active, - }; - } - - @ContentChild(PageLinkDirective, { read: ElementRef }) pageLinkElementRef!: ElementRef; - - constructor( - private renderer: Renderer2 - ) { } - - ngAfterContentInit(): void { - this.setAttributes(); - } - - ngOnChanges(changes: SimpleChanges): void { - if (changes['disabled']) { - this.setAttributes(); - } - } - - setAttributes(): void { - if (!this.pageLinkElementRef) { - return + disabled: this.disabled(), + active: this.active() + } as Record; + }); + + readonly pageLinkElementRef = contentChild(PageLinkDirective, { read: ElementRef }); + + readonly pageLinkElementRefEffect = effect(() => { + const pageLinkElementRef = this.pageLinkElementRef(); + const disabled = this.disabled(); + if (!pageLinkElementRef) { + return; } - const pageLinkElement = this.pageLinkElementRef.nativeElement; + const pageLinkElement = pageLinkElementRef.nativeElement; - if (this.disabled) { - this.renderer.setAttribute(pageLinkElement, 'aria-disabled', 'true'); - this.renderer.setAttribute(pageLinkElement, 'tabindex', '-1'); + if (disabled) { + this.#renderer.setAttribute(pageLinkElement, 'aria-disabled', 'true'); + this.#renderer.setAttribute(pageLinkElement, 'tabindex', '-1'); } else { - this.renderer.removeAttribute(pageLinkElement, 'aria-disabled'); - this.renderer.removeAttribute(pageLinkElement, 'tabindex'); + this.#renderer.removeAttribute(pageLinkElement, 'aria-disabled'); + this.#renderer.removeAttribute(pageLinkElement, 'tabindex'); } - } + }); } diff --git a/projects/coreui-angular/src/lib/pagination/page-link/page-link.directive.ts b/projects/coreui-angular/src/lib/pagination/page-link/page-link.directive.ts index 40dc11c5..fd053286 100644 --- a/projects/coreui-angular/src/lib/pagination/page-link/page-link.directive.ts +++ b/projects/coreui-angular/src/lib/pagination/page-link/page-link.directive.ts @@ -1,15 +1,7 @@ -import { Directive, HostBinding } from '@angular/core'; +import { Directive } from '@angular/core'; @Directive({ selector: '[cPageLink]', - standalone: true + host: { class: 'page-link' } }) -export class PageLinkDirective { - - @HostBinding('class') - get hostClasses(): any { - return { - 'page-link': true, - }; - } -} +export class PageLinkDirective {} diff --git a/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.html b/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.html index 24e870d8..fe5b272c 100644 --- a/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.html +++ b/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.html @@ -1,3 +1,3 @@ -
      - +
        +
      diff --git a/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.spec.ts b/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.spec.ts index 110cfa4b..9bdf3665 100644 --- a/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.spec.ts +++ b/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.spec.ts @@ -1,10 +1,13 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { PaginationComponent } from './pagination.component'; +import { ElementRef } from '@angular/core'; +import { By } from '@angular/platform-browser'; describe('PaginationComponent', () => { let component: PaginationComponent; let fixture: ComponentFixture; + let elementRef: ElementRef; beforeEach(async () => { await TestBed.configureTestingModule({ @@ -16,10 +19,15 @@ describe('PaginationComponent', () => { beforeEach(() => { fixture = TestBed.createComponent(PaginationComponent); component = fixture.componentInstance; + elementRef = fixture.debugElement.query(By.css('ul')); fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(elementRef.nativeElement).toHaveClass('pagination'); + }); }); diff --git a/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.ts b/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.ts index 9d1117fa..e1cff52c 100644 --- a/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.ts +++ b/projects/coreui-angular/src/lib/pagination/pagination/pagination.component.ts @@ -1,38 +1,39 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, computed, input } from '@angular/core'; import { NgClass } from '@angular/common'; @Component({ selector: 'c-pagination', templateUrl: './pagination.component.html', - standalone: true, - imports: [NgClass] + imports: [NgClass], + host: { + '[attr.role]': 'role()' + } }) export class PaginationComponent { - /** * Set the alignment of pagination components. * @values 'start', 'center', 'end' */ - @Input() align: 'start' | 'center' | 'end' | '' = ''; + readonly align = input<'start' | 'center' | 'end' | ''>(''); /** * Size the component small or large. * @values 'sm', 'lg' */ - @Input() size?: 'sm' | 'lg'; + readonly size = input<'sm' | 'lg'>(); /** * Default role for pagination. [docs] - * @type string + * @return string * @default 'navigation' */ - @HostBinding('attr.role') - @Input() role = 'navigation'; + readonly role = input('navigation'); - get paginationClass(): any { + readonly paginationClass = computed(() => { + const size = this.size(); + const align = this.align(); return { pagination: true, - [`pagination-${this.size}`]: !!this.size, - [`justify-content-${this.align}`]: !!this.align - }; - } - + [`pagination-${size}`]: !!size, + [`justify-content-${align}`]: !!align + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/placeholder/placeholder-animation.directive.spec.ts b/projects/coreui-angular/src/lib/placeholder/placeholder-animation.directive.spec.ts index f3c40cc3..0488fac2 100644 --- a/projects/coreui-angular/src/lib/placeholder/placeholder-animation.directive.spec.ts +++ b/projects/coreui-angular/src/lib/placeholder/placeholder-animation.directive.spec.ts @@ -1,8 +1,11 @@ +import { TestBed } from '@angular/core/testing'; import { PlaceholderAnimationDirective } from './placeholder-animation.directive'; describe('PlaceholderAnimationDirective', () => { it('should create an instance', () => { - const directive = new PlaceholderAnimationDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new PlaceholderAnimationDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/placeholder/placeholder-animation.directive.ts b/projects/coreui-angular/src/lib/placeholder/placeholder-animation.directive.ts index 1979e3e5..212ff46f 100644 --- a/projects/coreui-angular/src/lib/placeholder/placeholder-animation.directive.ts +++ b/projects/coreui-angular/src/lib/placeholder/placeholder-animation.directive.ts @@ -1,31 +1,27 @@ -import { AfterContentInit, ContentChild, Directive, HostBinding, Input } from '@angular/core'; +import { computed, contentChild, Directive, input, InputSignal } from '@angular/core'; import { PlaceholderDirective } from './placeholder.directive'; @Directive({ selector: '[cPlaceholderAnimation]', - standalone: true + host: { + '[class]': 'hostClasses()' + } }) -export class PlaceholderAnimationDirective implements AfterContentInit { - +export class PlaceholderAnimationDirective { /** * Animation type for placeholder * @type 'glow' | 'wave' * @default undefined */ - @Input('cPlaceholderAnimation') animation?: 'glow' | 'wave'; - - @ContentChild(PlaceholderDirective) placeholder!: PlaceholderDirective; + readonly animation: InputSignal<'glow' | 'wave' | undefined> = input<'glow' | 'wave' | undefined>(undefined, { + alias: 'cPlaceholderAnimation' + }); - #animate: boolean = false; + readonly placeholder = contentChild(PlaceholderDirective); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { - [`placeholder-${this.animation}`]: this.#animate && !!this.animation - }; - } - - ngAfterContentInit() { - this.#animate = this.placeholder?.visible; - } + [`placeholder-${this.animation()}`]: this.placeholder()?.visible() && !!this.animation() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/placeholder/placeholder.directive.spec.ts b/projects/coreui-angular/src/lib/placeholder/placeholder.directive.spec.ts index 9a7578ed..48b76b00 100644 --- a/projects/coreui-angular/src/lib/placeholder/placeholder.directive.spec.ts +++ b/projects/coreui-angular/src/lib/placeholder/placeholder.directive.spec.ts @@ -1,8 +1,63 @@ +import { Component, ComponentRef, DebugElement, input } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; import { PlaceholderDirective } from './placeholder.directive'; +import { PlaceholderAnimationDirective } from './placeholder-animation.directive'; + +@Component({ + template: ` +

      + +

      + `, + imports: [PlaceholderDirective, PlaceholderAnimationDirective] +}) +class TestComponent { + readonly visible = input(true); + readonly animation = input<'glow' | 'wave' | undefined>(undefined); +} describe('PlaceholderDirective', () => { + let component: TestComponent; + let componentRef: ComponentRef; + let fixture: ComponentFixture; + let debugElement: DebugElement; + let wrapperElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + componentRef = fixture.componentRef; + debugElement = fixture.debugElement.query(By.directive(PlaceholderDirective)); + wrapperElement = fixture.debugElement.query(By.directive(PlaceholderAnimationDirective)); + }); + it('should create an instance', () => { - const directive = new PlaceholderDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new PlaceholderDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should toggle visibility for the placeholder', () => { + componentRef.setInput('visible', true); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('placeholder'); + expect(debugElement.nativeElement).toHaveClass('placeholder-sm'); + componentRef.setInput('visible', false); + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('aria-hidden')).toBe('true'); + expect(debugElement.nativeElement).not.toHaveClass('placeholder'); + }); + + it('should toggle animation for the placeholder', () => { + expect(wrapperElement.nativeElement).not.toHaveClass('placeholder-glow'); + componentRef.setInput('animation', 'glow'); + fixture.detectChanges(); + expect(wrapperElement.nativeElement).toHaveClass('placeholder-glow'); }); }); diff --git a/projects/coreui-angular/src/lib/placeholder/placeholder.directive.ts b/projects/coreui-angular/src/lib/placeholder/placeholder.directive.ts index dc705169..637d0d4c 100644 --- a/projects/coreui-angular/src/lib/placeholder/placeholder.directive.ts +++ b/projects/coreui-angular/src/lib/placeholder/placeholder.directive.ts @@ -1,46 +1,37 @@ -import { Directive, HostBinding, Input } from '@angular/core'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; +import { booleanAttribute, computed, Directive, input, InputSignalWithTransform } from '@angular/core'; @Directive({ selector: '[cPlaceholder]', exportAs: 'cPlaceholder', - standalone: true + host: { + '[class]': 'hostClasses()', + '[attr.aria-hidden]': 'ariaHidden()' + } }) export class PlaceholderDirective { - - static ngAcceptInputType_visible: BooleanInput; - - constructor() { } - /** * placeholder toggler * @type boolean * @default false */ - @Input('cPlaceholder') - set visible(value: boolean) { - this._visible = coerceBooleanProperty(value); - } - get visible() { - return this._visible; - } - private _visible: boolean = false; + readonly visible: InputSignalWithTransform = input(false, { + transform: booleanAttribute, + alias: 'cPlaceholder' + }); /** - * Size the placeholder extra small, small, large. + * Size the placeholder xs, small, large. */ - @Input('cPlaceholderSize') size?: 'xs' | 'sm' | 'lg'; + readonly size = input<'xs' | 'sm' | 'lg' | undefined>(undefined, { alias: 'cPlaceholderSize' }); - @HostBinding('attr.aria-hidden') - get ariaHidden(): boolean | null { - return this.visible ? null : true; - }; + readonly ariaHidden = computed(() => { + return this.visible() ? null : true; + }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { - 'placeholder': this.visible, - [`placeholder-${this.size}`]: !!this.size - }; - } + placeholder: this.visible(), + [`placeholder-${this.size()}`]: !!this.size() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/popover/popover.directive.spec.ts b/projects/coreui-angular/src/lib/popover/popover.directive.spec.ts index 2cce0599..745a071b 100644 --- a/projects/coreui-angular/src/lib/popover/popover.directive.spec.ts +++ b/projects/coreui-angular/src/lib/popover/popover.directive.spec.ts @@ -1,18 +1,97 @@ -import { ChangeDetectorRef, ElementRef, Renderer2, ViewContainerRef } from '@angular/core'; -import { IntersectionService, ListenersService } from '../services'; +import { + ChangeDetectorRef, + Component, + ComponentRef, + DebugElement, + DOCUMENT, + ElementRef, + Renderer2, + ViewContainerRef +} from '@angular/core'; +import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; +import { ListenersService } from '../services'; import { PopoverDirective } from './popover.directive'; +import { Triggers } from '../coreui.types'; + +@Component({ + template: '', + imports: [PopoverDirective] +}) +export class TestComponent { + content = 'Test'; + visible = false; + trigger: Triggers[] = ['hover', 'click']; +} + +class MockElementRef extends ElementRef {} describe('PopoverDirective', () => { + let component: TestComponent; + let componentRef: ComponentRef; + let fixture: ComponentFixture; + let debugElement: DebugElement; let document: Document; - let renderer: Renderer2; - let hostElement: ElementRef; - let viewContainerRef: ViewContainerRef; - let changeDetectorRef: ChangeDetectorRef; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent], + providers: [ + // IntersectionService, + Renderer2, + ListenersService, + { provide: ElementRef, useClass: MockElementRef }, + ViewContainerRef, + ChangeDetectorRef + ] + }).compileComponents(); + document = TestBed.inject(DOCUMENT); + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(PopoverDirective)); + fixture.autoDetectChanges(); + }); it('should create an instance', () => { - const listenersService = new ListenersService(renderer); - const intersectionService = new IntersectionService(); - const directive = new PopoverDirective(document, renderer, hostElement, viewContainerRef, listenersService, changeDetectorRef, intersectionService); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new PopoverDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should have css classes', fakeAsync(() => { + expect(document.querySelector('.popover.show')).toBeNull(); + component.visible = true; + fixture.detectChanges(); + tick(500); + expect(document.querySelector('.popover.show')).toBeTruthy(); + component.visible = false; + fixture.detectChanges(); + tick(500); + expect(document.querySelector('.popover.show')).toBeNull(); + })); + + it('should set popover on and off', fakeAsync(() => { + fixture.autoDetectChanges(); + component.visible = false; + expect(document.querySelector('.popover.show')).toBeNull(); + debugElement.nativeElement.dispatchEvent(new Event('mouseenter')); + tick(500); + expect(document.querySelector('.popover.show')).toBeTruthy(); + debugElement.nativeElement.dispatchEvent(new Event('mouseleave')); + tick(500); + expect(document.querySelector('.popover.show')).toBeNull(); + })); + + it('should toggle popover', fakeAsync(() => { + fixture.autoDetectChanges(); + component.visible = false; + expect(document.querySelector('.popover.show')).toBeNull(); + debugElement.nativeElement.dispatchEvent(new Event('click')); + tick(500); + expect(document.querySelector('.popover.show')).toBeTruthy(); + debugElement.nativeElement.dispatchEvent(new Event('click')); + tick(500); + expect(document.querySelector('.popover.show')).toBeNull(); + })); }); diff --git a/projects/coreui-angular/src/lib/popover/popover.directive.ts b/projects/coreui-angular/src/lib/popover/popover.directive.ts index 42e1c102..ec26169d 100644 --- a/projects/coreui-angular/src/lib/popover/popover.directive.ts +++ b/projects/coreui-angular/src/lib/popover/popover.directive.ts @@ -2,87 +2,115 @@ import { AfterViewInit, ChangeDetectorRef, ComponentRef, + computed, + DestroyRef, Directive, + DOCUMENT, + effect, ElementRef, - HostBinding, - Inject, - Input, - OnChanges, + inject, + input, + model, OnDestroy, OnInit, Renderer2, - SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { Subscription } from 'rxjs'; -import { debounceTime } from 'rxjs/operators'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { debounceTime, filter, finalize } from 'rxjs/operators'; import { createPopper, Instance, Options } from '@popperjs/core'; import { Triggers } from '../coreui.types'; +import { IListenersConfig, IntersectionService, ListenersService } from '../services'; +import { ElementRefDirective } from '../shared'; import { PopoverComponent } from './popover/popover.component'; -import { IListenersConfig, ListenersService } from '../services/listeners.service'; -import { IntersectionService } from '../services'; @Directive({ selector: '[cPopover]', exportAs: 'cPopover', providers: [ListenersService, IntersectionService], - standalone: true + host: { '[attr.aria-describedby]': 'ariaDescribedBy' } }) -export class PopoverDirective implements OnChanges, OnDestroy, OnInit, AfterViewInit { +export class PopoverDirective implements OnDestroy, OnInit, AfterViewInit { + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + readonly #viewContainerRef = inject(ViewContainerRef); + readonly #listenersService = inject(ListenersService); + readonly #changeDetectorRef = inject(ChangeDetectorRef); + readonly #intersectionService = inject(IntersectionService); + readonly #destroyRef = inject(DestroyRef); + readonly #document = inject(DOCUMENT); /** * Content of popover - * @type {string | TemplateRef} + * @return {string | TemplateRef} */ - @Input('cPopover') content: string | TemplateRef = ''; + readonly content = input | undefined>(undefined, { alias: 'cPopover' }); + + readonly #contentEffect = effect(() => { + if (this.content()) { + this.destroyTooltipElement(); + } + }); /** * Optional popper Options object, takes precedence over cPopoverPlacement prop - * @type Partial + * @return Partial */ - @Input('cPopoverOptions') - set popperOptions(value: Partial) { - this._popperOptions = { ...this._popperOptions, placement: this.placement, ...value }; - }; + readonly popperOptions = input>({}, { alias: 'cPopoverOptions' }); - get popperOptions(): Partial { - return { placement: this.placement, ...this._popperOptions }; - } + readonly #popperOptionsEffect = effect(() => { + this._popperOptions = { + ...this._popperOptions, + placement: this.placement(), + ...this.popperOptions() + }; + }); + + readonly popperOptionsComputed = computed(() => { + return { placement: this.placement(), ...this._popperOptions }; + }); /** * Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property. + * @return: 'top' | 'bottom' | 'left' | 'right' + * @default: 'top' */ - @Input('cPopoverPlacement') placement: 'top' | 'bottom' | 'left' | 'right' = 'top'; + readonly placement = input<'top' | 'bottom' | 'left' | 'right'>('top', { alias: 'cPopoverPlacement' }); + + /** + * ElementRefDirective for positioning the tooltip on reference element + * @return: ElementRefDirective + * @default: undefined + */ + readonly reference = input(undefined, { alias: 'cTooltipRef' }); + + readonly referenceRef = computed(() => this.reference()?.elementRef ?? this.#hostElement); + /** * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them. - * @type {'hover' | 'focus' | 'click'} + * @return: Triggers | Triggers[] */ - @Input('cPopoverTrigger') trigger?: Triggers | Triggers[] = 'hover'; + readonly trigger = input('hover', { alias: 'cPopoverTrigger' }); /** * Toggle the visibility of popover component. + * @return boolean */ - @Input('cPopoverVisible') - set visible(value: boolean) { - this._visible = value; - } - - get visible() { - return this._visible; - } + readonly visible = model(false, { alias: 'cPopoverVisible' }); - private _visible = false; + readonly #visibleEffect = effect(() => { + this.visible() ? this.addTooltipElement() : this.removeTooltipElement(); + }); - @HostBinding('attr.aria-describedby') get ariaDescribedBy(): string | null { - return this.popoverId ? this.popoverId : null; + get ariaDescribedBy(): string | null { + return this.tooltipId ? this.tooltipId : null; } - private popover!: HTMLDivElement; - private popoverId!: string; - private popoverRef!: ComponentRef; + private tooltip!: HTMLDivElement; + private tooltipId!: string; + private tooltipRef!: ComponentRef; private popperInstance!: Instance; private _popperOptions: Partial = { @@ -90,39 +118,19 @@ export class PopoverDirective implements OnChanges, OnDestroy, OnInit, AfterView { name: 'offset', options: { - offset: [0, 8] + offset: [0, 9] } } ] }; - private intersectingSubscription?: Subscription; - - constructor( - @Inject(DOCUMENT) private document: Document, - private renderer: Renderer2, - private hostElement: ElementRef, - private viewContainerRef: ViewContainerRef, - private listenersService: ListenersService, - private changeDetectorRef: ChangeDetectorRef, - private intersectionService: IntersectionService - ) {} - ngAfterViewInit(): void { - this.intersectionService.createIntersectionObserver(this.hostElement); this.intersectionServiceSubscribe(); } - ngOnChanges(changes: SimpleChanges): void { - if (changes['visible']) { - changes['visible'].currentValue ? this.addPopoverElement() : this.removePopoverElement(); - } - } - ngOnDestroy(): void { this.clearListeners(); - this.destroyPopoverElement(); - this.intersectionServiceSubscribe(false); + this.destroyTooltipElement(); } ngOnInit(): void { @@ -131,117 +139,116 @@ export class PopoverDirective implements OnChanges, OnDestroy, OnInit, AfterView private setListeners(): void { const config: IListenersConfig = { - hostElement: this.hostElement, - trigger: this.trigger, + hostElement: this.#hostElement, + trigger: this.trigger(), callbackToggle: () => { - this.visible = !this.visible; - this.visible ? this.addPopoverElement() : this.removePopoverElement(); + this.visible.update((visible) => !visible); }, callbackOff: () => { - this.visible = false; - this.removePopoverElement(); + this.visible.set(false); }, callbackOn: () => { - this.visible = true; - this.addPopoverElement(); + this.visible.set(true); } }; - this.listenersService.setListeners(config); + this.#listenersService.setListeners(config); } private clearListeners(): void { - this.listenersService.clearListeners(); + this.#listenersService.clearListeners(); } - private intersectionServiceSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.intersectingSubscription = this.intersectionService.intersecting$ - .pipe( - debounceTime(100) - ) - .subscribe(isIntersecting => { - this.visible = isIntersecting ? this.visible : false; - !this.visible && this.removePopoverElement(); - }); - } else { - this.intersectingSubscription?.unsubscribe(); - } + private intersectionServiceSubscribe(): void { + this.#intersectionService.createIntersectionObserver(this.referenceRef()); + this.#intersectionService.intersecting$ + .pipe( + filter((next) => next.hostElement === this.referenceRef()), + debounceTime(100), + finalize(() => { + this.#intersectionService.unobserve(this.referenceRef()); + }), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe((next) => { + this.visible.set(next.isIntersecting ? this.visible() : false); + }); } private getUID(prefix: string): string { let uid = prefix ?? 'random-id'; do { uid = `${prefix}-${Math.floor(Math.random() * 1000000).toString(10)}`; - } while (this.document.getElementById(uid)); + } while (this.#document.getElementById(uid)); return uid; } - private createPopoverElement(): void { - if (!this.popoverRef) { - this.popoverRef = this.viewContainerRef.createComponent(PopoverComponent); + private createTooltipElement(): void { + if (!this.tooltipRef) { + this.tooltipRef = this.#viewContainerRef.createComponent(PopoverComponent); // this.viewContainerRef.detach(); } } - private destroyPopoverElement(): void { - this.popover?.remove(); - this.popoverRef?.destroy(); + private destroyTooltipElement(): void { + this.tooltip?.remove(); + this.tooltipRef?.destroy(); // @ts-ignore - this.popoverRef = undefined; + this.tooltipRef = undefined; this.popperInstance?.destroy(); - this.viewContainerRef?.detach(); - this.viewContainerRef?.clear(); + this.#viewContainerRef?.detach(); + this.#viewContainerRef?.clear(); } - private addPopoverElement(): void { - if (!this.popoverRef) { - this.createPopoverElement(); + private addTooltipElement(): void { + if (!this.content()) { + this.destroyTooltipElement(); + return; + } + + if (!this.tooltipRef) { + this.createTooltipElement(); } - this.popoverRef.instance.content = this.content; - this.popover = this.popoverRef.location.nativeElement; - this.renderer.addClass(this.popover, 'd-none'); - this.renderer.addClass(this.popover, 'fade'); + + this.tooltipRef?.setInput('content', this.content() ?? ''); + + this.tooltip = this.tooltipRef?.location.nativeElement; + this.#renderer.addClass(this.tooltip, 'd-none'); + this.#renderer.addClass(this.tooltip, 'fade'); this.popperInstance?.destroy(); - setTimeout(() => { - this.popperInstance = createPopper( - this.hostElement.nativeElement, - this.popover, - { ...this.popperOptions } - ); - this.viewContainerRef.insert(this.popoverRef.hostView); - this.renderer.appendChild(this.document.body, this.popover); - if (!this.visible) { - this.removePopoverElement(); - return; - } - setTimeout(() => { - this.popoverId = this.getUID('popover'); - this.popoverRef.instance.id = this.popoverId; - if (!this.visible) { - this.removePopoverElement(); - return; - } - this.renderer.removeClass(this.popover, 'd-none'); - this.popoverRef.instance.visible = this.visible; - this.popperInstance.forceUpdate(); - this.changeDetectorRef.markForCheck(); - }, 100); + this.#viewContainerRef.insert(this.tooltipRef.hostView); + this.#renderer.appendChild(this.#document.body, this.tooltip); + + this.popperInstance = createPopper(this.referenceRef().nativeElement, this.tooltip, { + ...this.popperOptionsComputed() }); - } - private removePopoverElement(): void { - this.popoverId = ''; - if (!this.popoverRef) { + if (!this.visible()) { + this.removeTooltipElement(); + return; + } + setTimeout(() => { + this.tooltipId = this.getUID('popover'); + this.tooltipRef?.setInput('id', this.tooltipId); + this.#renderer.removeClass(this.tooltip, 'd-none'); + this.tooltipRef?.setInput('visible', this.visible()); + this.popperInstance?.forceUpdate(); + this.#changeDetectorRef?.markForCheck(); + }, 100); + } + + private removeTooltipElement(): void { + this.tooltipId = ''; + if (!this.tooltipRef) { return; } - this.popoverRef.instance.visible = false; - this.popoverRef.instance.id = undefined; - this.changeDetectorRef.markForCheck(); + this.tooltipRef.setInput('visible', false); + this.tooltipRef.setInput('id', undefined); + this.#changeDetectorRef.markForCheck(); setTimeout(() => { - this.viewContainerRef.detach(); + this.#viewContainerRef?.detach(); }, 300); } } diff --git a/projects/coreui-angular/src/lib/popover/popover/popover.component.html b/projects/coreui-angular/src/lib/popover/popover/popover.component.html index 8a24a3a9..afa937fe 100644 --- a/projects/coreui-angular/src/lib/popover/popover/popover.component.html +++ b/projects/coreui-angular/src/lib/popover/popover/popover.component.html @@ -1,4 +1,4 @@ -
      - +
      + diff --git a/projects/coreui-angular/src/lib/popover/popover/popover.component.spec.ts b/projects/coreui-angular/src/lib/popover/popover/popover.component.spec.ts index 4a2220f1..53ba179b 100644 --- a/projects/coreui-angular/src/lib/popover/popover/popover.component.spec.ts +++ b/projects/coreui-angular/src/lib/popover/popover/popover.component.spec.ts @@ -22,4 +22,10 @@ describe('PopoverComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('popover'); + expect(fixture.nativeElement).toHaveClass('fade'); + expect(fixture.nativeElement).toHaveClass('bs-popover-auto'); + }); }); diff --git a/projects/coreui-angular/src/lib/popover/popover/popover.component.ts b/projects/coreui-angular/src/lib/popover/popover/popover.component.ts index e3d9cfd2..70175099 100644 --- a/projects/coreui-angular/src/lib/popover/popover/popover.component.ts +++ b/projects/coreui-angular/src/lib/popover/popover/popover.component.ts @@ -1,14 +1,14 @@ import { - AfterViewInit, + booleanAttribute, Component, - HostBinding, - Input, - OnChanges, + computed, + effect, + inject, + input, OnDestroy, Renderer2, - SimpleChanges, TemplateRef, - ViewChild, + viewChild, ViewContainerRef } from '@angular/core'; import { NgClass } from '@angular/common'; @@ -16,61 +16,53 @@ import { NgClass } from '@angular/common'; @Component({ selector: 'c-popover', templateUrl: './popover.component.html', - standalone: true, - imports: [NgClass] + imports: [NgClass], + host: { + class: 'popover fade bs-popover-auto', + '[class]': 'hostClasses()', + '[attr.role]': 'role()', + '[attr.id]': 'id()' + } }) -export class PopoverComponent implements AfterViewInit, OnChanges, OnDestroy { +export class PopoverComponent implements OnDestroy { + readonly renderer = inject(Renderer2); /** * Content of popover - * @type {string | TemplateRef} + * @return {string | TemplateRef} */ - @Input() content: string | TemplateRef = ''; + readonly content = input>(''); + + readonly #contentEffect = effect(() => { + this.updateView(this.content()); + }); + /** * Toggle the visibility of popover component. - * @type boolean + * @return boolean */ - @Input() visible = false; - @Input() @HostBinding('attr.id') id?: string; - @Input() @HostBinding('attr.role') role = 'tooltip'; + readonly visible = input(false, { transform: booleanAttribute }); + readonly id = input(); + readonly role = input('tooltip'); - @ViewChild('popoverTemplate', { read: ViewContainerRef }) viewContainerRef!: ViewContainerRef; + readonly viewContainerRef = viewChild('popoverTemplate', { read: ViewContainerRef }); private textNode!: Text; - constructor( - private renderer: Renderer2 - ) { } - - @HostBinding('class') - get hostClasses(): { [klass: string]: any; } { + readonly hostClasses = computed(() => { return { popover: true, fade: true, - show: this.visible, + show: this.visible(), 'bs-popover-auto': true - }; - } - - ngAfterViewInit(): void { - setTimeout(() => { - this.updateView(this.content); - }); - } - - ngOnChanges(changes: SimpleChanges): void { - if (changes['content']) { - setTimeout(() => { - this.updateView(this.content); - }); - } - } + } as Record; + }); ngOnDestroy(): void { this.clear(); } private clear(): void { - this.viewContainerRef?.clear(); + this.viewContainerRef()?.clear(); if (!!this.textNode) { this.renderer.removeChild(this.textNode.parentNode, this.textNode); } @@ -84,15 +76,15 @@ export class PopoverComponent implements AfterViewInit, OnChanges, OnDestroy { } if (content instanceof TemplateRef) { - this.viewContainerRef.createEmbeddedView(content); + this.viewContainerRef()?.createEmbeddedView(content); } else { - this.textNode = this.renderer.createText(content); - const popoverBody = this.renderer.createElement('div'); - this.renderer.addClass(popoverBody, 'popover-body'); - this.renderer.appendChild(popoverBody, this.textNode); + const textNodeContent = this.renderer.createText(content); + this.textNode = this.renderer.createElement('div'); + this.renderer.addClass(this.textNode, 'popover-body'); + this.renderer.appendChild(this.textNode, textNodeContent); - const element = this.viewContainerRef.element.nativeElement; - this.renderer.appendChild(element.parentNode, popoverBody); + const element = this.viewContainerRef()?.element.nativeElement; + this.renderer.appendChild(element.parentNode, this.textNode); } } } diff --git a/projects/coreui-angular/src/lib/progress/progress-bar.component.spec.ts b/projects/coreui-angular/src/lib/progress/progress-bar.component.spec.ts index d7fef619..6441107e 100644 --- a/projects/coreui-angular/src/lib/progress/progress-bar.component.spec.ts +++ b/projects/coreui-angular/src/lib/progress/progress-bar.component.spec.ts @@ -1,25 +1,64 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { ComponentRef } from '@angular/core'; import { ProgressBarComponent } from './progress-bar.component'; +import { ProgressBarDirective } from './progress-bar.directive'; +import { ProgressService } from './progress.service'; describe('ProgressBarComponent', () => { let component: ProgressBarComponent; + let componentRef: ComponentRef; let fixture: ComponentFixture; + let directive: ProgressBarDirective; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [ProgressBarComponent] - }) - .compileComponents(); - })); + imports: [ProgressBarComponent], + providers: [ProgressService] + }).compileComponents(); - beforeEach(() => { fixture = TestBed.createComponent(ProgressBarComponent); + component = fixture.componentInstance; + componentRef = fixture.componentRef; + directive = fixture.debugElement.injector.get(ProgressBarDirective); + componentRef.setInput('value', 42); + componentRef.setInput('color', 'success'); + componentRef.setInput('variant', 'striped'); + componentRef.setInput('animated', true); fixture.detectChanges(); - }); + })); it('should create', () => { - expect(component).toBeTruthy(); + expect(component).toBeDefined(); + }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('progress-bar'); + expect(fixture.nativeElement).toHaveClass('bg-success'); + expect(fixture.nativeElement).toHaveClass('progress-bar-striped'); + expect(fixture.nativeElement).toHaveClass('progress-bar-animated'); + }); + + it('should have style width %', () => { + expect(fixture.nativeElement.style.width).toBe('42%'); + }); + + it('should have aria-* attributes', () => { + expect(fixture.nativeElement.getAttribute('aria-valuenow')).toBe('42'); + expect(fixture.nativeElement.getAttribute('aria-valuemin')).toBe('0'); + expect(fixture.nativeElement.getAttribute('aria-valuemax')).toBe('100'); + expect(fixture.nativeElement.getAttribute('role')).toBe('progressbar'); + }); + + it('should not have aria-* attributes', () => { + componentRef.setInput('value', undefined); + fixture.detectChanges(); + expect(fixture.nativeElement.getAttribute('aria-valuenow')).toBeFalsy(); + expect(fixture.nativeElement.getAttribute('aria-valuemin')).toBeFalsy(); + expect(fixture.nativeElement.getAttribute('aria-valuemax')).toBeFalsy(); + expect(fixture.nativeElement.getAttribute('role')).toBeFalsy(); + // expect(fixture.nativeElement.style.width).toBeFalsy(); + expect(fixture.nativeElement.style.width).toBe('0%'); }); }); diff --git a/projects/coreui-angular/src/lib/progress/progress-bar.component.ts b/projects/coreui-angular/src/lib/progress/progress-bar.component.ts index 1d4eefba..6d61a885 100644 --- a/projects/coreui-angular/src/lib/progress/progress-bar.component.ts +++ b/projects/coreui-angular/src/lib/progress/progress-bar.component.ts @@ -1,112 +1,29 @@ -import { - booleanAttribute, - Component, - ElementRef, - HostBinding, - Input, - numberAttribute, - OnChanges, - OnInit, - Renderer2, - SimpleChanges -} from '@angular/core'; -import { Colors } from '../coreui.types'; +import { Component, computed, inject } from '@angular/core'; +import { ProgressBarDirective } from './progress-bar.directive'; @Component({ selector: 'c-progress-bar', - template: '', - standalone: true + template: '', + hostDirectives: [ + { + directive: ProgressBarDirective, + inputs: ['animated', 'color', 'max', 'role', 'value', 'variant'] + } + ], + host: { class: 'progress-bar', '[class]': 'hostClasses()' } }) -export class ProgressBarComponent implements OnInit, OnChanges { +export class ProgressBarComponent { + readonly #progressBarDirective: ProgressBarDirective | null = inject(ProgressBarDirective, { optional: true }); - /** - * Use to animate the stripes right to left via CSS3 animations. - * @type boolean - */ - @Input({ transform: booleanAttribute }) animated: string | boolean = false; - - /** - * Sets the color context of the component to one of CoreUI’s themed colors. - * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light' - */ - @Input() color?: Colors; - // TODO: check if this is necessary. - @Input({ transform: numberAttribute }) precision: string | number = 0; - /** - * The percent to progress the ProgressBar. - * @type number - */ - @Input({ transform: numberAttribute }) value: string | number = 0; - - /** - * Set the progress bar variant to optional striped. - * @values 'striped' - */ - @Input() variant?: 'striped'; - - /** - * Set default html role attribute. - * @type string - */ - @Input() - @HostBinding('attr.role') role = 'progressbar'; - private state = { - percent: 0, - min: 0, - max: 100 - }; - - constructor( - private renderer: Renderer2, - private hostElement: ElementRef - ) { } - - get min(): number { - return this.state.min; - } - - @Input() - set min(value: number) { - this.state.min = isNaN(value) ? 0 : value; - } - - get max(): number { - return this.state.max; - } - - @Input() - set max(value: number) { - this.state.max = isNaN(value) || value <= 0 || value === this.min ? 100 : value; - } - - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const animated = this.#progressBarDirective?.animated(); + const color = this.#progressBarDirective?.color(); + const variant = this.#progressBarDirective?.variant(); return { 'progress-bar': true, - 'progress-bar-animated': this.animated, - [`progress-bar-${this.variant}`]: !!this.variant, - [`bg-${this.color}`]: !!this.color - }; - } - - ngOnInit(): void { - this.setValues(); - } - - setPercent(): void { - this.state.percent = +((this.value / (this.max - this.min)) * 100).toFixed(this.precision); - } - - setValues(): void { - this.setPercent(); - const host: HTMLElement = this.hostElement.nativeElement; - this.renderer.setStyle(host, 'width', `${this.state.percent}%`); - this.renderer.setAttribute(host, 'aria-valuenow', String(this.value)); - this.renderer.setAttribute(host, 'aria-valuemin', String(this.min)); - this.renderer.setAttribute(host, 'aria-valuemax', String(this.max)); - } - - public ngOnChanges(changes: SimpleChanges): void { - this.setValues(); - } + 'progress-bar-animated': !!animated, + [`progress-bar-${variant}`]: !!variant, + [`bg-${color}`]: !!color + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/progress/progress-bar.directive.spec.ts b/projects/coreui-angular/src/lib/progress/progress-bar.directive.spec.ts new file mode 100644 index 00000000..35b7967a --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress-bar.directive.spec.ts @@ -0,0 +1,81 @@ +import { Component, ComponentRef, DebugElement, ElementRef, input, Renderer2 } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ProgressBarDirective } from './progress-bar.directive'; +import { By } from '@angular/platform-browser'; +import { ProgressService } from './progress.service'; + +class MockElementRef extends ElementRef {} + +@Component({ + template: `
      `, + selector: 'c-test', + imports: [ProgressBarDirective] +}) +export class TestComponent { + readonly value = input(42); + readonly color = input('success'); +} + +describe('ProgressBarDirective', () => { + let directive: ProgressBarDirective; + let debugElement: DebugElement; + let fixture: ComponentFixture; + let componentRef: ComponentRef; + + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [Renderer2, { provide: ElementRef, useClass: MockElementRef }, ProgressService], + imports: [TestComponent] + }); + fixture = TestBed.createComponent(TestComponent); + componentRef = fixture.componentRef; + debugElement = fixture.debugElement.query(By.directive(ProgressBarDirective)); + directive = debugElement.injector.get(ProgressBarDirective); + fixture.detectChanges(); + + // TestBed.runInInjectionContext(() => { + // directive = new ProgressBarDirective(); + // }); + }); + + it('should create an instance', () => { + expect(directive).toBeDefined(); + }); + + it('should have color value', () => { + expect(directive.color()).toBe('success'); + }); + + it('should have max value', () => { + expect(directive.max()).toBe(100); + }); + + it('should have variant value', () => { + expect(directive.variant()).toBe('striped'); + }); + + it('should have role value', () => { + expect(directive.role()).toBe('progressbar'); + }); + + it('should have precision value', () => { + expect(directive.precision()).toBe(0); + }); + + it('should have animated value', () => { + expect(directive.animated()).toBe(true); + }); + + it('should have aria-* attributes', () => { + expect(debugElement.nativeElement.getAttribute('aria-valuenow')).toBe('42'); + expect(debugElement.nativeElement.getAttribute('aria-valuemin')).toBe('0'); + expect(debugElement.nativeElement.getAttribute('aria-valuemax')).toBe('100'); + expect(debugElement.nativeElement.getAttribute('role')).toBe('progressbar'); + componentRef.setInput('value', undefined); + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('aria-valuenow')).toBeNull(); + expect(debugElement.nativeElement.getAttribute('aria-valuemin')).toBeNull(); + expect(debugElement.nativeElement.getAttribute('aria-valuemax')).toBeNull(); + expect(debugElement.nativeElement.getAttribute('role')).toBeNull(); + }); +}); diff --git a/projects/coreui-angular/src/lib/progress/progress-bar.directive.ts b/projects/coreui-angular/src/lib/progress/progress-bar.directive.ts new file mode 100644 index 00000000..6e972d0e --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress-bar.directive.ts @@ -0,0 +1,96 @@ +import { + booleanAttribute, + Directive, + effect, + EffectRef, + ElementRef, + inject, + input, + numberAttribute, + Renderer2 +} from '@angular/core'; +import { Colors } from '../coreui.types'; +import { ProgressService } from './progress.service'; + +@Directive({ + selector: '[cProgressBar]', + exportAs: 'cProgressBar' +}) +export class ProgressBarDirective { + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + readonly #progressService = inject(ProgressService); + + readonly #valuesEffect: EffectRef = effect(() => { + const host: HTMLElement = this.#hostElement.nativeElement; + const value = this.#progressService.value(); + const percent = this.#progressService.percent(); + const stacked = this.#progressService.stacked(); + if (value === undefined) { + for (const name of ['aria-valuenow', 'aria-valuemax', 'aria-valuemin', 'role']) { + this.#renderer.removeAttribute(host, name); + } + } else { + const { min, max } = this.#progressService; + this.#renderer.setAttribute(host, 'aria-valuenow', String(value)); + this.#renderer.setAttribute(host, 'aria-valuemin', String(min())); + this.#renderer.setAttribute(host, 'aria-valuemax', String(max())); + this.#renderer.setAttribute(host, 'role', this.role()); + } + const tagName = host.tagName; + if (percent >= 0 && ((stacked && tagName === 'C-PROGRESS') || (!stacked && tagName !== 'C-PROGRESS'))) { + this.#renderer.setStyle(host, 'width', `${percent}%`); + } else { + this.#renderer.removeStyle(host, 'width'); + } + }); + + /** + * Use to animate the stripes right to left via CSS3 animations. + * @return boolean + */ + readonly animated = input(undefined, { transform: booleanAttribute }); + + /** + * Sets the color context of the component to one of CoreUI’s themed colors. + * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light' + */ + readonly color = input(); + + readonly precision = input(0, { transform: numberAttribute }); + + /** + * The percent value the ProgressBar. + * @return number + * @default 0 + */ + readonly value = input(0, { transform: numberAttribute }); + + /** + * Set the progress bar variant to optional striped. + * @values 'striped' + * @default undefined + */ + readonly variant = input<'striped'>(); + + /** + * The max value of the ProgressBar. + * @return number + * @default 100 + */ + readonly max = input(100, { transform: numberAttribute }); + + /** + * Set default html role attribute. + * @return string + */ + readonly role = input('progressbar'); + + readonly #serviceEffect = effect(() => { + this.#progressService.precision.set(this.precision()); + const max = this.max(); + this.#progressService.max.set(isNaN(max) || max <= 0 ? 100 : max); + const value = this.value(); + this.#progressService.value.set(value && !isNaN(value) ? value : undefined); + }); +} diff --git a/projects/coreui-angular/src/lib/progress/progress-bar.ts b/projects/coreui-angular/src/lib/progress/progress-bar.ts deleted file mode 100644 index d5416b29..00000000 --- a/projects/coreui-angular/src/lib/progress/progress-bar.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface IStackedBar { - value: number; - color?: string; - label?: string; - animated?: boolean; - striped?: boolean; - precision?: number; - min?: number; - max?: number; -} diff --git a/projects/coreui-angular/src/lib/progress/progress-stacked.component.spec.ts b/projects/coreui-angular/src/lib/progress/progress-stacked.component.spec.ts new file mode 100644 index 00000000..0c3508de --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress-stacked.component.spec.ts @@ -0,0 +1,28 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ProgressStackedComponent } from './progress-stacked.component'; + +describe('ProgressStackedComponent', () => { + let component: ProgressStackedComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [ProgressStackedComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ProgressStackedComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeDefined(); + expect(component.stacked).toBeTruthy(); + }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('progress-stacked'); + }); +}); diff --git a/projects/coreui-angular/src/lib/progress/progress-stacked.component.ts b/projects/coreui-angular/src/lib/progress/progress-stacked.component.ts new file mode 100644 index 00000000..b5cd17af --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress-stacked.component.ts @@ -0,0 +1,16 @@ +import { Component, input } from '@angular/core'; + +@Component({ + selector: 'c-progress-stacked', + exportAs: 'cProgressStacked', + template: '', + styles: ` + :host { + display: flex; + } + `, + host: { '[class.progress-stacked]': 'stacked()' } +}) +export class ProgressStackedComponent { + readonly stacked = input(true); +} diff --git a/projects/coreui-angular/src/lib/progress/progress.component.html b/projects/coreui-angular/src/lib/progress/progress.component.html new file mode 100644 index 00000000..6c718035 --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress.component.html @@ -0,0 +1,13 @@ +@if (contentProgressBars()?.length) { + +} @else { + @let pbd = progressBarDirective; + + + +} + + + + + diff --git a/projects/coreui-angular/src/lib/progress/progress.component.scss b/projects/coreui-angular/src/lib/progress/progress.component.scss new file mode 100644 index 00000000..381bd487 --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress.component.scss @@ -0,0 +1,5 @@ +:host-context(.progress-stacked) { + &.progress { + transition: var(--cui-progress-bar-transition) + } +} diff --git a/projects/coreui-angular/src/lib/progress/progress.component.spec.ts b/projects/coreui-angular/src/lib/progress/progress.component.spec.ts index 861fb081..24f9d3b9 100644 --- a/projects/coreui-angular/src/lib/progress/progress.component.spec.ts +++ b/projects/coreui-angular/src/lib/progress/progress.component.spec.ts @@ -1,25 +1,50 @@ +import { Component, DebugNode } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ProgressComponent } from './progress.component'; +import { ProgressBarDirective } from './progress-bar.directive'; + +@Component({ + template: ` `, + selector: 'c-test', + imports: [ProgressComponent] +}) +export class TestComponent {} describe('ProgressComponent', () => { - let component: ProgressComponent; - let fixture: ComponentFixture; + let component: TestComponent; + let progress: DebugNode | undefined; + let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [ProgressComponent] - }) - .compileComponents(); - })); + imports: [TestComponent, ProgressComponent, ProgressBarDirective] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); - beforeEach(() => { - fixture = TestBed.createComponent(ProgressComponent); component = fixture.componentInstance; + progress = fixture.debugElement.childNodes.find((v) => ProgressComponent); + // let x= fixture.debugElement.queryAll(By.directive(ProgressBarDirective)) fixture.detectChanges(); - }); + })); it('should create', () => { - expect(component).toBeTruthy(); + expect(component).toBeDefined(); + expect(progress).toBeDefined(); + }); + + it('should have css classes', () => { + expect(progress?.nativeNode).toHaveClass('progress'); + }); + + it('should have style width %', () => { + expect(progress?.nativeNode.style.width).toBe(''); + }); + + it('should have aria-* attributes', () => { + expect(progress?.nativeNode.getAttribute('aria-valuenow')).toBe('42'); + expect(progress?.nativeNode.getAttribute('aria-valuemin')).toBe('0'); + expect(progress?.nativeNode.getAttribute('aria-valuemax')).toBe('100'); }); }); diff --git a/projects/coreui-angular/src/lib/progress/progress.component.ts b/projects/coreui-angular/src/lib/progress/progress.component.ts index 4c302146..9f4c0811 100644 --- a/projects/coreui-angular/src/lib/progress/progress.component.ts +++ b/projects/coreui-angular/src/lib/progress/progress.component.ts @@ -1,41 +1,84 @@ -import { booleanAttribute, Component, HostBinding, Input, numberAttribute } from '@angular/core'; +import { NgTemplateOutlet } from '@angular/common'; +import { + booleanAttribute, + Component, + computed, + contentChildren, + ElementRef, + inject, + input, + numberAttribute +} from '@angular/core'; +import { ProgressBarComponent } from './progress-bar.component'; +import { ProgressBarDirective } from './progress-bar.directive'; +import { ProgressStackedComponent } from './progress-stacked.component'; +import { ProgressService } from './progress.service'; @Component({ selector: 'c-progress', - template: '', - standalone: true + exportAs: 'cProgress', + templateUrl: './progress.component.html', + imports: [ProgressBarComponent, NgTemplateOutlet], + styleUrl: './progress.component.scss', + hostDirectives: [ + { + directive: ProgressBarDirective, + inputs: ['animated', 'color', 'max', 'role', 'value', 'variant'] + } + ], + host: { + class: 'progress', + '[class]': 'hostClasses()', + '[style.height]': 'hostStyle()' + }, + providers: [ProgressService] }) export class ProgressComponent { + readonly #hostElement = inject(ElementRef); + protected readonly progressBarDirective: ProgressBarDirective | null = inject(ProgressBarDirective, { + optional: true + }); + readonly #stacked: boolean = inject(ProgressStackedComponent, { optional: true })?.stacked() ?? false; + readonly #progressService = inject(ProgressService); + + constructor() { + this.#progressService.stacked.set(this.#stacked); + } + + readonly stacked = this.#progressService.stacked; + readonly percent = this.#progressService.percent; + readonly barValue = this.#progressService.value; + + readonly contentProgressBars = contentChildren(ProgressBarComponent); /** * Sets the height of the component. If you set that value the inner `` will automatically resize accordingly. - * @type number + * @return number */ - @Input({ transform: numberAttribute }) height: string | number = 0; + readonly height = input(0, { transform: numberAttribute }); /** * Displays thin progress. - * @type boolean + * @return boolean */ - @Input({ transform: booleanAttribute }) thin: string | boolean = false; + readonly thin = input(false, { transform: booleanAttribute }); /** * Change the default color to white. - * @type boolean + * @return boolean */ - @Input({ transform: booleanAttribute }) white: string | boolean = false; + readonly white = input(false, { transform: booleanAttribute }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { progress: true, - 'progress-thin': this.thin, - 'progress-white': this.white - }; - } + 'progress-thin': this.thin(), + 'progress-white': this.white() + } as Record; + }); - @HostBinding('style.height') - get hostStyle(): any { - return !!this.height ? `${this.height}px` : ''; - } + readonly hostStyle = computed(() => { + const height = this.height(); + return !!height ? `${height}px` : (this.#hostElement?.nativeElement?.style?.height ?? undefined); + }); } diff --git a/projects/coreui-angular/src/lib/progress/progress.module.ts b/projects/coreui-angular/src/lib/progress/progress.module.ts index f4101373..5f91781f 100644 --- a/projects/coreui-angular/src/lib/progress/progress.module.ts +++ b/projects/coreui-angular/src/lib/progress/progress.module.ts @@ -1,15 +1,21 @@ import { NgModule } from '@angular/core'; import { ProgressComponent } from './progress.component'; import { ProgressBarComponent } from './progress-bar.component'; +import { ProgressBarDirective } from './progress-bar.directive'; +import { ProgressStackedComponent } from './progress-stacked.component'; @NgModule({ exports: [ ProgressComponent, - ProgressBarComponent + ProgressBarComponent, + ProgressBarDirective, + ProgressStackedComponent ], imports: [ ProgressComponent, - ProgressBarComponent + ProgressBarComponent, + ProgressBarDirective, + ProgressStackedComponent ] }) export class ProgressModule {} diff --git a/projects/coreui-angular/src/lib/progress/progress.service.spec.ts b/projects/coreui-angular/src/lib/progress/progress.service.spec.ts new file mode 100644 index 00000000..fe751942 --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress.service.spec.ts @@ -0,0 +1,32 @@ +import { TestBed } from '@angular/core/testing'; + +import { ProgressService } from './progress.service'; + +describe('ProgressService', () => { + let service: ProgressService; + + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [ProgressService] + }); + service = TestBed.inject(ProgressService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); + + it('should expose values', () => { + service.value.set(42); + expect(service.percent()).toBe(42); + expect(service.min()).toBe(0); + expect(service.max()).toBe(100); + expect(service.value()).toBe(42); + service.max.set(200); + expect(service.max()).toBe(200); + service.value.set(84); + expect(service.percent()).toBe(42); + service.value.set(undefined); + expect(service.percent()).toBe(0); + }); +}); diff --git a/projects/coreui-angular/src/lib/progress/progress.service.ts b/projects/coreui-angular/src/lib/progress/progress.service.ts new file mode 100644 index 00000000..1a43dac0 --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress.service.ts @@ -0,0 +1,14 @@ +import { computed, Injectable, signal } from '@angular/core'; + +@Injectable() +export class ProgressService { + readonly stacked = signal(false); + readonly value = signal(undefined); + readonly precision = signal(0); + readonly min = signal(0); + readonly max = signal(100); + + readonly percent = computed(() => { + return +((((this.value() ?? 0) - this.min()) / (this.max() - this.min())) * 100).toFixed(this.precision()); + }); +} diff --git a/projects/coreui-angular/src/lib/progress/progress.type.ts b/projects/coreui-angular/src/lib/progress/progress.type.ts new file mode 100644 index 00000000..7fe7e28b --- /dev/null +++ b/projects/coreui-angular/src/lib/progress/progress.type.ts @@ -0,0 +1,21 @@ +import { Colors } from '../coreui.types'; + +export interface IProgress { + height: number; + thin: boolean; + white: boolean; +} + +export interface IProgressBar extends IProgressBarStacked { + animated?: boolean; + color?: Colors; + max?: number; + precision: number; + value?: number; + variant?: 'striped'; + width?: number; +} + +export interface IProgressBarStacked { + stacked?: boolean; +} diff --git a/projects/coreui-angular/src/lib/progress/public_api.ts b/projects/coreui-angular/src/lib/progress/public_api.ts index 6c97b9ed..51639ddc 100644 --- a/projects/coreui-angular/src/lib/progress/public_api.ts +++ b/projects/coreui-angular/src/lib/progress/public_api.ts @@ -1,4 +1,6 @@ -export { IStackedBar } from './progress-bar'; +export type { IProgress, IProgressBar, IProgressBarStacked } from './progress.type'; export { ProgressComponent } from './progress.component'; +export { ProgressStackedComponent } from './progress-stacked.component'; export { ProgressBarComponent } from './progress-bar.component'; +export { ProgressBarDirective } from './progress-bar.directive'; export { ProgressModule } from './progress.module'; diff --git a/projects/coreui-angular/src/lib/services/class-toggle.service.ts b/projects/coreui-angular/src/lib/services/class-toggle.service.ts index 5e53ad53..0b6635bd 100644 --- a/projects/coreui-angular/src/lib/services/class-toggle.service.ts +++ b/projects/coreui-angular/src/lib/services/class-toggle.service.ts @@ -1,26 +1,24 @@ -import { Inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; +import { DOCUMENT, inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ClassToggleService { + readonly #document = inject(DOCUMENT); + readonly #rendererFactory = inject(RendererFactory2); - private renderer: Renderer2; + #renderer: Renderer2; - constructor( - @Inject(DOCUMENT) private document: Document, - private rendererFactory: RendererFactory2 - ) { - this.renderer = rendererFactory.createRenderer(null, null); + constructor() { + this.#renderer = this.#rendererFactory.createRenderer(null, null); } toggle(selector: any, className: string) { - const element = document.querySelector(selector); + const element = this.#document.querySelector(selector); if (element) { - element.classList.contains(className) ? - this.renderer.removeClass(element, className) : - this.renderer.addClass(element, className); + element.classList.contains(className) + ? this.#renderer.removeClass(element, className) + : this.#renderer.addClass(element, className); } } } diff --git a/projects/coreui-angular/src/lib/services/color-mode.service.spec.ts b/projects/coreui-angular/src/lib/services/color-mode.service.spec.ts new file mode 100644 index 00000000..6118fee6 --- /dev/null +++ b/projects/coreui-angular/src/lib/services/color-mode.service.spec.ts @@ -0,0 +1,25 @@ +import { TestBed } from '@angular/core/testing'; +import { ColorModeService } from './color-mode.service'; + +describe('ColorModeService', () => { + + let service: ColorModeService; + + beforeEach(() => { + service = TestBed.inject(ColorModeService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); + + it('should switch themes', () => { + expect(service.colorMode()).toBeUndefined(); + service.colorMode.set('light'); + expect(service.colorMode()).toBe('light'); + service.colorMode.set('dark'); + expect(service.colorMode()).toBe('dark'); + service.colorMode.set('auto'); + expect(service.colorMode()).toBe('auto'); + }); +}); diff --git a/projects/coreui-angular/src/lib/services/color-mode.service.ts b/projects/coreui-angular/src/lib/services/color-mode.service.ts new file mode 100644 index 00000000..c681ed84 --- /dev/null +++ b/projects/coreui-angular/src/lib/services/color-mode.service.ts @@ -0,0 +1,95 @@ +import { + afterNextRender, + DestroyRef, + DOCUMENT, + effect, + inject, + Injectable, + signal, + WritableSignal +} from '@angular/core'; +import { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop'; +import { tap } from 'rxjs/operators'; +import { LocalStorageService } from './local-storage.service'; + +export type ColorMode = 'light' | 'dark' | 'auto' | string | undefined; + +@Injectable({ + providedIn: 'root' +}) +export class ColorModeService { + readonly #destroyRef: DestroyRef = inject(DestroyRef); + readonly #document: Document = inject(DOCUMENT); + readonly #localStorage: LocalStorageService = inject(LocalStorageService); + + readonly eventName = signal('ColorSchemeChange'); + readonly localStorageItemName: WritableSignal = signal(undefined); + readonly localStorageItemName$ = toObservable(this.localStorageItemName); + readonly colorMode: WritableSignal = signal(undefined); + + readonly #colorModeEffect = effect(() => { + const colorMode = this.colorMode(); + if (colorMode) { + const localStorageItemName = this.localStorageItemName(); + localStorageItemName && this.setStoredTheme(localStorageItemName, colorMode); + this.#setTheme(colorMode); + } + }); + + constructor() { + afterNextRender({ + read: () => { + this.localStorageItemName$ + .pipe( + tap((params) => { + this.colorMode.set(this.getDefaultScheme(params)); + }), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe(); + } + }); + } + + getStoredTheme(localStorageItemName: string) { + return this.#localStorage.getItem(localStorageItemName); + } + + setStoredTheme(localStorageItemName: string, colorMode: string) { + return this.#localStorage.setItem(localStorageItemName, colorMode); + } + + removeStoredTheme(localStorageItemName: string) { + this.#localStorage.removeItem(localStorageItemName); + } + + getDefaultScheme(localStorageItemName: string | undefined) { + if (this.#document.defaultView === undefined) { + return this.getDatasetTheme(); + } + + const storedTheme = localStorageItemName && this.getStoredTheme(localStorageItemName); + + return storedTheme ?? this.getDatasetTheme(); + } + + getPrefersColorScheme() { + return this.#document.defaultView?.matchMedia('(prefers-color-scheme: dark)').matches + ? 'dark' + : this.#document.defaultView?.matchMedia('(prefers-color-scheme: light)').matches + ? 'light' + : undefined; + } + + getDatasetTheme(): ColorMode { + return this.#document.documentElement.dataset['coreuiTheme']; + } + + #setTheme(colorMode: ColorMode) { + this.#document.documentElement.dataset['coreuiTheme'] = + colorMode === 'auto' ? this.getPrefersColorScheme() : colorMode; + + const event = new Event(this.eventName()); + this.#document.documentElement.dispatchEvent(event); + } +} diff --git a/projects/coreui-angular/src/lib/services/in-memory-storage.service.spec.ts b/projects/coreui-angular/src/lib/services/in-memory-storage.service.spec.ts new file mode 100644 index 00000000..dd5ce72b --- /dev/null +++ b/projects/coreui-angular/src/lib/services/in-memory-storage.service.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { InMemoryStorageService } from './in-memory-storage.service'; + +describe('InMemoryStorageService', () => { + let service: InMemoryStorageService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(InMemoryStorageService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/services/in-memory-storage.service.ts b/projects/coreui-angular/src/lib/services/in-memory-storage.service.ts new file mode 100644 index 00000000..2d060d3f --- /dev/null +++ b/projects/coreui-angular/src/lib/services/in-memory-storage.service.ts @@ -0,0 +1,32 @@ +import { Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class InMemoryStorageService implements Storage { + #storage = new Map(); + + public setItem(key: string, data: any): void { + this.#storage.set(key, JSON.stringify(data)); + } + + public getItem(key: string): any { + return this.#storage.has(key) ? JSON.parse(this.#storage.get(key) ?? 'null') : undefined; + } + + public removeItem(key: string): void { + this.#storage.delete(key); + } + + public clear() { + this.#storage.clear(); + } + + public get length() { + return this.#storage.size; + } + + public key(index: number) { + return Array.from(this.#storage.keys())[index]; + } +} diff --git a/projects/coreui-angular/src/lib/services/intersection.service.spec.ts b/projects/coreui-angular/src/lib/services/intersection.service.spec.ts index b56af721..9954988e 100644 --- a/projects/coreui-angular/src/lib/services/intersection.service.spec.ts +++ b/projects/coreui-angular/src/lib/services/intersection.service.spec.ts @@ -7,10 +7,9 @@ describe('IntersectionService', () => { beforeEach(() => { TestBed.configureTestingModule({ - imports: [IntersectionService] + providers: [IntersectionService] }); - service = new IntersectionService(); - // service = TestBed.inject(IntersectionService); + service = TestBed.inject(IntersectionService); }); it('should be created', () => { diff --git a/projects/coreui-angular/src/lib/services/intersection.service.ts b/projects/coreui-angular/src/lib/services/intersection.service.ts index 92db7b4a..72d9dfc7 100644 --- a/projects/coreui-angular/src/lib/services/intersection.service.ts +++ b/projects/coreui-angular/src/lib/services/intersection.service.ts @@ -1,4 +1,5 @@ -import { Injectable, OnDestroy } from '@angular/core'; +import { isPlatformServer } from '@angular/common'; +import { ElementRef, inject, Injectable, OnDestroy, PLATFORM_ID } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; export interface IIntersectionObserverInit { @@ -7,16 +8,15 @@ export interface IIntersectionObserverInit { threshold?: number | number[]; } -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class IntersectionService implements OnDestroy { - constructor() { } + platformId = inject(PLATFORM_ID); - private intersecting = new BehaviorSubject(false); - intersecting$ = this.intersecting.asObservable(); - - private intersectionObserver!: IntersectionObserver; - private hostElement!: { nativeElement: Element; }; + readonly #intersecting: BehaviorSubject = new BehaviorSubject({ isIntersecting: false }); + readonly intersecting$ = this.#intersecting.asObservable(); private defaultObserverOptions: IIntersectionObserverInit = { root: null, @@ -24,23 +24,36 @@ export class IntersectionService implements OnDestroy { threshold: 0.2 }; - createIntersectionObserver(hostElement: { nativeElement: Element; }, observerOptions = this.defaultObserverOptions) { + hostElementRefs: Map = new Map(); + + createIntersectionObserver(hostElement: ElementRef, observerOptions = this.defaultObserverOptions) { - const options = { ...this.defaultObserverOptions, ...observerOptions }; + if (isPlatformServer(this.platformId)) { + this.#intersecting.next({ isIntersecting: true, hostElement }); + return; + } - this.hostElement = hostElement; + const options: IIntersectionObserverInit = { ...this.defaultObserverOptions, ...observerOptions }; - const handleIntersect = (entries: any[], observer: any) => { + const handleIntersect = (entries: IntersectionObserverEntry[], observer: IntersectionObserver) => { entries.forEach((entry: any) => { - this.intersecting.next(entry.isIntersecting); + this.#intersecting.next({ isIntersecting: entry.isIntersecting, hostElement }); }); }; - this.intersectionObserver = new IntersectionObserver(handleIntersect, options); - this.intersectionObserver.observe(hostElement.nativeElement); + this.hostElementRefs.set(hostElement, new IntersectionObserver(handleIntersect, options)); + this.hostElementRefs.get(hostElement)?.observe(hostElement.nativeElement); + } + + unobserve(elementRef: ElementRef) { + this.hostElementRefs.get(elementRef)?.unobserve(elementRef.nativeElement); + this.hostElementRefs.set(elementRef, null); + this.hostElementRefs.delete(elementRef); } ngOnDestroy(): void { - this.intersectionObserver?.unobserve(this.hostElement?.nativeElement); + this.hostElementRefs.forEach((observer, elementRef) => { + observer?.unobserve(elementRef.nativeElement); + }); } } diff --git a/projects/coreui-angular/src/lib/services/listeners.service.spec.ts b/projects/coreui-angular/src/lib/services/listeners.service.spec.ts index 097e5d05..653c7b62 100644 --- a/projects/coreui-angular/src/lib/services/listeners.service.spec.ts +++ b/projects/coreui-angular/src/lib/services/listeners.service.spec.ts @@ -1,22 +1,18 @@ -import { Renderer2 } from '@angular/core'; import { TestBed } from '@angular/core/testing'; - +import { Renderer2 } from '@angular/core'; import { ListenersService } from './listeners.service'; describe('ListenersService', () => { - let renderer: Renderer2; - let service: ListenersService; - beforeEach(() => { TestBed.configureTestingModule({ - imports: [Renderer2, ListenersService], - providers: [Renderer2] + providers: [Renderer2], }); - service = new ListenersService(renderer); - // service = TestBed.inject(ListenersService); }); it('should be created', () => { - expect(service).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const service = new ListenersService(); + expect(service).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/services/listeners.service.ts b/projects/coreui-angular/src/lib/services/listeners.service.ts index 1e7aa34c..abb95d06 100644 --- a/projects/coreui-angular/src/lib/services/listeners.service.ts +++ b/projects/coreui-angular/src/lib/services/listeners.service.ts @@ -1,54 +1,53 @@ -import { ElementRef, Injectable, Renderer2 } from '@angular/core'; +import { ElementRef, inject, Injectable, Renderer2 } from '@angular/core'; import { Triggers } from '../coreui.types'; export interface IListenersConfig { - hostElement: ElementRef, - trigger?: Triggers | Triggers[], - callbackOn?: () => void, - callbackOff?: () => void, - callbackToggle?: () => void, + hostElement: ElementRef; + trigger?: Triggers | Triggers[]; + callbackOn?: () => void; + callbackOff?: () => void; + callbackToggle?: () => void; } @Injectable() export class ListenersService { + readonly renderer = inject(Renderer2); private listeners: Map void> = new Map(); - constructor( - private renderer: Renderer2 - ) {} - - setListeners({ hostElement, trigger, callbackOn, callbackOff, callbackToggle }: IListenersConfig): void { + setListeners({ + hostElement, + trigger, + callbackOn, + callbackOff, + callbackToggle, + }: IListenersConfig): void { const host = hostElement.nativeElement; const triggers = Array.isArray(trigger) ? trigger : trigger?.split(' ') ?? []; if (triggers?.includes('click')) { - typeof callbackToggle === 'function' && this.listeners.set( - 'click', - this.renderer.listen(host, 'click', callbackToggle) - ); + typeof callbackToggle === 'function' && + this.listeners.set('click', this.renderer.listen(host, 'click', callbackToggle)); } if (triggers?.includes('focus')) { - typeof callbackOn === 'function' && this.listeners.set( - 'focus', - this.renderer.listen(host, 'focus', callbackOn) - ); + typeof callbackOn === 'function' && + this.listeners.set('focus', this.renderer.listen(host, 'focus', callbackOn)); + } + if (triggers?.includes('focusin')) { + typeof callbackOff === 'function' && + this.listeners.set('focusout', this.renderer.listen(host, 'focusout', callbackOff)); + typeof callbackOn === 'function' && + this.listeners.set('focusin', this.renderer.listen(host, 'focusin', callbackOn)); } if (triggers?.includes('click') || triggers?.includes('focus')) { - typeof callbackOff === 'function' && this.listeners.set( - 'blur', - this.renderer.listen(host, 'blur', callbackOff) - ); + typeof callbackOff === 'function' && + this.listeners.set('blur', this.renderer.listen(host, 'blur', callbackOff)); } if (triggers?.includes('hover')) { - typeof callbackOn === 'function' && this.listeners.set( - 'mouseenter', - this.renderer.listen(host, 'mouseenter', callbackOn) - ); - typeof callbackOff === 'function' && this.listeners.set( - 'mouseleave', - this.renderer.listen(host, 'mouseleave', callbackOff) - ); + typeof callbackOn === 'function' && + this.listeners.set('mouseenter', this.renderer.listen(host, 'mouseenter', callbackOn)); + typeof callbackOff === 'function' && + this.listeners.set('mouseleave', this.renderer.listen(host, 'mouseleave', callbackOff)); } } diff --git a/projects/coreui-angular/src/lib/services/local-storage.service.spec.ts b/projects/coreui-angular/src/lib/services/local-storage.service.spec.ts new file mode 100644 index 00000000..ba1dbd43 --- /dev/null +++ b/projects/coreui-angular/src/lib/services/local-storage.service.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { LocalStorageService } from './local-storage.service'; + +describe('LocalStorageService', () => { + let service: LocalStorageService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(LocalStorageService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/services/local-storage.service.ts b/projects/coreui-angular/src/lib/services/local-storage.service.ts new file mode 100644 index 00000000..75531a95 --- /dev/null +++ b/projects/coreui-angular/src/lib/services/local-storage.service.ts @@ -0,0 +1,44 @@ +import { isPlatformBrowser } from '@angular/common'; +import { DOCUMENT, inject, Injectable, PLATFORM_ID } from '@angular/core'; +import { BehaviorSubject } from 'rxjs'; +import { InMemoryStorageService } from './in-memory-storage.service'; + +@Injectable({ + providedIn: 'root' +}) +export class LocalStorageService { + private platformId = inject(PLATFORM_ID); + private document = inject(DOCUMENT); + + constructor() { + this.#localStorage = + isPlatformBrowser(this.platformId) && this.document.defaultView + ? this.document.defaultView?.localStorage + : new InMemoryStorageService(); + } + + #localStorage: Storage; + readonly #data$ = new BehaviorSubject<{ key: string; data: any } | null>(null); + public readonly data$ = this.#data$.asObservable(); + + public setItem(key: string, data: any): void { + this.#localStorage.setItem(key, JSON.stringify(data)); + this.#data$.next({ key, data }); + } + + public getItem(key: string): any { + const data = JSON.parse(this.#localStorage.getItem(key) || 'null'); + this.#data$.next({ key, data }); + return data; + } + + public removeItem(key: string): void { + this.#localStorage.removeItem(key); + this.#data$.next({ key, data: null }); + } + + public clear() { + this.#localStorage.clear(); + this.#data$.next(null); + } +} diff --git a/projects/coreui-angular/src/lib/services/public_api.ts b/projects/coreui-angular/src/lib/services/public_api.ts index 6ef462e5..3d3a0ac3 100644 --- a/projects/coreui-angular/src/lib/services/public_api.ts +++ b/projects/coreui-angular/src/lib/services/public_api.ts @@ -1,3 +1,8 @@ -export { IntersectionService, IIntersectionObserverInit } from './intersection.service'; -export { ListenersService, IListenersConfig } from './listeners.service'; +export { IntersectionService, type IIntersectionObserverInit } from './intersection.service'; +export { ListenersService, type IListenersConfig } from './listeners.service'; export { ClassToggleService } from './class-toggle.service'; +export { LocalStorageService } from './local-storage.service'; +export { InMemoryStorageService } from './in-memory-storage.service'; +export { ColorModeService, type ColorMode } from './color-mode.service'; +export { UIDService } from './uid.service'; +export { RtlService } from './rtl.service'; diff --git a/projects/coreui-angular/src/lib/services/rtl.service.spec.ts b/projects/coreui-angular/src/lib/services/rtl.service.spec.ts new file mode 100644 index 00000000..1274c3ea --- /dev/null +++ b/projects/coreui-angular/src/lib/services/rtl.service.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { RtlService } from './rtl.service'; + +describe('RtlService', () => { + let service: RtlService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(RtlService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/services/rtl.service.ts b/projects/coreui-angular/src/lib/services/rtl.service.ts new file mode 100644 index 00000000..e9380b1e --- /dev/null +++ b/projects/coreui-angular/src/lib/services/rtl.service.ts @@ -0,0 +1,19 @@ +import { DOCUMENT, inject, Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class RtlService { + readonly #document = inject(DOCUMENT); + + isRTL(element?: HTMLElement | null): boolean { + if (element) { + return ( + element.closest('[dir="rtl"]') !== null || + this.#document.defaultView?.getComputedStyle(element).direction === 'rtl' + ); + } + + return [this.#document?.documentElement?.dir, this.#document?.body?.dir].includes('rtl'); + } +} diff --git a/projects/coreui-angular/src/lib/services/script-injector.service.spec.ts b/projects/coreui-angular/src/lib/services/script-injector.service.spec.ts new file mode 100644 index 00000000..9d02052a --- /dev/null +++ b/projects/coreui-angular/src/lib/services/script-injector.service.spec.ts @@ -0,0 +1,19 @@ +import { TestBed } from '@angular/core/testing'; +import { Renderer2 } from '@angular/core'; + +import { ScriptInjectorService } from './script-injector.service'; + +describe('ScriptInjectorService', () => { + let service: ScriptInjectorService; + + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [Renderer2] + }); + service = TestBed.inject(ScriptInjectorService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/services/script-injector.service.ts b/projects/coreui-angular/src/lib/services/script-injector.service.ts new file mode 100644 index 00000000..cd6e431e --- /dev/null +++ b/projects/coreui-angular/src/lib/services/script-injector.service.ts @@ -0,0 +1,65 @@ +import { DOCUMENT, inject, Injectable, Renderer2 } from '@angular/core'; + +export type ReferrerPolicy = + | '' + | 'no-referrer' + | 'no-referrer-when-downgrade' + | 'origin' + | 'origin-when-cross-origin' + | 'same-origin' + | 'strict-origin' + | 'strict-origin-when-cross-origin' + | 'unsafe-url'; + +export interface IScriptAttributes { + async?: boolean; + blocking?: 'render'; + crossorigin?: 'anonymous' | 'use-credentials'; + defer?: boolean; + fetchpriority?: 'auto' | 'high' | 'low'; + importmap?: string; + integrity?: string; + nomodule?: boolean; + nonce?: string; + referrerpolicy?: ReferrerPolicy; + src: string; + type?: string; +} + +export interface IScriptConfig { + attributes?: IScriptAttributes; + loaded?: boolean; + elementName?: string; +} + +@Injectable({ + providedIn: 'root' +}) +export class ScriptInjectorService { + document: Document = inject(DOCUMENT); + renderer: Renderer2 = inject(Renderer2); + + #scriptStore = new Map(); + + public injectScript(src: string, scriptConfig: IScriptConfig = { elementName: 'head' }) { + if (this.#scriptStore.has(src) && this.#scriptStore.get(src)?.loaded) { + return; + } + const scriptAttributes: IScriptAttributes = { ...scriptConfig?.attributes, src }; + this.loadScript(src, (scriptConfig = { ...scriptConfig, attributes: scriptAttributes })).then(); + } + + loadScript(src: string, scriptConfig: IScriptConfig) { + return new Promise((resolve, reject) => { + const scriptElement = this.renderer.createElement('script'); + this.renderer.setAttribute(scriptElement, 'type', 'text/javascript'); + this.renderer.setAttribute(scriptElement, 'src', src); + scriptElement.onload = () => { + this.#scriptStore.set(src, { ...scriptConfig, loaded: true }); + resolve({ src: src, loaded: true }); + }; + scriptElement.onerror = (error: any) => reject({ src: src, loaded: false, error }); + this.renderer.appendChild(this.document.querySelector(scriptConfig.elementName ?? 'head'), scriptElement); + }); + } +} diff --git a/projects/coreui-angular/src/lib/services/uid.service.spec.ts b/projects/coreui-angular/src/lib/services/uid.service.spec.ts new file mode 100644 index 00000000..8ea8d4dc --- /dev/null +++ b/projects/coreui-angular/src/lib/services/uid.service.spec.ts @@ -0,0 +1,22 @@ +import { TestBed } from '@angular/core/testing'; + +import { UIDService } from './uid.service'; + +describe('UIDService', () => { + let service: UIDService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(UIDService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); + + it('should return an UID string', () => { + expect(typeof service.getUID('test')).toBe('string'); + expect(service.getUID('test')).toContain('test-'); + expect(service.getUID()).toContain('random-id-'); + }); +}); diff --git a/projects/coreui-angular/src/lib/services/uid.service.ts b/projects/coreui-angular/src/lib/services/uid.service.ts new file mode 100644 index 00000000..d168430d --- /dev/null +++ b/projects/coreui-angular/src/lib/services/uid.service.ts @@ -0,0 +1,17 @@ +import { DOCUMENT, inject, Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class UIDService { + readonly #document = inject(DOCUMENT); + + getUID(prefix: string = 'random-id'): string { + let uid = prefix; + do { + uid = `${prefix}-${Math.floor(Math.random() * 1000000).toString(10)}`; + } while (this.#document.getElementById(uid)); + + return uid; + } +} diff --git a/projects/coreui-angular/src/lib/shared/element-ref.directive.spec.ts b/projects/coreui-angular/src/lib/shared/element-ref.directive.spec.ts new file mode 100644 index 00000000..2360e527 --- /dev/null +++ b/projects/coreui-angular/src/lib/shared/element-ref.directive.spec.ts @@ -0,0 +1,26 @@ +import { ElementRefDirective } from './element-ref.directive'; +import { ElementRef } from '@angular/core'; +import { TestBed } from '@angular/core/testing'; + +class MockElementRef extends ElementRef {} + +describe('ElementRefDirective', () => { + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [{ provide: ElementRef, useClass: MockElementRef }] + }); + }); + it('should create an instance', () => { + TestBed.runInInjectionContext(() => { + const directive = new ElementRefDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should expose elementRef', () => { + TestBed.runInInjectionContext(() => { + const directive = new ElementRefDirective(); + expect(directive.elementRef).toBeInstanceOf(ElementRef); + }); + }); +}); diff --git a/projects/coreui-angular/src/lib/shared/element-ref.directive.ts b/projects/coreui-angular/src/lib/shared/element-ref.directive.ts new file mode 100644 index 00000000..c1fcee32 --- /dev/null +++ b/projects/coreui-angular/src/lib/shared/element-ref.directive.ts @@ -0,0 +1,9 @@ +import { Directive, ElementRef, inject } from '@angular/core'; + +@Directive({ + selector: '[cElementRef]', + exportAs: 'cElementRef' +}) +export class ElementRefDirective { + public readonly elementRef = inject(ElementRef); +} diff --git a/projects/coreui-angular/src/lib/shared/html-attr.directive.spec.ts b/projects/coreui-angular/src/lib/shared/html-attr.directive.spec.ts index c4757409..5ba9ca78 100644 --- a/projects/coreui-angular/src/lib/shared/html-attr.directive.spec.ts +++ b/projects/coreui-angular/src/lib/shared/html-attr.directive.spec.ts @@ -1,52 +1,50 @@ -import { Component, DebugElement, Renderer2, Type } from '@angular/core'; +import { Component, DebugElement, ElementRef, Renderer2 } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { HtmlAttributesDirective } from './html-attr.directive'; @Component({ - template: `
      ` + template: `
      `, + imports: [HtmlAttributesDirective] }) class TestComponent {} -describe('HtmlAttributesDirective', () => { +class MockElementRef extends ElementRef {} - let component: TestComponent; +describe('HtmlAttributesDirective', () => { let fixture: ComponentFixture; - let inputEl: DebugElement; - let renderer: Renderer2; + let debugElement: DebugElement; beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent], - imports: [HtmlAttributesDirective] + imports: [HtmlAttributesDirective, TestComponent], + providers: [Renderer2, { provide: ElementRef, useClass: MockElementRef }] }); fixture = TestBed.createComponent(TestComponent); - component = fixture.componentInstance; - inputEl = fixture.debugElement.query(By.css('div')); - renderer = fixture.componentRef.injector.get(Renderer2 as Type); + debugElement = fixture.debugElement.query(By.css('div')); }); it('should create an instance', () => { - const directive = new HtmlAttributesDirective(renderer, inputEl); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new HtmlAttributesDirective(); + expect(directive).toBeTruthy(); + }); }); it('should render a class attr', () => { fixture.detectChanges(); - // console.log(inputEl.nativeElement.classList); - expect(inputEl.nativeElement.classList.contains('test')).toBeTruthy(); + expect(debugElement.nativeElement).toHaveClass('test'); }); it('should render a style attr', () => { fixture.detectChanges(); // console.log(inputEl.nativeElement.style.backgroundColor); - expect(inputEl.nativeElement.style.backgroundColor).toBe('red'); + expect(debugElement.nativeElement.style.backgroundColor).toBe('red'); }); it('should render an id attr', () => { fixture.detectChanges(); - // console.log(inputEl.nativeElement.attributes); - expect(inputEl.nativeElement.getAttribute('id')).toBe('id-1'); + expect(debugElement.nativeElement.getAttribute('id')).toBe('id-1'); }); }); diff --git a/projects/coreui-angular/src/lib/shared/html-attr.directive.ts b/projects/coreui-angular/src/lib/shared/html-attr.directive.ts index e5b11bad..28141a9f 100644 --- a/projects/coreui-angular/src/lib/shared/html-attr.directive.ts +++ b/projects/coreui-angular/src/lib/shared/html-attr.directive.ts @@ -1,23 +1,19 @@ -import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core'; +import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core'; @Directive({ selector: '[cHtmlAttr]', - exportAs: 'cHtmlAttr', - standalone: true + exportAs: 'cHtmlAttr' }) -export class HtmlAttributesDirective implements OnInit { +export class HtmlAttributesDirective { + readonly cHtmlAttr = input>(); - @Input() cHtmlAttr?: { [key: string]: any }; + readonly #renderer = inject(Renderer2); + readonly #elementRef = inject(ElementRef); - constructor( - private renderer: Renderer2, - private el: ElementRef - ) {} - - ngOnInit(): void { - const attribs = this.cHtmlAttr; + readonly #attrEffect = effect(() => { + const attribs = this.cHtmlAttr(); for (const attr in attribs) { - if (attr === 'style' && typeof (attribs[attr]) === 'object') { + if (attr === 'style' && typeof attribs[attr] === 'object') { this.setStyle(attribs[attr]); } else if (attr === 'class') { this.addClass(attribs[attr]); @@ -25,26 +21,28 @@ export class HtmlAttributesDirective implements OnInit { this.setAttrib(attr, attribs[attr]); } } - } + }); - private setStyle(styles: { [x: string]: any; }): void { + private setStyle(styles: Record): void { for (const style in styles) { if (style) { - this.renderer.setStyle(this.el.nativeElement, style, styles[style]); + this.#renderer.setStyle(this.#elementRef.nativeElement, style, styles[style]); } } } private addClass(classes: string | string[]): void { - const classArray = (Array.isArray(classes) ? classes : classes.split(' ')); - classArray.filter((element) => element.length > 0).forEach(element => { - this.renderer.addClass(this.el.nativeElement, element); - }); + const classArray = Array.isArray(classes) ? classes : classes.split(' '); + classArray + .filter((element) => element.length > 0) + .forEach((element) => { + this.#renderer.addClass(this.#elementRef.nativeElement, element); + }); } private setAttrib(key: string, value: string | null): void { - value !== null ? - this.renderer.setAttribute(this.el.nativeElement, key, value) : - this.renderer.removeAttribute(this.el.nativeElement, key); + value !== null + ? this.#renderer.setAttribute(this.#elementRef.nativeElement, key, value) + : this.#renderer.removeAttribute(this.#elementRef.nativeElement, key); } } diff --git a/projects/coreui-angular/src/lib/shared/public_api.ts b/projects/coreui-angular/src/lib/shared/public_api.ts index a2450d0e..9fe03e59 100644 --- a/projects/coreui-angular/src/lib/shared/public_api.ts +++ b/projects/coreui-angular/src/lib/shared/public_api.ts @@ -1,3 +1,5 @@ -export { SharedModule } from './shared.module'; +export { ElementRefDirective } from './element-ref.directive'; export { HtmlAttributesDirective } from './html-attr.directive'; export { TemplateIdDirective } from './template-id.directive'; +export { ThemeDirective } from './theme.directive'; +export { SharedModule } from './shared.module'; diff --git a/projects/coreui-angular/src/lib/shared/shared.module.ts b/projects/coreui-angular/src/lib/shared/shared.module.ts index f9616e59..cb545ddf 100644 --- a/projects/coreui-angular/src/lib/shared/shared.module.ts +++ b/projects/coreui-angular/src/lib/shared/shared.module.ts @@ -1,23 +1,18 @@ import { ModuleWithProviders, NgModule } from '@angular/core'; +import { ElementRefDirective } from './element-ref.directive'; import { HtmlAttributesDirective } from './html-attr.directive'; import { TemplateIdDirective } from './template-id.directive'; +import { ThemeDirective } from './theme.directive'; @NgModule({ - imports: [ - HtmlAttributesDirective, - TemplateIdDirective - ], - exports: [ - HtmlAttributesDirective, - TemplateIdDirective - ], + imports: [ElementRefDirective, HtmlAttributesDirective, TemplateIdDirective, ThemeDirective], + exports: [ElementRefDirective, HtmlAttributesDirective, TemplateIdDirective, ThemeDirective], }) export class SharedModule { - static forRoot(): ModuleWithProviders { return { - ngModule: SharedModule + ngModule: SharedModule, }; } } diff --git a/projects/coreui-angular/src/lib/shared/template-id.directive.spec.ts b/projects/coreui-angular/src/lib/shared/template-id.directive.spec.ts new file mode 100644 index 00000000..34b71231 --- /dev/null +++ b/projects/coreui-angular/src/lib/shared/template-id.directive.spec.ts @@ -0,0 +1,59 @@ +import { NgTemplateOutlet } from '@angular/common'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { Component, computed, DebugElement, TemplateRef, viewChild } from '@angular/core'; +import { By } from '@angular/platform-browser'; +import { TemplateIdDirective } from './template-id.directive'; + +@Component({ + imports: [TemplateIdDirective, NgTemplateOutlet], + template: ` + Inner Text +
      + +
      + ` +}) +class TestComponent { + readonly templateId = viewChild(TemplateIdDirective); + + readonly id = computed(() => this.templateId()?.templateRef ?? null); +} + +describe('TemplateIdDirective', () => { + let fixture: ComponentFixture; + let component: TestComponent; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + debugElement = fixture.debugElement.query(By.css('.test')); + component = fixture.componentInstance; + + fixture.detectChanges(); + }); + + it('should create a template with innerText', () => { + expect(debugElement.nativeElement.innerText).toBe('Inner Text'); + }); + + it('should return the correct id when cTemplateId is set', () => { + expect(component.templateId()?.id).toBe('test'); + }); + + it('should correctly bind the templateRef to the directive', () => { + expect(component.templateId()?.templateRef).toBeInstanceOf(TemplateRef); + }); + + it('should handle multiple instances of the directive with unique ids', () => { + const secondFixture = TestBed.createComponent(TestComponent); + const secondComponent = secondFixture.componentInstance; + secondFixture.detectChanges(); + + expect(component.templateId()?.id).toBe('test'); + expect(secondComponent.templateId()?.id).toBe('test'); + }); +}); diff --git a/projects/coreui-angular/src/lib/shared/template-id.directive.ts b/projects/coreui-angular/src/lib/shared/template-id.directive.ts index 7fdf82aa..45fc8f74 100644 --- a/projects/coreui-angular/src/lib/shared/template-id.directive.ts +++ b/projects/coreui-angular/src/lib/shared/template-id.directive.ts @@ -1,13 +1,13 @@ -import { Directive, Input, TemplateRef } from '@angular/core'; +import { Directive, inject, input, TemplateRef } from '@angular/core'; @Directive({ - selector: '[cTemplateId]', - standalone: true + selector: '[cTemplateId]' }) export class TemplateIdDirective { - @Input('cTemplateId') id!: string; + readonly templateRef = inject(TemplateRef); + readonly cTemplateId = input.required(); - constructor( - public templateRef: TemplateRef - ) { } + get id() { + return this.cTemplateId(); + } } diff --git a/projects/coreui-angular/src/lib/shared/theme.directive.spec.ts b/projects/coreui-angular/src/lib/shared/theme.directive.spec.ts new file mode 100644 index 00000000..41a8f1e0 --- /dev/null +++ b/projects/coreui-angular/src/lib/shared/theme.directive.spec.ts @@ -0,0 +1,49 @@ +import { Component, DebugElement, ElementRef, Renderer2 } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ThemeDirective } from './theme.directive'; +import { By } from '@angular/platform-browser'; + +@Component({ + imports: [ThemeDirective], + template: '
      ' +}) +export class TestComponent { + theme!: 'dark' | 'light' | undefined; +} + +class MockElementRef extends ElementRef {} + +describe('ThemeDirective', () => { + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent], + providers: [{ provide: ElementRef, useClass: MockElementRef }, Renderer2] + }); + fixture = TestBed.createComponent(TestComponent); + debugElement = fixture.debugElement.query(By.css('div')); + }); + + it('should create an instance', () => { + TestBed.runInInjectionContext(() => { + const directive = new ThemeDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should set data-coreui-theme attribute', () => { + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('data-coreui-theme')).toBeNull(); + fixture.componentInstance.theme = 'dark'; + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('data-coreui-theme')).toBe('dark'); + fixture.componentInstance.theme = 'light'; + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('data-coreui-theme')).toBe('light'); + fixture.componentInstance.theme = undefined; + fixture.detectChanges(); + expect(debugElement.nativeElement.getAttribute('data-coreui-theme')).toBeNull(); + }); +}); diff --git a/projects/coreui-angular/src/lib/shared/theme.directive.ts b/projects/coreui-angular/src/lib/shared/theme.directive.ts new file mode 100644 index 00000000..d3cc3a3e --- /dev/null +++ b/projects/coreui-angular/src/lib/shared/theme.directive.ts @@ -0,0 +1,38 @@ +import { booleanAttribute, Directive, effect, ElementRef, inject, input, Renderer2, untracked } from '@angular/core'; + +@Directive({ + selector: '[cTheme]', + exportAs: 'cTheme' +}) +export class ThemeDirective { + readonly #hostElement = inject(ElementRef); + readonly #renderer = inject(Renderer2); + + /** + * Add dark theme attribute. + * @return 'dark' | 'light' | undefined + */ + readonly colorScheme = input<'dark' | 'light'>(); + + readonly #colorSchemeChange = effect(() => { + const colorScheme = this.colorScheme(); + colorScheme ? this.setTheme(colorScheme) : this.unsetTheme(); + }); + + readonly dark = input(false, { transform: booleanAttribute }); + + readonly #darkChange = effect(() => { + const darkTheme = this.dark() || untracked(this.colorScheme) === 'dark'; + darkTheme ? this.setTheme('dark') : this.unsetTheme(); + }); + + setTheme(theme?: string): void { + if (theme) { + this.#renderer.setAttribute(this.#hostElement.nativeElement, 'data-coreui-theme', theme); + } + } + + unsetTheme(): void { + this.#renderer.removeAttribute(this.#hostElement.nativeElement, 'data-coreui-theme'); + } +} diff --git a/projects/coreui-angular/src/lib/sidebar/public_api.ts b/projects/coreui-angular/src/lib/sidebar/public_api.ts index d7b2fca1..597aacc0 100644 --- a/projects/coreui-angular/src/lib/sidebar/public_api.ts +++ b/projects/coreui-angular/src/lib/sidebar/public_api.ts @@ -2,10 +2,10 @@ export { SidebarComponent } from './sidebar/sidebar.component'; export { SidebarService } from './sidebar.service'; export { SidebarBrandComponent } from './sidebar-brand/sidebar-brand.component'; export { SidebarToggleDirective } from './sidebar-toggle/sidebar-toggle.directive'; -export { SidebarTogglerComponent } from './sidebar-toggler/sidebar-toggler.component'; +export { SidebarTogglerDirective } from './sidebar-toggler/sidebar-toggler.directive'; export { SidebarHeaderComponent } from './sidebar-header/sidebar-header.component'; export { SidebarFooterComponent } from './sidebar-footer/sidebar-footer.component'; -export { SidebarNavComponent, INavData } from './sidebar-nav'; +export { SidebarNavComponent, type INavData, SidebarNavHelper } from './sidebar-nav'; export { SidebarModule } from './sidebar.module'; diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-backdrop/sidebar-backdrop.service.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-backdrop/sidebar-backdrop.service.ts index afd561c4..5173f0f0 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-backdrop/sidebar-backdrop.service.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-backdrop/sidebar-backdrop.service.ts @@ -1,5 +1,4 @@ -import { Inject, Injectable, Renderer2 } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; +import { DOCUMENT, inject, Injectable, Renderer2 } from '@angular/core'; import { SidebarService } from '../sidebar.service'; import { SidebarComponent } from '../sidebar/sidebar.component'; @@ -7,52 +6,47 @@ import { SidebarComponent } from '../sidebar/sidebar.component'; providedIn: 'root' }) export class SidebarBackdropService { + readonly #document = inject(DOCUMENT); + readonly #sidebarService = inject(SidebarService); - private backdrop!: HTMLElement; + #backdrop!: HTMLElement; renderer!: Renderer2; - private clickListener = (): void => {}; - - constructor( - @Inject(DOCUMENT) private document: Document, - // private rendererFactory: RendererFactory2, - private sidebarService: SidebarService - ) { - // this.renderer = rendererFactory.createRenderer(null, null); - } + #clickListener = (): void => { + /* empty */ + }; setBackdrop(sidebar: SidebarComponent): void { - const backdrop = this.document.getElementsByClassName('sidebar-backdrop'); + const backdrop = this.#document.getElementsByClassName('sidebar-backdrop'); // console.log(`sidebar-${this.id}`, ' setBackdrop', backdrop); if (backdrop.length === 0) { - this.backdrop = this.renderer.createElement('div'); - this.renderer.addClass(this.backdrop, 'sidebar-backdrop'); - this.renderer.appendChild(this.document.body, this.backdrop); - this.clickListener = this.renderer.listen(this.backdrop, 'click', (e) => { + this.#backdrop = this.renderer.createElement('div'); + this.renderer.addClass(this.#backdrop, 'sidebar-backdrop'); + this.renderer.appendChild(this.#document.body, this.#backdrop); + this.#clickListener = this.renderer.listen(this.#backdrop, 'click', (e) => { // console.log(`sidebar-${this.id}`, ' backdrop click', e); - this.sidebarService.toggle({ toggle: 'visible', sidebar }); + this.#sidebarService.toggle({ toggle: 'visible', sidebar }); }); } // console.log(this.backdrop, sidebar.sidebarState.mobile, sidebar.sidebarState.show); - if (this.backdrop && sidebar.sidebarState.mobile && sidebar.sidebarState.visible) { - this.renderer.addClass(this.backdrop, 'fade'); - this.renderer.addClass(this.backdrop, 'show'); + if (this.#backdrop && sidebar.sidebarState.mobile && sidebar.sidebarState.visible) { + this.renderer.addClass(this.#backdrop, 'fade'); + this.renderer.addClass(this.#backdrop, 'show'); // this.renderer.removeClass(this.backdrop, 'd-none'); } else { - this.renderer.removeClass(this.backdrop, 'show'); - this.renderer.removeClass(this.backdrop, 'fade'); + this.renderer.removeClass(this.#backdrop, 'show'); + this.renderer.removeClass(this.#backdrop, 'fade'); // this.renderer.addClass(this.backdrop, 'd-none'); } } clearBackdrop(): void { - if (this.backdrop) { + if (this.#backdrop) { // clear backdrop click Listener - this.clickListener(); + this.#clickListener(); // this.renderer.listen(this.backdrop, 'click', (e): void => {} ); - this.renderer.removeChild(this.document.body, this.backdrop); + this.renderer.removeChild(this.#document.body, this.#backdrop); // @ts-ignore - this.backdrop = undefined; + this.#backdrop = undefined; } } - } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.html b/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.html index 80241f0f..0a0b9008 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.html +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.html @@ -1,13 +1,12 @@ - - - - +@if (brandImg()) { + + @if (brandFull()) { + + } + @if (brandNarrow()) { + + } - - - - +} @else { + +} diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.spec.ts index 4457a738..005845ae 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.spec.ts @@ -1,6 +1,5 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { RouterTestingModule } from '@angular/router/testing'; -import { Router } from '@angular/router'; +import { provideRouter, Router } from '@angular/router'; import { SidebarBrandComponent } from './sidebar-brand.component'; import { HtmlAttributesDirective } from '../../shared'; @@ -13,10 +12,10 @@ describe('SidebarBrandComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ - RouterTestingModule.withRoutes([]), HtmlAttributesDirective, SidebarBrandComponent - ] + ], + providers: [provideRouter([])] }) .compileComponents(); })); @@ -31,4 +30,8 @@ describe('SidebarBrandComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('sidebar-brand'); + }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.ts index 711d5915..2d6b061b 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-brand/sidebar-brand.component.ts @@ -1,26 +1,20 @@ -import { Component, HostBinding, Input, OnInit } from '@angular/core'; -import { NgClass, NgIf } from '@angular/common'; -import { RouterLink } from '@angular/router'; +import { Component, computed, input } from '@angular/core'; +import { NgClass } from '@angular/common'; +import { RouterLink, type UrlTree } from '@angular/router'; import { HtmlAttributesDirective } from '../../shared'; @Component({ selector: 'c-sidebar-brand', templateUrl: './sidebar-brand.component.html', - standalone: true, - imports: [RouterLink, HtmlAttributesDirective, NgIf, NgClass] + imports: [RouterLink, HtmlAttributesDirective, NgClass], + host: { class: 'sidebar-brand' } }) -export class SidebarBrandComponent implements OnInit { +export class SidebarBrandComponent { + readonly brandFull = input(); + readonly brandNarrow = input(); - @Input() brandFull?: any; - @Input() brandNarrow?: any; - @Input() routerLink?: any[] | string; + readonly routerLink = input(); - @HostBinding('class.sidebar-brand') sidebarBrandClass = true; - - brandImg = false; - - ngOnInit(): void { - this.brandImg = Boolean(this.brandFull || this.brandNarrow); - } + readonly brandImg = computed(() => Boolean(this.brandFull() || this.brandNarrow())); } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.spec.ts index 17c508ec..5567e8f9 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.spec.ts @@ -22,4 +22,8 @@ describe('SidebarFooterComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('sidebar-footer'); + }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.ts index 799ba4c8..25d6b5fa 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-footer/sidebar-footer.component.ts @@ -1,18 +1,8 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-sidebar-footer', - template: ``, - standalone: true + template: '', + host: { class: 'sidebar-footer' } }) -export class SidebarFooterComponent { - - constructor() { } - - @HostBinding('class') - get hostClasses(): any { - return { - 'sidebar-footer': true - }; - } -} +export class SidebarFooterComponent {} diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.spec.ts index 45953ca1..cf4aacc6 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.spec.ts @@ -22,4 +22,8 @@ describe('SidebarHeaderComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('sidebar-header'); + }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.ts index 438cd9f6..6c4b2d8b 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-header/sidebar-header.component.ts @@ -1,16 +1,8 @@ -import { Component, HostBinding } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'c-sidebar-header', - template: ``, - standalone: true + template: '', + host: { class: 'sidebar-header' } }) -export class SidebarHeaderComponent { - - @HostBinding('class') - get hostClasses(): any { - return { - 'sidebar-header': true - }; - } -} +export class SidebarHeaderComponent {} diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/public_api.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/public_api.ts index fe0b25fd..2cb183c9 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/public_api.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/public_api.ts @@ -11,6 +11,4 @@ export { SidebarNavIconPipe } from './sidebar-nav-icon.pipe'; export { SidebarNavBadgePipe } from './sidebar-nav-badge.pipe'; export { SidebarNavItemClassPipe } from './sidebar-nav-item-class.pipe'; export { SidebarNavLinkPipe } from './sidebar-nav-link.pipe'; -export { INavData } from './sidebar-nav'; - - +export type { INavData } from './sidebar-nav'; diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-badge.pipe.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-badge.pipe.ts index d002eee8..4a57aad7 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-badge.pipe.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-badge.pipe.ts @@ -1,11 +1,9 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ - name: 'cSidebarNavBadge', - standalone: true + name: 'cSidebarNavBadge' }) export class SidebarNavBadgePipe implements PipeTransform { - transform(item: any, args?: any): any { const badge = item.badge; return { @@ -17,5 +15,4 @@ export class SidebarNavBadgePipe implements PipeTransform { [`${badge.class}`]: !!badge.class }; } - } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.spec.ts index 3f4c3896..519bfc93 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.spec.ts @@ -10,8 +10,7 @@ describe('SidebarNavDividerComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [SidebarNavDividerComponent] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { @@ -21,7 +20,7 @@ describe('SidebarNavDividerComponent', () => { item = { divider: true }; - component.item = item; + fixture.componentRef.setInput('item', item); fixture.detectChanges(); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.ts index fc0f925f..c43aea44 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.ts @@ -1,12 +1,10 @@ -import { Component, Input } from '@angular/core'; +import { Component, input } from '@angular/core'; +import { INavData } from './sidebar-nav'; @Component({ selector: 'c-sidebar-nav-divider', - template: ``, - standalone: true + template: `` }) export class SidebarNavDividerComponent { - - @Input() item: any; - + readonly item = input(); } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.html b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.html index a415cdef..1967df91 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.html +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.html @@ -4,12 +4,15 @@ href> {{ item.name }} - {{ item.badge.text }} + @if (helper.hasBadge(item)) { + {{ item.badge.text }} + } - - + + @if (item?.icon) { + + + + } + @if (item?.iconComponent) { - - + } + @if (!item?.icon && !item?.iconComponent) { + + } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.spec.ts index b82d608b..b6be615f 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.component.spec.ts @@ -1,9 +1,7 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; -import { RouterTestingModule } from '@angular/router/testing'; -import { Router } from '@angular/router'; +import { provideRouter, Router } from '@angular/router'; import { SidebarNavGroupComponent } from './sidebar-nav.component'; -import { SidebarModule } from '../sidebar.module'; describe('SidebarNavGroupComponent', () => { let component: SidebarNavGroupComponent; @@ -14,11 +12,10 @@ describe('SidebarNavGroupComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ - RouterTestingModule.withRoutes([]), NoopAnimationsModule, SidebarNavGroupComponent ], - declarations: [] + providers: [provideRouter([])] }) .compileComponents(); })); @@ -57,4 +54,8 @@ describe('SidebarNavGroupComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('nav-group'); + }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.service.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.service.ts index ce6b237a..e1b3106a 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.service.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-group.service.ts @@ -10,9 +10,6 @@ export interface ISidebarAction { @Injectable() export class SidebarNavGroupService { - - constructor() { } - private sidebarNavGroupState = new BehaviorSubject({}); sidebarNavGroupState$ = this.sidebarNavGroupState.asObservable(); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-icon.pipe.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-icon.pipe.ts index e169d057..0fd96a44 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-icon.pipe.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-icon.pipe.ts @@ -1,11 +1,9 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ - name: 'cSidebarNavIcon', - standalone: true + name: 'cSidebarNavIcon' }) export class SidebarNavIconPipe implements PipeTransform { - transform(item: any, args?: any): any { const icon = item.icon; return { diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.spec.ts index 295bf035..69eb2fe3 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.spec.ts @@ -1,11 +1,15 @@ import { SidebarNavItemClassPipe } from './sidebar-nav-item-class.pipe'; -import {SidebarNavHelper} from './sidebar-nav.service'; -import { INavData } from './sidebar-nav'; +import { TestBed } from '@angular/core/testing'; +import { SidebarNavHelper } from './sidebar-nav.service'; describe('SidebarNavItemClassPipe', () => { it('create an instance', () => { - const helper = new SidebarNavHelper(); - const pipe = new SidebarNavItemClassPipe(helper); - expect(pipe).toBeTruthy(); + TestBed.configureTestingModule({ + providers: [SidebarNavHelper] + }); + TestBed.runInInjectionContext(() => { + const pipe = new SidebarNavItemClassPipe(); + expect(pipe).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.ts index 1bad16c1..5de1ed20 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.ts @@ -1,29 +1,25 @@ -import { Pipe, PipeTransform } from '@angular/core'; +import { inject, Pipe, PipeTransform } from '@angular/core'; -import {SidebarNavHelper} from './sidebar-nav.service'; +import { SidebarNavHelper } from './sidebar-nav.service'; @Pipe({ - name: 'cSidebarNavItemClass', - standalone: true + name: 'cSidebarNavItemClass' }) export class SidebarNavItemClassPipe implements PipeTransform { - - constructor( - public helper: SidebarNavHelper - ) {} + readonly helper = inject(SidebarNavHelper); // transform(item: any, ...args: any[]): any { transform(item: any, args?: any[]): any { - const itemType = this.helper.itemType(item); - let itemClass; - if (['divider', 'title'].includes(itemType)) { - itemClass = `nav-${itemType}`; - } else if (itemType === 'group') { - // itemClass = 'c-sidebar-nav-group' ; - itemClass = '' ; - } else { - itemClass = 'nav-item'; - } - return item.class ? `${itemClass} ${item.class}` : itemClass; + const itemType = this.helper.itemType(item); + let itemClass; + if (['divider', 'title'].includes(itemType)) { + itemClass = `nav-${itemType}`; + } else if (itemType === 'group') { + // itemClass = 'c-sidebar-nav-group' ; + itemClass = ''; + } else { + itemClass = 'nav-item'; } + return item.class ? `${itemClass} ${item.class}` : itemClass; + } } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.html b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.html index 44266100..6cd272be 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.html +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.html @@ -1,7 +1,12 @@ - - - {{ item.name }} - {{ item.badge.text }} +@let labelItem = item(); + + @if (helper.hasIcon(labelItem)) { + + } + {{ labelItem.name }} + @if (helper.hasBadge(labelItem)) { + {{ labelItem.badge?.text ?? '' }} + } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.spec.ts index ae5954bb..86f8d0e8 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.spec.ts @@ -1,8 +1,8 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; import { SidebarNavLabelComponent } from './sidebar-nav-label.component'; import { SidebarNavHelper } from './sidebar-nav.service'; -// import {LayoutModule} from '../../shared/layout/index.ts_'; describe('SidebarNavLabelComponent', () => { let component: SidebarNavLabelComponent; @@ -13,8 +13,7 @@ describe('SidebarNavLabelComponent', () => { TestBed.configureTestingModule({ providers: [SidebarNavHelper], imports: [SidebarNavLabelComponent] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { @@ -22,10 +21,17 @@ describe('SidebarNavLabelComponent', () => { component = fixture.componentInstance; item = { + name: 'Label Item', class: '', - variant: 'info' + variant: 'info', + icon: 'c-icon', + label: { + variant: 'info', + class: '' + }, + badge: {} }; - component.item = item; + fixture.componentRef.setInput('item', item); fixture.detectChanges(); }); @@ -33,4 +39,31 @@ describe('SidebarNavLabelComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should set correct itemClass', () => { + const link = fixture.debugElement.query(By.css('a')).nativeElement; + + expect(link).toHaveClass('c-nav-label'); + expect(link).toHaveClass('c-active'); + item.class = 'custom-class'; + fixture.componentRef.setInput('item', { ...item }); + fixture.detectChanges(); + expect(link).toHaveClass('custom-class'); + }); + + it('should display label name', () => { + const label = fixture.debugElement.query(By.css('a')).nativeElement; + expect(label.textContent).toBe(item.name); + expect(label.textContent).toBe('Label Item'); + }); + + it('should set correct labelIconClass', () => { + const icon = fixture.debugElement.query(By.css('i')).nativeElement; + expect(icon).toHaveClass('text-info'); + item.label = { variant: 'success', class: 'custom-icon-class' }; + fixture.componentRef.setInput('item', { ...item }); + fixture.detectChanges(); + expect(icon).toHaveClass('text-success'); + expect(icon).toHaveClass('custom-icon-class'); + }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.ts index a1b7b238..17f4b9a1 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-label.component.ts @@ -1,48 +1,40 @@ -import { Component, Input, OnInit } from '@angular/core'; -import { NgClass, NgIf } from '@angular/common'; +import { Component, computed, inject, input } from '@angular/core'; +import { NgClass } from '@angular/common'; import { HtmlAttributesDirective } from '../../shared'; import { SidebarNavHelper } from './sidebar-nav.service'; import { SidebarNavBadgePipe } from './sidebar-nav-badge.pipe'; +import { INavData } from './sidebar-nav'; @Component({ selector: 'c-sidebar-nav-label', templateUrl: './sidebar-nav-label.component.html', - standalone: true, - imports: [HtmlAttributesDirective, SidebarNavBadgePipe, NgClass, NgIf] + imports: [HtmlAttributesDirective, SidebarNavBadgePipe, NgClass] }) -export class SidebarNavLabelComponent implements OnInit { - - constructor( - public helper: SidebarNavHelper - ) { } - - @Input() item: any; - - private classes = { - 'c-nav-label': true, - 'c-active': true - }; - private iconClasses = {}; - - ngOnInit() { - this.iconClasses = this.helper.getIconClass(this.item); - } - - getItemClass() { - const itemClass = this.item.class; - // @ts-ignore - this.classes[itemClass] = !!itemClass; - return this.classes; - } - - getLabelIconClass() { - const variant = `text-${this.item.label.variant}`; - // @ts-ignore - this.iconClasses[variant] = !!this.item.label.variant; - const labelClass = this.item.label.class; - // @ts-ignore - this.iconClasses[labelClass] = !!labelClass; - return this.iconClasses; - } +export class SidebarNavLabelComponent { + readonly helper = inject(SidebarNavHelper); + + readonly item = input({}); + + readonly itemClass = computed(() => { + const classes: Record = { + 'c-nav-label': true, + 'c-active': true + }; + const itemClass = this.item().class; + if (itemClass) { + classes[itemClass] = !!itemClass; + } + return classes; + }); + + readonly labelIconClass = computed(() => { + const item = this.item(); + const iconClasses: Record = this.helper.getIconClass(item); + const variant = `text-${item.label?.variant}`; + iconClasses[variant] = !!item.label?.variant; + const labelClass = item.label?.class ?? ''; + iconClasses[labelClass] = !!labelClass; + return iconClasses; + }); } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.html b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.html index fadc7999..1b864573 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.html +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.html @@ -1,53 +1,64 @@ - - - - - {{ item.badge?.text }} - - - - - {{ item.badge?.text }} - - - - - - {{ item.badge?.text }} - - +@let linkItem = item() ?? {}; +@switch (linkType) { + @case ('disabled') { + + + + @if (linkItem.badge) { + {{ linkItem.badge?.text }} + } + + } + @case ('external') { + + + + @if (linkItem.badge) { + {{ linkItem.badge?.text }} + } + + } + @default { + + + + + @if (linkItem.badge) { + {{ linkItem.badge?.text }} + } + + } +} - - + + @if (item?.icon) { + + + + } + @if (item?.iconComponent) { - - + } + @if (!item?.icon && !item?.iconComponent) { + + } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.spec.ts index a1e66298..2bed3342 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { RouterTestingModule } from '@angular/router/testing'; -import { Router } from '@angular/router'; +import { provideRouter, Router } from '@angular/router'; import { SidebarNavLinkComponent } from './sidebar-nav-link.component'; import { HtmlAttributesDirective } from '../../shared'; +import { By } from '@angular/platform-browser'; describe('SidebarNavLinkComponent', () => { let component: SidebarNavLinkComponent; @@ -13,12 +13,9 @@ describe('SidebarNavLinkComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [RouterTestingModule.withRoutes([]), - HtmlAttributesDirective, - SidebarNavLinkComponent - ] - }) - .compileComponents(); + imports: [HtmlAttributesDirective, SidebarNavLinkComponent], + providers: [provideRouter([])] + }).compileComponents(); })); beforeEach(() => { @@ -31,11 +28,11 @@ describe('SidebarNavLinkComponent', () => { url: '/dashboard', icon: 'cil-speedometer', badge: { - variant: 'info', + color: 'info', text: 'NEW' } }; - component.item = item; + fixture.componentRef.setInput('item', item); // router.initialNavigation(); fixture.detectChanges(); @@ -44,4 +41,25 @@ describe('SidebarNavLinkComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have item with name "Dashboard"', () => { + const link = fixture.debugElement.query(By.css('a')).nativeElement; + expect(link.textContent).toContain('Dashboard'); + }); + + it('should have correct URL', () => { + const link = fixture.debugElement.query(By.css('a')).nativeElement; + expect(link.getAttribute('href')).toBe('/dashboard'); + }); + + it('should have correct icon class', () => { + const icon = fixture.debugElement.query(By.css('.cil-speedometer')).nativeElement; + expect(icon).toBeTruthy(); + }); + + it('should have badge with text "NEW"', () => { + const badge = fixture.debugElement.query(By.css('.badge')).nativeElement; + expect(badge.textContent).toContain('NEW'); + expect(badge.classList).toContain('bg-info'); + }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.ts index 4bacab78..afd96df8 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.ts @@ -1,9 +1,11 @@ -import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'; -import { CommonModule, NgIf } from '@angular/common'; +import { NgClass, NgTemplateOutlet } from '@angular/common'; +import { Component, inject, input, OnDestroy, OnInit, output } from '@angular/core'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { NavigationEnd, Router, RouterModule } from '@angular/router'; import { Observable, Subscription } from 'rxjs'; import { filter } from 'rxjs/operators'; +import { IconDirective } from '@coreui/icons-angular'; // import {SidebarService} from '../sidebar.service'; import { HtmlAttributesDirective } from '../../shared'; import { SidebarNavHelper } from './sidebar-nav.service'; @@ -11,92 +13,75 @@ import { INavData } from './sidebar-nav'; import { SidebarNavLinkPipe } from './sidebar-nav-link.pipe'; import { SidebarNavBadgePipe } from './sidebar-nav-badge.pipe'; import { SidebarNavIconPipe } from './sidebar-nav-icon.pipe'; -import { IconDirective } from '@coreui/icons-angular'; @Component({ selector: 'c-sidebar-nav-link-content', template: ` - - {{item?.name ?? ''}} - + @let itemLinkContent = item(); + @if (itemLinkContent) { + {{ itemLinkContent?.name ?? '' }} + } `, - providers: [SidebarNavHelper], - standalone: true, - imports: [NgIf] + providers: [SidebarNavHelper] }) export class SidebarNavLinkContentComponent { - @Input() item?: INavData; + readonly helper = inject(SidebarNavHelper); - constructor( - public helper: SidebarNavHelper - ) { } + readonly item = input({}); } @Component({ selector: 'c-sidebar-nav-link', templateUrl: './sidebar-nav-link.component.html', providers: [SidebarNavHelper], - standalone: true, imports: [ - CommonModule, RouterModule, HtmlAttributesDirective, IconDirective, SidebarNavLinkContentComponent, SidebarNavLinkPipe, SidebarNavBadgePipe, - SidebarNavIconPipe + SidebarNavIconPipe, + NgTemplateOutlet, + NgClass ] }) export class SidebarNavLinkComponent implements OnInit, OnDestroy { + readonly router = inject(Router); - // tslint:disable-next-line:variable-name - protected _item: INavData = {}; + readonly item = input(); - @Input() - set item(item: INavData) { - this._item = JSON.parse(JSON.stringify(item)); - } + readonly linkClick = output(); - get item(): INavData { - return this._item; - } + public linkType!: string; + public href!: string; + public linkActive!: boolean; + private url!: string; - @Output() linkClick = new EventEmitter(); + private navigationEndObservable: Observable; + private navSubscription!: Subscription; - // @ts-ignore - public linkType: string; - // @ts-ignore - public href: string; - // @ts-ignore - public linkActive: boolean; - // @ts-ignore - private url: string; + constructor() { + const router = this.router; - private navigationEndObservable: Observable; - // @ts-ignore - private navSubscription: Subscription; - - constructor( - public router: Router - // private renderer: Renderer2, - // private hostElement: ElementRef, - // private sidebarService: SidebarService - ) { this.navigationEndObservable = router.events.pipe( - filter(event => { + filter((event) => { return event instanceof NavigationEnd; - }) + }), + takeUntilDestroyed() ) as Observable; } ngOnInit(): void { - // @ts-ignore - this.url = typeof this.item.url === 'string' ? this.item.url : this.router.serializeUrl(this.router.createUrlTree(this.item.url)); + const item = this.item() ?? {}; + this.url = + typeof item.url === 'string' + ? item.url + : this.router.serializeUrl(this.router.createUrlTree((item.url as any[]) ?? [''])); this.linkType = this.getLinkType(); - this.href = this.isDisabled() ? '' : (this.item.href || this.url); + this.href = this.isDisabled() ? '' : item.href || this.url; this.linkActive = this.router.url.split(/[?#(;]/)[0] === this.href.split(/[?#(;]/)[0]; - this.navSubscription = this.navigationEndObservable.subscribe(event => { + this.navSubscription = this.navigationEndObservable.subscribe((event) => { const itemUrlArray = this.href.split(/[?#(;]/)[0].split('/'); const urlArray = event.urlAfterRedirects.split(/[?#(;]/)[0].split('/'); this.linkActive = itemUrlArray.every((value, index) => value === urlArray[index]); @@ -112,16 +97,17 @@ export class SidebarNavLinkComponent implements OnInit, OnDestroy { } public isDisabled(): boolean { - return this.item?.attributes?.['disabled']; + return this.item()?.attributes?.['disabled']; } public isExternalLink(): boolean { - const linkPath = Array.isArray(this.item.url) ? this.item.url[0] : this.item.url; - return !!this.item.href || linkPath.substring(0, 4) === 'http'; + const item = this.item() ?? {}; + const linkPath = Array.isArray(item.url) ? item.url[0] : item.url; + return !!item.href || linkPath?.substring(0, 4) === 'http'; } linkClicked(): void { - this.linkClick.emit(); + this.linkClick?.emit(); } // public hideMobile() { diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.pipe.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.pipe.ts index d9213216..1aa5890b 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.pipe.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.pipe.ts @@ -1,13 +1,10 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ - name: 'cSidebarNavLink', - standalone: true + name: 'cSidebarNavLink' }) export class SidebarNavLinkPipe implements PipeTransform { - transform(item: any): any { - const disabled = item?.attributes?.disabled; return { diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-title.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-title.component.spec.ts index 987278ea..638a6f97 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-title.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-title.component.spec.ts @@ -10,8 +10,7 @@ describe('SidebarNavTitleComponent', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [SidebarNavTitleComponent] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { @@ -22,7 +21,7 @@ describe('SidebarNavTitleComponent', () => { title: true, name: 'Theme' }; - component.item = item; + fixture.componentRef.setInput('item', item); fixture.detectChanges(); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-title.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-title.component.ts index 44e59a2a..26f12a25 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-title.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-title.component.ts @@ -1,41 +1,42 @@ -import {Component, ElementRef, Input, OnInit, Renderer2} from '@angular/core'; +import { Component, effect, ElementRef, inject, input, Renderer2 } from '@angular/core'; +import { INavData } from './sidebar-nav'; @Component({ selector: 'c-sidebar-nav-title', - template: '', - standalone: true + template: '' }) -export class SidebarNavTitleComponent implements OnInit { - @Input() item: any; +export class SidebarNavTitleComponent { + readonly #elementRef = inject(ElementRef); + readonly #renderer = inject(Renderer2); - constructor( - private el: ElementRef, - private renderer: Renderer2, - ) {} + readonly item = input(); - ngOnInit(): void { - const nativeElement: HTMLElement = this.el.nativeElement; - const name = this.renderer.createText(this.item.name); + readonly #itemEffect = effect(() => { + const item = this.item(); + if (item?.name) { + const nativeElement: HTMLElement = this.#elementRef.nativeElement; + const name = this.#renderer.createText(item.name); - if ( this.item.class ) { - const classes = this.item.class; - this.renderer.addClass(nativeElement, classes); - } + if (item?.class) { + const classes = item.class; + this.#renderer.addClass(nativeElement, classes); + } - if ( this.item.wrapper ) { - const wrapper = this.renderer.createElement(this.item.wrapper.element); - this.addAttribs(this.item.wrapper.attributes, wrapper); - this.renderer.appendChild(wrapper, name); - this.renderer.appendChild(nativeElement, wrapper); - } else { - this.renderer.appendChild(nativeElement, name); + if (item?.wrapper) { + const wrapper = this.#renderer.createElement(item.wrapper.element); + this.addAttribs(item.wrapper.attributes, wrapper); + this.#renderer.appendChild(wrapper, name); + this.#renderer.appendChild(nativeElement, wrapper); + } else { + this.#renderer.appendChild(nativeElement, name); + } } - } + }); - private addAttribs(attribs: { [x: string]: any; }, element: any): void { + private addAttribs(attribs: { [x: string]: any }, element: HTMLElement): void { if (attribs) { for (const attr in attribs) { - if (attr === 'style' && typeof(attribs[attr]) === 'object' ) { + if (attr === 'style' && typeof attribs[attr] === 'object') { this.setStyle(attribs[attr], element); } else if (attr === 'class') { this.addClass(attribs[attr], element); @@ -46,22 +47,24 @@ export class SidebarNavTitleComponent implements OnInit { } } - private setStyle(styles: { [x: string]: any; }, el: any): void { + private setStyle(styles: { [x: string]: any }, el: any): void { for (const style in styles) { if (style) { - this.renderer.setStyle(el, style, styles[style]); + this.#renderer.setStyle(el, style, styles[style]); } } } - private addClass(classes: string | Array, el: any): void { - const classArray = (Array.isArray(classes) ? classes : classes.split(' ')); - classArray.filter((element) => element.length > 0).forEach(element => { - this.renderer.addClass(el, element ); - }); + private addClass(classes: string | string[], el: any): void { + const classArray = Array.isArray(classes) ? classes : classes.split(' '); + classArray + .filter((element) => element.length > 0) + .forEach((element) => { + this.#renderer.addClass(el, element); + }); } private setAttrib(key: string, value: string, el: any): void { - this.renderer.setAttribute(el, key, value ); + this.#renderer.setAttribute(el, key, value); } } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.html b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.html index 7295438c..c3976dc0 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.html +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.html @@ -1,42 +1,46 @@ - - - - - - - - - - - - - - - - - +@for (item of navItemsArray; track item) { + @switch (helper.itemType(item)) { + @case ('group') { + + } + @case ('divider') { + + } + @case ('title') { + + } + @case ('label') { + + } + @case ('empty') { + + } + @default { + + } + } +} + diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.spec.ts index a56acb24..95aeab19 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.spec.ts @@ -1,6 +1,5 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; -import { Router } from '@angular/router'; import { SidebarNavComponent } from './sidebar-nav.component'; import { SidebarNavHelper } from './sidebar-nav.service'; @@ -9,24 +8,18 @@ import { SidebarNavHelper } from './sidebar-nav.service'; describe('SidebarNavComponent', () => { let component: SidebarNavComponent; let fixture: ComponentFixture; - let router: Router; - let navItems: Array; + let navItems: any[]; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [ - RouterTestingModule.withRoutes([]), - SidebarNavComponent - ], + imports: [RouterTestingModule.withRoutes([]), SidebarNavComponent], declarations: [], providers: [SidebarNavHelper] - }) - .compileComponents(); + }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(SidebarNavComponent); - router = TestBed.inject(Router); component = fixture.componentInstance; // mock items supplied by the parent component @@ -50,4 +43,8 @@ describe('SidebarNavComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('sidebar-nav'); + }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.ts index 28fabd22..f8e96985 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.ts @@ -1,24 +1,16 @@ import { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations'; +import { NgClass, NgStyle, NgTemplateOutlet } from '@angular/common'; import { - NgClass, - NgForOf, - NgIf, - NgStyle, - NgSwitch, - NgSwitchCase, - NgSwitchDefault, - NgTemplateOutlet -} from '@angular/common'; -import { + booleanAttribute, Component, ElementRef, forwardRef, HostBinding, + inject, Input, OnChanges, OnDestroy, OnInit, - Optional, Renderer2, SimpleChanges, ViewChild @@ -47,12 +39,10 @@ import { IconDirective } from '@coreui/icons-angular'; templateUrl: './sidebar-nav-group.component.html', styleUrls: ['./sidebar-nav-group.component.scss'], providers: [SidebarNavHelper, SidebarNavGroupService], - standalone: true, imports: [ HtmlAttributesDirective, IconDirective, NgTemplateOutlet, - NgIf, NgClass, SidebarNavIconPipe, SidebarNavBadgePipe, @@ -61,27 +51,32 @@ import { IconDirective } from '@coreui/icons-angular'; ], animations: [ trigger('openClose', [ - state('open', style({ - height: '*' - })), - state('closed', style({ - height: '0px' - })), - transition('open <=> closed', [ - animate('.15s ease') - ]) + state( + 'open', + style({ + height: '*' + }) + ), + state( + 'closed', + style({ + height: '0px' + }) + ), + transition('open <=> closed', [animate('.15s ease')]) ]) ] }) export class SidebarNavGroupComponent implements OnInit, OnDestroy { + readonly #router = inject(Router); + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + readonly #sidebarNavGroupService = inject(SidebarNavGroupService); + public readonly helper = inject(SidebarNavHelper); + + constructor() { + const router = this.#router; - constructor( - private router: Router, - private renderer: Renderer2, - private hostElement: ElementRef, - public helper: SidebarNavHelper, - private sidebarNavGroupService: SidebarNavGroupService - ) { this.navigationEndObservable = router.events.pipe( filter((event: any) => event instanceof NavigationEnd) ) as Observable; @@ -90,6 +85,7 @@ export class SidebarNavGroupComponent implements OnInit, OnDestroy { @Input() item: any; @Input() dropdownMode: 'path' | 'none' | 'close' = 'path'; @Input() show?: boolean; + @Input({ transform: booleanAttribute }) compact?: boolean; @HostBinding('class') get hostClasses(): any { @@ -110,7 +106,6 @@ export class SidebarNavGroupComponent implements OnInit, OnDestroy { public display: any = { display: 'block' }; ngOnInit(): void { - this.navItems = [...this.item.children]; this.navSubscription = this.navigationEndObservable.subscribe((event: NavigationEnd) => { @@ -120,16 +115,16 @@ export class SidebarNavGroupComponent implements OnInit, OnDestroy { } }); - if (this.samePath(this.router.routerState.snapshot.url)) { + if (this.samePath(this.#router.routerState.snapshot.url)) { this.openGroup(true); } - this.navGroupSubscription = this.sidebarNavGroupService.sidebarNavGroupState$.subscribe(next => { + this.navGroupSubscription = this.#sidebarNavGroupService.sidebarNavGroupState$.subscribe((next) => { if (this.dropdownMode === 'close' && next.sidebarNavGroup && next.sidebarNavGroup !== this) { if (next.sidebarNavGroup.item.url.startsWith(this.item.url)) { return; } - if (this.samePath(this.router.routerState.snapshot.url)) { + if (this.samePath(this.#router.routerState.snapshot.url)) { this.openGroup(true); return; } @@ -156,7 +151,7 @@ export class SidebarNavGroupComponent implements OnInit, OnDestroy { $event.preventDefault(); this.openGroup(!this.open); if (this.open) { - this.sidebarNavGroupService.toggle({ open: this.open, sidebarNavGroup: this }); + this.#sidebarNavGroupService.toggle({ open: this.open, sidebarNavGroup: this }); } } @@ -166,75 +161,74 @@ export class SidebarNavGroupComponent implements OnInit, OnDestroy { onAnimationStart($event: AnimationEvent) { this.display = { display: 'block' }; - if ($event.toState === 'open') { - const host = this.sidebarNav.nativeElement; - this.renderer.setStyle(host, 'height', `${host['scrollHeight']}px`); - } + setTimeout(() => { + const host = this.sidebarNav?.nativeElement; + if ($event.toState === 'open' && host) { + this.#renderer.setStyle(host, 'height', `${host['scrollHeight']}px`); + } + }); } onAnimationDone($event: AnimationEvent) { - if ($event.toState === 'open') { - const host = this.sidebarNav.nativeElement; - this.renderer.setStyle(host, 'height', 'auto'); - } - if ($event.toState === 'closed') { - setTimeout(() => { - this.display = null; - }); - } + setTimeout(() => { + const host = this.sidebarNav?.nativeElement; + if ($event.toState === 'open' && host) { + this.#renderer.setStyle(host, 'height', 'auto'); + } + if ($event.toState === 'closed') { + setTimeout(() => { + this.display = null; + }); + } + }); } } @Component({ selector: 'c-sidebar-nav', templateUrl: './sidebar-nav.component.html', - standalone: true, imports: [ - NgForOf, NgClass, - NgSwitch, - NgSwitchCase, - NgSwitchDefault, HtmlAttributesDirective, SidebarNavLinkComponent, SidebarNavLabelComponent, SidebarNavTitleComponent, SidebarNavDividerComponent, - SidebarNavGroupComponent, + forwardRef(() => SidebarNavGroupComponent), SidebarNavItemClassPipe, RouterModule ] }) export class SidebarNavComponent implements OnChanges { - - constructor( - @Optional() public sidebar: SidebarComponent, - public helper: SidebarNavHelper, - public router: Router, - private renderer: Renderer2, - private hostElement: ElementRef, - private sidebarService: SidebarService - ) { } + readonly sidebar = inject(SidebarComponent, { optional: true }); + readonly helper = inject(SidebarNavHelper); + readonly router = inject(Router); + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + readonly #sidebarService = inject(SidebarService); @Input() navItems?: INavData[] = []; @Input() dropdownMode: 'path' | 'none' | 'close' = 'path'; - @Input() groupItems?: boolean; - @Input() compact?: boolean; + @Input({ transform: booleanAttribute }) groupItems?: boolean; + @Input({ transform: booleanAttribute }) compact?: boolean; @HostBinding('class') get hostClasses(): any { return { 'sidebar-nav': !this.groupItems, - compact: !this.groupItems && !!this.compact + 'nav-group-items': this.groupItems, + compact: this.groupItems && this.compact }; } - @HostBinding('class.nav-group-items') - get sidebarNavGroupItemsClass(): boolean { - return !!this.groupItems; - } + // @HostBinding('class.nav-group-items') + // get sidebarNavGroupItemsClass(): boolean { + // return !!this.groupItems; + // } - @HostBinding('attr.role') role = 'nav'; + @HostBinding('attr.role') + @Input() + role = 'navigation'; public navItemsArray: INavData[] = []; @@ -245,7 +239,7 @@ export class SidebarNavComponent implements OnChanges { public hideMobile(): void { // todo: proper scrollIntoView() after NavigationEnd if (this.sidebar && this.sidebar.sidebarState.mobile) { - this.sidebarService.toggle({ toggle: 'visible', sidebar: this.sidebar }); + this.#sidebarService.toggle({ toggle: 'visible', sidebar: this.sidebar }); } } } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.spec.ts index 823edc92..5330d76c 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.spec.ts @@ -3,17 +3,16 @@ import { SidebarService } from '../sidebar.service'; import { SidebarToggleDirective } from './sidebar-toggle.directive'; describe('SidebarToggleDirective', () => { - beforeEach(async () => { await TestBed.configureTestingModule({ providers: [SidebarService] - }) - .compileComponents(); + }).compileComponents(); }); it('should create an instance', () => { - const service = new SidebarService(); - const directive = new SidebarToggleDirective(service); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new SidebarToggleDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.ts index 2019da2f..4e5d4548 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.ts @@ -1,6 +1,6 @@ -import {Directive, HostListener, Input} from '@angular/core'; +import { Directive, inject, input } from '@angular/core'; -import {SidebarService} from '../sidebar.service'; +import { SidebarService } from '../sidebar.service'; /** * Allows the sidebar to be toggled/folded via click on host element. @@ -8,30 +8,28 @@ import {SidebarService} from '../sidebar.service'; @Directive({ selector: '[cSidebarToggle]', exportAs: 'cSidebarToggle', - standalone: true + host: { + '(click)': 'toggleOpen($event)' + } }) export class SidebarToggleDirective { + readonly #sidebarService = inject(SidebarService); + /** - * Id of sidebar for toggle action. [docs] - * - * @type string + * Id of sidebar for toggle action. + * @return string */ - @Input('cSidebarToggle') id?: string; + readonly id = input(undefined, { alias: 'cSidebarToggle' }); /** - * Sidebar property name for toggle action. [docs] + * Sidebar property name for toggle action. * - * @type 'visible' | 'unfoldable' + * @return 'visible' | 'unfoldable' * @default 'visible' */ - @Input() toggle: 'visible' | 'unfoldable' = 'visible' - - constructor( - private sidebarService: SidebarService - ) {} + readonly toggle = input<'visible' | 'unfoldable'>('visible'); - @HostListener('click', ['$event']) toggleOpen($event: any): void { $event.preventDefault(); - this.sidebarService.toggle({ toggle: this.toggle, id: this.id }); + this.#sidebarService.toggle({ toggle: this.toggle(), id: this.id() }); } } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-toggler/sidebar-toggler.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-toggler/sidebar-toggler.component.ts deleted file mode 100644 index ef5da2c8..00000000 --- a/projects/coreui-angular/src/lib/sidebar/sidebar-toggler/sidebar-toggler.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Component, HostBinding, Input } from '@angular/core'; - -@Component({ - selector: 'c-sidebar-toggler', - template: ``, - standalone: true -}) -export class SidebarTogglerComponent { - - @HostBinding('attr.role') - @Input() role = 'button'; - - @HostBinding('class.sidebar-toggler') sidebarTogglerClass = true; - -} diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar-toggler/sidebar-toggler.directive.ts b/projects/coreui-angular/src/lib/sidebar/sidebar-toggler/sidebar-toggler.directive.ts new file mode 100644 index 00000000..89d5ec46 --- /dev/null +++ b/projects/coreui-angular/src/lib/sidebar/sidebar-toggler/sidebar-toggler.directive.ts @@ -0,0 +1,23 @@ +import { Directive, input } from '@angular/core'; +import { SidebarToggleDirective } from '../sidebar-toggle/sidebar-toggle.directive'; + +@Directive({ + selector: '[cSidebarToggler]', + hostDirectives: [{ directive: SidebarToggleDirective, inputs: ['cSidebarToggle: cSidebarToggler', 'toggle'] }], + host: { + '[attr.role]': 'role()', + class: 'sidebar-toggler', + '[style]': 'getStyles' + } +}) +export class SidebarTogglerDirective { + readonly role = input('button'); + + get getStyles(): any { + return { + appearance: 'button', + 'align-items': 'flex-start', + cursor: 'pointer' + }; + } +} diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar.module.ts b/projects/coreui-angular/src/lib/sidebar/sidebar.module.ts index 1f88b8cf..1cf1d4d1 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar.module.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar.module.ts @@ -4,7 +4,7 @@ import { SidebarComponent } from './sidebar/sidebar.component'; import { SidebarService } from './sidebar.service'; import { SidebarBrandComponent } from './sidebar-brand/sidebar-brand.component'; import { SidebarToggleDirective } from './sidebar-toggle/sidebar-toggle.directive'; -import { SidebarTogglerComponent } from './sidebar-toggler/sidebar-toggler.component'; +import { SidebarTogglerDirective } from './sidebar-toggler/sidebar-toggler.directive'; import { SidebarHeaderComponent } from './sidebar-header/sidebar-header.component'; import { SidebarFooterComponent } from './sidebar-footer/sidebar-footer.component'; import { SidebarNavGroupService } from './sidebar-nav/sidebar-nav-group.service'; @@ -42,12 +42,12 @@ import { SidebarNavLinkPipe, SidebarNavTitleComponent, SidebarToggleDirective, - SidebarTogglerComponent + SidebarTogglerDirective ], exports: [ SidebarComponent, SidebarToggleDirective, - SidebarTogglerComponent, + SidebarTogglerDirective, SidebarBrandComponent, SidebarNavComponent, SidebarHeaderComponent, diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar.service.ts b/projects/coreui-angular/src/lib/sidebar/sidebar.service.ts index f0fdb9f4..c0b41019 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar.service.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; -import {SidebarComponent} from './sidebar/sidebar.component'; +import { SidebarComponent } from './sidebar/sidebar.component'; export interface ISidebarAction { unfoldable?: boolean | 'toggle'; @@ -17,12 +17,9 @@ export interface ISidebarAction { providedIn: 'root' }) export class SidebarService { - private sidebarState = new BehaviorSubject({}); sidebarState$ = this.sidebarState.asObservable(); - constructor() {} - toggle(action: ISidebarAction): void { this.sidebarState.next(action); } diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.spec.ts b/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.spec.ts index 891f26db..63281cee 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.spec.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.spec.ts @@ -22,4 +22,8 @@ describe('SidebarComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('sidebar-fixed'); + }); }); diff --git a/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.ts b/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.ts index 12546d30..7edb74ec 100644 --- a/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.ts +++ b/projects/coreui-angular/src/lib/sidebar/sidebar/sidebar.component.ts @@ -1,18 +1,20 @@ import { + booleanAttribute, Component, - EventEmitter, - HostBinding, - Inject, - Input, + computed, + DOCUMENT, + effect, + inject, + input, + linkedSignal, OnChanges, OnDestroy, OnInit, - Output, + output, Renderer2, - SimpleChanges, + signal, + SimpleChanges } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout'; import { Subscription } from 'rxjs'; @@ -22,186 +24,186 @@ import { SidebarBackdropService } from '../sidebar-backdrop/sidebar-backdrop.ser @Component({ selector: 'c-sidebar', exportAs: 'cSidebar', - template: '', - standalone: true + template: '', + host: { + class: 'sidebar', + '[class]': 'hostClasses()', + '[attr.inert]': '!this.sidebarState.visible || null' + } }) export class SidebarComponent implements OnChanges, OnDestroy, OnInit { - static ngAcceptInputType_narrow: BooleanInput; - static ngAcceptInputType_overlaid: BooleanInput; - static ngAcceptInputType_unfoldable: BooleanInput; - static ngAcceptInputType_visible: BooleanInput; - - #narrow = false; - #overlaid = false; - #unfoldable = false; - #visible = false; + readonly #document = inject(DOCUMENT); + readonly #renderer = inject(Renderer2); + readonly #breakpointObserver = inject(BreakpointObserver); + readonly #sidebarService = inject(SidebarService); + readonly #backdropService = inject(SidebarBackdropService); + #onMobile = false; #layoutChangeSubscription!: Subscription; #stateToggleSubscription!: Subscription; - state: ISidebarAction = { - sidebar: this, - }; + readonly state = signal({ + sidebar: this + }); #stateInitial = { narrow: false, visible: false, - unfoldable: false, + unfoldable: false }; /** - * Sets if the color of text should be colored for a light or dark background. [docs] - * - * @type 'dark' | 'light' + * Sets if the color of text should be colored for a light or dark background. + * @return 'dark' | 'light' */ - @Input() colorScheme?: 'dark' | 'light'; + readonly colorScheme = input<'dark' | 'light'>(); /** - * Sets html attribute id. [docs] - * - * @type string + * Sets html attribute id. + * @return string */ - @Input() id?: string; + readonly id = input(); /** - * Make sidebar narrow. [docs] - * @type boolean + * Make sidebar narrow. + * @return boolean + * @default false */ - @Input() - set narrow(value: boolean) { - this.#narrow = coerceBooleanProperty(value); + readonly narrowInput = input(false, { transform: booleanAttribute, alias: 'narrow' }); + + readonly #narrow = linkedSignal(this.narrowInput); + + set narrow(value) { + this.#narrow.set(value); } get narrow() { - return this.#narrow; + return this.#narrow(); } /** * Set sidebar to overlaid variant. - * @type boolean + * @return boolean + * @default false */ - @Input() - set overlaid(value: boolean) { - this.#overlaid = coerceBooleanProperty(value); - } - - get overlaid() { - return this.#overlaid; - } + readonly overlaid = input(false, { transform: booleanAttribute }); /** - * Components placement, there’s no default placement. [docs] - * @type 'start' | 'end' + * Components placement, there’s no default placement. + * @return 'start' | 'end' */ - @Input() placement?: 'start' | 'end'; + readonly placement = input<'start' | 'end'>(); /** - * Place sidebar in non-static positions. [docs] + * Place sidebar in non-static positions. + * @return 'fixed' | 'sticky' * @default 'fixed' */ - @Input() position: 'fixed' | 'sticky' = 'fixed'; + readonly position = input<'fixed' | 'sticky'>('fixed'); /** - * Size the component small, large, or extra large. [docs] + * Size the component small, large, or extra large. + * @return 'sm' | 'lg' | 'xl' */ - @Input() size?: 'sm' | 'lg' | 'xl'; + readonly size = input<'sm' | 'lg' | 'xl'>(); /** - * Expand narrowed sidebar on hover. [docs] + * Expand narrowed sidebar on hover. + * @type boolean + * @default false */ - @Input() - set unfoldable(value: boolean) { - this.#unfoldable = coerceBooleanProperty(value); - } + readonly unfoldableInput = input(false, { transform: booleanAttribute, alias: 'unfoldable' }); - get unfoldable() { - return this.#unfoldable; - } + readonly unfoldable = linkedSignal({ + source: this.unfoldableInput, + computation: (value) => value + }); /** - * Toggle the visibility of sidebar component. [docs] + * Toggle the visibility of sidebar component. + * @type boolean + * @default false */ - @Input() + readonly visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' }); + + readonly #visible = linkedSignal(this.visibleInput); + + readonly #visibleEffect = effect(() => { + this.visibleChange?.emit(this.#visible()); + }); + set visible(value: boolean) { - const visible = coerceBooleanProperty(value); - if (this.#visible !== visible) { - this.#visible = visible; - this.visibleChange.emit(this.#visible); - } + this.#visible.set(value); } get visible() { - return this.#visible; + return this.#visible(); } /** - * Event emitted on visibility change. [docs] - * @type boolean + * Event emitted on visibility change. + * @return boolean */ - @Output() visibleChange = new EventEmitter(); + readonly visibleChange = output(); set sidebarState(value: ISidebarAction) { const newState = value; if ('toggle' in newState) { if (newState.toggle === 'visible') { - newState.visible = !this.state.visible; - this.visible = newState.visible; + newState.visible = !this.state().visible; + this.#visible.set(newState.visible); } else if (newState.toggle === 'unfoldable') { - newState.unfoldable = !this.state.unfoldable; - this.unfoldable = newState.unfoldable; + newState.unfoldable = !this.state().unfoldable; + this.unfoldable.set(newState.unfoldable); } } else { - this.visible = (newState.visible ?? this.visible) && !this.overlaid; + this.#visible.update((visible) => (newState.visible ?? visible) && !this.overlaid()); } - this.state = { - ...this.state, - ...newState, - }; - this.state.mobile && this.state.visible - ? this.backdropService.setBackdrop(this) - : this.backdropService.clearBackdrop(); + this.state.update((state) => ({ ...state, ...newState })); + this.state().mobile && this.state().visible + ? this.#backdropService.setBackdrop(this) + : this.#backdropService.clearBackdrop(); } get sidebarState(): ISidebarAction { - return this.state; + return { ...this.state() }; } get getMobileBreakpoint(): string { - const element: Element = this.document.documentElement; + const element: Element = this.#document.documentElement; const mobileBreakpoint = - getComputedStyle(element).getPropertyValue('--cui-mobile-breakpoint') || - 'md'; + this.#document.defaultView?.getComputedStyle(element)?.getPropertyValue('--cui-mobile-breakpoint') ?? 'md'; const breakpointValue = - getComputedStyle(element).getPropertyValue( - `--cui-breakpoint-${mobileBreakpoint.trim()}` - ) || '768px'; - return `${parseFloat(breakpointValue.trim()) - 0.02}px` || '767.98px'; + this.#document.defaultView + ?.getComputedStyle(element) + ?.getPropertyValue(`--cui-breakpoint-${mobileBreakpoint.trim()}`) ?? '768px'; + return `${parseFloat(breakpointValue.trim()) - 0.02}px`; } - constructor( - @Inject(DOCUMENT) private document: Document, - private renderer: Renderer2, - private breakpointObserver: BreakpointObserver, - private sidebarService: SidebarService, - private backdropService: SidebarBackdropService - ) { - this.backdropService.renderer = renderer; + constructor() { + this.#backdropService.renderer = this.#renderer; } - @HostBinding('class') - get getClasses(): any { - const { mobile, visible } = this.sidebarState; + readonly hostClasses = computed(() => { + const { mobile, visible } = { ...this.sidebarState }; + const unfoldable = this.unfoldable(); + const placement = this.placement(); + const colorScheme = this.colorScheme(); + const size = this.size(); return { sidebar: true, - 'sidebar-fixed': this.position === 'fixed' && !mobile, - 'sidebar-narrow': this.narrow && !this.unfoldable, - 'sidebar-narrow-unfoldable': this.unfoldable, - 'sidebar-overlaid': this.overlaid, - [`sidebar-${this.size}`]: !!this.size, - show: visible && this.#onMobile, - hide: !visible, + 'sidebar-fixed': this.position() === 'fixed' && !mobile, + 'sidebar-narrow': this.#narrow() && !unfoldable, + 'sidebar-narrow-unfoldable': unfoldable, + 'sidebar-overlaid': this.overlaid(), + [`sidebar-${placement}`]: !!placement, + [`sidebar-${colorScheme}`]: !!colorScheme, + [`sidebar-${size}`]: !!size, + show: visible, + // show: visible && this.#onMobile, //todo: check + hide: !visible }; - } + }); ngOnInit(): void { this.setInitialState(); @@ -215,7 +217,7 @@ export class SidebarComponent implements OnChanges, OnDestroy, OnInit { } ngOnChanges(changes: SimpleChanges): void { - const oldStateMap = new Map(Object.entries(this.state)); + const oldStateMap = new Map(Object.entries(this.state())); const newStateMap = new Map(); newStateMap.set('sidebar', this); @@ -224,7 +226,7 @@ export class SidebarComponent implements OnChanges, OnDestroy, OnInit { for (const propName in changes) { if (propList.includes(propName)) { if (changes[propName] && !changes[propName].firstChange) { - const value = coerceBooleanProperty(changes[propName].currentValue); + const value = booleanAttribute(changes[propName].currentValue); if (oldStateMap.get(propName) !== value) { newStateMap.set(propName, value); } @@ -234,30 +236,29 @@ export class SidebarComponent implements OnChanges, OnDestroy, OnInit { if (newStateMap.size > 1) { const state = Object.fromEntries(newStateMap.entries()); - this.sidebarService.toggle(state); + this.#sidebarService.toggle(state); } } setInitialState(): void { this.#stateInitial = { - narrow: this.narrow, - visible: this.visible, - unfoldable: this.unfoldable, + narrow: this.#narrow(), + visible: this.#visible(), + unfoldable: this.unfoldable() }; - this.sidebarService.toggle({ + this.#sidebarService.toggle({ ...this.#stateInitial, - sidebar: this, + sidebar: this }); } private stateToggleSubscribe(subscribe: boolean = true): void { if (subscribe) { - this.#stateToggleSubscription = - this.sidebarService.sidebarState$.subscribe((state) => { - if (this === state.sidebar || this.id === state.id) { - this.sidebarState = state; - } - }); + this.#stateToggleSubscription = this.#sidebarService.sidebarState$.subscribe((state) => { + if (this === state.sidebar || this.id() === state.id) { + this.sidebarState = { ...state }; + } + }); } else { this.#stateToggleSubscription?.unsubscribe(); } @@ -267,23 +268,21 @@ export class SidebarComponent implements OnChanges, OnDestroy, OnInit { const onMobile = `(max-width: ${this.getMobileBreakpoint})`; if (subscribe) { - const layoutChanges = this.breakpointObserver.observe([onMobile]); - - this.#layoutChangeSubscription = layoutChanges.subscribe( - (result: BreakpointState) => { - const isOnMobile = result.breakpoints[onMobile]; - const isUnfoldable = isOnMobile ? false : this.unfoldable; - if (this.#onMobile !== isOnMobile) { - this.#onMobile = isOnMobile; - this.sidebarService.toggle({ - mobile: isOnMobile, - unfoldable: isUnfoldable, - visible: isOnMobile ? !isOnMobile : this.#stateInitial.visible, - sidebar: this, - }); - } + const layoutChanges = this.#breakpointObserver.observe([onMobile]); + + this.#layoutChangeSubscription = layoutChanges.subscribe((result: BreakpointState) => { + const isOnMobile = result.breakpoints[onMobile]; + const isUnfoldable = isOnMobile ? false : this.unfoldable(); + if (this.#onMobile !== isOnMobile) { + this.#onMobile = isOnMobile; + this.#sidebarService.toggle({ + mobile: isOnMobile, + unfoldable: isUnfoldable, + visible: isOnMobile ? !isOnMobile : this.#stateInitial.visible, + sidebar: this + }); } - ); + }); } else { this.#layoutChangeSubscription?.unsubscribe(); } diff --git a/projects/coreui-angular/src/lib/spinner/spinner.component.html b/projects/coreui-angular/src/lib/spinner/spinner.component.html index bcf7f99a..9cc351e5 100644 --- a/projects/coreui-angular/src/lib/spinner/spinner.component.html +++ b/projects/coreui-angular/src/lib/spinner/spinner.component.html @@ -1 +1,3 @@ -{{label}} + + {{ label() }} + diff --git a/projects/coreui-angular/src/lib/spinner/spinner.component.spec.ts b/projects/coreui-angular/src/lib/spinner/spinner.component.spec.ts index 77febd41..43d9fff9 100644 --- a/projects/coreui-angular/src/lib/spinner/spinner.component.spec.ts +++ b/projects/coreui-angular/src/lib/spinner/spinner.component.spec.ts @@ -22,4 +22,8 @@ describe('SpinnerComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('spinner-border'); + }); }); diff --git a/projects/coreui-angular/src/lib/spinner/spinner.component.ts b/projects/coreui-angular/src/lib/spinner/spinner.component.ts index 49fa47c5..10df157c 100644 --- a/projects/coreui-angular/src/lib/spinner/spinner.component.ts +++ b/projects/coreui-angular/src/lib/spinner/spinner.component.ts @@ -1,49 +1,54 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, computed, input } from '@angular/core'; import { Colors } from '../coreui.types'; @Component({ selector: 'c-spinner', templateUrl: './spinner.component.html', - standalone: true + host: { + '[attr.role]': 'role()', + '[class]': 'hostClasses()' + } }) export class SpinnerComponent { /** * Sets the color context of the component to one of CoreUI’s themed colors. * @type Colors */ - @Input() color?: Colors; + readonly color = input(); /** * Label for accessibility. * @type string * @default 'Loading...' */ - @Input() label: string = "Loading..."; + readonly label = input('Loading...'); /** * Size the component small. * @type string * @values 'sm' */ - @Input() size?: 'sm'; + readonly size = input<'sm'>(); /** * Set the button variant to an outlined button or a ghost button. * @values 'border' | 'grow' * @default 'border' */ - @Input() variant?: 'border' | 'grow' = 'border'; - - @Input() - @HostBinding('attr.role') role = 'status'; + readonly variant = input<'border' | 'grow'>('border'); + /** + * Default role attr for Spinner. [docs] + * @type string + * @default 'status' + */ + readonly role = input('status'); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { return { - [`spinner-${this.variant}`]: true, - [`text-${this.color}`]: !!this.color, - [`spinner-${this.variant}-${this.size}`]: !!this.size - }; - } + [`spinner-${this.variant()}`]: true, + [`text-${this.color()}`]: !!this.color(), + [`spinner-${this.variant()}-${this.size()}`]: !!this.size() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/table/table-active.directive.spec.ts b/projects/coreui-angular/src/lib/table/table-active.directive.spec.ts index 244f205b..0dc9649f 100644 --- a/projects/coreui-angular/src/lib/table/table-active.directive.spec.ts +++ b/projects/coreui-angular/src/lib/table/table-active.directive.spec.ts @@ -1,8 +1,48 @@ +import { Component, DebugElement } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; import { TableActiveDirective } from './table-active.directive'; +@Component({ + imports: [TableActiveDirective], + template: ` ` +}) +class TestComponent { + active = false; +} + describe('TableActiveDirective', () => { + let fixture: ComponentFixture; + let debugElement: DebugElement; + let directive: TableActiveDirective; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }); + fixture = TestBed.createComponent(TestComponent); + debugElement = fixture.debugElement.query(By.directive(TableActiveDirective)); + directive = debugElement.injector.get(TableActiveDirective); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new TableActiveDirective(); expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new TableActiveDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should add class "table-active" when active is true', () => { + fixture.componentInstance.active = true; + fixture.detectChanges(); + expect(debugElement.nativeElement.classList).toContain('table-active'); + }); + + it('should not add class "table-active" when active is false', () => { + fixture.componentInstance.active = false; + fixture.detectChanges(); + expect(debugElement.nativeElement.classList).not.toContain('table-active'); }); }); diff --git a/projects/coreui-angular/src/lib/table/table-active.directive.ts b/projects/coreui-angular/src/lib/table/table-active.directive.ts index 4fff0977..25397c75 100644 --- a/projects/coreui-angular/src/lib/table/table-active.directive.ts +++ b/projects/coreui-angular/src/lib/table/table-active.directive.ts @@ -1,21 +1,16 @@ -import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core'; +import { booleanAttribute, Directive, input } from '@angular/core'; @Directive({ selector: '[cTableActive]', - standalone: true + exportAs: 'cTableActive', + host: { + '[class.table-active]': 'active()' + } }) export class TableActiveDirective { - /** * Highlight a table row or cell - * @type boolean + * @return boolean */ - @Input({ alias: 'cTableActive', transform: booleanAttribute }) active: string | boolean = false; - - @HostBinding('class') - get hostClasses(): any { - return { - 'table-active': this.active - }; - } + readonly active = input(false, { alias: "cTableActive", transform: booleanAttribute }); } diff --git a/projects/coreui-angular/src/lib/table/table-color.directive.spec.ts b/projects/coreui-angular/src/lib/table/table-color.directive.spec.ts index f2807dc1..ee2664b2 100644 --- a/projects/coreui-angular/src/lib/table/table-color.directive.spec.ts +++ b/projects/coreui-angular/src/lib/table/table-color.directive.spec.ts @@ -1,8 +1,11 @@ +import { TestBed } from '@angular/core/testing'; import { TableColorDirective } from './table-color.directive'; describe('TableColorDirective', () => { it('should create an instance', () => { - const directive = new TableColorDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new TableColorDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/table/table-color.directive.ts b/projects/coreui-angular/src/lib/table/table-color.directive.ts index 594e8aae..6223252a 100644 --- a/projects/coreui-angular/src/lib/table/table-color.directive.ts +++ b/projects/coreui-angular/src/lib/table/table-color.directive.ts @@ -1,22 +1,24 @@ -import { Directive, HostBinding, Input } from '@angular/core'; +import { computed, Directive, input } from '@angular/core'; import { Colors } from '../coreui.types'; @Directive({ selector: '[cTableColor]', - standalone: true + exportAs: 'cTableColor', + host: { + '[class]': 'hostClasses()' + } }) export class TableColorDirective { - /** * Use contextual color for tables, table rows or individual cells. - * @type Colors + * @return Colors */ - @Input('cTableColor') color?: Colors; + readonly color = input(undefined, { alias: 'cTableColor' }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const color = this.color(); return { - [`table-${this.color}`]: !!this.color, - }; - } + [`table-${color}`]: !!color + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/table/table.directive.spec.ts b/projects/coreui-angular/src/lib/table/table.directive.spec.ts index 0bf65e79..0d1fcaa2 100644 --- a/projects/coreui-angular/src/lib/table/table.directive.spec.ts +++ b/projects/coreui-angular/src/lib/table/table.directive.spec.ts @@ -1,21 +1,113 @@ -import { TestBed } from '@angular/core/testing'; -import { ElementRef, Renderer2 } from '@angular/core'; +import { Component, DebugElement, ElementRef, Renderer2 } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; import { TableDirective } from './table.directive'; +import { Colors } from '../coreui.types'; +import { TableActiveDirective } from './table-active.directive'; + +@Component({ + template: ` +
      + `, + imports: [TableDirective] +}) +class TestComponent { + align: 'bottom' | 'middle' | 'top' = 'middle'; + borderColor: Colors = 'primary'; + bordered: boolean = true; + borderless: boolean = false; + caption = 'top' as const; + color: Colors = 'secondary'; + hover: boolean = true; + small: boolean = true; + striped: boolean = true; + stripedColumns: boolean = true; +} + +class MockElementRef extends ElementRef {} describe('TableDirective', () => { - let renderer: Renderer2; - let hostElement: ElementRef; + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + let directive: TableDirective; beforeEach(() => { TestBed.configureTestingModule({ - imports: [Renderer2], - providers: [Renderer2] + imports: [TestComponent], + providers: [Renderer2, { provide: ElementRef, useClass: MockElementRef }] }); + fixture = TestBed.createComponent(TestComponent); + debugElement = fixture.debugElement.query(By.directive(TableDirective)); + directive = debugElement.injector.get(TableDirective); + component = fixture.componentInstance; + fixture.detectChanges(); }); it('should create an instance', () => { - const directive = new TableDirective(renderer, hostElement); expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new TableActiveDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should apply align input', () => { + expect(directive.align()).toBe('middle'); + }); + + it('should apply borderColor input', () => { + expect(directive.borderColor()).toBe('primary'); + }); + + it('should apply bordered input', () => { + expect(directive.bordered()).toBe(true); + }); + + it('should apply borderless input', () => { + expect(directive.borderless()).toBe(false); + }); + + it('should apply caption input', () => { + expect(directive.caption()).toBe('top'); + }); + + it('should apply color input', () => { + expect(directive.color()).toBe('secondary'); + }); + + it('should have responsive wrapper', () => { + const parentElement = debugElement.nativeElement.parentElement; + const classes = parentElement.classList; + expect(classes).toContain('table-responsive'); + }); + + it('should apply correct host classes', () => { + const classes = debugElement.nativeElement.classList; + + expect(classes).toContain('table'); + expect(classes).toContain('align-middle'); + expect(classes).toContain('caption-top'); + expect(classes).toContain('border-primary'); + expect(classes).toContain('table-bordered'); + expect(classes).toContain('table-secondary'); + expect(classes).toContain('table-hover'); + expect(classes).toContain('table-sm'); + expect(classes).toContain('table-striped'); + expect(classes).toContain('table-striped-columns'); }); }); diff --git a/projects/coreui-angular/src/lib/table/table.directive.ts b/projects/coreui-angular/src/lib/table/table.directive.ts index 842e49d2..13ed3a2f 100644 --- a/projects/coreui-angular/src/lib/table/table.directive.ts +++ b/projects/coreui-angular/src/lib/table/table.directive.ts @@ -1,118 +1,125 @@ -import { booleanAttribute, Directive, ElementRef, HostBinding, Input, OnInit, Renderer2 } from '@angular/core'; +import { booleanAttribute, computed, Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core'; import { Breakpoints, Colors } from '../coreui.types'; -import { ITable } from './table.type'; @Directive({ selector: 'table[cTable]', - standalone: true + exportAs: 'cTable', + host: { + class: 'table', + '[class]': 'hostClasses()' + } }) -export class TableDirective implements ITable, OnInit { - - constructor( - private renderer: Renderer2, - private hostElement: ElementRef - ) { } +export class TableDirective { + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); /** * Set the vertical alignment. - * @type string + * @return string * @values 'bottom' | 'middle' | 'top' */ - @Input() align?: 'bottom' | 'middle' | 'top'; + readonly align = input<'bottom' | 'middle' | 'top'>(); /** * Sets the border color of the component to one of CoreUI’s themed colors. - * @type Colors + * @return Colors */ - @Input() borderColor?: Colors; + readonly borderColor = input(); /** * Add borders on all sides of the table and cells. - * @type boolean + * @return boolean */ - @Input({ transform: booleanAttribute }) bordered: string | boolean = false; + readonly bordered = input(false, { transform: booleanAttribute }); /** * Remove borders on all sides of the table and cells. - * @type boolean + * @return boolean */ - @Input({ transform: booleanAttribute }) borderless: string | boolean = false; + readonly borderless = input(false, { transform: booleanAttribute }); /** * Put the `` on the top of the table. + * @return 'top' * @values 'top' */ - @Input() caption?: 'top'; + readonly caption = input<'top'>(); /** * Sets the color context of the component to one of CoreUI’s themed colors. - * @type Colors + * @return Colors */ - @Input() color?: Colors; + readonly color = input(); /** * Enable a hover state on table rows within table body. - * @type boolean + * @return boolean */ - @Input({ transform: booleanAttribute }) hover: string | boolean = false; + readonly hover = input(false, { transform: booleanAttribute }); /** * Make table responsive across all viewports or pick a maximum breakpoint with which to have a responsive table up to. - * @type: {boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'} + * @values: {boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'} */ - @Input() responsive?: boolean | Omit; + readonly responsive = input>(); /** * Make table more compact by cutting all cell `padding` in half. - * @type boolean + * @return boolean */ - @Input({ transform: booleanAttribute }) small: string | boolean = false; + readonly small = input(false, { transform: booleanAttribute }); /** * Add zebra-striping to any table row within the table body. - * @type boolean + * @return boolean */ - @Input({ transform: booleanAttribute }) striped: string | boolean = false; + readonly striped = input(false, { transform: booleanAttribute }); /** * Add zebra-striping to any table column. - * @type boolean + * @return boolean * @since 4.2.4 */ - @Input({ transform: booleanAttribute }) stripedColumns: string | boolean = false; + readonly stripedColumns = input(false, { transform: booleanAttribute }); + + readonly hostClasses = computed(() => { + const align = this.align(); + const caption = this.caption(); + const borderColor = this.borderColor(); + const bordered = this.bordered(); + const borderless = this.borderless(); + const color = this.color(); + const hover = this.hover(); + const small = this.small(); + const striped = this.striped(); + const stripedColumns = this.stripedColumns(); - @HostBinding('class') - get hostClasses(): any { return { table: true, - [`align-${this.align}`]: !!this.align, - [`caption-${this.caption}`]: !!this.caption, - [`border-${this.borderColor}`]: !!this.borderColor, - 'table-bordered': this.bordered, - 'table-borderless': this.borderless, - [`table-${this.color}`]: !!this.color, - 'table-hover': this.hover, - 'table-sm': this.small, - 'table-striped': this.striped, - 'table-striped-columns': this.stripedColumns - }; - } - - ngOnInit(): void { - this.setResponsiveWrapper(); - } - - // todo - setResponsiveWrapper(): void { - if (!!this.responsive) { - const nativeElement: HTMLElement = this.hostElement.nativeElement; - const wrapper = this.renderer.createElement('div'); - const className = this.responsive === true ? 'table-responsive' : `table-responsive-${this.responsive}`; - this.renderer.addClass(wrapper, className); - const parentNode = this.renderer.parentNode(nativeElement); - this.renderer.appendChild(parentNode, wrapper); - this.renderer.insertBefore(parentNode, wrapper, nativeElement); - this.renderer.appendChild(wrapper, nativeElement); + [`align-${align}`]: !!align, + [`caption-${caption}`]: !!caption, + [`border-${borderColor}`]: !!borderColor, + 'table-bordered': bordered, + 'table-borderless': borderless, + [`table-${color}`]: !!color, + 'table-hover': hover, + 'table-sm': small, + 'table-striped': striped, + 'table-striped-columns': stripedColumns + } as Record; + }); + + readonly #responsiveWrapperEffect = effect(() => { + const responsive = this.responsive(); + if (!!responsive) { + const nativeElement: HTMLElement = this.#hostElement.nativeElement; + const wrapper = this.#renderer.createElement('div'); + const className = responsive === true ? 'table-responsive' : `table-responsive-${responsive}`; + this.#renderer.addClass(wrapper, className); + const parentNode = this.#renderer.parentNode(nativeElement); + this.#renderer.appendChild(parentNode, wrapper); + this.#renderer.insertBefore(parentNode, wrapper, nativeElement); + this.#renderer.appendChild(wrapper, nativeElement); } - } + }); } diff --git a/projects/coreui-angular/src/lib/table/table.type.ts b/projects/coreui-angular/src/lib/table/table.type.ts index 3162b939..60d5ae5f 100644 --- a/projects/coreui-angular/src/lib/table/table.type.ts +++ b/projects/coreui-angular/src/lib/table/table.type.ts @@ -52,7 +52,8 @@ export interface ITable { * @type boolean */ striped?: boolean | string; - attributes?: {[key: string]: any}; + + attributes?: Partial; } export interface ITableElementProps { @@ -60,12 +61,15 @@ export interface ITableElementProps { * Set the vertical alignment. @type 'bottom' | 'middle' | 'top' */ - align?: ('bottom' | 'middle' | 'top') + align?: ('bottom' | 'middle' | 'top'); /** * Sets the color context of the component to one of CoreUI’s themed colors. * @type Colors */ - color?: Colors + color?: Colors; + + /** @deprecated */ + _attributes?: Partial; } export interface ITableRowCellProps extends ITableElementProps { @@ -73,5 +77,8 @@ export interface ITableRowCellProps extends ITableElementProps { * Highlight a table row or cell @type boolean */ - active?: boolean + active?: boolean; + + /** @deprecated */ + _attributes?: Partial | Partial; } diff --git a/projects/coreui-angular/src/lib/tabs-2/index.ts b/projects/coreui-angular/src/lib/tabs-2/index.ts new file mode 100644 index 00000000..4aaf8f92 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/index.ts @@ -0,0 +1 @@ +export * from './public_api'; diff --git a/projects/coreui-angular/src/lib/tabs-2/public_api.ts b/projects/coreui-angular/src/lib/tabs-2/public_api.ts new file mode 100644 index 00000000..c89d3017 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/public_api.ts @@ -0,0 +1,7 @@ +export { Tabs2Module } from './tabs2.module'; +export { TabsComponent } from './tabs.component'; +export { TabsContentComponent } from './tabs-content/tabs-content.component'; +export { TabsListComponent } from './tabs-list/tabs-list.component'; +export { TabsService } from './tabs.service'; +export { TabDirective } from './tab/tab.directive'; +export { TabPanelComponent } from './tab-panel/tab-panel.component'; diff --git a/projects/coreui-angular/src/lib/tabs-2/tab-panel/tab-panel.component.spec.ts b/projects/coreui-angular/src/lib/tabs-2/tab-panel/tab-panel.component.spec.ts new file mode 100644 index 00000000..72d3fdd3 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tab-panel/tab-panel.component.spec.ts @@ -0,0 +1,44 @@ +import { Component } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { NoopAnimationsModule } from '@angular/platform-browser/animations'; +import { TabsComponent } from '../tabs.component'; +import { TabDirective } from '../tab/tab.directive'; +import { TabsContentComponent } from '../tabs-content/tabs-content.component'; +import { TabsListComponent } from '../tabs-list/tabs-list.component'; +import { TabPanelComponent } from './tab-panel.component'; + +@Component({ + template: ` + + + + + + + Tab panel 0 content + Tab panel 1 content + + + `, + imports: [TabPanelComponent, TabsComponent, TabDirective, TabsContentComponent, TabsListComponent] +}) +class TestComponent {} + +describe('TabPanelComponent', () => { + let component: TestComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + const fixture = TestBed.configureTestingModule({ + imports: [TestComponent, NoopAnimationsModule] + }).createComponent(TestComponent); + fixture.detectChanges(); + + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/tabs-2/tab-panel/tab-panel.component.ts b/projects/coreui-angular/src/lib/tabs-2/tab-panel/tab-panel.component.ts new file mode 100644 index 00000000..570ea75b --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tab-panel/tab-panel.component.ts @@ -0,0 +1,123 @@ +import { animate, animateChild, AnimationEvent, query, state, style, transition, trigger } from '@angular/animations'; +import { + Component, + computed, + inject, + input, + InputSignal, + InputSignalWithTransform, + numberAttribute, + output, + OutputEmitterRef, + signal +} from '@angular/core'; +import { TabsService } from '../tabs.service'; + +type AnimateType = 'hide' | 'show'; +type VisibleChangeEvent = { itemKey: string | number; visible: boolean }; + +@Component({ + exportAs: 'cTabPanel', + selector: 'c-tab-panel', + template: '', + host: { + '[class]': 'hostClasses()', + '[tabindex]': 'visible() ? tabindex() : -1', + '[attr.aria-labelledby]': 'attrAriaLabelledBy()', + '[id]': 'propId()', + '[attr.role]': 'role()', + '[@.disabled]': '!transition()', + '[@fadeInOut]': 'visible() ? "show" : "hide"', + '(@fadeInOut.done)': 'onAnimationDone($event)' + }, + animations: [ + trigger('fadeInOut', [ + state('show', style({ opacity: 1 })), + state('hide', style({ opacity: 0 })), + state('void', style({ opacity: 1 })), + transition('* => *', [query('@*', [animateChild()], { optional: true }), animate('150ms linear')]) + ]) + ] +}) +export class TabPanelComponent { + readonly tabsService = inject(TabsService); + + /** + * aria-labelledby attribute + * @type string + * @default undefined + */ + readonly ariaLabelledBy: InputSignal = input(undefined, { + alias: 'aria-labelledby' + }); + + /** + * Element id attribute + * @type string + * @default undefined + */ + readonly id: InputSignal = input(); + + /** + * Item key. + * @type string | number + * @required + */ + readonly itemKey: InputSignal = input.required(); + + /** + * Element role. + * @type string + * @default 'tabpanel' + */ + readonly role: InputSignal = input('tabpanel'); + + /** + * tabindex attribute. + * @type number + * @default 0 + */ + readonly tabindex: InputSignalWithTransform = input(0, { transform: numberAttribute }); + + /** + * Enable fade in transition. + * @type boolean + * @default true + */ + readonly transition: InputSignal = input(true); + + /** + * visible change output + * @type OutputEmitterRef + */ + readonly visibleChange: OutputEmitterRef = output(); + + readonly show = signal(false); + + readonly visible = computed(() => { + const visible = this.tabsService.activeItemKey() === this.itemKey() && !this.tabsService.activeItem()?.disabled; + this.visibleChange?.emit({ itemKey: this.itemKey(), visible }); + return visible; + }); + + readonly propId = computed(() => this.id() ?? `${this.tabsService.id()}-panel-${this.itemKey()}`); + + readonly attrAriaLabelledBy = computed( + () => this.ariaLabelledBy() ?? `${this.tabsService.id()}-tab-${this.itemKey()}` + ); + + readonly hostClasses = computed( + () => + ({ + 'tab-pane': true, + active: this.show(), + fade: this.transition(), + show: this.show(), + invisible: this.tabsService.activeItem()?.disabled + }) as Record + ); + + onAnimationDone($event: AnimationEvent): void { + this.show.set(this.visible()); + } +} diff --git a/projects/coreui-angular/src/lib/tabs-2/tab/tab.directive.spec.ts b/projects/coreui-angular/src/lib/tabs-2/tab/tab.directive.spec.ts new file mode 100644 index 00000000..37f93896 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tab/tab.directive.spec.ts @@ -0,0 +1,21 @@ +import { ElementRef } from '@angular/core'; +import { TestBed } from '@angular/core/testing'; +import { TabsService } from '../tabs.service'; +import { TabDirective } from './tab.directive'; + +class MockElementRef extends ElementRef {} + +describe('TabDirective', () => { + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [TabsService, { provide: ElementRef, useClass: MockElementRef }] + }); + }); + + it('should create an instance', () => { + TestBed.runInInjectionContext(() => { + const directive = new TabDirective(); + expect(directive).toBeTruthy(); + }); + }); +}); diff --git a/projects/coreui-angular/src/lib/tabs-2/tab/tab.directive.ts b/projects/coreui-angular/src/lib/tabs-2/tab/tab.directive.ts new file mode 100644 index 00000000..67d2128e --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tab/tab.directive.ts @@ -0,0 +1,136 @@ +import { FocusableOption, FocusOrigin } from '@angular/cdk/a11y'; +import { + booleanAttribute, + computed, + DestroyRef, + Directive, + effect, + ElementRef, + inject, + Injector, + input, + InputSignal, + OnInit, + runInInjectionContext, + signal, + untracked +} from '@angular/core'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { fromEvent, merge, takeWhile } from 'rxjs'; +import { filter, tap } from 'rxjs/operators'; +import { TabsService } from '../tabs.service'; + +@Directive({ + exportAs: 'cTab', + selector: 'button[cTab]', + host: { + '[class]': 'hostClasses()', + type: 'button', + role: 'tab', + '[attr.aria-selected]': 'isActive()', + '[attr.aria-controls]': 'attrAriaControls()', + '[attr.disabled]': 'attrDisabled() || null', + '[id]': 'propId()', + '[tabindex]': 'isActive() ? 0 : -1' + } +}) +export class TabDirective implements FocusableOption, OnInit { + readonly #injector = inject(Injector); + readonly #destroyRef = inject(DestroyRef); + readonly #elementRef = inject(ElementRef); + readonly #tabsService = inject(TabsService); + + /** + * Disabled attribute + * @return boolean + * @default false + */ + readonly disabledInput = input(false, { transform: booleanAttribute, alias: 'disabled' }); + + readonly #disabled = signal(false); + readonly attrDisabled = computed(() => this.#disabled() || null); + + readonly #disabledEffect = effect(() => { + const disabled = this.disabledInput(); + untracked(() => { + this.disabled = disabled; + }); + }); + + set disabled(value: boolean) { + this.#disabled.set(value); + } + + get disabled() { + return this.#disabled(); + } + + /** + * Item key. + * @type string | number + * @required + */ + readonly itemKey: InputSignal = input.required(); + + /** + * Element id attribute + * @type string + * @default undefined + */ + readonly id: InputSignal = input(); + + /** + * aria-controls attribute + * @type string + * @default undefined + */ + readonly ariaControls: InputSignal = input(undefined, { + alias: 'aria-controls' + }); + + readonly isActive = signal(false); + + readonly hostClasses = computed(() => ({ + 'nav-link': true, + active: this.isActive(), + disabled: this.#disabled() + }) as Record); + + readonly propId = computed(() => this.id() ?? `${this.#tabsService.id()}-tab-${this.itemKey()}`); + + readonly attrAriaControls = computed( + () => this.ariaControls() ?? `${this.#tabsService.id()}-panel-${this.itemKey()}` + ); + + readonly #disabledSignalEffect = effect(() => { + const disabled = this.#disabled(); + if (!disabled) { + const click$ = fromEvent(this.#elementRef.nativeElement, 'click'); + const focusIn$ = fromEvent(this.#elementRef.nativeElement, 'focusin'); + + merge(focusIn$, click$) + .pipe( + filter(($event) => !disabled), + tap(($event) => { + this.#tabsService.activeItemKey.set(untracked(this.itemKey)); + }), + takeWhile(() => !disabled), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe(); + } + }); + + focus(origin?: FocusOrigin): void { + this.#elementRef.nativeElement.focus(); + } + + ngOnInit(): void { + runInInjectionContext(this.#injector, () => { + effect(() => { + const isActive = !this.#disabled() && this.#tabsService.activeItemKey() === this.itemKey(); + this.isActive.set(isActive); + }); + }); + } +} diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs-content/tabs-content.component.spec.ts b/projects/coreui-angular/src/lib/tabs-2/tabs-content/tabs-content.component.spec.ts new file mode 100644 index 00000000..8650d7e4 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs-content/tabs-content.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TabsContentComponent } from './tabs-content.component'; + +describe('TabsContentComponent', () => { + let component: TabsContentComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [TabsContentComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TabsContentComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs-content/tabs-content.component.ts b/projects/coreui-angular/src/lib/tabs-2/tabs-content/tabs-content.component.ts new file mode 100644 index 00000000..8bfe589f --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs-content/tabs-content.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + exportAs: 'cTabsContent', + selector: 'c-tabs-content', + template: '', + host: { + class: 'tab-content' + } +}) +export class TabsContentComponent {} diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs-list/tabs-list.component.spec.ts b/projects/coreui-angular/src/lib/tabs-2/tabs-list/tabs-list.component.spec.ts new file mode 100644 index 00000000..b8777568 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs-list/tabs-list.component.spec.ts @@ -0,0 +1,24 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TabsListComponent } from './tabs-list.component'; +import { TabsService } from '../tabs.service'; + +describe('TabsListComponent', () => { + let component: TabsListComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [TabsListComponent], + providers: [TabsService] + }).compileComponents(); + + fixture = TestBed.createComponent(TabsListComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs-list/tabs-list.component.ts b/projects/coreui-angular/src/lib/tabs-2/tabs-list/tabs-list.component.ts new file mode 100644 index 00000000..6896ed18 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs-list/tabs-list.component.ts @@ -0,0 +1,131 @@ +import { FocusKeyManager } from '@angular/cdk/a11y'; +import { + afterEveryRender, + Component, + computed, + contentChildren, + DestroyRef, + effect, + ElementRef, + inject, + input, + InputSignal, + signal, + untracked +} from '@angular/core'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { tap } from 'rxjs/operators'; +import { TabDirective } from '../tab/tab.directive'; +import { TabsService } from '../tabs.service'; +import { RtlService } from '../../services'; + +@Component({ + exportAs: 'cTabsList', + selector: 'c-tabs-list', + template: '', + host: { + '[attr.role]': 'role()', + '[class]': 'hostClasses()', + '(keydown)': 'onKeyDown($event)' + } +}) +export class TabsListComponent { + readonly #destroyRef = inject(DestroyRef); + readonly #elementRef = inject(ElementRef); + readonly tabsService = inject(TabsService); + readonly #rtlService = inject(RtlService); + readonly #isRtl = signal(false); + + constructor() { + afterEveryRender({ + read: () => { + this.#isRtl.set(this.#rtlService.isRTL(this.#elementRef.nativeElement)); + } + }); + } + + /** + * Specify a layout type for component. + * @type 'fill' | 'justified' | undefined + * @default undefined + */ + readonly layout: InputSignal<'fill' | 'justified' | undefined> = input(); + + /** + * Set the variant to tabs, pills or underline. + * @type 'pills' | 'tabs' | 'underline' | 'underline-border' | undefined + * @default undefined + */ + readonly variant: InputSignal<'pills' | 'tabs' | 'underline' | 'underline-border' | undefined> = input(); + + /** + * Set the role to tab list. + * @default 'tablist' + */ + readonly role = input('tablist'); + + readonly hostClasses = computed( + () => + ({ + nav: true, + [`nav-${this.layout()}`]: this.layout(), + [`nav-${this.variant()}`]: this.variant() + }) as Record + ); + + readonly tabs = contentChildren(TabDirective); + #focusKeyManager!: FocusKeyManager; + + readonly #tabsEffect = effect(() => { + const tabs = this.tabs(); + if (tabs.length === 0) { + return; + } + + const isRtl = this.#isRtl(); + + this.#focusKeyManager = new FocusKeyManager(tabs) + .skipPredicate((tab) => tab.disabled === true) + .withHorizontalOrientation(isRtl ? 'rtl' : 'ltr') + .withHomeAndEnd() + .withWrap(); + + this.#focusKeyManager.change + .pipe( + tap((value) => { + this.tabsService.activeItemKey.set(this.#focusKeyManager.activeItem?.itemKey()); + this.tabsService.activeItem.set(this.#focusKeyManager.activeItem); + }), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe(); + + untracked(() => { + setTimeout(() => { + const activeItem = tabs.find((tab) => tab.isActive()) ?? tabs.find((tab) => !tab.disabled); + const activeItemIndex = tabs.findIndex((tab) => tab === activeItem); + this.#focusKeyManager?.updateActiveItem(activeItemIndex < 0 ? 0 : activeItemIndex); + this.tabsService.activeItemKey.set(this.#focusKeyManager.activeItem?.itemKey()); + this.tabsService.activeItem.set(this.#focusKeyManager.activeItem); + }); + }); + }); + + readonly #tabsServiceEffect = effect(() => { + const activeItemIndex = this.tabs().findIndex( + (tab) => untracked(tab.isActive) && untracked(tab.itemKey) === this.tabsService.activeItemKey() + ); + this.#focusKeyManager?.updateActiveItem(activeItemIndex < 0 ? 0 : activeItemIndex); + }); + + onKeyDown($event: any) { + if (['ArrowLeft', 'ArrowRight'].includes($event.key)) { + this.#focusKeyManager.onKeydown($event); + return; + } + if (['Tab'].includes($event.key)) { + this.#focusKeyManager?.tabOut.next(); + } + return; + } +} diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs.component.scss b/projects/coreui-angular/src/lib/tabs-2/tabs.component.scss new file mode 100644 index 00000000..5d4e87f3 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs.component.scss @@ -0,0 +1,3 @@ +:host { + display: block; +} diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs.component.spec.ts b/projects/coreui-angular/src/lib/tabs-2/tabs.component.spec.ts new file mode 100644 index 00000000..91709791 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TabsComponent } from './tabs.component'; + +describe('TabsComponent', () => { + let component: TabsComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [TabsComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TabsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs.component.ts b/projects/coreui-angular/src/lib/tabs-2/tabs.component.ts new file mode 100644 index 00000000..bb501665 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs.component.ts @@ -0,0 +1,42 @@ +import { Component, effect, inject, input, model, ModelSignal } from '@angular/core'; +import { TabsService } from './tabs.service'; + +let nextId = 0; + +@Component({ + exportAs: 'cTabs', + selector: 'c-tabs', + imports: [], + template: '', + styleUrl: './tabs.component.scss', + providers: [TabsService], + host: { + '[id]': 'id()', + class: 'tabs' + } +}) +export class TabsComponent { + readonly tabsService = inject(TabsService); + + /** + * The active item key. + * @type + */ + readonly activeItemKey: ModelSignal = model(); + + /** + * The id attribute + * @type string + */ + tabsId = `tabs-${nextId++}`; + readonly id = input(this.tabsId); + + readonly #activeItemEffect = effect(() => { + this.tabsService.id.set(this.id()); + this.tabsService.activeItemKey.set(this.activeItemKey()); + }); + + readonly #tabsServiceEffect = effect(() => { + this.activeItemKey.set(this.tabsService.activeItemKey()); + }); +} diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs.service.spec.ts b/projects/coreui-angular/src/lib/tabs-2/tabs.service.spec.ts new file mode 100644 index 00000000..dd22bab7 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs.service.spec.ts @@ -0,0 +1,18 @@ +import { TestBed } from '@angular/core/testing'; + +import { TabsService } from './tabs.service'; + +describe('TabsService', () => { + let service: TabsService; + + beforeEach(() => { + TestBed.configureTestingModule({ + providers: [TabsService] + }); + service = TestBed.inject(TabsService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs.service.ts b/projects/coreui-angular/src/lib/tabs-2/tabs.service.ts new file mode 100644 index 00000000..83916e87 --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs.service.ts @@ -0,0 +1,8 @@ +import { Injectable, signal } from '@angular/core'; + +@Injectable() +export class TabsService { + readonly activeItem = signal(undefined); + readonly activeItemKey = signal(undefined); + readonly id = signal(undefined); +} diff --git a/projects/coreui-angular/src/lib/tabs-2/tabs2.module.ts b/projects/coreui-angular/src/lib/tabs-2/tabs2.module.ts new file mode 100644 index 00000000..534e874d --- /dev/null +++ b/projects/coreui-angular/src/lib/tabs-2/tabs2.module.ts @@ -0,0 +1,14 @@ +import { NgModule } from '@angular/core'; +import { TabsService } from './tabs.service'; +import { TabsComponent } from './tabs.component'; +import { TabDirective } from './tab/tab.directive'; +import { TabsListComponent } from './tabs-list/tabs-list.component'; +import { TabsContentComponent } from './tabs-content/tabs-content.component'; +import { TabPanelComponent } from './tab-panel/tab-panel.component'; + +@NgModule({ + imports: [TabsComponent, TabsListComponent, TabDirective, TabsContentComponent, TabPanelComponent], + exports: [TabsComponent, TabsListComponent, TabDirective, TabsContentComponent, TabPanelComponent], + providers: [TabsService] +}) +export class Tabs2Module {} diff --git a/projects/coreui-angular/src/lib/tabs/tab-content-ref.directive.spec.ts b/projects/coreui-angular/src/lib/tabs/tab-content-ref.directive.spec.ts index 2f95f640..c10e66a8 100644 --- a/projects/coreui-angular/src/lib/tabs/tab-content-ref.directive.spec.ts +++ b/projects/coreui-angular/src/lib/tabs/tab-content-ref.directive.spec.ts @@ -1,12 +1,15 @@ import { TabContentRefDirective } from './tab-content-ref.directive'; -import { TabService } from './tab.service'; +import { TestBed } from '@angular/core/testing'; import { ChangeDetectorRef } from '@angular/core'; describe('TabContentRefDirective', () => { - let changeDetectorRef: ChangeDetectorRef; it('should create an instance', () => { - const tabService = new TabService(); - const directive = new TabContentRefDirective(changeDetectorRef, tabService); - expect(directive).toBeTruthy(); + TestBed.configureTestingModule({ + providers: [ChangeDetectorRef] + }); + TestBed.runInInjectionContext(() => { + const directive = new TabContentRefDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/tabs/tab-content-ref.directive.ts b/projects/coreui-angular/src/lib/tabs/tab-content-ref.directive.ts index 03f675fd..95c51265 100644 --- a/projects/coreui-angular/src/lib/tabs/tab-content-ref.directive.ts +++ b/projects/coreui-angular/src/lib/tabs/tab-content-ref.directive.ts @@ -1,33 +1,32 @@ import { + booleanAttribute, ChangeDetectorRef, Directive, HostBinding, HostListener, + inject, Input, + numberAttribute, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { Subscription } from 'rxjs'; import { TabService } from './tab.service'; @Directive({ - selector: '[cTabContent]', - standalone: true + selector: '[cTabContent]' }) export class TabContentRefDirective implements OnChanges, OnDestroy { + readonly #changeDetectorRef = inject(ChangeDetectorRef); + readonly #tabService = inject(TabService); - constructor( - private changeDetectorRef: ChangeDetectorRef, - private tabService: TabService - ) { + constructor() { this.subscribeTabService(); } - static ngAcceptInputType_disabled: BooleanInput; - private tabServiceSubscription!: Subscription; + #tabServiceSubscription!: Subscription; /** * Template Ref @@ -38,42 +37,43 @@ export class TabContentRefDirective implements OnChanges, OnDestroy { /** * Set active state of tab content * @type boolean + * @default false */ - @Input() + @Input({ transform: booleanAttribute }) set active(value: boolean) { - const newValue = coerceBooleanProperty(value); - if (this._active !== newValue) { - this._active = newValue; - this.changeDetectorRef.detectChanges(); + const newValue = value; + if (this.#active !== newValue) { + this.#active = newValue; + this.#changeDetectorRef.detectChanges(); } } get active() { - return this._active; + return this.#active; } - private _active = false; + #active = false; /** * Set disabled state of tab content * @type boolean */ - @Input() + @Input({ transform: booleanAttribute }) set disabled(value: boolean) { - this._disabled = coerceBooleanProperty(value); + this.#disabled = value; } get disabled(): boolean { - return this._disabled || this.tabPaneIdx >= this.tabContentRef?.panes?.length; + return this.#disabled || this.tabPaneIdx >= this.tabContentRef?.panes?.length; } - private _disabled = false; + #disabled = false; /** * c-tab-pane index respectively * @type number */ - @Input() tabPaneIdx = -1; + @Input({ transform: numberAttribute }) tabPaneIdx = -1; @HostBinding('class') get hostClasses() { @@ -91,7 +91,16 @@ export class TabContentRefDirective implements OnChanges, OnDestroy { @HostBinding('attr.disabled') get attrDisabled() { return this.disabled ? '' : null; - }; + } + + @HostBinding('attr.aria-selected') + private get ariaSelected() { + return this.active; + } + + @Input() + @HostBinding('attr.role') + role = 'tab'; @HostBinding('attr.tabindex') get getTabindex(): string | null { @@ -114,7 +123,7 @@ export class TabContentRefDirective implements OnChanges, OnDestroy { setTimeout(() => { if (this.tabPaneIdx < this.tabContentRef.panes.length) { this.active = true; - this.tabService.setActiveTabIdx({ tabContent: this.tabContentRef, activeIdx: this.tabPaneIdx }); + this.#tabService.setActiveTabIdx({ tabContent: this.tabContentRef, activeIdx: this.tabPaneIdx }); } else { this.active = false; } @@ -127,13 +136,13 @@ export class TabContentRefDirective implements OnChanges, OnDestroy { subscribeTabService(subscribe: boolean = true) { if (subscribe) { - this.tabServiceSubscription = this.tabService.activeTabPaneIdx$.subscribe((tabContentState) => { + this.#tabServiceSubscription = this.#tabService.activeTabPaneIdx$.subscribe((tabContentState) => { if (tabContentState.tabContent === this.tabContentRef) { - this.active = (tabContentState.activeIdx === this.tabPaneIdx); + this.active = tabContentState.activeIdx === this.tabPaneIdx; } }); } else { - this.tabServiceSubscription?.unsubscribe(); + this.#tabServiceSubscription?.unsubscribe(); } } } diff --git a/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.spec.ts b/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.spec.ts index 1fdfe45d..1352a201 100644 --- a/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.spec.ts +++ b/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.spec.ts @@ -22,4 +22,8 @@ describe('TabContentComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('tab-content'); + }); }); diff --git a/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.ts b/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.ts index 33339f44..7aab3fcc 100644 --- a/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.ts +++ b/projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.ts @@ -5,16 +5,15 @@ import { ChangeDetectorRef, Component, ContentChildren, - EventEmitter, - HostBinding, + inject, Input, + numberAttribute, OnChanges, OnDestroy, - Output, + output, QueryList, SimpleChanges } from '@angular/core'; -import { coerceNumberProperty } from '@angular/cdk/coercion'; import { Subscription } from 'rxjs'; import { TabPaneComponent } from '../tab-pane/tab-pane.component'; @@ -22,52 +21,44 @@ import { TabService } from '../tab.service'; @Component({ selector: 'c-tab-content', - template: ``, + template: '', styleUrls: ['./tab-content.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cTabContent', - standalone: true + host: { class: 'tab-content' } }) export class TabContentComponent implements AfterContentChecked, AfterContentInit, OnChanges, OnDestroy { + readonly #changeDetectorRef = inject(ChangeDetectorRef); + readonly #tabService = inject(TabService); /** * Set active tabPane index * @type number */ - @Input() + @Input({ transform: numberAttribute }) set activeTabPaneIdx(value: number) { - const newValue = coerceNumberProperty(value); - if (this._activeTabPaneIdx != newValue) { - this._activeTabPaneIdx = newValue; - this.activeTabPaneIdxChange.emit(newValue); - this.changeDetectorRef.markForCheck(); - this.changeDetectorRef.detectChanges(); + const newValue = value; + if (this.#activeTabPaneIdx != newValue) { + this.#activeTabPaneIdx = newValue; + this.activeTabPaneIdxChange?.emit(newValue); + this.#changeDetectorRef.markForCheck(); + this.#changeDetectorRef.detectChanges(); } - }; + } + get activeTabPaneIdx() { - return this._activeTabPaneIdx; + return this.#activeTabPaneIdx; } - private _activeTabPaneIdx = -1; + + #activeTabPaneIdx = -1; /** * Event emitted on the active tab pane index change. */ - @Output() activeTabPaneIdxChange: EventEmitter = new EventEmitter(); + readonly activeTabPaneIdxChange = output(); @ContentChildren(TabPaneComponent) public panes!: QueryList; - private tabServiceSubscription!: Subscription; - - constructor( - private changeDetectorRef: ChangeDetectorRef, - private tabService: TabService - ) { } - - @HostBinding('class') - get hostClasses() { - return { - 'tab-content': true - }; - } + #tabServiceSubscription!: Subscription; ngAfterContentInit(): void { this.subscribeTabService(); @@ -76,15 +67,15 @@ export class TabContentComponent implements AfterContentChecked, AfterContentIni ngAfterContentChecked(): void { this.panes?.forEach((tabPane, index) => { tabPane.tabContent = this; - tabPane.tabPaneIdx = index; + tabPane.tabPaneIdx = index; }); this.refreshTabPaneActive(this.activeTabPaneIdx); - this.tabService.setActiveTabIdx({ tabContent: this, activeIdx: this.activeTabPaneIdx }); + this.#tabService.setActiveTabIdx({ tabContent: this, activeIdx: this.activeTabPaneIdx }); } ngOnChanges(changes: SimpleChanges): void { if (changes['activeTabPaneIdx']?.currentValue) { - this.tabService.setActiveTabIdx({ tabContent: this, activeIdx: changes['activeTabPaneIdx'].currentValue }); + this.#tabService.setActiveTabIdx({ tabContent: this, activeIdx: changes['activeTabPaneIdx'].currentValue }); } } @@ -94,13 +85,13 @@ export class TabContentComponent implements AfterContentChecked, AfterContentIni subscribeTabService(subscribe: boolean = true) { if (subscribe) { - this.tabServiceSubscription = this.tabService.activeTabPaneIdx$.subscribe((tabContentState) => { + this.#tabServiceSubscription = this.#tabService.activeTabPaneIdx$.subscribe((tabContentState) => { if (this === tabContentState.tabContent) { this.activeTabPaneIdx = tabContentState.activeIdx; } }); } else { - this.tabServiceSubscription?.unsubscribe(); + this.#tabServiceSubscription?.unsubscribe(); } } diff --git a/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.spec.ts b/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.spec.ts index 29ba83b6..51b92fb2 100644 --- a/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.spec.ts +++ b/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.spec.ts @@ -22,4 +22,9 @@ describe('TabPaneComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('tab-pane'); + expect(fixture.nativeElement).toHaveClass('fade'); + }); }); diff --git a/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.ts b/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.ts index 1c2347f8..62497581 100644 --- a/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.ts +++ b/projects/coreui-angular/src/lib/tabs/tab-pane/tab-pane.component.ts @@ -1,5 +1,4 @@ -import { ChangeDetectorRef, Component, HostBinding, OnDestroy } from '@angular/core'; -import { coerceBooleanProperty } from '@angular/cdk/coercion'; +import { booleanAttribute, ChangeDetectorRef, Component, HostBinding, inject, Input, OnDestroy } from '@angular/core'; import { Subscription } from 'rxjs'; import { TabContentComponent } from '../tab-content/tab-content.component'; @@ -7,38 +6,36 @@ import { ITabContentState, TabService } from '../tab.service'; @Component({ selector: 'c-tab-pane', - template: ` - `, + template: '', styleUrls: ['./tab-pane.component.scss'], exportAs: 'cTabPane', - standalone: true + host: { class: 'tab-pane' } }) export class TabPaneComponent implements OnDestroy { + readonly #changeDetectorRef = inject(ChangeDetectorRef); + readonly #tabService = inject(TabService); - constructor( - private changeDetectorRef: ChangeDetectorRef, - private tabService: TabService - ) { + constructor() { this.subscribeTabService(); } public tabPaneIdx!: number; public tabContent!: TabContentComponent; - private tabServiceSubscription!: Subscription; + #tabServiceSubscription!: Subscription; set active(value: boolean) { - const newValue = coerceBooleanProperty(value); - if (this._active !== newValue) { - this._active = newValue; - this.changeDetectorRef.markForCheck(); + const newValue = booleanAttribute(value); + if (this.#active !== newValue) { + this.#active = newValue; + this.#changeDetectorRef.markForCheck(); } } get active(): boolean { - return this._active; + return this.#active; } - private _active: boolean = false; + #active: boolean = false; @HostBinding('class') get hostClasses() { @@ -50,19 +47,25 @@ export class TabPaneComponent implements OnDestroy { }; } + @Input() + @HostBinding('attr.role') + role = 'tabpanel'; + ngOnDestroy(): void { this.subscribeTabService(false); } subscribeTabService(subscribe: boolean = true) { if (subscribe) { - this.tabServiceSubscription = this.tabService.activeTabPaneIdx$.subscribe((tabContentState: ITabContentState) => { - if (tabContentState.tabContent === this.tabContent) { - this.active = (tabContentState.activeIdx === this.tabPaneIdx); + this.#tabServiceSubscription = this.#tabService.activeTabPaneIdx$.subscribe( + (tabContentState: ITabContentState) => { + if (tabContentState.tabContent === this.tabContent) { + this.active = tabContentState.activeIdx === this.tabPaneIdx; + } } - }); + ); } else { - this.tabServiceSubscription?.unsubscribe(); + this.#tabServiceSubscription?.unsubscribe(); } } } diff --git a/projects/coreui-angular/src/lib/tabs/tab.service.ts b/projects/coreui-angular/src/lib/tabs/tab.service.ts index 0a7aefad..ac54ef3e 100644 --- a/projects/coreui-angular/src/lib/tabs/tab.service.ts +++ b/projects/coreui-angular/src/lib/tabs/tab.service.ts @@ -3,20 +3,17 @@ import { Subject } from 'rxjs'; import { TabContentComponent } from './tab-content/tab-content.component'; export interface ITabContentState { - activeIdx: number, - tabContent: TabContentComponent + activeIdx: number; + tabContent: TabContentComponent; } @Injectable({ providedIn: 'root' }) export class TabService { - private activeTabPaneIdx = new Subject(); activeTabPaneIdx$ = this.activeTabPaneIdx.asObservable(); - constructor() { } - setActiveTabIdx(tabContentState: ITabContentState) { this.activeTabPaneIdx.next(tabContentState); } diff --git a/projects/coreui-angular/src/lib/toast/public_api.ts b/projects/coreui-angular/src/lib/toast/public_api.ts index 6f166129..05241244 100644 --- a/projects/coreui-angular/src/lib/toast/public_api.ts +++ b/projects/coreui-angular/src/lib/toast/public_api.ts @@ -1,7 +1,7 @@ export { ToastComponent } from './toast/toast.component'; export { ToastBodyComponent } from './toast-body/toast-body.component'; export { ToastHeaderComponent } from './toast-header/toast-header.component'; -export { ToasterComponent, TToasterPlacement, ToasterPlacement } from './toaster/toaster.component'; +export { ToasterComponent, type TToasterPlacement, ToasterPlacement } from './toaster/toaster.component'; export { ToasterService } from './toaster/toaster.service'; export { ToasterHostDirective } from './toaster/toaster-host.directive'; export { ToastCloseDirective } from './toast-close.directive'; diff --git a/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.spec.ts b/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.spec.ts index ee5ca819..c04a65ee 100644 --- a/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.spec.ts +++ b/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.spec.ts @@ -22,4 +22,8 @@ describe('ToastBodyComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('toast-body'); + }); }); diff --git a/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.ts b/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.ts index f0e14083..1e1f3166 100644 --- a/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.ts +++ b/projects/coreui-angular/src/lib/toast/toast-body/toast-body.component.ts @@ -1,19 +1,16 @@ -import { Component, HostBinding, Optional } from '@angular/core'; +import { Component, inject } from '@angular/core'; import { ToastComponent } from '../toast/toast.component'; @Component({ selector: 'c-toast-body', - template: '', + template: '', styleUrls: ['./toast-body.component.scss'], exportAs: 'cToastBody', - standalone: true + host: { + class: 'toast-body', + } }) export class ToastBodyComponent { - - @HostBinding('class.toast-body') toastBodyClass = true; - - constructor( - @Optional() public toast?: ToastComponent - ) { } + readonly toast? = inject(ToastComponent, { optional: true }); } diff --git a/projects/coreui-angular/src/lib/toast/toast-close.directive.spec.ts b/projects/coreui-angular/src/lib/toast/toast-close.directive.spec.ts index 0fe99ef3..879ba91a 100644 --- a/projects/coreui-angular/src/lib/toast/toast-close.directive.spec.ts +++ b/projects/coreui-angular/src/lib/toast/toast-close.directive.spec.ts @@ -8,13 +8,13 @@ describe('ToastCloseDirective', () => { await TestBed.configureTestingModule({ providers: [ToasterService], imports: [ToastModule] - }) - .compileComponents(); + }).compileComponents(); }); it('should create an instance', () => { - const service = new ToasterService(); - const directive = new ToastCloseDirective(service); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ToastCloseDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/toast/toast-close.directive.ts b/projects/coreui-angular/src/lib/toast/toast-close.directive.ts index e7bfd222..16ba62e6 100644 --- a/projects/coreui-angular/src/lib/toast/toast-close.directive.ts +++ b/projects/coreui-angular/src/lib/toast/toast-close.directive.ts @@ -1,21 +1,21 @@ -import { Directive, HostListener, Input } from '@angular/core'; +import { Directive, inject, input } from '@angular/core'; import { ToasterService } from './toaster/toaster.service'; +import type { ToastComponent } from './toast/toast.component'; @Directive({ selector: '[cToastClose]', exportAs: 'cToastClose', - standalone: true + host: { + '(click)': 'toggleOpen($event)' + } }) export class ToastCloseDirective { + readonly #toasterService = inject(ToasterService); - @Input('cToastClose') toast: any; - - constructor(private toasterService: ToasterService) { } + readonly cToastClose = input(); - @HostListener('click', ['$event']) - toggleOpen($event: any): void { + toggleOpen($event: MouseEvent): void { $event.preventDefault(); - this.toasterService.setState({ show: false, toast: this.toast }); + this.#toasterService.setState({ show: false, toast: this.cToastClose() }); } - } diff --git a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.html b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.html index c49175ee..c18e0458 100644 --- a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.html +++ b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.html @@ -1,4 +1,6 @@ - - + + @if (closeButton()) { + + } diff --git a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.scss b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.spec.ts b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.spec.ts index 580c5875..cc1ae0a2 100644 --- a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.spec.ts +++ b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.spec.ts @@ -23,4 +23,8 @@ describe('ToastHeaderComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('toast-header'); + }); }); diff --git a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.ts b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.ts index fe2ee271..6addf3a8 100644 --- a/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.ts +++ b/projects/coreui-angular/src/lib/toast/toast-header/toast-header.component.ts @@ -1,5 +1,4 @@ -import { Component, HostBinding, Input, Optional } from '@angular/core'; -import { NgIf } from '@angular/common'; +import { Component, inject, input, signal } from '@angular/core'; import { ButtonCloseDirective } from '../../button'; import { ToastComponent } from '../toast/toast.component'; @@ -9,21 +8,19 @@ import { ToastCloseDirective } from '../toast-close.directive'; selector: 'c-toast-header', templateUrl: './toast-header.component.html', exportAs: 'cToastHeader', - standalone: true, - imports: [ToastCloseDirective, ButtonCloseDirective, NgIf] + imports: [ToastCloseDirective, ButtonCloseDirective], + host: { + class: 'toast-header' + } }) export class ToastHeaderComponent { + readonly #toast = inject(ToastComponent, { optional: true }); + + readonly toast = signal(this.#toast ?? undefined); /** * Add close button to a toast header - * @type boolean + * @return boolean */ - @Input() closeButton = true; - - @HostBinding('class.toast-header') toastHeaderClass = true; - - constructor( - @Optional() public toast?: ToastComponent - ) { } - + readonly closeButton = input(true); } diff --git a/projects/coreui-angular/src/lib/toast/toast/toast.component.spec.ts b/projects/coreui-angular/src/lib/toast/toast/toast.component.spec.ts index d9924a4b..693727f7 100644 --- a/projects/coreui-angular/src/lib/toast/toast/toast.component.spec.ts +++ b/projects/coreui-angular/src/lib/toast/toast/toast.component.spec.ts @@ -24,4 +24,9 @@ describe('ToastComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('toast'); + expect(fixture.nativeElement).toHaveClass('show'); + }); }); diff --git a/projects/coreui-angular/src/lib/toast/toast/toast.component.ts b/projects/coreui-angular/src/lib/toast/toast/toast.component.ts index 0707286a..2377174c 100644 --- a/projects/coreui-angular/src/lib/toast/toast/toast.component.ts +++ b/projects/coreui-angular/src/lib/toast/toast/toast.component.ts @@ -1,40 +1,38 @@ import { + booleanAttribute, ChangeDetectorRef, Component, + computed, + effect, ElementRef, - EventEmitter, - HostBinding, - HostListener, - Input, + inject, + input, + numberAttribute, OnDestroy, OnInit, - Output, + output, Renderer2 } from '@angular/core'; import { animate, state, style, transition, trigger } from '@angular/animations'; -import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { Colors } from '../../coreui.types'; import { ToasterService } from '../toaster/toaster.service'; import { TToasterPlacement } from '../toaster/toaster.component'; -type AnimateType = ('hide' | 'show'); +type AnimateType = 'hide' | 'show'; @Component({ selector: 'c-toast', - template: '', + template: '', styleUrls: ['./toast.component.scss'], exportAs: 'cToast', - standalone: true, animations: [ trigger('fadeInOut', [ state('show', style({ opacity: 1, height: '*', padding: '*', border: '*', margin: '*' })), state('hide', style({ opacity: 0, height: 0, padding: 0, border: 0, margin: 0 })), state('void', style({ opacity: 0, height: 0, padding: 0, border: 0, margin: 0 })), - transition('show => hide', [ - animate('{{ time }} {{ easing }}') - ], { + transition('show => hide', [animate('{{ time }} {{ easing }}')], { params: { time: '300ms', easing: 'ease-out' } }), transition('hide => show', [animate('{{ time }} {{ easing }}')], { @@ -47,87 +45,99 @@ type AnimateType = ('hide' | 'show'); params: { time: '300ms', easing: 'ease-in' } }) ]) - ] + ], + host: { + class: 'toast show', + '[class]': 'hostClasses()', + '(mouseover)': 'clearTimer()', + '(mouseout)': 'setTimer()', + '[@fadeInOut]': 'animateType', + '[@.disabled]': 'animationDisabled()' + } }) export class ToastComponent implements OnInit, OnDestroy { + readonly changeDetectorRef = inject(ChangeDetectorRef); + readonly hostElement = inject(ElementRef); + readonly renderer = inject(Renderer2); + readonly toasterService = inject(ToasterService); - static ngAcceptInputType_visible: BooleanInput; - - public dynamic!: boolean; - public placement!: TToasterPlacement; + readonly dynamic = input(); + readonly placementInput = input(undefined, { alias: 'placement' }); - constructor( - public hostElement: ElementRef, - public renderer: Renderer2, - public toasterService: ToasterService, - public changeDetectorRef: ChangeDetectorRef - ) {} + get placement() { + return this.placementInput(); + } /** * Auto hide the toast. - * @type boolean + * @return boolean */ - @Input() autohide = true; + readonly autohide = input(true); /** * Sets the color context of the component to one of CoreUI’s themed colors. - * @type Colors + * @return Colors */ - @Input() color?: Colors = ''; + readonly color = input(''); /** * Delay hiding the toast (ms). - * @type number + * @return number */ - @Input() delay = 5000; + readonly delay = input(5000, { transform: numberAttribute }); /** * Apply fade transition to the toast. - * @type boolean + * @return boolean */ - @Input() fade = true; + readonly fade = input(true); /** * Toggle the visibility of component. - * @type boolean + * @return boolean */ - @Input() + readonly visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' }); + + readonly #visibleInputEffect = effect(() => { + this.visible = this.visibleInput(); + }); + set visible(value: boolean) { - const newValue = coerceBooleanProperty(value); - if (this._visible !== newValue) { - this._visible = newValue; + const newValue = value; + if (this.#visible !== newValue) { + this.#visible = newValue; newValue ? this.setTimer() : this.clearTimer(); - this.visibleChange.emit(newValue); + this.visibleChange?.emit(newValue); this.changeDetectorRef.markForCheck(); } } get visible() { - return this._visible; + return this.#visible; } - private _visible = false; + #visible = false; /** * @ignore */ - @Input() index?: number; + readonly index = input(0, { transform: numberAttribute }); /** * Event emitted on visibility change. [docs] - * @type boolean + * @return */ - @Output() visibleChange = new EventEmitter(); + readonly visibleChange = output(); /** * Event emitted on timer tick. [docs] - * @type number + * @return number */ - @Output() timer: EventEmitter = new EventEmitter(); + readonly timer = output(); - private timerId: any; - private clockId: any; - private clockTimerId: any; + private timerId: ReturnType | undefined; + private clockId: ReturnType | undefined; + private clockTimerId: ReturnType | undefined; private _clock!: number; @@ -137,37 +147,27 @@ export class ToastComponent implements OnInit, OnDestroy { set clock(value) { this._clock = value; - this.timer.emit(this._clock); + this.timer?.emit(this._clock); this.changeDetectorRef.markForCheck(); } - @HostBinding('@.disabled') - get animationDisabled(): boolean { - return !this.fade; - } + readonly animationDisabled = computed(() => { + return !this.fade(); + }); - @HostBinding('@fadeInOut') get animateType(): AnimateType { return this.visible ? 'show' : 'hide'; } - @HostListener('mouseover') onMouseOver(): void { - this.clearTimer(); - } - - @HostListener('mouseout') onMouseOut(): void { - this.setTimer(); - } - - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const color = this.color(); return { toast: true, show: true, - [`bg-${this.color}`]: !!this.color, - 'border-0': !!this.color - }; - } + [`bg-${color}`]: !!color, + 'border-0': !!color + } as Record; + }); ngOnInit(): void { if (this.visible) { @@ -187,8 +187,8 @@ export class ToastComponent implements OnInit, OnDestroy { setTimer(): void { this.clearTimer(); - if (this.autohide && this.visible) { - this.timerId = this.delay > 0 ? setTimeout(() => this.onClose(), this.delay) : null; + if (this.autohide() && this.visible) { + this.timerId = this.delay() > 0 ? setTimeout(() => this.onClose(), this.delay()) : undefined; this.setClock(); } } @@ -196,7 +196,7 @@ export class ToastComponent implements OnInit, OnDestroy { clearTimer(): void { this.clearClock(); clearTimeout(this.timerId); - this.timerId = null; + this.timerId = undefined; } onClose(): void { @@ -217,12 +217,12 @@ export class ToastComponent implements OnInit, OnDestroy { }, 1000); this.clockTimerId = setTimeout(() => { this.clearClock(); - }, this.delay); + }, this.delay()); } clearClock(): void { clearTimeout(this.clockTimerId); clearInterval(this.clockId); - this.clockId = null; + this.clockId = undefined; } } diff --git a/projects/coreui-angular/src/lib/toast/toaster/toaster-host.directive.spec.ts b/projects/coreui-angular/src/lib/toast/toaster/toaster-host.directive.spec.ts index d26d2aaa..b74019e3 100644 --- a/projects/coreui-angular/src/lib/toast/toaster/toaster-host.directive.spec.ts +++ b/projects/coreui-angular/src/lib/toast/toaster/toaster-host.directive.spec.ts @@ -3,9 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ToasterHostDirective } from './toaster-host.directive'; @Component({ - template: ` -
      `, - standalone: true, + template: `
      `, imports: [ToasterHostDirective] }) class TestComponent {} @@ -13,18 +11,20 @@ class TestComponent {} describe('ToasterHostDirective', () => { let component: TestComponent; let fixture: ComponentFixture; - let containerRef: ViewContainerRef; beforeEach(() => { TestBed.configureTestingModule({ - imports: [TestComponent, ToasterHostDirective] + imports: [TestComponent, ToasterHostDirective], + providers: [ViewContainerRef] }); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; }); it('should create an instance', () => { - const directive = new ToasterHostDirective(containerRef); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new ToasterHostDirective(); + expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/toast/toaster/toaster-host.directive.ts b/projects/coreui-angular/src/lib/toast/toaster/toaster-host.directive.ts index 3c761360..a28e0439 100644 --- a/projects/coreui-angular/src/lib/toast/toaster/toaster-host.directive.ts +++ b/projects/coreui-angular/src/lib/toast/toaster/toaster-host.directive.ts @@ -1,13 +1,9 @@ -import { Directive, ViewContainerRef } from '@angular/core'; +import { Directive, inject, ViewContainerRef } from '@angular/core'; @Directive({ selector: '[cToasterHost]', - exportAs: 'cToasterHost', - standalone: true + exportAs: 'cToasterHost' }) export class ToasterHostDirective { - - constructor( - public viewContainerRef: ViewContainerRef - ) { } + readonly viewContainerRef = inject(ViewContainerRef); } diff --git a/projects/coreui-angular/src/lib/toast/toaster/toaster.component.html b/projects/coreui-angular/src/lib/toast/toaster/toaster.component.html index 30f07ef9..252bfa13 100644 --- a/projects/coreui-angular/src/lib/toast/toaster/toaster.component.html +++ b/projects/coreui-angular/src/lib/toast/toaster/toaster.component.html @@ -1,2 +1,2 @@ - - + + diff --git a/projects/coreui-angular/src/lib/toast/toaster/toaster.component.spec.ts b/projects/coreui-angular/src/lib/toast/toaster/toaster.component.spec.ts index fab7534c..76a044cc 100644 --- a/projects/coreui-angular/src/lib/toast/toaster/toaster.component.spec.ts +++ b/projects/coreui-angular/src/lib/toast/toaster/toaster.component.spec.ts @@ -23,4 +23,9 @@ describe('ToasterComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('toaster'); + expect(fixture.nativeElement).toHaveClass('toast-container'); + }); }); diff --git a/projects/coreui-angular/src/lib/toast/toaster/toaster.component.ts b/projects/coreui-angular/src/lib/toast/toaster/toaster.component.ts index f029bc98..1822c702 100644 --- a/projects/coreui-angular/src/lib/toast/toaster/toaster.component.ts +++ b/projects/coreui-angular/src/lib/toast/toaster/toaster.component.ts @@ -1,19 +1,17 @@ import { - AfterContentChecked, Component, ComponentRef, - ContentChildren, + computed, + contentChildren, DestroyRef, ElementRef, - HostBinding, inject, Injector, - Input, + input, NgModuleRef, OnInit, - QueryList, Renderer2, - ViewChild, + viewChild, ViewContainerRef } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; @@ -32,7 +30,7 @@ export enum ToasterPlacement { MiddleEnd = 'middle-end', BottomStart = 'bottom-start', BottomCenter = 'bottom-center', - BottomEnd = 'bottom-end', + BottomEnd = 'bottom-end' } export type TToasterPlacement = @@ -52,114 +50,113 @@ export type TToasterPlacement = selector: 'c-toaster', templateUrl: './toaster.component.html', exportAs: 'cToaster', - standalone: true, - imports: [ToasterHostDirective] + imports: [ToasterHostDirective], + host: { + class: 'toaster toast-container', + '[class]': 'hostClasses()' + } }) -export class ToasterComponent implements OnInit, AfterContentChecked { - +export class ToasterComponent implements OnInit { + readonly #hostElement = inject(ElementRef); + readonly #renderer = inject(Renderer2); + readonly #toasterService = inject(ToasterService); readonly #destroyRef = inject(DestroyRef); - constructor( - private hostElement: ElementRef, - private renderer: Renderer2, - private toasterService: ToasterService - ) { } - placements = Object.values(ToasterPlacement); - toasts!: QueryList; - toastsDynamic: any[] = []; + toastsDynamic: ComponentRef[] = []; /** * Toaster placement - * @type TToasterPlacement + * @return TToasterPlacement */ - @Input() placement: TToasterPlacement = ToasterPlacement.TopEnd; + readonly placementInput = input(ToasterPlacement.TopEnd, { alias: 'placement' }); + + get placement() { + return this.placementInput(); + } /** * Toaster position - * @type (string | 'absolute' | 'fixed' | 'static') + * @return (string | 'absolute' | 'fixed' | 'static') */ - @Input() position: (string | 'absolute' | 'fixed' | 'static') = 'absolute'; + readonly position = input('absolute'); - @ViewChild(ToasterHostDirective, { static: true }) toasterHost!: ToasterHostDirective; - @ContentChildren(ToastComponent, { read: ViewContainerRef }) contentToasts!: QueryList; + readonly toasterHost = viewChild.required(ToasterHostDirective); + readonly contentToasts = contentChildren(ToastComponent, { read: ViewContainerRef }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const placement = this.placement; + const position = this.position(); return { toaster: true, 'toast-container': true, - [`position-${this.position}`]: !!this.position, - 'top-0': this.placement.includes('top'), - 'top-50': this.placement.includes('middle'), - 'bottom-0': this.placement.includes('bottom'), - 'start-0': this.placement.includes('start'), - 'start-50': this.placement.includes('center'), - 'end-0': this.placement.includes('end'), - 'translate-middle-x': this.placement.includes('center') && !this.placement.includes('middle'), - 'translate-middle-y': this.placement.includes('middle') && !this.placement.includes('center'), - 'translate-middle': this.placement.includes('middle') && this.placement.includes('center') - }; - } + [`position-${position}`]: !!position, + 'top-0': placement.includes('top'), + 'top-50': placement.includes('middle'), + 'bottom-0': placement.includes('bottom'), + 'start-0': placement.includes('start'), + 'start-50': placement.includes('center'), + 'end-0': placement.includes('end'), + 'translate-middle-x': placement.includes('center') && !placement.includes('middle'), + 'translate-middle-y': placement.includes('middle') && !placement.includes('center'), + 'translate-middle': placement.includes('middle') && placement.includes('center') + } as Record; + }); ngOnInit(): void { this.stateToasterSubscribe(); } - ngAfterContentChecked(): void { - this.toasts = this.contentToasts; - } - - public addToast(toast: any, props: any, options?: { - index?: number; - injector?: Injector; - ngModuleRef?: NgModuleRef; - projectableNodes?: Node[][]; - }): ComponentRef { - const componentRef: ComponentRef = this.toasterHost.viewContainerRef.createComponent(toast, options); + public addToast( + toast: any, + props: any, + options?: { + index?: number; + injector?: Injector; + ngModuleRef?: NgModuleRef; + projectableNodes?: Node[][]; + } + ): ComponentRef { + const componentRef: ComponentRef = this.toasterHost().viewContainerRef.createComponent(toast, options); this.toastsDynamic.push(componentRef); const index = this.toastsDynamic.indexOf(componentRef); for (const [key, value] of Object.entries(props)) { - componentRef.instance[key] = value; + componentRef.setInput(key, value); } - componentRef.instance['placement'] = this.placement; - componentRef.instance['dynamic'] = true; - componentRef.instance['index'] = index; - componentRef.instance['visible'] = true; - componentRef.instance['visibleChange'].emit(true); + componentRef.setInput('placement', this.placement); + componentRef.setInput('dynamic', true); + componentRef.setInput('index', index); + componentRef.setInput('visible', true); + componentRef.instance['visibleChange']?.emit(true); componentRef.changeDetectorRef?.detectChanges(); return componentRef; } public removeToast(state: IToasterAction): void { - this.toastsDynamic?.forEach(item => { - if (state.toast?.dynamic && (item.instance === state.toast)) { - item.instance.visible = false; + this.toastsDynamic?.forEach((item) => { + if (state.toast?.dynamic() && item.instance === state.toast) { + item.setInput('visible', false); item.instance['visibleChange'].emit(false); item.destroy(); } }); - - this.toasts?.forEach(item => { - if (state.toast && (item.element.nativeElement === state.toast.hostElement.nativeElement)) { - if (!state.toast.dynamic) { - state.toast.visible = false; + this.contentToasts()?.forEach((item) => { + if (state.toast && item.element.nativeElement === state.toast.hostElement.nativeElement) { + if (!state.toast.dynamic()) { + state.toast['visible'] = false; } } }); } private stateToasterSubscribe(): void { - this.toasterService.toasterState$ - .pipe( - takeUntilDestroyed(this.#destroyRef) - ) - .subscribe((state) => { - if (state.show === false) { - this.removeToast(state); - } - if (state.show === true && state.toast?.dynamic === undefined) { - } - }); + this.#toasterService.toasterState$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe((state) => { + if (state.show === false) { + this.removeToast(state); + } + // if (state.show === true && state.toast?.dynamic() === undefined) { + // /* empty */ + // } + }); } } diff --git a/projects/coreui-angular/src/lib/toast/toaster/toaster.service.ts b/projects/coreui-angular/src/lib/toast/toaster/toaster.service.ts index ff4de885..ba21f320 100644 --- a/projects/coreui-angular/src/lib/toast/toaster/toaster.service.ts +++ b/projects/coreui-angular/src/lib/toast/toaster/toaster.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import { TToasterPlacement } from './toaster.component'; -import { ToastComponent } from '../toast/toast.component'; +import { type ToastComponent } from '../toast/toast.component'; export interface IToasterAction { placement?: TToasterPlacement; @@ -14,13 +14,10 @@ export interface IToasterAction { providedIn: 'root' }) export class ToasterService { - - private toasterState = new BehaviorSubject({}); - toasterState$ = this.toasterState.asObservable(); - - constructor() {} + readonly #toasterState = new BehaviorSubject({}); + readonly toasterState$ = this.#toasterState.asObservable(); setState(state: IToasterAction): void { - this.toasterState.next({ ...state }); + this.#toasterState.next({ ...state }); } } diff --git a/projects/coreui-angular/src/lib/tooltip/tooltip.directive.spec.ts b/projects/coreui-angular/src/lib/tooltip/tooltip.directive.spec.ts index 58157ee1..cc59962f 100644 --- a/projects/coreui-angular/src/lib/tooltip/tooltip.directive.spec.ts +++ b/projects/coreui-angular/src/lib/tooltip/tooltip.directive.spec.ts @@ -1,26 +1,97 @@ -import { ChangeDetectorRef, ElementRef, Renderer2, ViewContainerRef } from '@angular/core'; -import { IntersectionService, ListenersService } from '../services'; +import { + ChangeDetectorRef, + Component, + ComponentRef, + DebugElement, + DOCUMENT, + ElementRef, + Renderer2, + ViewContainerRef +} from '@angular/core'; +import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; import { TooltipDirective } from './tooltip.directive'; +import { Triggers } from '../coreui.types'; +import { ListenersService } from '../services'; + +@Component({ + template: '', + imports: [TooltipDirective] +}) +export class TestComponent { + content = 'Test'; + visible = false; + trigger: Triggers[] = ['hover', 'click']; +} + +class MockElementRef extends ElementRef {} describe('TooltipDirective', () => { + let component: TestComponent; + let componentRef: ComponentRef; + let fixture: ComponentFixture; + let debugElement: DebugElement; let document: Document; - let renderer: Renderer2; - let hostElement: ElementRef; - let viewContainerRef: ViewContainerRef; - let changeDetectorRef: ChangeDetectorRef; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent], + providers: [ + // IntersectionService, + Renderer2, + ListenersService, + { provide: ElementRef, useClass: MockElementRef }, + ViewContainerRef, + ChangeDetectorRef + ] + }).compileComponents(); + document = TestBed.inject(DOCUMENT); + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(TooltipDirective)); + fixture.autoDetectChanges(); + }); it('should create an instance', () => { - const listenersService = new ListenersService(renderer); - const intersectionService = new IntersectionService(); - const directive = new TooltipDirective( - document, - renderer, - hostElement, - viewContainerRef, - listenersService, - changeDetectorRef, - intersectionService - ); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new TooltipDirective(); + expect(directive).toBeTruthy(); + }); }); + + it('should have css classes', fakeAsync(() => { + expect(document.querySelector('.tooltip.show')).toBeNull(); + component.visible = true; + fixture.detectChanges(); + tick(500); + expect(document.querySelector('.tooltip.show')).toBeTruthy(); + component.visible = false; + fixture.detectChanges(); + tick(500); + expect(document.querySelector('.tooltip.show')).toBeNull(); + })); + + it('should set popover on and off', fakeAsync(() => { + fixture.autoDetectChanges(); + component.visible = false; + expect(document.querySelector('.tooltip.show')).toBeNull(); + debugElement.nativeElement.dispatchEvent(new Event('mouseenter')); + tick(500); + expect(document.querySelector('.tooltip.show')).toBeTruthy(); + debugElement.nativeElement.dispatchEvent(new Event('mouseleave')); + tick(500); + expect(document.querySelector('.tooltip.show')).toBeNull(); + })); + + it('should toggle popover', fakeAsync(() => { + fixture.autoDetectChanges(); + component.visible = false; + expect(document.querySelector('.tooltip.show')).toBeNull(); + debugElement.nativeElement.dispatchEvent(new Event('click')); + tick(500); + expect(document.querySelector('.tooltip.show')).toBeTruthy(); + debugElement.nativeElement.dispatchEvent(new Event('click')); + tick(500); + expect(document.querySelector('.tooltip.show')).toBeNull(); + })); }); diff --git a/projects/coreui-angular/src/lib/tooltip/tooltip.directive.ts b/projects/coreui-angular/src/lib/tooltip/tooltip.directive.ts index 8ba7752a..bd22e514 100644 --- a/projects/coreui-angular/src/lib/tooltip/tooltip.directive.ts +++ b/projects/coreui-angular/src/lib/tooltip/tooltip.directive.ts @@ -2,81 +2,109 @@ import { AfterViewInit, ChangeDetectorRef, ComponentRef, + computed, + DestroyRef, Directive, + DOCUMENT, + effect, ElementRef, - HostBinding, - Inject, - Input, - OnChanges, + inject, + input, + model, OnDestroy, OnInit, Renderer2, - SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { Subscription } from 'rxjs'; -import { debounceTime } from 'rxjs/operators'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { debounceTime, filter, finalize } from 'rxjs/operators'; import { createPopper, Instance, Options } from '@popperjs/core'; import { Triggers } from '../coreui.types'; +import { IListenersConfig, IntersectionService, ListenersService } from '../services'; +import { ElementRefDirective } from '../shared'; import { TooltipComponent } from './tooltip/tooltip.component'; -import { IListenersConfig, ListenersService } from '../services/listeners.service'; -import { IntersectionService } from '../services'; @Directive({ selector: '[cTooltip]', exportAs: 'cTooltip', providers: [ListenersService, IntersectionService], - standalone: true + host: { '[attr.aria-describedby]': 'ariaDescribedBy' } }) -export class TooltipDirective implements OnChanges, OnDestroy, OnInit, AfterViewInit { +export class TooltipDirective implements OnDestroy, OnInit, AfterViewInit { + readonly #renderer = inject(Renderer2); + readonly #hostElement = inject(ElementRef); + readonly #viewContainerRef = inject(ViewContainerRef); + readonly #listenersService = inject(ListenersService); + readonly #changeDetectorRef = inject(ChangeDetectorRef); + readonly #intersectionService = inject(IntersectionService); + readonly #destroyRef = inject(DestroyRef); + readonly #document = inject(DOCUMENT); /** * Content of tooltip - * @type {string | TemplateRef} + * @return {string | TemplateRef} */ - @Input('cTooltip') content: string | TemplateRef = ''; + readonly content = input | undefined>(undefined, { alias: 'cTooltip' }); + + readonly #contentEffect = effect(() => { + if (this.content()) { + this.destroyTooltipElement(); + } + }); /** * Optional popper Options object, takes precedence over cPopoverPlacement prop - * @type Partial + * @return Partial */ - @Input('cTooltipOptions') - set popperOptions(value: Partial) { - this._popperOptions = { ...this._popperOptions, placement: this.placement, ...value }; - }; + readonly popperOptions = input>({}, { alias: 'cTooltipOptions' }); - get popperOptions(): Partial { - return { placement: this.placement, ...this._popperOptions }; - } + readonly #popperOptionsEffect = effect(() => { + this._popperOptions = { + ...this._popperOptions, + placement: this.placement(), + ...this.popperOptions() + }; + }); + + readonly popperOptionsComputed = computed(() => { + return { placement: this.placement(), ...this._popperOptions }; + }); /** * Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property. + * @return: 'top' | 'bottom' | 'left' | 'right' + * @default: 'top' */ - @Input('cTooltipPlacement') placement: 'top' | 'bottom' | 'left' | 'right' = 'top'; + readonly placement = input<'top' | 'bottom' | 'left' | 'right'>('top', { alias: 'cTooltipPlacement' }); + + /** + * ElementRefDirective for positioning the tooltip on reference element + * @return: ElementRefDirective + * @default: undefined + */ + readonly reference = input(undefined, { alias: 'cTooltipRef' }); + + readonly referenceRef = computed(() => this.reference()?.elementRef ?? this.#hostElement); + /** * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them. - * @type {'hover' | 'focus' | 'click'} + * @return: 'Triggers | Triggers[] */ - @Input('cTooltipTrigger') trigger: Triggers | Triggers[] = 'hover'; + readonly trigger = input('hover', { alias: 'cTooltipTrigger' }); /** * Toggle the visibility of tooltip component. + * @return boolean */ - @Input('cTooltipVisible') - set visible(value: boolean) { - this._visible = value; - } - - get visible() { - return this._visible; - } + readonly visible = model(false, { alias: 'cTooltipVisible' }); - private _visible = false; + readonly #visibleEffect = effect(() => { + this.visible() ? this.addTooltipElement() : this.removeTooltipElement(); + }); - @HostBinding('attr.aria-describedby') get ariaDescribedBy(): string | null { + get ariaDescribedBy(): string | null { return this.tooltipId ? this.tooltipId : null; } @@ -90,39 +118,19 @@ export class TooltipDirective implements OnChanges, OnDestroy, OnInit, AfterView { name: 'offset', options: { - offset: [0, 0] + offset: [0, 5] } } ] }; - private intersectingSubscription?: Subscription; - - constructor( - @Inject(DOCUMENT) private document: Document, - private renderer: Renderer2, - private hostElement: ElementRef, - private viewContainerRef: ViewContainerRef, - private listenersService: ListenersService, - private changeDetectorRef: ChangeDetectorRef, - private intersectionService: IntersectionService - ) {} - ngAfterViewInit(): void { - this.intersectionService.createIntersectionObserver(this.hostElement); this.intersectionServiceSubscribe(); } - ngOnChanges(changes: SimpleChanges): void { - if (changes['visible']) { - changes['visible'].currentValue ? this.addTooltipElement() : this.removeTooltipElement(); - } - } - ngOnDestroy(): void { this.clearListeners(); this.destroyTooltipElement(); - this.intersectionServiceSubscribe(false); } ngOnInit(): void { @@ -131,55 +139,53 @@ export class TooltipDirective implements OnChanges, OnDestroy, OnInit, AfterView private setListeners(): void { const config: IListenersConfig = { - hostElement: this.hostElement, - trigger: this.trigger, + hostElement: this.#hostElement, + trigger: this.trigger(), callbackToggle: () => { - this.visible = !this.visible; - this.visible ? this.addTooltipElement() : this.removeTooltipElement(); + this.visible.update((value) => !value); }, callbackOff: () => { - this.visible = false; - this.removeTooltipElement(); + this.visible.set(false); }, callbackOn: () => { - this.visible = true; - this.addTooltipElement(); + this.visible.set(true); } }; - this.listenersService.setListeners(config); + this.#listenersService.setListeners(config); } private clearListeners(): void { - this.listenersService.clearListeners(); + this.#listenersService.clearListeners(); } - private intersectionServiceSubscribe(subscribe: boolean = true): void { - if (subscribe) { - this.intersectingSubscription = this.intersectionService.intersecting$ - .pipe( - debounceTime(100) - ) - .subscribe(isIntersecting => { - this.visible = isIntersecting ? this.visible : false; - !this.visible && this.removeTooltipElement(); - }); - } else { - this.intersectingSubscription?.unsubscribe(); - } + private intersectionServiceSubscribe(): void { + this.#intersectionService.createIntersectionObserver(this.referenceRef()); + this.#intersectionService.intersecting$ + .pipe( + filter((next) => next.hostElement === this.referenceRef()), + debounceTime(100), + finalize(() => { + this.#intersectionService.unobserve(this.referenceRef()); + }), + takeUntilDestroyed(this.#destroyRef) + ) + .subscribe((next) => { + this.visible.set(next.isIntersecting ? this.visible() : false); + }); } private getUID(prefix: string): string { let uid = prefix ?? 'random-id'; do { uid = `${prefix}-${Math.floor(Math.random() * 1000000).toString(10)}`; - } while (this.document.getElementById(uid)); + } while (this.#document.getElementById(uid)); return uid; } private createTooltipElement(): void { if (!this.tooltipRef) { - this.tooltipRef = this.viewContainerRef.createComponent(TooltipComponent); + this.tooltipRef = this.#viewContainerRef.createComponent(TooltipComponent); // this.viewContainerRef.detach(); } } @@ -190,46 +196,47 @@ export class TooltipDirective implements OnChanges, OnDestroy, OnInit, AfterView // @ts-ignore this.tooltipRef = undefined; this.popperInstance?.destroy(); - this.viewContainerRef?.detach(); - this.viewContainerRef?.clear(); + this.#viewContainerRef?.detach(); + this.#viewContainerRef?.clear(); } private addTooltipElement(): void { + if (!this.content()) { + this.destroyTooltipElement(); + return; + } + if (!this.tooltipRef) { this.createTooltipElement(); } - this.tooltipId = this.getUID('tooltip'); - this.tooltipRef.instance.id = this.tooltipId; - this.tooltipRef.instance.content = this.content; + this.tooltipRef?.setInput('content', this.content() ?? ''); - this.tooltip = this.tooltipRef.location.nativeElement; - this.renderer.addClass(this.tooltip, 'd-none'); - this.renderer.addClass(this.tooltip, 'fade'); + this.tooltip = this.tooltipRef?.location.nativeElement; + this.#renderer.addClass(this.tooltip, 'd-none'); + this.#renderer.addClass(this.tooltip, 'fade'); this.popperInstance?.destroy(); - this.viewContainerRef.insert(this.tooltipRef.hostView); - this.renderer.appendChild(this.document.body, this.tooltip); + this.#viewContainerRef.insert(this.tooltipRef.hostView); + this.#renderer.appendChild(this.#document.body, this.tooltip); - this.popperInstance = createPopper( - this.hostElement.nativeElement, - this.tooltip, - { ...this.popperOptions } - ); - if (!this.visible) { + this.popperInstance = createPopper(this.referenceRef().nativeElement, this.tooltip, { + ...this.popperOptionsComputed() + }); + + if (!this.visible()) { this.removeTooltipElement(); return; } - this.renderer.removeClass(this.tooltip, 'd-none'); - this.changeDetectorRef.markForCheck(); - setTimeout(() => { - this.tooltipRef.instance.visible = this.visible; - this.popperInstance.forceUpdate(); - this.changeDetectorRef.markForCheck(); + this.tooltipId = this.getUID('tooltip'); + this.tooltipRef?.setInput('id', this.tooltipId); + this.#renderer.removeClass(this.tooltip, 'd-none'); + this.tooltipRef?.setInput('visible', this.visible()); + this.popperInstance?.forceUpdate(); + this.#changeDetectorRef?.markForCheck(); }, 100); - } private removeTooltipElement(): void { @@ -237,11 +244,11 @@ export class TooltipDirective implements OnChanges, OnDestroy, OnInit, AfterView if (!this.tooltipRef) { return; } - this.tooltipRef.instance.visible = false; - this.tooltipRef.instance.id = undefined; - this.changeDetectorRef.markForCheck(); + this.tooltipRef.setInput('visible', false); + this.tooltipRef.setInput('id', undefined); + this.#changeDetectorRef.markForCheck(); setTimeout(() => { - this.viewContainerRef?.detach(); + this.#viewContainerRef?.detach(); }, 300); } } diff --git a/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.html b/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.html index 0130d581..24e175d2 100644 --- a/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.html +++ b/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.html @@ -1,6 +1,6 @@
      - +
      diff --git a/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.spec.ts b/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.spec.ts index fb30ecc8..8d667069 100644 --- a/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.spec.ts +++ b/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.spec.ts @@ -22,4 +22,9 @@ describe('TooltipComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css classes', () => { + expect(fixture.nativeElement).toHaveClass('tooltip'); + expect(fixture.nativeElement).toHaveClass('fade'); + }); }); diff --git a/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.ts b/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.ts index 54d6a123..3fd614bc 100644 --- a/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.ts +++ b/projects/coreui-angular/src/lib/tooltip/tooltip/tooltip.component.ts @@ -1,74 +1,66 @@ import { - AfterViewInit, + booleanAttribute, Component, - HostBinding, - Input, - OnChanges, + computed, + effect, + inject, + input, OnDestroy, Renderer2, - SimpleChanges, TemplateRef, - ViewChild, + viewChild, ViewContainerRef } from '@angular/core'; @Component({ selector: 'c-tooltip', templateUrl: './tooltip.component.html', - standalone: true + host: { + class: 'tooltip fade bs-tooltip-auto', + '[class]': 'hostClasses()', + '[attr.role]': 'role()', + '[attr.id]': 'id()' + } }) -export class TooltipComponent implements AfterViewInit, OnChanges, OnDestroy { +export class TooltipComponent implements OnDestroy { + readonly renderer = inject(Renderer2); /** * Content of tooltip * @type {string | TemplateRef} */ - @Input() content: string | TemplateRef = ''; + readonly content = input>(''); + + readonly #contentEffect = effect(() => { + this.updateView(this.content()); + }); + /** * Toggle the visibility of popover component. * @type boolean */ - @Input() visible = false; - @Input() @HostBinding('attr.id') id?: string; - @Input() @HostBinding('attr.role') role = 'tooltip'; + readonly visible = input(false, { transform: booleanAttribute }); + readonly id = input(); + readonly role = input('tooltip'); - @ViewChild('tooltipTemplate', { read: ViewContainerRef }) viewContainerRef!: ViewContainerRef; + readonly viewContainerRef = viewChild('tooltipTemplate', { read: ViewContainerRef }); private textNode!: Text; - constructor( - private renderer: Renderer2 - ) { } - - @HostBinding('class') - get hostClasses(): { [klass: string]: any; } { + readonly hostClasses = computed(() => { return { tooltip: true, fade: true, - show: this.visible, + show: this.visible(), 'bs-tooltip-auto': true - }; - } - - ngAfterViewInit(): void { - setTimeout(() => { - this.updateView(this.content); - }); - } - - ngOnChanges(changes: SimpleChanges): void { - if (changes['content']) { - setTimeout(() => { - this.updateView(this.content); - }); - } - } + } as Record; + }); ngOnDestroy(): void { this.clear(); } private clear(): void { - this.viewContainerRef?.clear(); + this.viewContainerRef()?.clear(); if (!!this.textNode) { this.renderer.removeChild(this.textNode.parentNode, this.textNode); } @@ -82,11 +74,11 @@ export class TooltipComponent implements AfterViewInit, OnChanges, OnDestroy { } if (content instanceof TemplateRef) { - this.viewContainerRef.createEmbeddedView(content); + this.viewContainerRef()?.createEmbeddedView(content); } else { this.textNode = this.renderer.createText(content); - const element = this.viewContainerRef.element.nativeElement; + const element = this.viewContainerRef()?.element.nativeElement; this.renderer.appendChild(element.parentNode, this.textNode); } } diff --git a/projects/coreui-angular/src/lib/utilities/align.directive.spec.ts b/projects/coreui-angular/src/lib/utilities/align.directive.spec.ts index 13e35f90..bc7f8f75 100644 --- a/projects/coreui-angular/src/lib/utilities/align.directive.spec.ts +++ b/projects/coreui-angular/src/lib/utilities/align.directive.spec.ts @@ -1,8 +1,11 @@ +import { TestBed } from '@angular/core/testing'; import { AlignDirective } from './align.directive'; describe('AlignDirective', () => { it('should create an instance', () => { + TestBed.runInInjectionContext(() => { const directive = new AlignDirective(); expect(directive).toBeTruthy(); + }); }); }); diff --git a/projects/coreui-angular/src/lib/utilities/align.directive.ts b/projects/coreui-angular/src/lib/utilities/align.directive.ts index 898c867e..936f5434 100644 --- a/projects/coreui-angular/src/lib/utilities/align.directive.ts +++ b/projects/coreui-angular/src/lib/utilities/align.directive.ts @@ -1,22 +1,22 @@ -import { Directive, HostBinding, Input } from '@angular/core'; +import { computed, Directive, input } from '@angular/core'; import { Alignment } from '../coreui.types'; @Directive({ selector: '[cAlign]', - standalone: true + exportAs: 'cAlign', + host: { '[class]': 'hostClasses()' } }) export class AlignDirective { /** * Set vertical alignment of inline, inline-block, inline-table, and table cell elements - * @type Alignment + * @return Alignment */ - @Input('cAlign') align?: Alignment; + readonly align = input(undefined, { alias: 'cAlign' }); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const align = this.align(); return { - [`align-${this.align}`]: !!this.align, - }; - } - + [`align-${align}`]: !!align + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/utilities/bg-color.directive.spec.ts b/projects/coreui-angular/src/lib/utilities/bg-color.directive.spec.ts index 9fa8fa8b..15e2962b 100644 --- a/projects/coreui-angular/src/lib/utilities/bg-color.directive.spec.ts +++ b/projects/coreui-angular/src/lib/utilities/bg-color.directive.spec.ts @@ -1,8 +1,38 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BgColorDirective } from './bg-color.directive'; +import { Component, DebugElement } from '@angular/core'; +import { By } from '@angular/platform-browser'; + +@Component({ + imports: [BgColorDirective], + template: '
      ' +}) +class TestComponent {} describe('BgColorDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(BgColorDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new BgColorDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new BgColorDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('bg-primary'); }); }); diff --git a/projects/coreui-angular/src/lib/utilities/bg-color.directive.ts b/projects/coreui-angular/src/lib/utilities/bg-color.directive.ts index 9a9156a2..dfbc261e 100644 --- a/projects/coreui-angular/src/lib/utilities/bg-color.directive.ts +++ b/projects/coreui-angular/src/lib/utilities/bg-color.directive.ts @@ -1,29 +1,28 @@ -import { Directive, HostBinding, Input } from '@angular/core'; +import { computed, Directive, input } from '@angular/core'; import { BackgroundColors } from '../coreui.types'; @Directive({ selector: '[cBgColor]', - standalone: true + exportAs: 'cBgColor', + host: { '[class]': 'hostClasses()' } }) export class BgColorDirective { - /** * Set the background of an element to any contextual class */ - @Input('cBgColor') color: BackgroundColors = ''; + readonly cBgColor = input(''); + /** * Add linear gradient as background image to the backgrounds. - * @type boolean + * @return boolean */ - @Input() gradient?: boolean; + readonly gradient = input(); - @HostBinding('class') - get hostClasses(): any { + readonly hostClasses = computed(() => { + const color = this.cBgColor(); return { - [`bg-${this.color}`]: !!this.color, - 'bg-gradient': this.gradient, - }; - } - - constructor() { } + [`bg-${color}`]: !!color, + 'bg-gradient': this.gradient() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/utilities/border.directive.spec.ts b/projects/coreui-angular/src/lib/utilities/border.directive.spec.ts index de88e38d..008d70a5 100644 --- a/projects/coreui-angular/src/lib/utilities/border.directive.spec.ts +++ b/projects/coreui-angular/src/lib/utilities/border.directive.spec.ts @@ -1,8 +1,62 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { BorderDirective } from './border.directive'; +import { Component, DebugElement, input } from '@angular/core'; +import { By } from '@angular/platform-browser'; + +@Component({ + imports: [BorderDirective], + template: '
      ' +}) +class TestComponent { + readonly border = input(1); +} describe('BorderDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(BorderDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new BorderDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new BorderDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('border-1'); + fixture.componentRef.setInput('border', true); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('border'); + fixture.componentRef.setInput('border', { + top: 1, + end: true, + color: 'primary', + start: { color: 'success', width: 2 } + }); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('border-top-1'); + expect(debugElement.nativeElement).toHaveClass('border-end'); + expect(debugElement.nativeElement).toHaveClass('border-color-primary'); + expect(debugElement.nativeElement).toHaveClass('border-start-2'); + expect(debugElement.nativeElement).toHaveClass('border-start-success'); + expect(debugElement.nativeElement.classList.length).toBe(5); + fixture.componentRef.setInput('border', {}); + fixture.detectChanges(); + expect(debugElement.nativeElement.classList.length).toBe(0); + fixture.componentRef.setInput('border', 1234n); + fixture.detectChanges(); + expect(debugElement.nativeElement.classList.length).toBe(0); }); }); diff --git a/projects/coreui-angular/src/lib/utilities/border.directive.ts b/projects/coreui-angular/src/lib/utilities/border.directive.ts index 8ff2be5b..848187dd 100644 --- a/projects/coreui-angular/src/lib/utilities/border.directive.ts +++ b/projects/coreui-angular/src/lib/utilities/border.directive.ts @@ -1,44 +1,51 @@ -import { Directive, HostBinding, Input } from '@angular/core'; -import { Border, BorderColor, IBorderElement, BorderWidth } from './border.type'; +import { computed, Directive, input } from '@angular/core'; +import { Border } from './border.type'; @Directive({ selector: '[cBorder]', - standalone: true + exportAs: 'cBorder', + host: { '[class]': 'hostClasses()' } }) export class BorderDirective { /** * Add or remove an element’s borders - * @type Border + * @return Border */ - @Input('cBorder') border: Border = true; + readonly cBorder = input(true); - @HostBinding('class') - get hostClasses(): any { - - if ( typeof this.border === 'boolean' ) { - return { border: true }; + readonly hostClasses = computed>(() => { + const border = this.cBorder(); + if (typeof border === 'boolean') { + return { border: border }; } - if ( typeof this.border === 'number' || typeof this.border === 'string' ) { + if (typeof border === 'number' || typeof border === 'string') { return { border: true, - [`border-${this.border}`]: true + [`border-${border}`]: true }; } - if ( typeof this.border === 'object' ) { - const borderObj = { top: undefined, end: undefined, bottom: undefined, start: undefined, color: undefined, ...this.border }; + if (typeof border === 'object') { + const borderObj = { + top: undefined, + end: undefined, + bottom: undefined, + start: undefined, + color: undefined, + ...border + }; // @ts-ignore - const keys = Object.keys(borderObj).filter(key => borderObj[key] !== undefined); + const keys = Object.keys(borderObj).filter((key) => borderObj[key] !== undefined); const classes = {}; - keys.forEach(key => { + keys.forEach((key) => { // @ts-ignore const val = borderObj[key]; - if ( typeof val === 'boolean') { + if (typeof val === 'boolean') { // @ts-ignore classes[`border-${key}`] = true; - } else if ( typeof val === 'number' || typeof val === 'string' ) { + } else if (typeof val === 'number' || typeof val === 'string') { // @ts-ignore classes[`border-${key}-${val}`] = true; - } else if ( typeof val === 'object' ) { + } else if (typeof val === 'object') { if ('color' in val) { // @ts-ignore classes[`border-${key}-${val.color}`] = true; @@ -49,7 +56,8 @@ export class BorderDirective { } } }); - return Object.entries(classes).length === 0 ? {border: false} : classes; + return Object.entries(classes).length === 0 ? { border: false } : classes; } - } + return { border: false }; + }); } diff --git a/projects/coreui-angular/src/lib/utilities/public_api.ts b/projects/coreui-angular/src/lib/utilities/public_api.ts index 40efad68..a65cdb20 100644 --- a/projects/coreui-angular/src/lib/utilities/public_api.ts +++ b/projects/coreui-angular/src/lib/utilities/public_api.ts @@ -1,6 +1,8 @@ +export { AlignDirective } from './align.directive'; export { BgColorDirective } from './bg-color.directive'; export { BorderDirective } from './border.directive'; -export { TextColorDirective } from './text-color.directive'; export { RoundedDirective } from './rounded.directive'; -export { AlignDirective } from './align.directive'; +export { ShadowOnScrollDirective } from './shadow-on-scroll.directive'; +export { TextColorDirective } from './text-color.directive'; +export { TextBgColorDirective } from './text-bg-color.directive'; export { UtilitiesModule } from './utilities.module'; diff --git a/projects/coreui-angular/src/lib/utilities/rounded.directive.spec.ts b/projects/coreui-angular/src/lib/utilities/rounded.directive.spec.ts index 986e6ad2..adbb61a1 100644 --- a/projects/coreui-angular/src/lib/utilities/rounded.directive.spec.ts +++ b/projects/coreui-angular/src/lib/utilities/rounded.directive.spec.ts @@ -1,8 +1,62 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RoundedDirective } from './rounded.directive'; +import { Component, DebugElement, input } from '@angular/core'; +import { By } from '@angular/platform-browser'; + +@Component({ + imports: [RoundedDirective], + template: '
      ' +}) +class TestComponent { + readonly rounded = input(1); +} describe('RoundedDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(RoundedDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new RoundedDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new RoundedDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('rounded-1'); + fixture.componentRef.setInput('rounded', true); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('rounded'); + fixture.componentRef.setInput('rounded', { + top: false, + end: true, + circle: true, + pill: true, + size: 3 + }); + fixture.detectChanges(); + expect(debugElement.nativeElement).toHaveClass('rounded-3'); + expect(debugElement.nativeElement).toHaveClass('rounded-end'); + expect(debugElement.nativeElement).toHaveClass('rounded-circle'); + expect(debugElement.nativeElement).toHaveClass('rounded-pill'); + expect(debugElement.nativeElement.classList.length).toBe(4); + fixture.componentRef.setInput('rounded', {}); + fixture.detectChanges(); + expect(debugElement.nativeElement.classList.length).toBe(0); + fixture.componentRef.setInput('rounded', 1234n); + fixture.detectChanges(); + expect(debugElement.nativeElement.classList.length).toBe(0); }); }); diff --git a/projects/coreui-angular/src/lib/utilities/rounded.directive.ts b/projects/coreui-angular/src/lib/utilities/rounded.directive.ts index 77ecdb95..463c74b5 100644 --- a/projects/coreui-angular/src/lib/utilities/rounded.directive.ts +++ b/projects/coreui-angular/src/lib/utilities/rounded.directive.ts @@ -1,30 +1,29 @@ -import { Directive, HostBinding, Input } from '@angular/core'; -import { Rounded, RoundedSize } from './rounded.type'; +import { computed, Directive, input } from '@angular/core'; +import { Rounded } from './rounded.type'; @Directive({ selector: '[cRounded]', - standalone: true + exportAs: 'cRounded', + host: { '[class]': 'hostClasses()' } }) export class RoundedDirective { - /** * Set border radius variant and radius size * @type Rounded */ - @Input('cRounded') rounded: Rounded = true; - - @HostBinding('class') - get hostClasses(): any { + readonly cRounded = input(true); - if ( typeof this.rounded === 'boolean' ) { - return { rounded: true }; + readonly hostClasses = computed>(() => { + const rounded = this.cRounded(); + if (typeof rounded === 'boolean') { + return { rounded: rounded }; } - if ( typeof this.rounded === 'number' || typeof this.rounded === 'string' ) { + if (typeof rounded === 'number' || typeof rounded === 'string') { return { - [`rounded-${this.rounded}`]: true + [`rounded-${rounded}`]: true }; } - if ( typeof this.rounded === 'object' ) { + if (typeof rounded === 'object') { const roundedObj = { top: undefined, end: undefined, @@ -33,12 +32,12 @@ export class RoundedDirective { circle: undefined, pill: undefined, size: undefined, - ...this.rounded, + ...rounded }; // @ts-ignore - const keys = Object.keys(roundedObj).filter(key => roundedObj[key] !== undefined ); + const keys = Object.keys(roundedObj).filter((key) => roundedObj[key] !== undefined); const classes = {}; - keys.forEach(key => { + keys.forEach((key) => { // @ts-ignore const val = roundedObj[key]; if (typeof val === 'boolean') { @@ -50,7 +49,8 @@ export class RoundedDirective { } }); // console.log('rounded keys', keys, classes); - return Object.entries(classes).length === 0 ? {rounded: false} : classes; + return Object.entries(classes).length === 0 ? { rounded: false } : classes; } - } + return { rounded: false }; + }); } diff --git a/projects/coreui-angular/src/lib/utilities/shadow-on-scroll.directive.spec.ts b/projects/coreui-angular/src/lib/utilities/shadow-on-scroll.directive.spec.ts new file mode 100644 index 00000000..6026c1d5 --- /dev/null +++ b/projects/coreui-angular/src/lib/utilities/shadow-on-scroll.directive.spec.ts @@ -0,0 +1,39 @@ +import { Component, DebugElement, DOCUMENT, ElementRef } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ShadowOnScrollDirective } from './shadow-on-scroll.directive'; +import { By } from '@angular/platform-browser'; + +@Component({ + imports: [ShadowOnScrollDirective], + template: '
      ' +}) +class TestComponent {} + +class MockElementRef extends ElementRef {} + +describe('ShadowOnScrollDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + let document: Document; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent, ShadowOnScrollDirective], + providers: [{ provide: ElementRef, useClass: MockElementRef }] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + document = TestBed.inject(DOCUMENT); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(ShadowOnScrollDirective)); + fixture.detectChanges(); + }); + + it('should create an instance', () => { + TestBed.runInInjectionContext(() => { + const directive = new ShadowOnScrollDirective(); + expect(directive).toBeTruthy(); + }); + }); +}); diff --git a/projects/coreui-angular/src/lib/utilities/shadow-on-scroll.directive.ts b/projects/coreui-angular/src/lib/utilities/shadow-on-scroll.directive.ts new file mode 100644 index 00000000..4a3088aa --- /dev/null +++ b/projects/coreui-angular/src/lib/utilities/shadow-on-scroll.directive.ts @@ -0,0 +1,57 @@ +import { + DestroyRef, + Directive, + DOCUMENT, + effect, + ElementRef, + inject, + input, + signal, + untracked, + WritableSignal +} from '@angular/core'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { fromEvent, Subscription } from 'rxjs'; + +@Directive({ + selector: '[cShadowOnScroll]', + exportAs: 'cShadowOnScroll' +}) +export class ShadowOnScrollDirective { + readonly #destroyRef: DestroyRef = inject(DestroyRef); + readonly #document: Document = inject(DOCUMENT); + readonly #elementRef: ElementRef = inject(ElementRef); + readonly #scrolled: WritableSignal = signal(false); + + readonly #scrollEffect = effect(() => { + this.#elementRef.nativeElement.classList.toggle(this.#shadowClass, this.#scrolled()); + }); + + #observable!: Subscription; + #shadowClass = 'shadow-sm'; + + constructor() { + this.#destroyRef.onDestroy(() => { + this.#scrollEffect?.destroy(); + }); + } + + readonly cShadowOnScroll = input<'sm' | 'lg' | 'none' | boolean>(true); + + readonly #shadowOnScrollEffect = effect(() => { + const value = this.cShadowOnScroll(); + untracked(() => { + this.#scrolled.set(false); + if (value) { + this.#shadowClass = value === true ? 'shadow' : `shadow-${value}`; + this.#observable = fromEvent(this.#document, 'scroll') + .pipe(takeUntilDestroyed(this.#destroyRef)) + .subscribe((scrolled) => { + this.#scrolled.set(this.#document.documentElement.scrollTop > 0); + }); + } else { + this.#observable?.unsubscribe(); + } + }); + }); +} diff --git a/projects/coreui-angular/src/lib/utilities/text-bg-color.directive.spec.ts b/projects/coreui-angular/src/lib/utilities/text-bg-color.directive.spec.ts new file mode 100644 index 00000000..4a431c51 --- /dev/null +++ b/projects/coreui-angular/src/lib/utilities/text-bg-color.directive.spec.ts @@ -0,0 +1,38 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { Component, DebugElement } from '@angular/core'; +import { By } from '@angular/platform-browser'; +import { TextBgColorDirective } from './text-bg-color.directive'; + +@Component({ + imports: [TextBgColorDirective], + template: '
      ' +}) +class TestComponent {} + +describe('TextBgColorDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(TextBgColorDirective)); + fixture.detectChanges(); + }); + + it('should create an instance', () => { + TestBed.runInInjectionContext(() => { + const directive = new TextBgColorDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('text-bg-primary'); + }); +}); diff --git a/projects/coreui-angular/src/lib/utilities/text-bg-color.directive.ts b/projects/coreui-angular/src/lib/utilities/text-bg-color.directive.ts new file mode 100644 index 00000000..3413b34e --- /dev/null +++ b/projects/coreui-angular/src/lib/utilities/text-bg-color.directive.ts @@ -0,0 +1,23 @@ +import { computed, Directive, input, InputSignal } from '@angular/core'; +import { Colors } from '../coreui.types'; + +@Directive({ + selector: '[cTextBgColor]', + host: { + '[class]': 'hostClasses()' + } +}) +export class TextBgColorDirective { + /** + * Set text-bg-color of element + * @type Colors + */ + readonly textBgColor: InputSignal = input('', { alias: 'cTextBgColor' }); + + readonly hostClasses = computed(() => { + const color = this.textBgColor(); + return { + [`text-bg-${color}`]: !!color + } as Record; + }); +} diff --git a/projects/coreui-angular/src/lib/utilities/text-color.directive.spec.ts b/projects/coreui-angular/src/lib/utilities/text-color.directive.spec.ts index 9aa55a61..2ae601af 100644 --- a/projects/coreui-angular/src/lib/utilities/text-color.directive.spec.ts +++ b/projects/coreui-angular/src/lib/utilities/text-color.directive.spec.ts @@ -1,8 +1,38 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { TextColorDirective } from './text-color.directive'; +import { Component, DebugElement } from '@angular/core'; +import { By } from '@angular/platform-browser'; + +@Component({ + imports: [TextColorDirective], + template: '
      ' +}) +class TestComponent {} describe('TextColorDirective', () => { + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(TextColorDirective)); + fixture.detectChanges(); + }); + it('should create an instance', () => { - const directive = new TextColorDirective(); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new TextColorDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('should have css classes', () => { + expect(debugElement.nativeElement).toHaveClass('text-primary'); }); }); diff --git a/projects/coreui-angular/src/lib/utilities/text-color.directive.ts b/projects/coreui-angular/src/lib/utilities/text-color.directive.ts index f9d3d0a6..f3625b7d 100644 --- a/projects/coreui-angular/src/lib/utilities/text-color.directive.ts +++ b/projects/coreui-angular/src/lib/utilities/text-color.directive.ts @@ -1,25 +1,23 @@ -import { Directive, HostBinding, Input } from '@angular/core'; +import { computed, Directive, input, InputSignal } from '@angular/core'; import { TextColors } from '../coreui.types'; @Directive({ selector: '[cTextColor]', - standalone: true + host: { + '[class]': 'hostClasses()' + } }) export class TextColorDirective { - /** * Set text-color of element * @type TextColors */ - @Input('cTextColor') color: TextColors = ''; + readonly color: InputSignal = input('', { alias: 'cTextColor' }); - @HostBinding('class') - get hostClasses(): any { - const color = this.color; + readonly hostClasses = computed(() => { + const color = this.color(); return { [`text-${color}`]: !!color }; - } - - constructor() {} + }); } diff --git a/projects/coreui-angular/src/lib/utilities/utilities.module.ts b/projects/coreui-angular/src/lib/utilities/utilities.module.ts index eafb2a13..b1b1bd0f 100644 --- a/projects/coreui-angular/src/lib/utilities/utilities.module.ts +++ b/projects/coreui-angular/src/lib/utilities/utilities.module.ts @@ -1,24 +1,27 @@ import { NgModule } from '@angular/core'; -import { BgColorDirective } from './bg-color.directive'; -import { BorderDirective } from './border.directive'; -import { RoundedDirective } from './rounded.directive'; -import { TextColorDirective } from './text-color.directive'; -import { AlignDirective } from './align.directive'; + +import { + AlignDirective, + BgColorDirective, + BorderDirective, + RoundedDirective, + ShadowOnScrollDirective, + TextBgColorDirective, + TextColorDirective +} from './public_api'; + +const UTILITY_DIRECTIVES = [ + AlignDirective, + BgColorDirective, + BorderDirective, + RoundedDirective, + ShadowOnScrollDirective, + TextColorDirective, + TextBgColorDirective +]; @NgModule({ - imports: [ - BgColorDirective, - BorderDirective, - RoundedDirective, - TextColorDirective, - AlignDirective - ], - exports: [ - BgColorDirective, - BorderDirective, - RoundedDirective, - TextColorDirective, - AlignDirective - ] + imports: [...UTILITY_DIRECTIVES], + exports: [...UTILITY_DIRECTIVES] }) export class UtilitiesModule {} diff --git a/projects/coreui-angular/src/lib/utilities/visible.directive.spec.ts b/projects/coreui-angular/src/lib/utilities/visible.directive.spec.ts index cfe01ff1..3d90ebe9 100644 --- a/projects/coreui-angular/src/lib/utilities/visible.directive.spec.ts +++ b/projects/coreui-angular/src/lib/utilities/visible.directive.spec.ts @@ -1,12 +1,63 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { Component, DebugElement, signal } from '@angular/core'; +import { By } from '@angular/platform-browser'; import { VisibleDirective } from './visible.directive'; -import { TemplateRef, ViewContainerRef } from '@angular/core'; + +@Component({ + imports: [VisibleDirective], + template: 'Test Node' +}) +class TestComponent { + readonly visible = signal(true); +} describe('VisibleDirective', () => { - let templateRef: TemplateRef; - let viewContainerRef: ViewContainerRef; + let component: TestComponent; + let fixture: ComponentFixture; + let debugElement: DebugElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + imports: [TestComponent] + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + debugElement = fixture.debugElement.query(By.directive(VisibleDirective)); + fixture.detectChanges(); + }); + + it('should display the content when cVisible is true', () => { + component.visible.set(true); + fixture.detectChanges(); + const content = fixture.nativeElement.textContent.trim(); + expect(content).toBe('Test Node'); + }); + + it('should not display the content when cVisible is false', () => { + component.visible.set(false); + fixture.detectChanges(); + const content = fixture.nativeElement.textContent.trim(); + expect(content).toBe(''); + }); + + it('should toggle visibility when cVisible changes from true to false', () => { + component.visible.set(true); + fixture.detectChanges(); + expect(fixture.nativeElement.textContent.trim()).toBe('Test Node'); + + component.visible.set(false); + fixture.detectChanges(); + expect(fixture.nativeElement.textContent.trim()).toBe(''); + }); + + it('should toggle visibility when cVisible changes from false to true', () => { + component.visible.set(false); + fixture.detectChanges(); + expect(fixture.nativeElement.textContent.trim()).toBe(''); - it('should create an instance', () => { - const directive = new VisibleDirective(templateRef, viewContainerRef); - expect(directive).toBeTruthy(); + component.visible.set(true); + fixture.detectChanges(); + expect(fixture.nativeElement.textContent.trim()).toBe('Test Node'); }); }); diff --git a/projects/coreui-angular/src/lib/utilities/visible.directive.ts b/projects/coreui-angular/src/lib/utilities/visible.directive.ts index 09f0f3bc..e1d14e11 100644 --- a/projects/coreui-angular/src/lib/utilities/visible.directive.ts +++ b/projects/coreui-angular/src/lib/utilities/visible.directive.ts @@ -1,26 +1,37 @@ -import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core'; +import { Directive, effect, inject, input, TemplateRef, ViewContainerRef } from '@angular/core'; @Directive({ selector: '[cVisible]', - standalone: true + exportAs: 'cVisible' }) +/** + * A directive that conditionally includes a template based on the value of an input boolean. + * + * @example + * ```html + * Content to display + * ``` + * + * @remarks + * This directive uses Angular's dependency injection to get references to `TemplateRef` and `ViewContainerRef`. + * It creates or clears the embedded view based on the value of the `cVisible` input. + */ export class VisibleDirective { + readonly #templateRef = inject>(TemplateRef); + readonly #viewContainer = inject(ViewContainerRef); - constructor( - private templateRef: TemplateRef, - private viewContainer: ViewContainerRef - ) { } + #hasView!: boolean; - private hasView!: boolean; + readonly cVisible = input(); - @Input() set cVisible(condition: boolean) { - if (condition && !this.hasView) { - this.viewContainer.createEmbeddedView(this.templateRef); - this.hasView = true; - } else if (!condition && this.hasView) { - this.viewContainer.clear(); - this.hasView = false; + readonly #visibleEffect = effect(() => { + const condition = this.cVisible(); + if (condition && !this.#hasView) { + this.#viewContainer.createEmbeddedView(this.#templateRef); + this.#hasView = true; + } else if (!condition && this.#hasView) { + this.#viewContainer.clear(); + this.#hasView = false; } - } - + }); } diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.html b/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.html index 59a24c20..67defeaf 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.html +++ b/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.html @@ -1,30 +1,34 @@
      -
      - -
      -
      - -
      + @if (!!value() || templates?.['widgetValueTemplate']) { +
      + +
      + } + @if (!!title() || templates?.['widgetTitleTemplate']) { +
      + +
      + }
      - +
      - + - {{title}} + {{ title() }} - {{value}} + {{ value() }} - + - + diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.spec.ts b/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.spec.ts index bb33c8f0..60ee9577 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.spec.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.spec.ts @@ -9,8 +9,7 @@ describe('WidgetStatAComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [WidgetStatAComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +21,8 @@ describe('WidgetStatAComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css class"', () => { + expect(fixture.nativeElement).toHaveClass('card'); + }); }); diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.ts b/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.ts index 7a260678..184684bb 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-a/widget-stat-a.component.ts @@ -1,46 +1,54 @@ -import { AfterContentInit, Component, ContentChildren, HostBinding, Input, QueryList } from '@angular/core'; +import { Component, computed, contentChildren, effect, input, InputSignal, TemplateRef } from '@angular/core'; import { Colors } from '../../coreui.types'; import { TemplateIdDirective } from '../../shared'; -import { CardBodyComponent } from '../../card'; -import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'; +import { CardBodyComponent, CardComponent } from '../../card'; +import { NgClass, NgTemplateOutlet } from '@angular/common'; @Component({ selector: 'c-widget-stat-a', templateUrl: './widget-stat-a.component.html', exportAs: 'cWidgetStatA', - imports: [CardBodyComponent, NgClass, NgIf, NgTemplateOutlet], - standalone: true + imports: [CardBodyComponent, NgClass, NgTemplateOutlet], + host: { class: 'card', '[class]': 'hostClasses()' } }) -export class WidgetStatAComponent implements AfterContentInit { +export class WidgetStatAComponent extends CardComponent { /** * Sets the color context of the component to one of CoreUI’s themed colors. * @type Colors */ - @Input() color?: Colors; + // override readonly color = input(); + /** * Title of the widget to display * @type string */ - @Input() title?: string; + readonly title: InputSignal = input(); + /** * Value for your widget to display * @type string */ - @Input() value?: string; + readonly value: InputSignal = input(); + + templates: Record> = {}; - templates: any = {}; + readonly contentTemplates = contentChildren(TemplateIdDirective, { descendants: true }); - @ContentChildren(TemplateIdDirective, { descendants: true }) contentTemplates!: QueryList; + readonly #contentTemplatesEffect = effect(() => { + this.contentTemplates().forEach((child: TemplateIdDirective) => { + this.templates[child.id] = child.templateRef; + }); + }); - @HostBinding('class') - get hostClasses() { + override readonly hostClasses = computed(() => { + const color = this.color(); return { - 'card': true, - [`bg-${this.color}`]: !!this.color, - 'text-high-emphasis-inverse': !!this.color - }; - } + card: true, + [`bg-${color}`]: !!color, + 'text-white': !!color + } as Record; + }); get bodyClasses() { return { @@ -50,10 +58,4 @@ export class WidgetStatAComponent implements AfterContentInit { 'align-items-start': true }; } - - ngAfterContentInit(): void { - this.contentTemplates.forEach((child: TemplateIdDirective) => { - this.templates[child.id] = child.templateRef; - }); - } } diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.html b/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.html index 21a4821c..452b6d4e 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.html +++ b/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.html @@ -1,8 +1,14 @@ -
      {{value}}
      -
      {{title}}
      - - - {{text}} - + @if (!!value()) { +
      {{ value() }}
      + } + @if (!!title()) { +
      {{ title() }}
      + } + + @if (text()) { + + {{ text() }} + + }
      diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.spec.ts b/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.spec.ts index 0e2dc266..67beac29 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.spec.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.spec.ts @@ -9,11 +9,8 @@ describe('WidgetStatBComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [WidgetStatBComponent] - }) - .compileComponents(); - }); + }).compileComponents(); - beforeEach(() => { fixture = TestBed.createComponent(WidgetStatBComponent); component = fixture.componentInstance; fixture.detectChanges(); @@ -22,4 +19,8 @@ describe('WidgetStatBComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css class"', () => { + expect(fixture.nativeElement).toHaveClass('card'); + }); }); diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.ts b/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.ts index 2a503212..c40bc948 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-b/widget-stat-b.component.ts @@ -1,62 +1,65 @@ -import { booleanAttribute, Component, HostBinding, Input } from '@angular/core'; -import { NgClass, NgIf } from '@angular/common'; +import { booleanAttribute, Component, computed, input, InputSignal, InputSignalWithTransform } from '@angular/core'; +import { NgClass } from '@angular/common'; -import { Colors } from '../../coreui.types'; import { CardBodyComponent, CardComponent } from '../../card'; @Component({ - selector: 'c-widget-stat-b', - templateUrl: './widget-stat-b.component.html', - exportAs: 'cWidgetStatB', - standalone: true, - imports: [CardBodyComponent, NgIf, NgClass] + selector: 'c-widget-stat-b', + templateUrl: './widget-stat-b.component.html', + exportAs: 'cWidgetStatB', + imports: [CardBodyComponent, NgClass], + host: { class: 'card', '[class]': 'hostClasses()' } }) export class WidgetStatBComponent extends CardComponent { - constructor() { super(); } /** - * Sets the color context of the component to one of CoreUI’s themed colors. + * Sets the color context of the component to one of CoreUI themed colors. * @type Colors */ - @Input() override color?: Colors; + // override readonly color: InputSignal = input(); + /** - * Sets the text-color context of the component to one of CoreUI’s themed colors. - * @type Colors + * Sets the text-color context of the component to one of CoreUI themed colors. + * via TextColorDirective + * @type TextColors */ - @Input() override textColor?: Colors | 'white' | 'muted'; + // override readonly textColor: InputSignal = input(); + /** * Title of the widget to display * @type string */ - @Input() title?: string; + readonly title: InputSignal = input(); + /** * Helper text for your widget. * @type string */ - @Input() text?: string; + readonly text: InputSignal = input(); + /** * Value for your widget to display * @type string */ - @Input() value?: string; + readonly value: InputSignal = input(); /** * Invert colors from their default dark shade. * @type boolean */ - @Input({ transform: booleanAttribute }) inverse: string | boolean = false; + readonly inverse: InputSignalWithTransform = input(false, { transform: booleanAttribute }); - @HostBinding('class') - override get hostClasses() { + override readonly hostClasses = computed(() => { + const color = this.color(); + const textColor = this.textColor(); return { - 'card': true, - [`bg-${this.color}`]: !!this.color, - [`text-${this.textColor}`]: !!this.textColor, - 'text-high-emphasis-inverse': !!this.color - }; - } - + card: true, + [`bg-${color}`]: !!color, + [`text-${textColor}`]: !!textColor, + 'text-white': this.inverse() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.html b/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.html index 1a78f351..da7e055d 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.html +++ b/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.html @@ -1,22 +1,28 @@ -
      - -
      -
      - {{value}} -
      -
      - {{title}} -
      - - - + @if (icon() || templates?.['widgetIconTemplate']) { +
      + +
      + } + @if (!!value()) { +
      + {{ value() }} +
      + } + @if (!!title()) { +
      + {{ title() }} +
      + } + @if (templates?.['widgetProgressTemplate']) { + + }
      - {{icon}} + {{ icon() }} - + diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.spec.ts b/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.spec.ts index 85580030..f0b20ae3 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.spec.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.spec.ts @@ -9,8 +9,7 @@ describe('WidgetStatCComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [WidgetStatCComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +21,8 @@ describe('WidgetStatCComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css class"', () => { + expect(fixture.nativeElement).toHaveClass('card'); + }); }); diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.ts b/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.ts index 149e03f0..8c1b3592 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-c/widget-stat-c.component.ts @@ -1,26 +1,17 @@ -import { - AfterContentInit, - booleanAttribute, - Component, - ContentChildren, - HostBinding, - Input, - QueryList -} from '@angular/core'; +import { booleanAttribute, Component, computed, contentChildren, effect, input, TemplateRef } from '@angular/core'; import { CardBodyComponent, CardComponent } from '../../card'; import { TemplateIdDirective } from '../../shared'; -import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'; +import { NgClass, NgTemplateOutlet } from '@angular/common'; @Component({ selector: 'c-widget-stat-c', templateUrl: './widget-stat-c.component.html', exportAs: 'cWidgetStatC', - standalone: true, - imports: [CardBodyComponent, NgIf, NgClass, NgTemplateOutlet] + imports: [CardBodyComponent, NgClass, NgTemplateOutlet], + host: { '[class]': 'hostExtendedClass()' } }) -export class WidgetStatCComponent extends CardComponent implements AfterContentInit { - +export class WidgetStatCComponent extends CardComponent { constructor() { super(); } @@ -29,65 +20,63 @@ export class WidgetStatCComponent extends CardComponent implements AfterContentI * Icon for your component. * @type string */ - @Input() icon?: string; + readonly icon = input(); + /** * Title of the widget to display * @type string */ - @Input() title?: string; + readonly title = input(); + /** * Value for your widget to display - * @type string + * @type string|number */ - @Input() value?: string | number; + readonly value = input(); /** * Invert colors from their default dark shade. * @type boolean */ - @Input({ transform: booleanAttribute }) inverse: string | boolean = false; + readonly inverse = input(false, { transform: booleanAttribute }); - templates: any = {}; - @ContentChildren(TemplateIdDirective, { descendants: true }) contentTemplates!: QueryList; + templates: Record> = {}; + readonly contentTemplates = contentChildren(TemplateIdDirective, { descendants: true }); - @HostBinding('class') - get hostExtendedClass() { - return { - 'high-emphasis-inverse': this.inverse - }; - } + readonly #contentTemplatesEffect = effect(() => { + this.contentTemplates().forEach((child: TemplateIdDirective) => { + this.templates[child.id] = child.templateRef; + }); + }); - get iconClasses() { - return { - 'mb-4': !this.textColor, - 'text-end': true, - 'text-medium-emphasis': !this.inverse, - 'text-medium-emphasis-inverse': this.inverse, - [`text-${this.textColor}`]: !!this.textColor - }; - } + readonly hostExtendedClass = computed(() => { + return { ...this.hostClasses(), 'text-white': this.inverse() } as Record; + }); - get titleClasses() { + readonly titleClasses = computed(() => { + const inverse = this.inverse(); return { - 'text-medium-emphasis': !this.inverse, - 'text-medium-emphasis-inverse': this.inverse, - [`text-${this.textColor}`]: !!this.textColor - }; - } + 'text-body-secondary': !inverse, + 'text-white': inverse, + 'text-opacity-75': inverse, + [`text-${this.textColor()}`]: !!this.textColor() + } as Record; + }); - get valueClasses() { + readonly valueClasses = computed(() => { return { - 'fs-4': !this.textColor, + 'fs-4': !this.textColor(), 'fw-semibold': true, - 'text-high-emphasis': !this.inverse, - 'text-high-emphasis-inverse': this.inverse, - [`text-${this.textColor}`]: !!this.textColor - }; - } + ...this.titleClasses(), + 'text-opacity-75': false + } as Record; + }); - ngAfterContentInit(): void { - this.contentTemplates.forEach((child: TemplateIdDirective) => { - this.templates[child.id] = child.templateRef; - }); - } + readonly iconClasses = computed(() => { + return { + 'mb-4': !this.textColor(), + 'text-end': true, + ...this.titleClasses() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.html b/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.html index 810aad75..0b9d8223 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.html +++ b/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.html @@ -1,12 +1,14 @@ - - + + - -
      + @for (item of values(); track item; let i = $index) { + @if (i % 2 !== 0) { +
      + } -
      {{item.value}}
      -
      {{item.title}}
      +
      {{ item.value }}
      +
      {{ item.title }}
      -
      + }
      diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.spec.ts b/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.spec.ts index 8db4e1c9..a0351fc6 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.spec.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.spec.ts @@ -9,8 +9,7 @@ describe('WidgetStatDComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [WidgetStatDComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +21,8 @@ describe('WidgetStatDComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css class"', () => { + expect(fixture.nativeElement).toHaveClass('card'); + }); }); diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.ts b/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.ts index 2100b6a4..c9491e48 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-d/widget-stat-d.component.ts @@ -1,50 +1,41 @@ -import { Component, HostBinding, Input } from '@angular/core'; +import { Component, computed, input } from '@angular/core'; import { Colors } from '../../coreui.types'; -import { CardBodyComponent, CardHeaderComponent } from '../../card'; +import { CardBodyComponent, CardComponent, CardHeaderComponent } from '../../card'; import { ColComponent, RowDirective } from '../../grid'; -import { NgClass, NgForOf, NgIf } from '@angular/common'; +import { NgClass } from '@angular/common'; export type WidgetStatDValue = { - title?: string, - value?: number | string, -} + title?: string; + value?: number | string; +}; @Component({ - selector: 'c-widget-stat-d', - templateUrl: './widget-stat-d.component.html', - exportAs: 'cWidgetStatD', - standalone: true, - imports: [CardHeaderComponent, CardBodyComponent, ColComponent, RowDirective, NgClass, NgForOf, NgIf] + selector: 'c-widget-stat-d', + templateUrl: './widget-stat-d.component.html', + exportAs: 'cWidgetStatD', + imports: [CardHeaderComponent, CardBodyComponent, ColComponent, RowDirective, NgClass], + host: { class: 'card' } }) -export class WidgetStatDComponent { - constructor() { } - +export class WidgetStatDComponent extends CardComponent { /** * Sets the color context of the component to one of CoreUI’s themed colors. * @type Colors */ - @Input() color?: Colors; + // override readonly color = input(); + /** * Values and subtitles for your component. * @type WidgetStatDValue */ - @Input() values?: WidgetStatDValue[]; + readonly values = input(); - @HostBinding('class') - get hostClasses() { - return { - 'card': true - }; - } - - get headerClasses() { + readonly headerClasses = computed(() => { return { 'position-relative': true, 'd-flex': true, 'justify-content-center': true, 'align-items-center': true, - [`bg-${this.color}`]: this.color - }; - } - + [`bg-${this.color()}`]: this.color() + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.html b/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.html index debefc45..dc90c734 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.html +++ b/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.html @@ -1,5 +1,9 @@ -
      {{title}}
      -
      {{value}}
      - + @if (!!title()) { +
      {{ title() }}
      + } + @if (!!value()) { +
      {{ value() }}
      + } +
      diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.spec.ts b/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.spec.ts index e82f60d4..0d136f19 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.spec.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.spec.ts @@ -9,8 +9,7 @@ describe('WidgetStatEComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [WidgetStatEComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +21,8 @@ describe('WidgetStatEComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css class"', () => { + expect(fixture.nativeElement).toHaveClass('card'); + }); }); diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.ts b/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.ts index b601c48d..0dc1b458 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-e/widget-stat-e.component.ts @@ -1,16 +1,14 @@ -import { Component, Input } from '@angular/core'; -import { NgClass, NgIf } from '@angular/common'; +import { Component, computed, input } from '@angular/core'; +import { NgClass } from '@angular/common'; import { CardBodyComponent, CardComponent } from '../../card'; @Component({ - selector: 'c-widget-stat-e', - templateUrl: './widget-stat-e.component.html', - exportAs: 'cWidgetStatE', - standalone: true, - imports: [CardBodyComponent, NgIf, NgClass] + selector: 'c-widget-stat-e', + templateUrl: './widget-stat-e.component.html', + exportAs: 'cWidgetStatE', + imports: [CardBodyComponent, NgClass] }) export class WidgetStatEComponent extends CardComponent { - constructor() { super(); } @@ -19,21 +17,22 @@ export class WidgetStatEComponent extends CardComponent { * Title of the widget to display * @type string */ - @Input() title?: string; + readonly title = input(); + /** * Value for your widget to display * @type string | number */ - @Input() value?: string | number; + readonly value = input(); - get titleClasses() { + readonly titleClasses = computed(() => { + const textColor = this.textColor(); return { - 'text-medium-emphasis': !this.textColor, - 'small': true, + 'text-body-secondary': !textColor, + small: true, 'text-uppercase': true, 'fw-semibold': true, - [`text-${this.textColor}`]: !!this.textColor - }; - } - + [`text-${textColor}`]: !!textColor + } as Record; + }); } diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.html b/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.html index 35ee8d07..66791959 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.html +++ b/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.html @@ -1,22 +1,24 @@ - -
      - + +
      +
      -
      {{value}}
      -
      {{title}}
      +
      {{ value() }}
      +
      {{ title() }}
      - - - + @if (footer() || templates?.['widgetFooterTemplate']) { + + + + } - {{icon}} + {{ icon() }} - {{footer}} + {{ footer() }} diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.spec.ts b/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.spec.ts index f2cc1765..e43efbed 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.spec.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.spec.ts @@ -9,8 +9,7 @@ describe('WidgetStatFComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [WidgetStatFComponent] - }) - .compileComponents(); + }).compileComponents(); }); beforeEach(() => { @@ -22,4 +21,8 @@ describe('WidgetStatFComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should have css class"', () => { + expect(fixture.nativeElement).toHaveClass('card'); + }); }); diff --git a/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.ts b/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.ts index 4bc48fe0..cdf2bb31 100644 --- a/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.ts +++ b/projects/coreui-angular/src/lib/widget/widget-stat-f/widget-stat-f.component.ts @@ -1,118 +1,108 @@ -import { - AfterContentInit, - booleanAttribute, - Component, - ContentChildren, - HostBinding, - Input, - QueryList -} from '@angular/core'; -import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'; +import { booleanAttribute, Component, computed, contentChildren, effect, input, TemplateRef } from '@angular/core'; +import { NgClass, NgTemplateOutlet } from '@angular/common'; import { Colors } from '../../coreui.types'; import { TemplateIdDirective } from '../../shared'; -import { CardBodyComponent, CardFooterComponent } from '../../card'; +import { CardBodyComponent, CardComponent, CardFooterComponent } from '../../card'; @Component({ selector: 'c-widget-stat-f', templateUrl: './widget-stat-f.component.html', exportAs: 'cWidgetStatB', - standalone: true, - imports: [CardBodyComponent, CardFooterComponent, NgClass, NgTemplateOutlet, NgIf] + imports: [CardBodyComponent, CardFooterComponent, NgClass, NgTemplateOutlet], + host: { class: 'card', '[class]': 'hostClasses()' } }) -export class WidgetStatFComponent implements AfterContentInit { - +export class WidgetStatFComponent extends CardComponent { /** * Sets the color context of the component to one of CoreUI’s themed colors. * @type Colors */ - @Input() color?: Colors; + // override readonly color = input(); /** * Sets the text-color context of the component to one of CoreUI’s themed colors. * @type Colors */ - @Input() textColor?: Colors | 'white' | 'muted'; + // override readonly textColor = input(); /** * Footer for your widget * @type string */ - @Input() footer?: string; + readonly footer = input(); /** * Icon for your widget * @type string */ - @Input() icon?: string; + readonly icon = input(); /** * Set padding of your component. * @type boolean */ - @Input({ transform: booleanAttribute }) padding: string | boolean = false; + readonly padding = input(false, { transform: booleanAttribute }); /** * Title of the widget to display * @type string */ - @Input() title?: string; + readonly title = input(); /** * Value for your widget to display * @type string */ - @Input() value?: string | number; + readonly value = input(); - templates: any = {}; - @ContentChildren(TemplateIdDirective, { descendants: true }) contentTemplates!: QueryList; + templates: Record> = {}; + readonly contentTemplates = contentChildren(TemplateIdDirective, { descendants: true }); - @HostBinding('class') - get hostClasses() { - return { - card: true - }; - } + readonly #contentTemplatesEffect = effect(() => { + this.contentTemplates().forEach((child: TemplateIdDirective) => { + this.templates[child.id] = child.templateRef; + }); + }); - get cardBodyClasses() { + readonly cardBodyClasses = computed(() => { return { 'd-flex': true, 'align-items-center': true, - 'p-0': !this.padding - }; - } + 'p-0': !this.padding() + } as Record; + }); + + readonly iconClasses = computed(() => { + const color = this.color(); + const padding = this.padding(); - get iconClasses() { return { - 'me-3': !this.textColor, + 'me-3': !this.textColor(), 'text-white': true, - [`bg-${this.color}`]: !!this.color, - 'p-3': this.padding, - 'p-4': !this.padding - }; - } - - get titleClasses() { + [`bg-${color}`]: !!color, + 'p-3': padding, + 'p-4': !padding, + 'rounded-start-1': !padding + } as Record; + }); + + readonly titleClasses = computed(() => { + const textColor = this.textColor(); return { - 'text-medium-emphasis': !this.textColor, - 'small': true, + 'text-body-secondary': !textColor, + small: true, 'text-uppercase': true, 'fw-semibold': true, - [`text-${this.textColor}`]: !!this.textColor - }; - } + [`text-${textColor}`]: !!textColor + } as Record; + }); - get valueClasses() { + readonly valueClasses = computed(() => { + const textColor = this.textColor(); return { - 'fs-6': !this.textColor, + 'fs-6': !textColor, 'fw-semibold': true, - [`text-${this.textColor}`]: !!this.textColor - }; - } - - ngAfterContentInit(): void { - this.contentTemplates.forEach((child: TemplateIdDirective) => { - this.templates[child.id] = child.templateRef; - }); - } + [`text-${textColor}`]: !!textColor + } as Record; + }); } diff --git a/projects/coreui-angular/src/public-api.ts b/projects/coreui-angular/src/public-api.ts index 5dfcd2c6..c41fde86 100644 --- a/projects/coreui-angular/src/public-api.ts +++ b/projects/coreui-angular/src/public-api.ts @@ -8,6 +8,7 @@ export * from './lib/accordion'; export * from './lib/alert'; export * from './lib/avatar'; export * from './lib/badge'; +export * from './lib/backdrop'; export * from './lib/breadcrumb'; export * from './lib/button'; export * from './lib/button-group'; @@ -31,10 +32,11 @@ export * from './lib/placeholder'; export * from './lib/popover'; export * from './lib/progress'; export * from './lib/services'; -export * from './lib/spinner'; export * from './lib/sidebar'; +export * from './lib/spinner'; export * from './lib/table'; export * from './lib/tabs'; +export * from './lib/tabs-2'; export * from './lib/toast'; export * from './lib/tooltip'; export * from './lib/utilities'; diff --git a/projects/coreui-angular/src/test.ts b/projects/coreui-angular/src/test.ts index f17fa2d1..72463202 100644 --- a/projects/coreui-angular/src/test.ts +++ b/projects/coreui-angular/src/test.ts @@ -3,14 +3,14 @@ import 'zone.js'; import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; -import { - BrowserDynamicTestingModule, - platformBrowserDynamicTesting -} from '@angular/platform-browser-dynamic/testing'; +import { BrowserTestingModule, platformBrowserTesting } from '@angular/platform-browser/testing'; + +// make the warning to fail +// console.warn = (message) => { +// throw new Error(message); +// }; // First, initialize the Angular testing environment. -getTestBed().initTestEnvironment( - BrowserDynamicTestingModule, - platformBrowserDynamicTesting(), - { teardown: { destroyAfterEach: true }}, -); +getTestBed().initTestEnvironment(BrowserTestingModule, platformBrowserTesting(), { + teardown: { destroyAfterEach: true } +}); diff --git a/projects/coreui-angular/tsconfig.json b/projects/coreui-angular/tsconfig.json index b3e0d01a..56f4fc9e 100644 --- a/projects/coreui-angular/tsconfig.json +++ b/projects/coreui-angular/tsconfig.json @@ -9,6 +9,9 @@ }, { "path": "./tsconfig.spec.json" + }, + { + "path": "./tsconfig.schematics.json" } ] } diff --git a/projects/coreui-angular/tsconfig.lib.json b/projects/coreui-angular/tsconfig.lib.json index b77b13c0..3879b4cd 100644 --- a/projects/coreui-angular/tsconfig.lib.json +++ b/projects/coreui-angular/tsconfig.lib.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "../../tsconfig.json", "compilerOptions": { diff --git a/projects/coreui-angular/tsconfig.lib.prod.json b/projects/coreui-angular/tsconfig.lib.prod.json index 06de549e..9215caac 100644 --- a/projects/coreui-angular/tsconfig.lib.prod.json +++ b/projects/coreui-angular/tsconfig.lib.prod.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "./tsconfig.lib.json", "compilerOptions": { diff --git a/projects/coreui-angular/tsconfig.schematics.json b/projects/coreui-angular/tsconfig.schematics.json new file mode 100644 index 00000000..200c9648 --- /dev/null +++ b/projects/coreui-angular/tsconfig.schematics.json @@ -0,0 +1,38 @@ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ +{ + "compilerOptions": { + "baseUrl": ".", + "lib": [ + "ES2022", + "dom" + ], + "declaration": true, + "module": "commonjs", + "moduleResolution": "node", + "noEmitOnError": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitThis": true, + "noUnusedParameters": true, + "noUnusedLocals": true, + "rootDir": "schematics", + "outDir": "../../dist/coreui-angular/schematics", + "resolveJsonModule": true, + "skipDefaultLibCheck": true, + "skipLibCheck": true, + "sourceMap": true, + "strictNullChecks": true, + "target": "ES2022", + "types": [ + "jasmine", + "node" + ] + }, + "include": [ + "schematics/**/*" + ], + "exclude": [ + "schematics/*/files/**/*" + ] +} diff --git a/projects/coreui-angular/tsconfig.spec.json b/projects/coreui-angular/tsconfig.spec.json index 715dd0a5..0d10fb5a 100644 --- a/projects/coreui-angular/tsconfig.spec.json +++ b/projects/coreui-angular/tsconfig.spec.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "../../tsconfig.json", "compilerOptions": { diff --git a/projects/coreui-icons-angular/.eslintrc.json b/projects/coreui-icons-angular/.eslintrc.json deleted file mode 100644 index e7686e15..00000000 --- a/projects/coreui-icons-angular/.eslintrc.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "extends": "../../.eslintrc.json", - "ignorePatterns": [ - "!**/*" - ], - "overrides": [ - { - "files": [ - "*.ts" - ], - "parserOptions": { - "project": [ - "./tsconfig.json" - ], - "createDefaultProgram": true - }, - "rules": { - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "c", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "warn", - { - "type": "element", - "prefix": "c", - "style": "kebab-case" - } - ], - "@angular-eslint/no-input-rename": [ - "warn" - ] - } - }, - { - "files": [ - "*.html" - ], - "rules": {} - } - ] -} diff --git a/projects/coreui-icons-angular/LICENSE b/projects/coreui-icons-angular/LICENSE index 027b8813..fbb053e0 100644 --- a/projects/coreui-icons-angular/LICENSE +++ b/projects/coreui-icons-angular/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 creativeLabs Łukasz Holeczek +Copyright (c) 2025 creativeLabs Łukasz Holeczek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/projects/coreui-icons-angular/README.md b/projects/coreui-icons-angular/README.md index 4faff6f6..28395901 100644 --- a/projects/coreui-icons-angular/README.md +++ b/projects/coreui-icons-angular/README.md @@ -24,19 +24,34 @@ · Blog

      +
      +

      +Featured CoreUI for Angular libraries: +
      CoreUI Components for Angular +
      CoreUI Angular wrapper for Chart.js v4 +
      CoreUI Icons for Angular +

      +
      # CoreUI Icons Angular ![angular][angular-badge] -[![NPM](https://img.shields.io/npm/v/@coreui/icons-angular/latest?style=flat-square&color=brightgreen)][coreui-angular-icons-npm] -[![npm-coreui-angular-next][npm-coreui-icons-angular-next]][coreui-angular-icons-npm] -[![Downloads](https://img.shields.io/npm/dm/@coreui/icons-angular.svg?style=flat-square)][coreui-angular-icons-npm] -[![License](https://img.shields.io/npm/l/@coreui/angular?style=flat-square)][coreui] +[![npm-coreui-angular-v5-ng20][npm-coreui-icons-angular-v5-ng20]][coreui-angular-icons-npm] +[![npm-coreui-angular-latest][npm-coreui-icons-angular-latest]][coreui-angular-icons-npm] +[![npm-coreui-angular-next][npm-coreui-icons-angular-next]][coreui-angular-icons-npm] +[![License](https://img.shields.io/npm/l/@coreui/angular?style=flat-square)][coreui] +[![Downloads](https://img.shields.io/npm/dm/@coreui/icons-angular.svg?style=flat-square)][coreui-angular-icons-npm] +[![Project icons check](https://github.com/coreui/coreui-angular/actions/workflows/project-icons-check.yml/badge.svg)](https://github.com/coreui/coreui-angular/actions/workflows/project-icons-check.yml) [coreui]: https://coreui.io/icons [coreui-angular-icons-npm]: https://www.npmjs.com/package/@coreui/icons-angular -[npm-coreui-icons-angular-next]: https://img.shields.io/npm/v/@coreui/icons-angular/next.png?style=flat-square&color=red -[angular-badge]: https://img.shields.io/badge/angular-^16.1.0-lightgrey.svg?style=flat-square&logo=angular +[npm-coreui-icons-angular-v5-ng20]: https://img.shields.io/npm/v/@coreui/icons-angular/v5-ng20?style=flat-square&color=brightgreen +[npm-coreui-icons-angular-latest]: https://img.shields.io/npm/v/@coreui/icons-angular/latest?style=flat-square&color=brightgreen +[npm-coreui-icons-angular-next]: https://img.shields.io/npm/v/@coreui/icons-angular/next?style=flat-square&color=red +[angular-badge]: https://img.shields.io/badge/angular-^20.1.0-lightgrey.svg?style=flat-square&logo=angular ## `cIcon` directive @@ -56,8 +71,8 @@ For directive description visit [https://coreui.io/angular/docs/](https://coreui ### Installation ```shell -npm install @coreui/icons -npm install @coreui/icons-angular +npm install @coreui/icons@3 +npm install @coreui/icons-angular@~5.5 ``` ### Usage @@ -169,5 +184,5 @@ Thanks to all the backers and sponsors! Support this project by [becoming a back ## Copyright and license -Copyright 2022 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). +Copyright 2025 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). diff --git a/projects/coreui-icons-angular/eslint.config.js b/projects/coreui-icons-angular/eslint.config.js new file mode 100644 index 00000000..1470027e --- /dev/null +++ b/projects/coreui-icons-angular/eslint.config.js @@ -0,0 +1,15 @@ +// @ts-check +const tseslint = require('typescript-eslint'); +const rootConfig = require('../../eslint.config.js'); + +module.exports = tseslint.config( + ...rootConfig, + { + files: ['**/*.ts'], + rules: {} + }, + { + files: ['**/*.html'], + rules: {} + } +); diff --git a/projects/coreui-icons-angular/karma.conf.github.js b/projects/coreui-icons-angular/karma.conf.github.js index e2c85da9..6ca0310c 100644 --- a/projects/coreui-icons-angular/karma.conf.github.js +++ b/projects/coreui-icons-angular/karma.conf.github.js @@ -9,8 +9,7 @@ module.exports = function (config) { require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), - require('karma-coverage'), - require('@angular-devkit/build-angular/plugins/karma') + require('karma-coverage') ], client: { jasmine: { @@ -27,10 +26,7 @@ module.exports = function (config) { coverageReporter: { dir: require('path').join(__dirname, '../../coverage/coreui-icons-angular'), subdir: '.', - reporters: [ - { type: 'html' }, - { type: 'text-summary' } - ] + reporters: [{ type: 'html' }, { type: 'text-summary' }] }, reporters: ['progress', 'kjhtml'], port: 9876, diff --git a/projects/coreui-icons-angular/karma.conf.js b/projects/coreui-icons-angular/karma.conf.js index f13a89fc..f68faf5e 100644 --- a/projects/coreui-icons-angular/karma.conf.js +++ b/projects/coreui-icons-angular/karma.conf.js @@ -9,8 +9,7 @@ module.exports = function (config) { require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), - require('karma-coverage'), - require('@angular-devkit/build-angular/plugins/karma') + require('karma-coverage') ], client: { jasmine: { @@ -27,17 +26,20 @@ module.exports = function (config) { coverageReporter: { dir: require('path').join(__dirname, '../../coverage/coreui-icons-angular'), subdir: '.', - reporters: [ - { type: 'html' }, - { type: 'text-summary' } - ] + reporters: [{ type: 'html' }, { type: 'text-summary' }] }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chrome'], + browsers: ['Chrome_Custom'], + customLaunchers: { + Chrome_Custom: { + base: 'Chrome', + flags: ['--disable-search-engine-choice-screen'] + } + }, singleRun: false, restartOnFileChange: true }); diff --git a/projects/coreui-icons-angular/package.json b/projects/coreui-icons-angular/package.json index af016555..f51b2884 100644 --- a/projects/coreui-icons-angular/package.json +++ b/projects/coreui-icons-angular/package.json @@ -1,8 +1,8 @@ { "name": "@coreui/icons-angular", - "version": "4.5.27", + "version": "5.5.6", "description": "CoreUI Icons Angular component and service", - "copyright": "Copyright 2023 creativeLabs Łukasz Holeczek", + "copyright": "Copyright 2025 creativeLabs Łukasz Holeczek", "license": "MIT", "homepage": "https://coreui.io/angular", "author": { @@ -25,14 +25,14 @@ "url": "https://github.com/coreui/coreui-angular/issues" }, "peerDependencies": { - "@angular/common": "^16.1.0", - "@angular/core": "^16.1.0", - "@angular/platform-browser": "^16.1.0", - "@coreui/icons": "^2.1.0 || ^3.0.0" + "@angular/common": "^20.1.0", + "@angular/core": "^20.1.0", + "@angular/platform-browser": "^20.1.0" }, "dependencies": { "tslib": "^2.3.0" }, + "sideEffects": false, "keywords": [ "coreui", "coreui-icons", @@ -43,5 +43,17 @@ "layout", "component", "angular" - ] + ], + "devDependencies": { + "copyfiles": "file:../../node_modules/copyfiles", + "typescript": "file:../../node_modules/typescript" + }, + "schematics": "./schematics/collection.json", + "scripts": { + "build": "tsc -p tsconfig.schematics.json", + "postbuild": "copyfiles schematics/*/files/** schematics/collection.json ../../dist/coreui-icons-angular/" + }, + "ng-add": { + "save": true + } } diff --git a/projects/coreui-icons-angular/schematics/collection.json b/projects/coreui-icons-angular/schematics/collection.json new file mode 100644 index 00000000..72b8543b --- /dev/null +++ b/projects/coreui-icons-angular/schematics/collection.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json", + "schematics": { + "ng-add": { + "description": "Add @coreui/icons-angular library to the project.", + "factory": "./ng-add/index#ngAdd" + } + } +} diff --git a/projects/coreui-icons-angular/schematics/ng-add/index.ts b/projects/coreui-icons-angular/schematics/ng-add/index.ts new file mode 100644 index 00000000..13b3188d --- /dev/null +++ b/projects/coreui-icons-angular/schematics/ng-add/index.ts @@ -0,0 +1,49 @@ +import { Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics'; +import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; +import { addPackageJsonDependency, NodeDependency, NodeDependencyType } from '@schematics/angular/utility/dependencies'; +import { getPackageVersionFromPackageJson, PackageJson } from './package-config'; +import * as pkgJson from '../../package.json'; + +export function ngAdd(): Rule { + return (tree: Tree, context: SchematicContext) => { + const pkg = pkgJson as unknown as PackageJson; + + context.logger.info(``); + context.logger.info(`Installing ${pkg.name} dependencies...`); + + const ngCoreVersionTag = getPackageVersionFromPackageJson(tree, '@angular/core'); + context.logger.info(`@angular/core version ${ngCoreVersionTag}`); + if (!ngCoreVersionTag) { + throw new SchematicsException('@angular/core version not found'); + } + + const projectDeps: NodeDependency[] = [ + { name: '@angular/common', type: NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false }, + { name: '@angular/core', type: NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false }, + { + name: '@angular/platform-browser', + type: NodeDependencyType.Default, + version: ngCoreVersionTag, + overwrite: false + } + ]; + + projectDeps.forEach((dep) => { + addPackageJsonDependency(tree, dep); + context.logger.info(`Added dependency: ${dep.name}@${dep.version}`); + }); + + const library: NodeDependency = { + name: pkg.name, + type: NodeDependencyType.Default, + version: `~${pkg.version}`, + overwrite: true + }; + + addPackageJsonDependency(tree, library); + context.logger.info(`Installing ${library.name}@${library.version}`); + context.addTask(new NodePackageInstallTask()); + + return tree; + }; +} diff --git a/projects/coreui-icons-angular/schematics/ng-add/package-config.ts b/projects/coreui-icons-angular/schematics/ng-add/package-config.ts new file mode 100644 index 00000000..95c3c1d1 --- /dev/null +++ b/projects/coreui-icons-angular/schematics/ng-add/package-config.ts @@ -0,0 +1,68 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import { Tree } from '@angular-devkit/schematics'; + +export interface PackageJson { + dependencies: Record; + name: string; + peerDependencies: Record; + version: string; +} + +/** + * Sorts the keys of the given object. + * @returns A new object instance with sorted keys + */ +function sortObjectByKeys(obj: Record) { + return Object.keys(obj) + .sort() + .reduce( + (result, key) => { + result[key] = obj[key]; + return result; + }, + {} as Record + ); +} + +/** Adds a package to the package.json in the given host tree. */ +export function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree { + if (host.exists('package.json')) { + const sourceText = host.read('package.json')!.toString('utf-8'); + const json = JSON.parse(sourceText) as PackageJson; + + if (!json.dependencies) { + json.dependencies = {}; + } + + if (!json.dependencies[pkg]) { + json.dependencies[pkg] = version; + json.dependencies = sortObjectByKeys(json.dependencies); + } + + host.overwrite('package.json', JSON.stringify(json, null, 2)); + } + + return host; +} + +/** Gets the version of the specified package by looking at the package.json in the given tree. */ +export function getPackageVersionFromPackageJson(tree: Tree, name: string): string | null { + if (!tree.exists('package.json')) { + return null; + } + + const packageJson = JSON.parse(tree.read('package.json')!.toString('utf8')) as PackageJson; + + if (packageJson.dependencies && packageJson.dependencies[name]) { + return packageJson.dependencies[name]; + } + + return null; +} diff --git a/projects/coreui-icons-angular/src/index.ts b/projects/coreui-icons-angular/src/index.ts new file mode 100644 index 00000000..7e1a213e --- /dev/null +++ b/projects/coreui-icons-angular/src/index.ts @@ -0,0 +1 @@ +export * from './public-api'; diff --git a/projects/coreui-icons-angular/src/lib/icon-set/icon-set.module.ts b/projects/coreui-icons-angular/src/lib/icon-set/icon-set.module.ts index 8899028d..2506d515 100644 --- a/projects/coreui-icons-angular/src/lib/icon-set/icon-set.module.ts +++ b/projects/coreui-icons-angular/src/lib/icon-set/icon-set.module.ts @@ -1,4 +1,4 @@ -import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core'; +import { ModuleWithProviders, NgModule, inject } from '@angular/core'; import { IconSetService } from './icon-set.service'; @@ -6,7 +6,9 @@ import { IconSetService } from './icon-set.service'; providers: [IconSetService] }) export class IconSetModule { - constructor(@Optional() @SkipSelf() parentModule?: IconSetModule) { + constructor() { + const parentModule = inject(IconSetModule, { optional: true, skipSelf: true }); + if (parentModule) { throw new Error( 'CoreUI IconSetModule is already loaded. Import it in the AppModule only'); diff --git a/projects/coreui-icons-angular/src/lib/icon-set/icon-set.service.ts b/projects/coreui-icons-angular/src/lib/icon-set/icon-set.service.ts index c2c9635a..3ab9bccf 100644 --- a/projects/coreui-icons-angular/src/lib/icon-set/icon-set.service.ts +++ b/projects/coreui-icons-angular/src/lib/icon-set/icon-set.service.ts @@ -8,24 +8,24 @@ export interface IIconSet { providedIn: 'root' }) export class IconSetService { - - constructor() {} - public get iconNames() { - return this._iconNames; - }; - private _iconNames: { [key: string]: string } = {}; + return this.#iconNames; + } + + #iconNames: Record = {}; get icons(): IIconSet { - return this._icons; + return this.#icons; } + set icons(iconSet) { for (const iconsKey in iconSet) { - this._iconNames[iconsKey] = iconsKey; + this.#iconNames[iconsKey] = iconsKey; } - this._icons = iconSet; + this.#icons = iconSet; } - private _icons: IIconSet = {}; + + #icons: IIconSet = {}; public getIcon(name: string): string[] { const icon = this.icons[name]; diff --git a/projects/coreui-icons-angular/src/lib/icon-set/public_api.ts b/projects/coreui-icons-angular/src/lib/icon-set/public_api.ts index a7057148..05c4a587 100644 --- a/projects/coreui-icons-angular/src/lib/icon-set/public_api.ts +++ b/projects/coreui-icons-angular/src/lib/icon-set/public_api.ts @@ -1,2 +1,2 @@ -export { IconSetService, IIconSet } from './icon-set.service'; +export { IconSetService, type IIconSet } from './icon-set.service'; export { IconSetModule } from './icon-set.module'; diff --git a/projects/coreui-icons-angular/src/lib/icon/icon.component.spec.ts b/projects/coreui-icons-angular/src/lib/icon/icon.component.spec.ts index 6da000eb..7ae5c5a6 100644 --- a/projects/coreui-icons-angular/src/lib/icon/icon.component.spec.ts +++ b/projects/coreui-icons-angular/src/lib/icon/icon.component.spec.ts @@ -1,48 +1,44 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { Component, DebugElement, ViewChild } from '@angular/core'; +import { Component, DebugElement, inject, ViewChild } from '@angular/core'; +import { By } from '@angular/platform-browser'; import { cilList } from '@coreui/icons'; import { HtmlAttributesDirective } from '../shared/html-attr.directive'; -import { IconComponent } from './icon.component'; import { IconSetService } from '../icon-set'; -import { By } from '@angular/platform-browser'; +import { IconComponent } from './icon.component'; @Component({ - template: ` -
      - -
      ` + template: ``, + imports: [IconComponent], + providers: [IconSetService] }) class TestComponent { - @ViewChild('icon', {read: IconComponent}) iconRef!: IconComponent; + iconSet = inject(IconSetService); - constructor( - public iconSet: IconSetService - ) { - this.iconSet.icons = {cilList}; + @ViewChild('icon', { read: IconComponent }) iconRef!: IconComponent; + + constructor() { + this.iconSet.icons = { cilList }; } } - describe('IconComponent', () => { - let inputEl: DebugElement; + let debugEl: DebugElement; let component: TestComponent; let fixture: ComponentFixture; beforeEach(async () => { TestBed.configureTestingModule({ - declarations: [TestComponent], - imports: [IconComponent, HtmlAttributesDirective], + imports: [TestComponent, IconComponent, HtmlAttributesDirective], providers: [IconSetService] }).compileComponents(); - }); beforeEach(() => { fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; fixture.detectChanges(); - inputEl = fixture.debugElement.query(By.css('svg')); + debugEl = fixture.debugElement.query(By.css('svg')); }); it('should create', () => { @@ -54,13 +50,13 @@ describe('IconComponent', () => { }); it('icon component should render', () => { expect(component.iconRef).toBeTruthy(); - expect(component.iconRef.name).toBe('cilList'); + expect(component.iconRef.name()).toBe('cilList'); expect(component.iconRef.svgElementRef).toBeTruthy(); }); it('icon classes should be applied', () => { - expect(inputEl.nativeElement).toBeTruthy(); - expect(inputEl.nativeElement).toHaveClass('icon'); - expect(inputEl.nativeElement).toHaveClass('icon-lg'); - expect(inputEl.nativeElement).toHaveClass('test'); + expect(debugEl.nativeElement).toBeTruthy(); + expect(debugEl.nativeElement).toHaveClass('icon'); + expect(debugEl.nativeElement).toHaveClass('icon-lg'); + expect(debugEl.nativeElement).toHaveClass('test'); }); }); diff --git a/projects/coreui-icons-angular/src/lib/icon/icon.component.svg b/projects/coreui-icons-angular/src/lib/icon/icon.component.svg index 36a7de4e..55c742cd 100644 --- a/projects/coreui-icons-angular/src/lib/icon/icon.component.svg +++ b/projects/coreui-icons-angular/src/lib/icon/icon.component.svg @@ -1,25 +1,30 @@ - - - - - - +@if (!use() && !!code()) { + +} @else if (use()) { + +} diff --git a/projects/coreui-icons-angular/src/lib/icon/icon.component.ts b/projects/coreui-icons-angular/src/lib/icon/icon.component.ts index a3794c01..f0ad100d 100644 --- a/projects/coreui-icons-angular/src/lib/icon/icon.component.ts +++ b/projects/coreui-icons-angular/src/lib/icon/icon.component.ts @@ -1,109 +1,102 @@ -import { NgClass, NgIf } from '@angular/common'; -import { AfterViewInit, Component, ElementRef, Input, Renderer2, ViewChild } from '@angular/core'; -import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; +import { NgClass } from '@angular/common'; +import { Component, computed, effect, ElementRef, inject, input, Renderer2, viewChild } from '@angular/core'; +import { DomSanitizer } from '@angular/platform-browser'; import { HtmlAttributesDirective } from '../shared/html-attr.directive'; import { IconSetService } from '../icon-set'; -import { IconSize, IIcon } from './icon.interface'; -import { toCamelCase } from './icon.utils'; +import { IconSize, IIcon, NgCssClass } from './icon.interface'; +import { transformName } from './icon.utils'; @Component({ + exportAs: 'cIconComponent', + imports: [NgClass, HtmlAttributesDirective], selector: 'c-icon', - templateUrl: './icon.component.svg', styleUrls: ['./icon.component.scss'], - standalone: true, - imports: [NgClass, NgIf, HtmlAttributesDirective] + templateUrl: './icon.component.svg', + host: { ngSkipHydration: 'true', style: 'display: none' } }) -export class IconComponent implements IIcon, AfterViewInit { - - @Input() attributes: any = { role: 'img' }; - @Input() content?: string | string[] | any[]; - @Input() size: IconSize = ''; - @Input() title?: string; - @Input() use = ''; - @Input() customClasses?: string | string[] | Set | { [klass: string]: any } = ''; - @Input() width?: string; - @Input() height?: string; - - @Input({ transform: (value: string) => value && value.includes('-') ? toCamelCase(value) : value }) name!: string; - - @Input() - set viewBox(viewBox: string) { - this._viewBox = viewBox; - } - - get viewBox(): string { - return this._viewBox ?? this.scale; - } - - private _viewBox!: string; +export class IconComponent implements IIcon { + readonly #renderer = inject(Renderer2); + readonly #elementRef = inject(ElementRef); + readonly #sanitizer = inject(DomSanitizer); + readonly #iconSet = inject(IconSetService); + + readonly content = input(); + + readonly attributes = input>({ role: 'img' }); + readonly customClasses = input(); + readonly size = input(''); + readonly title = input(); + readonly use = input(''); + readonly height = input(); + readonly width = input(); + readonly name = input('', { transform: transformName }); + readonly viewBoxInput = input(undefined, { alias: 'viewBox' }); + + readonly svgElementRef = viewChild('svgElement'); + + readonly #svgElementEffect = effect(() => { + const svgElementRef = this.svgElementRef(); + const hostElement: Element = this.#elementRef.nativeElement; + if (svgElementRef && hostElement) { + const svgElement = svgElementRef.nativeElement; + hostElement.classList?.forEach((item: string) => { + this.#renderer.addClass(svgElement, item); + }); + const parentElement = this.#renderer.parentNode(hostElement); + this.#renderer.insertBefore(parentElement, svgElement, hostElement); + this.#renderer.removeChild(parentElement, hostElement); + } + }); - @ViewChild('svgElement', { read: ElementRef }) svgElementRef!: ElementRef; + readonly viewBox = computed(() => { + return this.viewBoxInput() ?? this.scale(); + }); - get innerHtml(): SafeHtml { - const code = Array.isArray(this.code) ? this.code[1] || this.code[0] : this.code ?? ''; + readonly innerHtml = computed(() => { + const codeVal = this.code(); + const code = Array.isArray(codeVal) ? (codeVal?.[1] ?? codeVal?.[0] ?? '') : codeVal || ''; // todo proper sanitize // const sanitized = this.sanitizer.sanitize(SecurityContext.HTML, code); - return this.sanitizer.bypassSecurityTrustHtml((this.titleCode + code) ?? ''); - } - - constructor( - private renderer: Renderer2, - private elementRef: ElementRef, - private sanitizer: DomSanitizer, - private iconSet: IconSetService - ) { - this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none'); - } + return this.#sanitizer.bypassSecurityTrustHtml(this.#titleCode() + code || ''); + }); - ngAfterViewInit(): void { - this.elementRef.nativeElement.classList.forEach((item: string) => { - this.renderer.addClass(this.svgElementRef.nativeElement, item); - }); - const parentElement = this.renderer.parentNode(this.elementRef.nativeElement); - const svgElement = this.svgElementRef.nativeElement; - this.renderer.insertBefore(parentElement, svgElement, this.elementRef.nativeElement); - this.renderer.removeChild(parentElement, this.elementRef.nativeElement); - } + readonly #titleCode = computed(() => { + return this.title() ? `${this.title()}` : ''; + }); - get titleCode(): string { - return this.title ? `${this.title}` : ''; - } - - get code(): string | string[] | undefined { - if (this.content) { - return this.content; + readonly code = computed(() => { + const content = this.content(); + if (content) { + return content; } - if (this.iconSet && this.name) { - return this.iconSet.getIcon(this.name); + const name = this.name(); + if (this.#iconSet && name) { + return this.#iconSet.getIcon(name); } - if (this.name && !this.iconSet?.icons[this.name]) { - console.warn(`c-icon component: icon name '${this.name}' does not exist for IconSet service. ` + - `To use icon by 'name' prop you need to add it to IconSet service. \n`, - this.name + if (name && !this.#iconSet?.icons[name]) { + console.warn( + `c-icon component: The '${name}' icon not found. Add it to the IconSet service for use with the 'name' property. \n`, + name ); } - return undefined; - } + return ''; + }); - get scale(): string { - return Array.isArray(this.code) && this.code.length > 1 ? `0 0 ${this.code[0]}` : '0 0 64 64'; - } + readonly scale = computed(() => { + return Array.isArray(this.code()) && (this.code()?.length ?? 0) > 1 ? `0 0 ${this.code()?.[0]}` : '0 0 64 64'; + }); - get computedSize(): Exclude | undefined { - const addCustom = !this.size && (this.width || this.height); - return this.size === 'custom' || addCustom ? 'custom-size' : this.size; - } + readonly computedSize = computed(() => { + const addCustom = !this.size() && (this.width() || this.height()); + return this.size() === 'custom' || addCustom ? 'custom-size' : this.size(); + }); - get computedClasses(): any { + readonly computedClasses = computed(() => { const classes = { icon: true, - [`icon-${this.computedSize}`]: !!this.computedSize + [`icon-${this.computedSize()}`]: !!this.computedSize() }; - return !!this.customClasses ? this.customClasses : classes; - } - - toCamelCase(str: string): string { - return toCamelCase(str); - } + return this.customClasses() ?? classes; + }); } diff --git a/projects/coreui-icons-angular/src/lib/icon/icon.directive.spec.ts b/projects/coreui-icons-angular/src/lib/icon/icon.directive.spec.ts index 002e314f..eaece6ec 100644 --- a/projects/coreui-icons-angular/src/lib/icon/icon.directive.spec.ts +++ b/projects/coreui-icons-angular/src/lib/icon/icon.directive.spec.ts @@ -1,57 +1,73 @@ -import { Component, DebugElement, Renderer2, Type, ViewChild } from '@angular/core'; +import { Component, DebugElement, ElementRef, ViewChild, inject } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { By, DomSanitizer } from '@angular/platform-browser'; +import { By } from '@angular/platform-browser'; import { IconDirective } from './icon.directive'; import { IconSetService } from '../icon-set'; import { cilList } from '@coreui/icons'; @Component({ - template: ` - ` + template: '', + imports: [IconDirective], + providers: [IconSetService] }) class TestComponent { - constructor( - public iconSet: IconSetService - ) { + iconSet = inject(IconSetService); + + constructor() { this.iconSet.icons = { cilList }; } - @ViewChild(IconDirective, { read: IconDirective }) iconRef!: IconDirective; + @ViewChild(IconDirective, { read: IconDirective }) public iconRef!: IconDirective; } +class MockElementRef extends ElementRef {} + describe('IconDirective', () => { let component: TestComponent; let fixture: ComponentFixture; let svgEl: DebugElement; - let renderer: Renderer2; - let sanitizer: DomSanitizer; - let iconSetService: IconSetService; beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent], - providers: [IconSetService], - imports: [IconDirective] + providers: [IconSetService, { provide: ElementRef, useClass: MockElementRef }], + imports: [IconDirective, TestComponent] }).compileComponents(); fixture = TestBed.createComponent(TestComponent); component = fixture.componentInstance; fixture.detectChanges(); svgEl = fixture.debugElement.query(By.css('svg')); - renderer = fixture.componentRef.injector.get(Renderer2 as Type); - sanitizer = fixture.componentRef.injector.get(DomSanitizer); - iconSetService = fixture.componentRef.injector.get(IconSetService); }); - it('should create an instance', () => { - const directive = new IconDirective(renderer, svgEl, sanitizer, iconSetService); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new IconDirective(); + expect(directive).toBeTruthy(); + }); + }); + + it('service should exist', () => { + expect(component.iconSet).toBeTruthy(); }); + + it('icon component should render', () => { + expect(component.iconRef).toBeTruthy(); + expect(component.iconRef.code()).toBe(component.iconSet.icons['cilList']); + }); + it('icon classes should be applied', () => { expect(svgEl.nativeElement).toBeTruthy(); expect(svgEl.nativeElement).toHaveClass('icon'); expect(svgEl.nativeElement).toHaveClass('icon-lg'); expect(svgEl.nativeElement).toHaveClass('test'); }); + + it('icon attributes should be applied', () => { + expect(svgEl.nativeElement.getAttribute('aria-hidden')).toBe('true'); + expect(svgEl.nativeElement.getAttribute('pointer-events')).toBe('none'); + expect(svgEl.nativeElement.getAttribute('role')).toBe('img'); + expect(svgEl.nativeElement.getAttribute('title')).toBe('Test'); + expect(svgEl.nativeElement.getAttribute('viewBox')).toBeDefined(); + expect(svgEl.nativeElement.getAttribute('xmlns')).toBe('http://www.w3.org/2000/svg'); + }); }); diff --git a/projects/coreui-icons-angular/src/lib/icon/icon.directive.ts b/projects/coreui-icons-angular/src/lib/icon/icon.directive.ts index 94134e02..58ccdfd4 100644 --- a/projects/coreui-icons-angular/src/lib/icon/icon.directive.ts +++ b/projects/coreui-icons-angular/src/lib/icon/icon.directive.ts @@ -1,109 +1,89 @@ -import { Directive, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core'; +import { computed, Directive, inject, input } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { IconSetService } from '../icon-set'; -import { IconSize, IIcon } from './icon.interface'; -import { toCamelCase } from './icon.utils'; +import { IconSize, IIcon, IPointerEvents, NgCssClass } from './icon.interface'; +import { transformName } from './icon.utils'; @Directive({ - selector: 'svg[cIcon]', exportAs: 'cIcon', - standalone: true + selector: 'svg[cIcon]', + host: { + '[innerHtml]': 'innerHtml()', + '[class]': 'hostClasses()', + '[attr.viewBox]': 'viewBox()', + '[attr.xmlns]': 'xmlns()', + '[attr.pointer-events]': 'pointerEvents()', + '[attr.role]': 'role()', + '[attr.aria-hidden]': 'true' + } }) export class IconDirective implements IIcon { - - @Input('cIcon') content?: string | string[] | any[]; - @Input() size: IconSize = ''; - @Input() title?: string; - @Input() customClasses?: string | string[] | Set | { [klass: string]: any }; - @Input() width?: string; - @Input() height?: string; - - @Input({ transform: (value: string) => value && value.includes('-') ? toCamelCase(value) : value }) name!: string; - - @HostBinding('attr.viewBox') - @Input() - set viewBox(viewBox: string) { - this._viewBox = viewBox; - } - - get viewBox(): string { - return this._viewBox ?? this.scale; - } - - private _viewBox!: string; - - @HostBinding('attr.xmlns') - @Input() xmlns = 'http://www.w3.org/2000/svg'; - - @HostBinding('attr.pointer-events') - @Input('pointer-events') pointerEvents = 'none'; - - @HostBinding('attr.role') - @Input() role = 'img'; - - @HostBinding('class') - get hostClasses() { + readonly #sanitizer = inject(DomSanitizer); + readonly #iconSet = inject(IconSetService); + + readonly content = input(undefined, { alias: 'cIcon' }); + + readonly customClasses = input(); + readonly size = input(''); + readonly title = input(); + readonly height = input(); + readonly width = input(); + readonly name = input('', { transform: transformName }); + readonly viewBoxInput = input(undefined, { alias: 'viewBox' }); + readonly xmlns = input('http://www.w3.org/2000/svg'); + readonly pointerEvents = input('none', { alias: 'pointer-events' }); + readonly role = input('img'); + + readonly hostClasses = computed(() => { + const computedSize = this.computedSize(); const classes = { icon: true, - [`icon-${this.computedSize}`]: !!this.computedSize + [`icon-${computedSize}`]: !!computedSize }; - return this.customClasses ?? classes; - } + return this.customClasses() ?? classes; + }); - @HostBinding('innerHtml') - get innerHtml() { - const code = Array.isArray(this.code) ? this.code[1] || this.code[0] : this.code ?? ''; + readonly viewBox = computed(() => { + return this.viewBoxInput() ?? this.scale(); + }); + + readonly innerHtml = computed(() => { + const codeVal = this.code(); + const code = Array.isArray(codeVal) ? (codeVal?.[1] ?? codeVal?.[0] ?? '') : codeVal || ''; // todo proper sanitize // const sanitized = this.sanitizer.sanitize(SecurityContext.HTML, code); - return this.sanitizer.bypassSecurityTrustHtml((this.titleCode + code) ?? ''); - } + return this.#sanitizer.bypassSecurityTrustHtml(this.#titleCode() + code || ''); + }); - constructor( - private renderer: Renderer2, - private elementRef: ElementRef, - private sanitizer: DomSanitizer, - private iconSet: IconSetService - ) { } - - get titleCode(): string { - return this.title ? `${this.title}` : ''; - } + readonly #titleCode = computed(() => { + return this.title() ? `${this.title()}` : ''; + }); - get code(): string | string[] | undefined { - if (this.content) { - return this.content; + readonly code = computed(() => { + const content = this.content(); + if (content) { + return content; } - if (this.iconSet && this.name) { - return this.iconSet.getIcon(this.name); + const name = this.name(); + if (this.#iconSet && name) { + return this.#iconSet.getIcon(name); } - if (this.name && !this.iconSet?.icons[this.name]) { - console.warn(`c-icon component: icon name '${this.name}' does not exist for IconSet service. ` + - `To use icon by 'name' prop you need to add it to IconSet service. \n`, - this.name + if (name && !this.#iconSet?.icons[name]) { + console.warn( + `cIcon directive: The '${name}' icon not found. Add it to the IconSet service for use with the 'name' property. \n`, + name ); } - return undefined; - } - - get scale(): string { - return Array.isArray(this.code) && this.code.length > 1 ? `0 0 ${this.code[0]}` : '0 0 64 64'; - } + return ''; + }); - get computedSize(): Exclude | undefined { - const addCustom = !this.size && (this.width || this.height); - return this.size === 'custom' || addCustom ? 'custom-size' : this.size; - } + readonly scale = computed(() => { + return Array.isArray(this.code()) && (this.code()?.length ?? 0) > 1 ? `0 0 ${this.code()?.[0]}` : '0 0 64 64'; + }); - get computedClasses(): any { - const classes = { - icon: true, - [`icon-${this.computedSize}`]: !!this.computedSize - }; - return !!this.customClasses ? this.customClasses : classes; - } - - toCamelCase(str: string): string { - return toCamelCase(str); - } + readonly computedSize = computed(() => { + const addCustom = !this.size() && (this.width() || this.height()); + return this.size() === 'custom' || addCustom ? 'custom-size' : this.size(); + }); } diff --git a/projects/coreui-icons-angular/src/lib/icon/icon.interface.ts b/projects/coreui-icons-angular/src/lib/icon/icon.interface.ts index 48ce8c57..379cf0ba 100644 --- a/projects/coreui-icons-angular/src/lib/icon/icon.interface.ts +++ b/projects/coreui-icons-angular/src/lib/icon/icon.interface.ts @@ -1,18 +1,20 @@ +import { InputSignal, InputSignalWithTransform } from '@angular/core'; + export interface IIcon { - content?: string | string[] | any[]; - customClasses?: string | string[] | Set | { [klass: string]: any }; - height?: string; - name?: string; - pointerEvents?: string; - size?: IconSize; - title?: string; - viewBox?: string; - width?: string; - xmlns?: string; + content?: InputSignal; + customClasses?: InputSignal; + height?: InputSignal; + name?: InputSignalWithTransform; + pointerEvents?: InputSignal; + size?: InputSignal; + title?: InputSignal; + viewBoxInput?: InputSignal; + width: InputSignal; + xmlns?: InputSignal; } export type IconSize = - 'custom' + | 'custom' | 'custom-size' | 'sm' | 'lg' @@ -26,3 +28,18 @@ export type IconSize = | '8xl' | '9xl' | string; + +export type IPointerEvents = + | 'auto' + | 'bounding-box' + | 'visiblePainted' + | 'visibleFill' + | 'visibleStroke' + | 'visible' + | 'painted' + | 'fill' + | 'stroke' + | 'all' + | 'none'; + +export type NgCssClass = string | string[] | Set | { [klass: string]: any }; diff --git a/projects/coreui-icons-angular/src/lib/icon/icon.utils.ts b/projects/coreui-icons-angular/src/lib/icon/icon.utils.ts index 4ee54cd6..76add244 100644 --- a/projects/coreui-icons-angular/src/lib/icon/icon.utils.ts +++ b/projects/coreui-icons-angular/src/lib/icon/icon.utils.ts @@ -1,5 +1,9 @@ -export function toCamelCase(str: string): any { - return str.replace(/([-_][a-z0-9])/ig, ($1: string) => { +export function toCamelCase(value: string) { + return value.replace(/([-_][a-z0-9])/ig, ($1: string) => { return $1.toUpperCase().replace('-', ''); }); } + +export function transformName(value: string) { + return value && value.includes('-') ? toCamelCase(value) : value; +} diff --git a/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.spec.ts b/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.spec.ts index 31836331..5ba9ca78 100644 --- a/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.spec.ts +++ b/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.spec.ts @@ -1,53 +1,50 @@ -import { Component, DebugElement, Renderer2, Type } from '@angular/core'; +import { Component, DebugElement, ElementRef, Renderer2 } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { HtmlAttributesDirective } from './html-attr.directive'; @Component({ - template: ` -
      ` + template: `
      `, + imports: [HtmlAttributesDirective] }) class TestComponent {} -describe('HtmlAttributesDirective', () => { +class MockElementRef extends ElementRef {} - let component: TestComponent; +describe('HtmlAttributesDirective', () => { let fixture: ComponentFixture; - let inputEl: DebugElement; - let renderer: Renderer2; + let debugElement: DebugElement; beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComponent], - imports: [HtmlAttributesDirective] + imports: [HtmlAttributesDirective, TestComponent], + providers: [Renderer2, { provide: ElementRef, useClass: MockElementRef }] }); fixture = TestBed.createComponent(TestComponent); - component = fixture.componentInstance; - inputEl = fixture.debugElement.query(By.css('div')); - renderer = fixture.componentRef.injector.get(Renderer2 as Type); + debugElement = fixture.debugElement.query(By.css('div')); }); it('should create an instance', () => { - const directive = new HtmlAttributesDirective(renderer, inputEl); - expect(directive).toBeTruthy(); + TestBed.runInInjectionContext(() => { + const directive = new HtmlAttributesDirective(); + expect(directive).toBeTruthy(); + }); }); it('should render a class attr', () => { fixture.detectChanges(); - // console.log(inputEl.nativeElement.classList); - expect(inputEl.nativeElement.classList.contains('test')).toBeTruthy(); + expect(debugElement.nativeElement).toHaveClass('test'); }); it('should render a style attr', () => { fixture.detectChanges(); // console.log(inputEl.nativeElement.style.backgroundColor); - expect(inputEl.nativeElement.style.backgroundColor).toBe('red'); + expect(debugElement.nativeElement.style.backgroundColor).toBe('red'); }); it('should render an id attr', () => { fixture.detectChanges(); - // console.log(inputEl.nativeElement.attributes); - expect(inputEl.nativeElement.getAttribute('id')).toBe('id-1'); + expect(debugElement.nativeElement.getAttribute('id')).toBe('id-1'); }); }); diff --git a/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.ts b/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.ts index e5b11bad..b5b9dfb6 100644 --- a/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.ts +++ b/projects/coreui-icons-angular/src/lib/shared/html-attr.directive.ts @@ -1,23 +1,19 @@ -import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core'; +import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core'; @Directive({ selector: '[cHtmlAttr]', - exportAs: 'cHtmlAttr', - standalone: true + exportAs: 'cHtmlAttr' }) -export class HtmlAttributesDirective implements OnInit { +export class HtmlAttributesDirective { + readonly cHtmlAttr = input>(); - @Input() cHtmlAttr?: { [key: string]: any }; + readonly #renderer = inject(Renderer2); + readonly #elementRef = inject(ElementRef); - constructor( - private renderer: Renderer2, - private el: ElementRef - ) {} - - ngOnInit(): void { - const attribs = this.cHtmlAttr; + readonly attrEffect = effect(() => { + const attribs = this.cHtmlAttr(); for (const attr in attribs) { - if (attr === 'style' && typeof (attribs[attr]) === 'object') { + if (attr === 'style' && typeof attribs[attr] === 'object') { this.setStyle(attribs[attr]); } else if (attr === 'class') { this.addClass(attribs[attr]); @@ -25,26 +21,28 @@ export class HtmlAttributesDirective implements OnInit { this.setAttrib(attr, attribs[attr]); } } - } + }); - private setStyle(styles: { [x: string]: any; }): void { + private setStyle(styles: Record): void { for (const style in styles) { if (style) { - this.renderer.setStyle(this.el.nativeElement, style, styles[style]); + this.#renderer.setStyle(this.#elementRef.nativeElement, style, styles[style]); } } } private addClass(classes: string | string[]): void { - const classArray = (Array.isArray(classes) ? classes : classes.split(' ')); - classArray.filter((element) => element.length > 0).forEach(element => { - this.renderer.addClass(this.el.nativeElement, element); - }); + const classArray = Array.isArray(classes) ? classes : classes.split(' '); + classArray + .filter((element) => element.length > 0) + .forEach((element) => { + this.#renderer.addClass(this.#elementRef.nativeElement, element); + }); } private setAttrib(key: string, value: string | null): void { - value !== null ? - this.renderer.setAttribute(this.el.nativeElement, key, value) : - this.renderer.removeAttribute(this.el.nativeElement, key); + value !== null + ? this.#renderer.setAttribute(this.#elementRef.nativeElement, key, value) + : this.#renderer.removeAttribute(this.#elementRef.nativeElement, key); } } diff --git a/projects/coreui-icons-angular/src/public-api.ts b/projects/coreui-icons-angular/src/public-api.ts index e5b4cbfa..cd197290 100644 --- a/projects/coreui-icons-angular/src/public-api.ts +++ b/projects/coreui-icons-angular/src/public-api.ts @@ -4,5 +4,5 @@ export { IconDirective } from './lib/icon/icon.directive'; export { IconComponent } from './lib/icon/icon.component'; export { IconModule } from './lib/icon/icon.module'; -export { IconSetService, IIconSet } from './lib/icon-set/icon-set.service'; +export { IconSetService, type IIconSet } from './lib/icon-set/icon-set.service'; export { IconSetModule } from './lib/icon-set/icon-set.module'; diff --git a/projects/coreui-icons-angular/tsconfig.json b/projects/coreui-icons-angular/tsconfig.json index b3e0d01a..f32c6659 100644 --- a/projects/coreui-icons-angular/tsconfig.json +++ b/projects/coreui-icons-angular/tsconfig.json @@ -1,4 +1,5 @@ { + "extends": "../../tsconfig.json", "files": [], "references": [ { @@ -9,6 +10,9 @@ }, { "path": "./tsconfig.spec.json" + }, + { + "path": "./tsconfig.schematics.json" } ] } diff --git a/projects/coreui-icons-angular/tsconfig.lib.json b/projects/coreui-icons-angular/tsconfig.lib.json index b77b13c0..3879b4cd 100644 --- a/projects/coreui-icons-angular/tsconfig.lib.json +++ b/projects/coreui-icons-angular/tsconfig.lib.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "../../tsconfig.json", "compilerOptions": { diff --git a/projects/coreui-icons-angular/tsconfig.lib.prod.json b/projects/coreui-icons-angular/tsconfig.lib.prod.json index 06de549e..478e15bd 100644 --- a/projects/coreui-icons-angular/tsconfig.lib.prod.json +++ b/projects/coreui-icons-angular/tsconfig.lib.prod.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "./tsconfig.lib.json", "compilerOptions": { @@ -6,5 +7,9 @@ }, "angularCompilerOptions": { "compilationMode": "partial" - } + }, + "include": [ + "src/**/*.ts", + "src/**/*.d.ts" + ] } diff --git a/projects/coreui-icons-angular/tsconfig.schematics.json b/projects/coreui-icons-angular/tsconfig.schematics.json new file mode 100644 index 00000000..027f35d2 --- /dev/null +++ b/projects/coreui-icons-angular/tsconfig.schematics.json @@ -0,0 +1,38 @@ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ +{ + "compilerOptions": { + "baseUrl": ".", + "lib": [ + "ES2022", + "dom" + ], + "declaration": true, + "module": "commonjs", + "moduleResolution": "node", + "noEmitOnError": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitThis": true, + "noUnusedParameters": true, + "noUnusedLocals": true, + "rootDir": "schematics", + "outDir": "../../dist/coreui-icons-angular/schematics", + "resolveJsonModule": true, + "skipDefaultLibCheck": true, + "skipLibCheck": true, + "sourceMap": true, + "strictNullChecks": true, + "target": "ES2022", + "types": [ + "jasmine", + "node" + ] + }, + "include": [ + "schematics/**/*" + ], + "exclude": [ + "schematics/*/files/**/*" + ] +} diff --git a/projects/coreui-icons-angular/tsconfig.spec.json b/projects/coreui-icons-angular/tsconfig.spec.json index 715dd0a5..56ad847a 100644 --- a/projects/coreui-icons-angular/tsconfig.spec.json +++ b/projects/coreui-icons-angular/tsconfig.spec.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "extends": "../../tsconfig.json", "compilerOptions": { @@ -12,6 +13,7 @@ ], "include": [ "**/*.spec.ts", - "**/*.d.ts" + "**/*.d.ts", + "**/*.ts" ] } diff --git a/tsconfig.json b/tsconfig.json index 77fb916b..1baa4cea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,5 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ +/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ +/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */ { "compileOnSave": false, "compilerOptions": { @@ -18,30 +19,33 @@ "forceConsistentCasingInFileNames": true, "strict": true, "noImplicitOverride": true, - "noPropertyAccessFromIndexSignature": false, + "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, + "skipLibCheck": true, + "isolatedModules": true, + "esModuleInterop": true, "sourceMap": true, "declaration": false, - "downlevelIteration": true, "experimentalDecorators": true, - "moduleResolution": "node", + "moduleResolution": "bundler", + "resolveJsonModule": true, "importHelpers": true, "target": "ES2022", - "module": "ES2022", - "useDefineForClassFields": false, + "module": "preserve", "typeRoots": [ "node_modules/@types" ], "lib": [ "ES2022", "dom" - ], + ] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModifiers": true, + "typeCheckHostBindings": true, "strictTemplates": true } }