Skip to content

Commit 453fd59

Browse files
committed
feat(pick-datetime): inject constructor
1 parent d833b76 commit 453fd59

File tree

27 files changed

+1051
-1656
lines changed

27 files changed

+1051
-1656
lines changed

packages/color-picker/src/lib/color-picker/color-picker.component.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AfterViewChecked, ChangeDetectorRef, Component, ElementRef, inject, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core'
1+
import { AfterViewChecked, Component, ElementRef, inject, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core'
22
import { cmykToRgb, denormalizeCMYK, denormalizeHSLA, denormalizeRGBA, formatCmyk, formatOutput, hslaToHsva, hsvaToHsla, hsvaToRgba, rgbaToCmyk, rgbaToHex, rgbaToHsva, stringToCmyk, stringToHsva } from '../../util/color'
33
import { opaqueSliderLight, transparentSliderLight } from '../../util/contrast'
44
import { Cmyk, Hsla, Hsva, Rgba } from '../../util/formats'
@@ -99,7 +99,6 @@ export class ColorPickerComponent implements OnInit, OnDestroy, AfterViewChecked
9999

100100
presetColorsEditable: boolean = false
101101
private readonly elRef = inject(ElementRef)
102-
private readonly cdRef = inject(ChangeDetectorRef)
103102
private readonly service = inject(ColorPickerService)
104103

105104
onCancel(event: Event) {
@@ -768,11 +767,6 @@ export class ColorPickerComponent implements OnInit, OnDestroy, AfterViewChecked
768767
if (this.callbacks) {
769768
this.callbacks.stateChanged(false)
770769
}
771-
772-
//@ts-ignore
773-
if (!this.cdRef['destroyed']) {
774-
this.cdRef.detectChanges()
775-
}
776770
}
777771
}
778772

packages/demo/src/app/highlightjs/documentation.json

Lines changed: 16 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,21 +2511,10 @@
25112511
"deprecationMessage": ""
25122512
},
25132513
{
2514-
"name": "formatUrl",
2515-
"type": "unknown",
2514+
"name": "_options",
25162515
"deprecated": false,
25172516
"deprecationMessage": "",
2518-
"destrucuredGroupId": "e16fa867-5074-45dd-b5e0-67d23af0bbe9",
2519-
"destructuredParameter": true
2520-
},
2521-
{
2522-
"name": "options",
2523-
"type": "any[]",
2524-
"deprecated": false,
2525-
"deprecationMessage": "",
2526-
"dotDotDotToken": true,
2527-
"destrucuredGroupId": "e16fa867-5074-45dd-b5e0-67d23af0bbe9",
2528-
"destructuredParameter": true
2517+
"defaultValue": "{}"
25292518
}
25302519
],
25312520
"jsdoctags": [
@@ -2553,24 +2542,10 @@
25532542
"comment": "<p>File raw link</p>\n"
25542543
},
25552544
{
2556-
"name": "formatUrl",
2557-
"type": "unknown",
2558-
"deprecated": false,
2559-
"deprecationMessage": "",
2560-
"destrucuredGroupId": "e16fa867-5074-45dd-b5e0-67d23af0bbe9",
2561-
"destructuredParameter": true,
2562-
"tagName": {
2563-
"text": "param"
2564-
}
2565-
},
2566-
{
2567-
"name": "options",
2568-
"type": "any[]",
2545+
"name": "_options",
25692546
"deprecated": false,
25702547
"deprecationMessage": "",
2571-
"dotDotDotToken": true,
2572-
"destrucuredGroupId": "e16fa867-5074-45dd-b5e0-67d23af0bbe9",
2573-
"destructuredParameter": true,
2548+
"defaultValue": "{}",
25742549
"tagName": {
25752550
"text": "param"
25762551
}
@@ -2602,8 +2577,8 @@
26022577
"jsdoctags": [
26032578
{
26042579
"name": {
2605-
"pos": 3158,
2606-
"end": 3160,
2580+
"pos": 3188,
2581+
"end": 3190,
26072582
"kind": 80,
26082583
"id": 0,
26092584
"flags": 16777216,
@@ -2613,8 +2588,8 @@
26132588
"deprecated": false,
26142589
"deprecationMessage": "",
26152590
"tagName": {
2616-
"pos": 3152,
2617-
"end": 3157,
2591+
"pos": 3182,
2592+
"end": 3187,
26182593
"kind": 80,
26192594
"id": 0,
26202595
"flags": 16777216,
@@ -2789,21 +2764,10 @@
27892764
"deprecationMessage": ""
27902765
},
27912766
{
2792-
"name": "formatUrl",
2793-
"type": "unknown",
2767+
"name": "_options",
27942768
"deprecated": false,
27952769
"deprecationMessage": "",
2796-
"destrucuredGroupId": "e16fa867-5074-45dd-b5e0-67d23af0bbe9",
2797-
"destructuredParameter": true
2798-
},
2799-
{
2800-
"name": "options",
2801-
"type": "any[]",
2802-
"deprecated": false,
2803-
"deprecationMessage": "",
2804-
"dotDotDotToken": true,
2805-
"destrucuredGroupId": "e16fa867-5074-45dd-b5e0-67d23af0bbe9",
2806-
"destructuredParameter": true
2770+
"defaultValue": "{}"
28072771
}
28082772
],
28092773
"jsdoctags": [
@@ -2831,24 +2795,10 @@
28312795
"comment": "<p>File raw link</p>\n"
28322796
},
28332797
{
2834-
"name": "formatUrl",
2835-
"type": "unknown",
2836-
"deprecated": false,
2837-
"deprecationMessage": "",
2838-
"destrucuredGroupId": "e16fa867-5074-45dd-b5e0-67d23af0bbe9",
2839-
"destructuredParameter": true,
2840-
"tagName": {
2841-
"text": "param"
2842-
}
2843-
},
2844-
{
2845-
"name": "options",
2846-
"type": "any[]",
2798+
"name": "_options",
28472799
"deprecated": false,
28482800
"deprecationMessage": "",
2849-
"dotDotDotToken": true,
2850-
"destrucuredGroupId": "e16fa867-5074-45dd-b5e0-67d23af0bbe9",
2851-
"destructuredParameter": true,
2801+
"defaultValue": "{}",
28522802
"tagName": {
28532803
"text": "param"
28542804
}
@@ -2880,8 +2830,8 @@
28802830
"jsdoctags": [
28812831
{
28822832
"name": {
2883-
"pos": 3158,
2884-
"end": 3160,
2833+
"pos": 3188,
2834+
"end": 3190,
28852835
"kind": 80,
28862836
"id": 0,
28872837
"flags": 16777216,
@@ -2891,8 +2841,8 @@
28912841
"deprecated": false,
28922842
"deprecationMessage": "",
28932843
"tagName": {
2894-
"pos": 3152,
2895-
"end": 3157,
2844+
"pos": 3182,
2845+
"end": 3187,
28962846
"kind": 80,
28972847
"id": 0,
28982848
"flags": 16777216,

0 commit comments

Comments
 (0)