@breadstone/mosaik-elements-angular 0.1.37 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.1.39 (2026-06-29)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for mosaik-elements-angular to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 0.1.38 (2026-06-29)
|
|
6
|
+
|
|
7
|
+
### 🚀 Features
|
|
8
|
+
|
|
9
|
+
- **color-swatch:** enhance ColorSwatch component with new properties and events ([1ca631f146](https://github.com/RueDeRennes/mosaik/commit/1ca631f146))
|
|
10
|
+
|
|
1
11
|
## 0.1.37 (2026-06-29)
|
|
2
12
|
|
|
3
13
|
This was a version bump only for mosaik-elements-angular to align it with other projects, there were no code changes.
|
|
@@ -39177,6 +39177,7 @@ const COLOR_SWATCH_DEFAULT_PROPS = new InjectionToken('MOSAIK_COLOR_SWATCH_DEFAU
|
|
|
39177
39177
|
/**
|
|
39178
39178
|
* @public
|
|
39179
39179
|
*
|
|
39180
|
+
* @slot checkmark - The checkmark slot.
|
|
39180
39181
|
* @slot style - Custom styles injection slot for shadow DOM styling escape hatch
|
|
39181
39182
|
*/
|
|
39182
39183
|
let ColorSwatchComponent = class ColorSwatchComponent {
|
|
@@ -39189,7 +39190,7 @@ let ColorSwatchComponent = class ColorSwatchComponent {
|
|
|
39189
39190
|
constructor() {
|
|
39190
39191
|
inject(ChangeDetectorRef).detach();
|
|
39191
39192
|
// Wire up output events from the native element
|
|
39192
|
-
this._outputSubscriptions.push(this._elementRef.nativeElement.on('connected', (e) => this.connected.emit(e instanceof CustomEvent ? e.detail : undefined)), this._elementRef.nativeElement.on('disconnected', (e) => this.disconnected.emit(e instanceof CustomEvent ? e.detail : undefined)), this._elementRef.nativeElement.on('changed', (e) => this.changed.emit(e instanceof CustomEvent ? e.detail : undefined)));
|
|
39193
|
+
this._outputSubscriptions.push(this._elementRef.nativeElement.on('toggled', (e) => this.toggled.emit(e instanceof CustomEvent ? e.detail : undefined)), this._elementRef.nativeElement.on('checked', (e) => this.checked.emit(e instanceof CustomEvent ? e.detail : undefined)), this._elementRef.nativeElement.on('unchecked', (e) => this.unchecked.emit(e instanceof CustomEvent ? e.detail : undefined)), this._elementRef.nativeElement.on('connected', (e) => this.connected.emit(e instanceof CustomEvent ? e.detail : undefined)), this._elementRef.nativeElement.on('disconnected', (e) => this.disconnected.emit(e instanceof CustomEvent ? e.detail : undefined)), this._elementRef.nativeElement.on('changed', (e) => this.changed.emit(e instanceof CustomEvent ? e.detail : undefined)));
|
|
39193
39194
|
this._destroyRef.onDestroy(() => {
|
|
39194
39195
|
this._outputSubscriptions.forEach((subscription) => subscription.dispose());
|
|
39195
39196
|
this._outputSubscriptions.length = 0;
|
|
@@ -39224,6 +39225,34 @@ let ColorSwatchComponent = class ColorSwatchComponent {
|
|
|
39224
39225
|
*/
|
|
39225
39226
|
themeName = input(/* @ts-ignore */
|
|
39226
39227
|
...(ngDevMode ? [undefined, { debugName: "themeName" }] : /* istanbul ignore next */ []));
|
|
39228
|
+
/**
|
|
39229
|
+
* Signal input for the `isChecked` property.
|
|
39230
|
+
*
|
|
39231
|
+
* @public
|
|
39232
|
+
*/
|
|
39233
|
+
isChecked = input(/* @ts-ignore */
|
|
39234
|
+
...(ngDevMode ? [undefined, { debugName: "isChecked" }] : /* istanbul ignore next */ []));
|
|
39235
|
+
/**
|
|
39236
|
+
* Signal input for the `disabled` property.
|
|
39237
|
+
*
|
|
39238
|
+
* @public
|
|
39239
|
+
*/
|
|
39240
|
+
disabled = input(/* @ts-ignore */
|
|
39241
|
+
...(ngDevMode ? [undefined, { debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
39242
|
+
/**
|
|
39243
|
+
* Signal input for the `variant` property.
|
|
39244
|
+
*
|
|
39245
|
+
* @public
|
|
39246
|
+
*/
|
|
39247
|
+
variant = input(/* @ts-ignore */
|
|
39248
|
+
...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
39249
|
+
/**
|
|
39250
|
+
* Signal input for the `appearance` property.
|
|
39251
|
+
*
|
|
39252
|
+
* @public
|
|
39253
|
+
*/
|
|
39254
|
+
appearance = input(/* @ts-ignore */
|
|
39255
|
+
...(ngDevMode ? [undefined, { debugName: "appearance" }] : /* istanbul ignore next */ []));
|
|
39227
39256
|
/**
|
|
39228
39257
|
* Signal input for the `value` property.
|
|
39229
39258
|
*
|
|
@@ -39273,6 +39302,22 @@ let ColorSwatchComponent = class ColorSwatchComponent {
|
|
|
39273
39302
|
if (themeNameValue !== undefined) {
|
|
39274
39303
|
this._elementRef.nativeElement.themeName = themeNameValue;
|
|
39275
39304
|
}
|
|
39305
|
+
const isCheckedValue = this.isChecked();
|
|
39306
|
+
if (isCheckedValue !== undefined) {
|
|
39307
|
+
this._elementRef.nativeElement.isChecked = isCheckedValue;
|
|
39308
|
+
}
|
|
39309
|
+
const disabledValue = this.disabled();
|
|
39310
|
+
if (disabledValue !== undefined) {
|
|
39311
|
+
this._elementRef.nativeElement.disabled = disabledValue;
|
|
39312
|
+
}
|
|
39313
|
+
const variantValue = this.variant();
|
|
39314
|
+
if (variantValue !== undefined) {
|
|
39315
|
+
this._elementRef.nativeElement.variant = variantValue;
|
|
39316
|
+
}
|
|
39317
|
+
const appearanceValue = this.appearance();
|
|
39318
|
+
if (appearanceValue !== undefined) {
|
|
39319
|
+
this._elementRef.nativeElement.appearance = appearanceValue;
|
|
39320
|
+
}
|
|
39276
39321
|
const valueValue = this.value();
|
|
39277
39322
|
if (valueValue !== undefined) {
|
|
39278
39323
|
this._elementRef.nativeElement.value = valueValue;
|
|
@@ -39293,6 +39338,24 @@ let ColorSwatchComponent = class ColorSwatchComponent {
|
|
|
39293
39338
|
}
|
|
39294
39339
|
// #endregion
|
|
39295
39340
|
// #region Outputs
|
|
39341
|
+
/**
|
|
39342
|
+
* Output signal for the `toggled` event.
|
|
39343
|
+
*
|
|
39344
|
+
* @public
|
|
39345
|
+
*/
|
|
39346
|
+
toggled = output();
|
|
39347
|
+
/**
|
|
39348
|
+
* Output signal for the `checked` event.
|
|
39349
|
+
*
|
|
39350
|
+
* @public
|
|
39351
|
+
*/
|
|
39352
|
+
checked = output();
|
|
39353
|
+
/**
|
|
39354
|
+
* Output signal for the `unchecked` event.
|
|
39355
|
+
*
|
|
39356
|
+
* @public
|
|
39357
|
+
*/
|
|
39358
|
+
unchecked = output();
|
|
39296
39359
|
/**
|
|
39297
39360
|
* Output signal for the `connected` event.
|
|
39298
39361
|
*
|
|
@@ -39313,6 +39376,17 @@ let ColorSwatchComponent = class ColorSwatchComponent {
|
|
|
39313
39376
|
changed = output();
|
|
39314
39377
|
// #endregion
|
|
39315
39378
|
// #region Methods
|
|
39379
|
+
/**
|
|
39380
|
+
* Invokes a method on the underlying native element.
|
|
39381
|
+
*
|
|
39382
|
+
* @public
|
|
39383
|
+
* @param method - The method name to invoke.
|
|
39384
|
+
* @param args - The arguments to pass to the method.
|
|
39385
|
+
* @returns The return value of the method.
|
|
39386
|
+
*/
|
|
39387
|
+
invoke(method, ...args) {
|
|
39388
|
+
return invokeProxyMethod(this._elementRef.nativeElement, method, ...args);
|
|
39389
|
+
}
|
|
39316
39390
|
/**
|
|
39317
39391
|
* Sets a property value on the underlying native element.
|
|
39318
39392
|
* This is useful for CDK behaviors and directives that need to modify element properties
|
|
@@ -39326,12 +39400,13 @@ let ColorSwatchComponent = class ColorSwatchComponent {
|
|
|
39326
39400
|
this._elementRef.nativeElement[property] = value;
|
|
39327
39401
|
}
|
|
39328
39402
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: ColorSwatchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39329
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: ColorSwatchComponent, isStandalone: true, selector: "mosaik-color-swatch", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, hasBackground: { classPropertyName: "hasBackground", publicName: "hasBackground", isSignal: true, isRequired: false, transformFunction: null }, themeName: { classPropertyName: "themeName", publicName: "themeName", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, lang: { classPropertyName: "lang", publicName: "lang", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39403
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: ColorSwatchComponent, isStandalone: true, selector: "mosaik-color-swatch", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, hasBackground: { classPropertyName: "hasBackground", publicName: "hasBackground", isSignal: true, isRequired: false, transformFunction: null }, themeName: { classPropertyName: "themeName", publicName: "themeName", isSignal: true, isRequired: false, transformFunction: null }, isChecked: { classPropertyName: "isChecked", publicName: "isChecked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, lang: { classPropertyName: "lang", publicName: "lang", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggled: "toggled", checked: "checked", unchecked: "unchecked", connected: "connected", disconnected: "disconnected", changed: "changed" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39330
39404
|
};
|
|
39331
39405
|
ColorSwatchComponent = __decorate$3a([
|
|
39332
39406
|
ProxyCmp({
|
|
39333
39407
|
defineCustomElementFn: () => defineCustomElement('mosaik-color-swatch', ColorSwatchElement),
|
|
39334
|
-
inputs: ['name', 'hasBackground', 'themeName', 'value', 'size', 'dir', 'lang']
|
|
39408
|
+
inputs: ['name', 'hasBackground', 'themeName', 'isChecked', 'disabled', 'variant', 'appearance', 'value', 'size', 'dir', 'lang'],
|
|
39409
|
+
methods: ['check', 'uncheck', 'toggle']
|
|
39335
39410
|
}),
|
|
39336
39411
|
__metadata$3a("design:paramtypes", [])
|
|
39337
39412
|
], ColorSwatchComponent);
|
|
@@ -39343,7 +39418,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
39343
39418
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39344
39419
|
template: '<ng-content></ng-content>'
|
|
39345
39420
|
}]
|
|
39346
|
-
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], hasBackground: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasBackground", required: false }] }], themeName: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeName", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], lang: [{ type: i0.Input, args: [{ isSignal: true, alias: "lang", required: false }] }], connected: [{ type: i0.Output, args: ["connected"] }], disconnected: [{ type: i0.Output, args: ["disconnected"] }], changed: [{ type: i0.Output, args: ["changed"] }] } });
|
|
39421
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], hasBackground: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasBackground", required: false }] }], themeName: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeName", required: false }] }], isChecked: [{ type: i0.Input, args: [{ isSignal: true, alias: "isChecked", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], lang: [{ type: i0.Input, args: [{ isSignal: true, alias: "lang", required: false }] }], toggled: [{ type: i0.Output, args: ["toggled"] }], checked: [{ type: i0.Output, args: ["checked"] }], unchecked: [{ type: i0.Output, args: ["unchecked"] }], connected: [{ type: i0.Output, args: ["connected"] }], disconnected: [{ type: i0.Output, args: ["disconnected"] }], changed: [{ type: i0.Output, args: ["changed"] }] } });
|
|
39347
39422
|
/**
|
|
39348
39423
|
* @public
|
|
39349
39424
|
*/
|