@boots-edu/webz
Advanced tools
Comparing version 0.9.8 to 0.9.9
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BindStyleToNumberAppendPx = exports.BindStyleToNumber = exports.BindValueToNumber = exports.BindCheckedToBoolean = exports.BindVisibleToBoolean = exports.BindDisabledToBoolean = exports.BindCSSClassToBoolean = exports.BindList = exports.BindAttribute = exports.BindValue = exports.BindCSSClass = exports.BindStyle = void 0; | ||
const eventsubject_1 = require("./eventsubject"); | ||
const notifier_1 = require("./notifier"); | ||
/** | ||
@@ -206,3 +206,3 @@ * @description Gets the public key of the field name | ||
} | ||
const boundProxyRebuild = new eventsubject_1.EventSubject(); | ||
const boundProxyRebuild = new notifier_1.Notifier(); | ||
/** | ||
@@ -209,0 +209,0 @@ * @description Creates a proxy object that will update the bound list when the array is modified |
@@ -6,3 +6,3 @@ export * from "./bind.decorators"; | ||
export * from "./WebzRouter"; | ||
export * from "./eventsubject"; | ||
export * from "./notifier"; | ||
export * from "./bootstrap"; |
@@ -22,3 +22,3 @@ "use strict"; | ||
__exportStar(require("./WebzRouter"), exports); | ||
__exportStar(require("./eventsubject"), exports); | ||
__exportStar(require("./notifier"), exports); | ||
__exportStar(require("./bootstrap"), exports); |
{ | ||
"name": "@boots-edu/webz", | ||
"version": "0.9.8", | ||
"version": "0.9.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
import { WebzRouter, Route } from "./WebzRouter"; | ||
import { EventSubject } from "./eventsubject"; | ||
import { Notifier } from "./notifier"; | ||
/** | ||
@@ -58,3 +58,3 @@ * @description An enum for the HTTP methods | ||
* @readonly | ||
* @type {EventSubject<SizeInfo>} | ||
* @type {Notifier<SizeInfo>} | ||
* @memberof WebzComponent | ||
@@ -66,3 +66,3 @@ * @example this.onResizeEvent.subscribe((sizeInfo) => { | ||
*/ | ||
get onResizeEvent(): EventSubject<SizeInfo>; | ||
get onResizeEvent(): Notifier<SizeInfo>; | ||
/** | ||
@@ -131,3 +131,3 @@ * @description Creates an instance of WebzComponent. | ||
*/ | ||
static ajax<T = any>(url: string, method: HttpMethod, headers?: any[], data?: any): EventSubject<T>; | ||
static ajax<T = any>(url: string, method: HttpMethod, headers?: any[], data?: any): Notifier<T>; | ||
/** | ||
@@ -134,0 +134,0 @@ * @description Get the size of the window |
@@ -5,3 +5,3 @@ "use strict"; | ||
const WebzRouter_1 = require("./WebzRouter"); | ||
const eventsubject_1 = require("./eventsubject"); | ||
const notifier_1 = require("./notifier"); | ||
/** | ||
@@ -38,3 +38,3 @@ * @description An enum for the HTTP methods | ||
* @readonly | ||
* @type {EventSubject<SizeInfo>} | ||
* @type {Notifier<SizeInfo>} | ||
* @memberof WebzComponent | ||
@@ -183,3 +183,3 @@ * @example this.onResizeEvent.subscribe((sizeInfo) => { | ||
static ajax(url, method, headers = [], data) { | ||
const evt = new eventsubject_1.EventSubject(); | ||
const evt = new notifier_1.Notifier(); | ||
const xhr = new XMLHttpRequest(); | ||
@@ -261,2 +261,2 @@ xhr.open(method, url); | ||
exports.WebzComponent = WebzComponent; | ||
WebzComponent.resizeEvent = new eventsubject_1.EventSubject(); | ||
WebzComponent.resizeEvent = new notifier_1.Notifier(); |
import { WebzComponent } from "./WebzComponent"; | ||
import { EventSubject } from "./eventsubject"; | ||
import { Notifier } from "./notifier"; | ||
/** @hidden */ | ||
@@ -51,3 +51,3 @@ export declare let popupDialog: WebzDialog | undefined; | ||
* @param {string} [btnClass=""] The class to apply to the buttons | ||
* @returns {EventSubject<string>} The event subject that is triggered when the dialog is closed | ||
* @returns {Notifier<string>} The event subject that is triggered when the dialog is closed | ||
* @memberof WebzDialog | ||
@@ -63,3 +63,3 @@ * @example | ||
*/ | ||
static popup(attachTo: WebzComponent, message: string, title?: string, buttons?: string[], btnClass?: string): EventSubject<string>; | ||
static popup(attachTo: WebzComponent, message: string, title?: string, buttons?: string[], btnClass?: string): Notifier<string>; | ||
} |
@@ -5,3 +5,3 @@ "use strict"; | ||
const WebzComponent_1 = require("./WebzComponent"); | ||
const eventsubject_1 = require("./eventsubject"); | ||
const notifier_1 = require("./notifier"); | ||
/** @hidden */ | ||
@@ -93,3 +93,3 @@ exports.popupDialog = undefined; | ||
super(html, css); | ||
this.closeEvent = new eventsubject_1.EventSubject(); | ||
this.closeEvent = new notifier_1.Notifier(); | ||
const styleEl = window.document.createElement("style"); | ||
@@ -149,3 +149,3 @@ styleEl.innerHTML = backgroundTemplate + popupTemplate; | ||
* @param {string} [btnClass=""] The class to apply to the buttons | ||
* @returns {EventSubject<string>} The event subject that is triggered when the dialog is closed | ||
* @returns {Notifier<string>} The event subject that is triggered when the dialog is closed | ||
* @memberof WebzDialog | ||
@@ -152,0 +152,0 @@ * @example |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82543