Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 9dac1da

Browse files
committed
include base-component
1 parent 42b8422 commit 9dac1da

13 files changed

+8460
-8444
lines changed

dist/iiif-gallery-component.bundle.d.ts

Lines changed: 59 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,3 @@
1-
// base-component v1.0.6 https://github.com/viewdir/base-component#readme
2-
interface Window {
3-
_Components: any;
4-
}
5-
6-
// remove if https://github.com/scottcorgan/tiny-emitter/pull/14 is merged
7-
interface EventEmitter {
8-
on (event: string, callback: Function, ctx?: any): EventEmitter;
9-
once (event: string, callback: Function, ctx?: any): EventEmitter;
10-
emit (event: string, ...args: any[]): EventEmitter;
11-
off (event: string, callback?: Function): EventEmitter;
12-
}
13-
14-
declare var TinyEmitter: any;
15-
declare namespace _Components {
16-
class BaseComponent implements IBaseComponent {
17-
options: IBaseComponentOptions;
18-
protected _$element: JQuery;
19-
constructor(options: IBaseComponentOptions);
20-
protected _init(): boolean;
21-
protected _getDefaultOptions(): IBaseComponentOptions;
22-
_emit(event: string, ...args: any[]): EventEmitter;
23-
protected _resize(): void;
24-
databind(data?: any): void;
25-
}
26-
function applyMixins(derivedCtor: any, baseCtors: any[]): void;
27-
}
28-
29-
declare namespace _Components {
30-
interface IBaseComponent {
31-
options: IBaseComponentOptions;
32-
databind(data?: any): void;
33-
}
34-
}
35-
36-
declare namespace _Components {
37-
interface IBaseComponentOptions {
38-
element?: string;
39-
}
40-
}
41-
421
// Type definitions for core-js v0.9.7
432
// Project: https://github.com/zloirock/core-js/
443
// Definitions by: Ron Buckton <http://github.com/rbuckton>
@@ -8392,6 +8351,45 @@ declare module "constants" {
83928351
export var X_OK: number;
83938352
export var UV_UDP_REUSEADDR: number;
83948353
}
8354+
interface Window {
8355+
_Components: any;
8356+
}
8357+
8358+
interface EventEmitter {
8359+
on (event: string, callback: Function, ctx?: any): EventEmitter;
8360+
once (event: string, callback: Function, ctx?: any): EventEmitter;
8361+
emit (event: string, ...args: any[]): EventEmitter;
8362+
off (event: string, callback?: Function): EventEmitter;
8363+
}
8364+
8365+
declare var TinyEmitter: any;
8366+
declare namespace _Components {
8367+
class BaseComponent implements IBaseComponent {
8368+
options: IBaseComponentOptions;
8369+
protected _$element: JQuery;
8370+
constructor(options: IBaseComponentOptions);
8371+
protected _init(): boolean;
8372+
protected _getDefaultOptions(): IBaseComponentOptions;
8373+
_emit(event: string, ...args: any[]): EventEmitter;
8374+
protected _resize(): void;
8375+
databind(data?: any): void;
8376+
}
8377+
function applyMixins(derivedCtor: any, baseCtors: any[]): void;
8378+
}
8379+
8380+
declare namespace _Components {
8381+
interface IBaseComponent {
8382+
options: IBaseComponentOptions;
8383+
databind(data?: any): void;
8384+
}
8385+
}
8386+
8387+
declare namespace _Components {
8388+
interface IBaseComponentOptions {
8389+
element?: string;
8390+
}
8391+
}
8392+
83958393
// manifesto.js v2.0.3 https://github.com/viewdir/manifesto
83968394
declare module exjs {
83978395
}
@@ -10006,6 +10004,26 @@ declare namespace Manifold {
1000610004
}
1000710005
}
1000810006

10007+
// component-specific definitions
10008+
10009+
interface JQuery {
10010+
// jsviews
10011+
link: any;
10012+
render: any;
10013+
// unevent
10014+
on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any, wait: Number): JQuery;
10015+
// plugins
10016+
checkboxButton(onClicked: (checked: boolean) => void);
10017+
swapClass(removeClass: string, addClass: string): void;
10018+
}
10019+
10020+
interface JQueryStatic {
10021+
// jsviews
10022+
observable: any;
10023+
templates: any;
10024+
views: any;
10025+
view: any;
10026+
}
1000910027
declare namespace IIIFComponents {
1001010028
class GalleryComponent extends _Components.BaseComponent implements IGalleryComponent {
1001110029
options: IGalleryComponentOptions;

dist/iiif-gallery-component.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// iiif-gallery-component v1.0.1 https://github.com/viewdir/iiif-gallery-component#readme
1+
// iiif-gallery-component v1.0.2 https://github.com/viewdir/iiif-gallery-component#readme
22
declare namespace IIIFComponents {
33
class GalleryComponent extends _Components.BaseComponent implements IGalleryComponent {
44
options: IGalleryComponentOptions;

dist/iiif-gallery-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// iiif-gallery-component v1.0.1 https://github.com/viewdir/iiif-gallery-component#readme
1+
// iiif-gallery-component v1.0.2 https://github.com/viewdir/iiif-gallery-component#readme
22
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifGalleryComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
33
var __extends = (this && this.__extends) || function (d, b) {
44
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

dist/iiif-gallery-component.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/js/iiif-gallery-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// iiif-gallery-component v1.0.1 https://github.com/viewdir/iiif-gallery-component#readme
1+
// iiif-gallery-component v1.0.2 https://github.com/viewdir/iiif-gallery-component#readme
22
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifGalleryComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
33
var __extends = (this && this.__extends) || function (d, b) {
44
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

gulpfile.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ tasks.init({
1414
examples: [],
1515
// ts definitions to copy to the 'typings' dir
1616
typings: [
17-
'node_modules/base-component/dist/base-component.d.ts',
18-
'node_modules/base-component/typings/corejs.d.ts',
19-
'node_modules/base-component/typings/jquery.d.ts',
20-
'node_modules/base-component/typings/node.d.ts',
17+
'node_modules/base-component/dist/base-component.bundle.d.ts',
2118
'node_modules/manifold/dist/manifold.bundle.d.ts'
2219
]
2320
});

0 commit comments

Comments
 (0)